繁体   English   中英

Google计算引擎列表/实例删除失败,正则表达式

[英]Google compute engine list / instances delete fails regexp

我创建了Google计算引擎永久磁盘的私有映像,称为primecoin01。 稍后,我尝试创建一个新图像。 失败的原因是说regexp在列出图像和gcloud.compute.instances.delete期间均无效,这是使用永久磁盘创建图像的第一步。 它让我创建了映像名称,现在我无法使用命令gcloud compute images list或gcloud computing instance delete instance-0 --keep-disks boot。 我不知道从列表中删除该图像的方法。
primecoin01当然满足正则表达式标准,我不知道为什么它将图像命名为``primecoin01,所有帮助大为赞赏。

详情如下:

C:\Program Files\Google\Cloud SDK>gcloud compute images list
NAME                                PROJECT           ALIAS              DEPRECATED STATUS
centos-6-v20141021                  centos-cloud      centos-6                      READY
centos-7-v20141021                  centos-cloud      centos-7                      READY
coreos-alpha-494-0-0-v20141108      coreos-cloud                                    READY
coreos-beta-444-5-0-v20141016       coreos-cloud                                    READY
coreos-stable-444-5-0-v20141016     coreos-cloud      coreos                        READY
backports-debian-7-wheezy-v20141021 debian-cloud      debian-7-backports            READY
debian-7-wheezy-v20141021           debian-cloud      debian-7                      READY
container-vm-v20141016              google-containers container-vm                  READY
opensuse-13-1-v20141102             opensuse-cloud    opensuse-13                   READY
rhel-6-v20141021                    rhel-cloud        rhel-6                        READY
rhel-7-v20141021                    rhel-cloud        rhel-7                        READY
sles-11-sp3-v20140930               suse-cloud        sles-11                       READY
sles-11-sp3-v20141105               suse-cloud        sles-11                       READY
sles-12-v20141023                   suse-cloud                                      READY
ERROR: (gcloud.compute.images.list) Some requests did not succeed:
 - Invalid value '``primecoin01'. Values must match the following regular expression:     '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z]
(?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))'

C:\Program Files\Google\Cloud SDK>gcloud compute instances delete instance-0  --keep-disks boot
ERROR: (gcloud.compute.instances.delete) Unable to fetch a list of zones. Specifying  [--zone] may fix this issue:
 - Invalid value '``primecoin01'. Values must match the following regular expression: '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z]  (?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))'

C:\Program Files\Google\Cloud SDK>gcloud compute instances delete instance-0  --keep-disks boot --zone us-central1-b
The following instances will be deleted. Attached disks configured to
be auto-deleted will be deleted unless they are attached to any other
instances. Deleting a disk is irreversible and any data on the disk
will be lost.
 - [instance-0] in [us-central1-b]

Do you want to continue (Y/n)?  y

ERROR: (gcloud.compute.instances.delete) Failed to fetch some instances:
 - Invalid value '``primecoin01'. Values must match the following regular expression: '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z]
(?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))'

创建磁盘时,这似乎是验证错误,并且名称不正确。 您还有同样的问题吗? 创建磁盘“快照”的一种方法是使用dd Linux命令刻录映像,然后将其压缩为文件以从该文件创建映像

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM