缺少用于Oracle Cloud CLI的卷连接的“模拟”类型吗?

时间:2019-05-14 21:42:49

标签: oracle-cloud-infrastructure

使用GUI似乎存在三种不同类型的卷附件,即ISCSI,半虚拟化和仿真。但是,在文档和Oracle Cloud CLI中,它仅提供ISCSI和半虚拟化。

enter image description here 如何附加具有通过CLI模拟的类型的卷?

*** GUI可以正常工作,可以附加模拟类型的卷

{
  "attachment-type": "emulated",
  "availability-domain": "wwwl:US-ASHBURN-AD-3",
  "compartment-id": "ocid1.tenancy.oc1..aaaaaaaambr3uzztoyhweohbzqqdo775h7d3t54zpmzkp4b2cf35vs55ck3a",
  "device": null,
  "display-name": "volumeattachment20181107202740",
  "id": "ocid1.volumeattachment.oc1.iad.abuwcljrto7vk7zd4pcxqqvth3puc6ext33y3kgpmbpb3a6cadgxzquiy2ka",
  "instance-id": "ocid1.instance.oc1.iad.abuwcljrw7lrhtkmthjf7gft2clixhbp7drurv2hszpm2pviarbxcndiyaeq",
  "is-pv-encryption-in-transit-enabled": false,
  "is-read-only": false,
  "lifecycle-state": "ATTACHED",
  "time-created": "2018-11-07T20:27:40.299000+00:00",
  "volume-id": "ocid1.volume.oc1.iad.abuwcljrzuooemejembr7jp3yz7vwd4haq4adjpt67epnanquofiliwzkj5q"
}

***但是CLI不能。

root@pc55:/home/oci/userdata# oci compute volume-attachment attach --instance-id ocid1.instance.oc1.iad.abuwcljtp4tobqa2llf42jei7pm3vgrkdlid63hzqcrdlxt77r2bkbayo3qa --volume-id ocid1.volume.oc1.iad.abuwcljt3bycex5ocb7qdwnuci3ch77fiwjz7hezejljcejj3a34q3emlmcq --type emulated
Usage: oci compute volume-attachment attach [OPTIONS]

Error: Invalid value for "--type": invalid choice: emulated. (choose from iscsi, paravirtualized)

https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm#attachtype

1 个答案:

答案 0 :(得分:0)

是的,您是正确的。

$ oci --version
2.5.10
oci compute volume-attachment attach --help
--type [service_determined|emulated|iscsi|paravirtualized]
The type of volume. The only supported value are "iscsi" and "paravir-
tualized". [required]
$ oci compute volume-attachment attach --type emulated
Usage: oci compute volume-attachment attach [OPTIONS]

Error: Invalid value for "--type": invalid choice: emulated. (choose from iscsi, paravirtualized)

我刚刚提交了此GitHub问题 https://github.com/oracle/oci-cli/issues/146