yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #45828
[Bug 1541805] [NEW] nova boot gives an API error
Public bug reported:
issue description: i am installing Liberty on Ubuntu 14.04 LTS, when i
tried to launch an instance i got this error.
snat@controller:~$ nova boot --flavor m1.small --image cirros --nic net-id=b9a485f1-3e77-4422-8ce8-26413a311450 --security-group default --key-name mykey public-instance
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-4d22b711-1423-45f4-b11e-d6f596ee2703)
This is definetely a bug.
uname -a
Linux controller 3.13.0-76-generic #120-Ubuntu SMP Mon Jan 18 15:59:10
UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Nova.conf
[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
libvirt_use_virtio_for_bridges=True
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
enabled_apis=ec2,osapi_compute,metadata
rpc_backend = rabbit
uth_strategy = keystone
my_ip = 10.0.0.11
network_api_class = nova.network.neutronv2.api.API
security_group_api = neutron
linuxnet_interface_driver = nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
enabled_apis=osapi_compute,metadata
verbose = True
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = RABBIT_PASS
[database]
connection = mysql+pymysql://nova:NOVA_DBPASS@controller/nova
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = nova
[vnc]
vncserver_listen = $my_ip
vncserver_proxyclient_address = $my_ip
[glance]
host = controller
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
snat@controller:~$ nova flavor-list
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
so Nova flavor list works just fine and when i try to boot it says the
flavor m1.small & m1.tiny does not exist.
i have run a nova debug boot
snat@controller:~$ nova --debug boot --flavor m1.small --image cirros --nic net-id=b9a485f1-3e77-4422-8ce8-26413a311450 --security-group default --key-name mykey public-instance
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:5000/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:205) Starting new HTTP connection (1): controller
DEBUG (connectionpool:385) "GET /v3 HTTP/1.1" 200 249
DEBUG (session:215) RESP: [200] Content-Length: 249 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Thu, 04 Feb 2016 09:22:59 GMT x-openstack-request-id: req-2f991c43-7ffa-4abe-9a1c-f1f28e614cb1 Content-Type: application/json X-Distribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:5000/v3/", "rel": "self"}]}}
DEBUG (base:188) Making authentication request to http://controller:5000/v3/auth/tokens
DEBUG (connectionpool:385) "POST /v3/auth/tokens HTTP/1.1" 201 2799
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436"
INFO (connectionpool:205) Starting new HTTP connection (1): controller
DEBUG (connectionpool:385) "GET /v2/ HTTP/1.1" 200 375
DEBUG (session:215) RESP: [200] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json Content-Length: 375 X-Compute-Request-Id: req-708a6ab4-cb2a-4f3d-9d61-28468f6424ea
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://controller:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436"
DEBUG (connectionpool:385) "GET /v2/7a95c6ea567345e496a48e6ac2243b1c/images HTTP/1.1" 200 495
DEBUG (session:215) RESP: [200] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json Content-Length: 495 X-Compute-Request-Id: req-58e7bb5f-6af1-44c9-8813-fa0acbf19980
RESP BODY: {"images": [{"id": "de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "rel": "bookmark"}, {"href": "http://controller:9292/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros"}]}
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436"
DEBUG (connectionpool:385) "GET /v2/7a95c6ea567345e496a48e6ac2243b1c/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a HTTP/1.1" 200 676
DEBUG (session:215) RESP: [200] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json Content-Length: 676 X-Compute-Request-Id: req-a3c2b1c7-394b-4786-bd9d-428748250756
RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-02-03T13:16:42Z", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "rel": "bookmark"}, {"href": "http://controller:9292/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "OS-EXT-IMG-SIZE:size": 13287936, "name": "cirros", "created": "2016-02-03T13:16:41Z", "minDisk": 0, "progress": 100, "minRam": 0, "metadata": {}}}
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/m1.small -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436"
DEBUG (connectionpool:385) "GET /v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/m1.small HTTP/1.1" 404 81
DEBUG (session:215) RESP: [404] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 81 X-Compute-Request-Id: req-d3830536-79be-4790-9f9e-ca3f6f131f48
RESP BODY: {"itemNotFound": {"message": "Flavor m1.small could not be found.", "code": 404}}
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors?is_public=None -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436"
DEBUG (connectionpool:385) "GET /v2/7a95c6ea567345e496a48e6ac2243b1c/flavors?is_public=None HTTP/1.1" 200 1209
DEBUG (session:215) RESP: [200] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json Content-Length: 1209 X-Compute-Request-Id: req-68fe0f82-f6be-4e68-bb88-709848000556
RESP BODY: {"flavors": [{"id": "1", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/1", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/flavors/1", "rel": "bookmark"}], "name": "m1.tiny"}, {"id": "2", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/2", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/flavors/2", "rel": "bookmark"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/3", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/flavors/3", "rel": "bookmark"}], "name": "m1.medium"}, {"id": "4", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/4", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/flavors/4", "rel": "bookmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/5", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/flavors/5", "rel": "bookmark"}], "name": "m1.xlarge"}]}
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/2 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436"
DEBUG (connectionpool:385) "GET /v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/2 HTTP/1.1" 200 421
DEBUG (session:215) RESP: [200] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json Content-Length: 421 X-Compute-Request-Id: req-ed87e9e8-2b18-49b2-a6d6-ccc8563c7d3e
RESP BODY: {"flavor": {"name": "m1.small", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/2", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/flavors/2", "rel": "bookmark"}], "ram": 2048, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 20, "id": "2"}}
DEBUG (session:198) REQ: curl -g -i -X POST http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/servers -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436" -d '{"server": {"name": "public-instance", "imageRef": "de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "key_name": "mykey", "flavorRef": "2", "max_count": 1, "min_count": 1, "networks": [{"uuid": "b9a485f1-3e77-4422-8ce8-26413a311450"}], "security_groups": [{"name": "default"}]}}'
DEBUG (connectionpool:385) "POST /v2/7a95c6ea567345e496a48e6ac2243b1c/servers HTTP/1.1" 500 210
DEBUG (session:215) RESP: [500] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 210 X-Compute-Request-Id: req-eef9f6ec-4de7-4541-b6d8-7c9948105fb7
RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'keystoneclient.exceptions.BadRequest'>", "code": 500}}
DEBUG (shell:905) Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-eef9f6ec-4de7-4541-b6d8-7c9948105fb7)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 903, in main
OpenStackComputeShell().main(argv)
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 830, in main
args.func(self.cs, args)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/shell.py", line 520, in do_boot
server = cs.servers.create(*boot_args, **boot_kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 942, in create
**boot_kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 540, in _boot
return_raw=return_raw, **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 169, in _create
_resp, body = self.api.client.post(url, body=body)
File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 176, in post
return self.request(url, 'POST', **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 93, in request
raise exceptions.from_response(resp, body, url, method)
ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-eef9f6ec-4de7-4541-b6d8-7c9948105fb7)
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-eef9f6ec-4de7-4541-b6d8-7c9948105fb7)
snat@controller:~$ dpkg -l | grep nova
ii nova-api 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - API frontend
ii nova-cert 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - certificate management
ii nova-common 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - common files
ii nova-conductor 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - conductor service
ii nova-consoleauth 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - Console Authenticator
ii nova-novncproxy 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - NoVNC proxy
ii nova-scheduler 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - virtual machine scheduler
ii python-nova 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute Python libraries
ii python-novaclient 2:2.30.1-1~cloud0 all client library for OpenStack Compute API
** Affects: nova
Importance: Undecided
Status: New
** Tags: launch liberty-instance
** Attachment added: "nova-api.log"
https://bugs.launchpad.net/bugs/1541805/+attachment/4563674/+files/nova-api.log
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1541805
Title:
nova boot gives an API error
Status in OpenStack Compute (nova):
New
Bug description:
issue description: i am installing Liberty on Ubuntu 14.04 LTS, when i
tried to launch an instance i got this error.
snat@controller:~$ nova boot --flavor m1.small --image cirros --nic net-id=b9a485f1-3e77-4422-8ce8-26413a311450 --security-group default --key-name mykey public-instance
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-4d22b711-1423-45f4-b11e-d6f596ee2703)
This is definetely a bug.
uname -a
Linux controller 3.13.0-76-generic #120-Ubuntu SMP Mon Jan 18 15:59:10
UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Nova.conf
[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
libvirt_use_virtio_for_bridges=True
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
enabled_apis=ec2,osapi_compute,metadata
rpc_backend = rabbit
uth_strategy = keystone
my_ip = 10.0.0.11
network_api_class = nova.network.neutronv2.api.API
security_group_api = neutron
linuxnet_interface_driver = nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
enabled_apis=osapi_compute,metadata
verbose = True
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = RABBIT_PASS
[database]
connection = mysql+pymysql://nova:NOVA_DBPASS@controller/nova
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = nova
[vnc]
vncserver_listen = $my_ip
vncserver_proxyclient_address = $my_ip
[glance]
host = controller
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
snat@controller:~$ nova flavor-list
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
so Nova flavor list works just fine and when i try to boot it says the
flavor m1.small & m1.tiny does not exist.
i have run a nova debug boot
snat@controller:~$ nova --debug boot --flavor m1.small --image cirros --nic net-id=b9a485f1-3e77-4422-8ce8-26413a311450 --security-group default --key-name mykey public-instance
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:5000/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:205) Starting new HTTP connection (1): controller
DEBUG (connectionpool:385) "GET /v3 HTTP/1.1" 200 249
DEBUG (session:215) RESP: [200] Content-Length: 249 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Thu, 04 Feb 2016 09:22:59 GMT x-openstack-request-id: req-2f991c43-7ffa-4abe-9a1c-f1f28e614cb1 Content-Type: application/json X-Distribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:5000/v3/", "rel": "self"}]}}
DEBUG (base:188) Making authentication request to http://controller:5000/v3/auth/tokens
DEBUG (connectionpool:385) "POST /v3/auth/tokens HTTP/1.1" 201 2799
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436"
INFO (connectionpool:205) Starting new HTTP connection (1): controller
DEBUG (connectionpool:385) "GET /v2/ HTTP/1.1" 200 375
DEBUG (session:215) RESP: [200] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json Content-Length: 375 X-Compute-Request-Id: req-708a6ab4-cb2a-4f3d-9d61-28468f6424ea
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://controller:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436"
DEBUG (connectionpool:385) "GET /v2/7a95c6ea567345e496a48e6ac2243b1c/images HTTP/1.1" 200 495
DEBUG (session:215) RESP: [200] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json Content-Length: 495 X-Compute-Request-Id: req-58e7bb5f-6af1-44c9-8813-fa0acbf19980
RESP BODY: {"images": [{"id": "de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "rel": "bookmark"}, {"href": "http://controller:9292/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros"}]}
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436"
DEBUG (connectionpool:385) "GET /v2/7a95c6ea567345e496a48e6ac2243b1c/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a HTTP/1.1" 200 676
DEBUG (session:215) RESP: [200] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json Content-Length: 676 X-Compute-Request-Id: req-a3c2b1c7-394b-4786-bd9d-428748250756
RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-02-03T13:16:42Z", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "rel": "bookmark"}, {"href": "http://controller:9292/images/de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "OS-EXT-IMG-SIZE:size": 13287936, "name": "cirros", "created": "2016-02-03T13:16:41Z", "minDisk": 0, "progress": 100, "minRam": 0, "metadata": {}}}
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/m1.small -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436"
DEBUG (connectionpool:385) "GET /v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/m1.small HTTP/1.1" 404 81
DEBUG (session:215) RESP: [404] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 81 X-Compute-Request-Id: req-d3830536-79be-4790-9f9e-ca3f6f131f48
RESP BODY: {"itemNotFound": {"message": "Flavor m1.small could not be found.", "code": 404}}
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors?is_public=None -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436"
DEBUG (connectionpool:385) "GET /v2/7a95c6ea567345e496a48e6ac2243b1c/flavors?is_public=None HTTP/1.1" 200 1209
DEBUG (session:215) RESP: [200] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json Content-Length: 1209 X-Compute-Request-Id: req-68fe0f82-f6be-4e68-bb88-709848000556
RESP BODY: {"flavors": [{"id": "1", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/1", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/flavors/1", "rel": "bookmark"}], "name": "m1.tiny"}, {"id": "2", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/2", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/flavors/2", "rel": "bookmark"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/3", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/flavors/3", "rel": "bookmark"}], "name": "m1.medium"}, {"id": "4", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/4", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/flavors/4", "rel": "bookmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/5", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/flavors/5", "rel": "bookmark"}], "name": "m1.xlarge"}]}
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/2 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436"
DEBUG (connectionpool:385) "GET /v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/2 HTTP/1.1" 200 421
DEBUG (session:215) RESP: [200] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json Content-Length: 421 X-Compute-Request-Id: req-ed87e9e8-2b18-49b2-a6d6-ccc8563c7d3e
RESP BODY: {"flavor": {"name": "m1.small", "links": [{"href": "http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/flavors/2", "rel": "self"}, {"href": "http://controller:8774/7a95c6ea567345e496a48e6ac2243b1c/flavors/2", "rel": "bookmark"}], "ram": 2048, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 20, "id": "2"}}
DEBUG (session:198) REQ: curl -g -i -X POST http://controller:8774/v2/7a95c6ea567345e496a48e6ac2243b1c/servers -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}d1437835279b61c370c2ac34e6af5e3a86583436" -d '{"server": {"name": "public-instance", "imageRef": "de0f6ae3-c8ab-49e6-b27f-2916a3bd039a", "key_name": "mykey", "flavorRef": "2", "max_count": 1, "min_count": 1, "networks": [{"uuid": "b9a485f1-3e77-4422-8ce8-26413a311450"}], "security_groups": [{"name": "default"}]}}'
DEBUG (connectionpool:385) "POST /v2/7a95c6ea567345e496a48e6ac2243b1c/servers HTTP/1.1" 500 210
DEBUG (session:215) RESP: [500] Date: Thu, 04 Feb 2016 09:23:00 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 210 X-Compute-Request-Id: req-eef9f6ec-4de7-4541-b6d8-7c9948105fb7
RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'keystoneclient.exceptions.BadRequest'>", "code": 500}}
DEBUG (shell:905) Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-eef9f6ec-4de7-4541-b6d8-7c9948105fb7)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 903, in main
OpenStackComputeShell().main(argv)
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 830, in main
args.func(self.cs, args)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/shell.py", line 520, in do_boot
server = cs.servers.create(*boot_args, **boot_kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 942, in create
**boot_kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 540, in _boot
return_raw=return_raw, **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 169, in _create
_resp, body = self.api.client.post(url, body=body)
File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 176, in post
return self.request(url, 'POST', **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 93, in request
raise exceptions.from_response(resp, body, url, method)
ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-eef9f6ec-4de7-4541-b6d8-7c9948105fb7)
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-eef9f6ec-4de7-4541-b6d8-7c9948105fb7)
snat@controller:~$ dpkg -l | grep nova
ii nova-api 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - API frontend
ii nova-cert 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - certificate management
ii nova-common 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - common files
ii nova-conductor 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - conductor service
ii nova-consoleauth 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - Console Authenticator
ii nova-novncproxy 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - NoVNC proxy
ii nova-scheduler 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - virtual machine scheduler
ii python-nova 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute Python libraries
ii python-novaclient 2:2.30.1-1~cloud0 all client library for OpenStack Compute API
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1541805/+subscriptions
Follow ups