python - gcutil moveinstances 由于 "KeyError: u' CPUS 而失败”

标签 python gcutil

我正在尝试将我的微型计算引擎从 us-central2-a 移至 us-central1-a,因为 Google 将在一周内对第一个区域进行维护。我正在我的 Windows 计算机上通过 Cygwin 运行 gcutil-1.9.0。

我运行了他们建议的确切命令:

gcutil moveinstances --replace_deprecated --source_zone=us-central2-a --destination_zone=us-central1-a ".*" --project=careful-isotope-239

得到以下结果:

Checking destination zone...
Retrieving instances in us-central2-a matching: .*...
Checking disk preconditions...
Checking quotas...
KeyError: u'CPUS'

所以,这显然是一个Python错误,但我不知道如何继续。有人有想法吗?

谢谢, 蒂姆

最佳答案

您应该使用 --service_version=v1beta15 标志,他们已经破坏了 getzone 的 API(moveinstances 正在尝试验证 CPUS 配额)。

关于python - gcutil moveinstances 由于 "KeyError: u' CPUS 而失败”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19189538/

相关文章:

bash - 连接到 Google Compute Engine 的 SSH 问题

google-compute-engine - 将文件从 GCE 导出到我的本地计算机

rename - 如何重命名 GCE 永久磁盘?

python - 类型错误 : '<' not supported between instances of 'tuple' and 'str'

排序列表的 Pythonic 方式

python - 如何使用 Python 在 PowerBI 中制作可重现的数据样本?

python - 如何在Python中使用集合中的Counter来计算不同列表中的单词数?

python - pandas 中的多个引号