简体   繁体   English

NovaClient-使用“启动”创建云服务器-错误(BadRequest):找到多个可能的网络

[英]NovaClient - create cloud server using “boot” - ERROR (BadRequest): Multiple possible networks found

I'm a fresher to OpenStack and NovaClient API. 我刚接触OpenStack和NovaClient API。 NovaClient version: 2.20.0 NovaClient版本:2.20.0

I have successfully logged in to my OpenStack account and have NovaClient API privileges. 我已经成功登录到我的OpenStack帐户并具有NovaClient API特权。

I was trying to create a cloud server on OpenStack using nova client with "boot" command as follows. 我试图使用nova客户端通过“ boot”命令在OpenStack上创建云服务器,如下所示。

nova boot --flavor 2 --image 004337db-0dad-4c14-a154-726a1428f524 ubuntu-1204

I'm unable to complete the request since getting following error. 由于出现以下错误,我无法完成请求。

ERROR (BadRequest): Multiple possible networks found, use a Network ID to be more specific. (HTTP 400) (Request-ID: req-25e05d24-b152-481c-aaa3-de563ca28cfa)

How do I resolve this issue? 我该如何解决这个问题?

Please provide a direction to proceed from here. 请提供从此处开始的指示。

Link I'm referring is as follows. 我指的链接如下。

[1] http://www.rackspace.com/knowledge_center/article/useful-python-novaclient-commands [1] http://www.rackspace.com/knowledge_center/article/useful-python-novaclient-commands

Found the solution. 找到了解决方案。 Since I have multiple networks in OpenStack cloud, OpenStack doesn't seem to assign a default network to my server upon boot if I don't specify any network during creation. 由于我在OpenStack云中有多个网络,因此,如果我在创建过程中未指定任何网络,OpenStack似乎不会在启动时为服务器分配默认网络。

I did use --nic net-id=<private-net-id> switch and server boot was successful. 我确实使用了--nic net-id=<private-net-id>开关,服务器启动成功。

nova boot ubuntu-12.04 --flavor 2 --image 004337db-0dad-4c14-a154-726a1428f524 --nic net-id=b55f009a-1cc6-4b17-924f-4ae0ee18db5e

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

相关问题 是否可以使用多个数据库表 Update 或 Upsert 通过 Google Cloud Data fusion 创建数据管道? - İs it possible to create data pipeline with Google Cloud Data fusion using multiple database tables Update or Upsert? 在云代工厂中找不到MySQL服务器 - MySQL server not found in cloud foundry 在哪种情况下需要创建多个 Azure 虚拟网络和子网? - In which scenario you need to create multiple Azure Virtual Networks and Subnets? 在 Spring 引导应用程序中使用 Spring 云配置服务器从 Bitbucket 存储库读取外部 YAML/JSON 文件 - Reading an external YAML/JSON File from Bitbucket Repository using Spring Cloud Config Server in a Spring Boot Application 是否可以创建ETW事件并在具有多个角色的同一云服务上收听它们? - Is it possible to create ETW Events and listen to them on the same cloud service with multiple roles? 删除Azure云中的Blob时远程服务器返回错误:(404)找不到 - When Delete the blob in azure cloud The remote server returned an error: (404) Not Found 使用 Python 的云服务器 - Cloud Server using Python 解析服务器上的多个云文件 - Multiple Cloud files on Parse Server 使用云形成模板创建特定资源的多个实例 - Create multiple instances of a specific resource using Cloud Formation Template 在人事服务器上创建人事云 - Create my personnel Cloud on my personnel server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM