Go to file
zhaolihui b13ba0138f Fix flavor keyerror when nova boot vm
When creating a server (the 'nova boot' command),
it calls 'POST /servers' API.

The response does not have 'addresses' and 'flavor' attributes.
When accessing 'networks' attribute in the '_print_server' function,
it calls 'GET /servers/{server_id}' and get the 'addresses' and
'flavor' attributes.

If 'GET /servers/{server_id}' fails, the server object does not have
the 'flavor' attribute, then KeyError is raised when accessing it.

Fix the issue by making it raise a CommandError
when the 'GET /servers/{server_id}' fails.

Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Change-Id: I3ef096c61b0e05a637ab0c4a1027338fa87e4f09
Closes-Bug: #1781368
2018-12-13 07:50:37 +00:00
2018-10-22 07:11:25 +00:00
2018-07-16 15:43:48 +07:00
2018-07-16 15:43:48 +07:00
2014-05-07 12:16:41 -07:00
2018-07-16 15:43:48 +07:00
2018-09-10 22:24:43 +02:00
2015-09-08 10:10:25 -07:00
2011-08-08 13:25:29 -07:00
2018-06-28 12:37:19 +00:00
2017-03-06 01:18:45 +00:00
2018-09-24 15:18:06 +01:00

Team and repository tags

image

Python bindings to the OpenStack Compute API

Latest Version

This is a client for the OpenStack Compute API. It provides a Python API (the novaclient module) and a command-line script (nova). Each implements 100% of the OpenStack Compute API.

Description
OpenStack Compute (Nova) Client
Readme 35 MiB
Languages
Python 100%