0

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

在此处输入图像描述 如何附加具有通过 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

4

1 回答 1

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

于 2019-05-15T12:07:11.477 回答