尝试在GCP上创建实例模板时出现异常



我正在尝试使用f1-micro创建一个实例模板,除了服务帐户。使用我创建的一个,带有我的自定义vpc和自定义角色。

Creating instance template "frontend-it" failed. Error: Invalid JSON payload received. Unknown name "enableFlowLogs" at
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "description" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "privateIpGoogleAccess" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "logConfig" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "gatewayAddress" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "network" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "allowSubnetCidrRoutesOverlap" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "id" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "fingerprint" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "kind" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "privateIpv6GoogleAccess" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "creationTimestamp" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "purpose" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "region" at
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field.

它可能是什么?

向人们致以最良好的问候。

解决问题,以防有人对感兴趣

  1. 选择源模板
  2. 创建类似
  3. 根据要求添加/修改/更改新模板
  4. 而不是点击页面底部的create;命令行">
  5. 在CLOUDSHELL中运行并执行和授权该命令

我遇到了同样的问题,并遵循了Narender Gakka的解决方法,但仍然出现了错误。

看起来a标志已从模板中删除。较旧的模板可能包括此标志,但正在创建类似的尝试来添加此不推荐使用的(?(标志。

错误:(gcloud.beta.computer.instance-templates.create with container(无法识别的参数:--保留相关性=任何

我也遇到了这个问题,无法复制所有自定义vpc的实例模板。它可以通过更改为默认vpc来创建。我的解决方案是

  1. 添加新子网VPC网络=>MyVPC=>子网=>添加子网=>亚洲-东亚1子网2
  2. 复制现有实例模板
  3. 展开管理、安全、磁盘、网络、独家租赁=>网络=>子网更改为刚创建的子网,然后更改回原始子网
  4. 然后可以按"创建">

相关内容

  • 没有找到相关文章