Cinder volume is available: [root@openstack nova(keystone)]# cinder list |grep a9f8f997-bc87-4f39-9f9f-0b41169a0256 | a9f8f997-bc87-4f39-9f9f-0b41169a0256 | available | radius | 32 | None | true | |
But I get Block Device Mapping is Invalid error when I try to boot: [root@openstack nova(keystone)]# nova --debug boot --flavor 3 --boot-volume a9f8f997-bc87-4f39-9f9f-0b41169a0256 radius --nic net-id=b2324538-26ee-4d06-bccd-0ef2f6778f6b,v4-fixed-ip=10.71.0.161 REQ: curl -i 'http://10.71.0.218:5000/v2.0/tokens' -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "BroadSoft Labs", "passwordCredentials": {"username": "nathan", "password": "{SHA1}09b59c3a0737bc23a43d7e58fc3619f2882262d9"}}}' INFO (connectionpool:187) Starting new HTTP connection (1): 10.71.0.218 DEBUG (connectionpool:357) "POST /v2.0/tokens HTTP/1.1" 200 3080 RESP: [200] {'date': 'Thu, 28 May 2015 19:49:14 GMT', 'content-type': 'application/json', 'content-length': '3080', 'vary': 'X-Auth-Token'} RESP BODY: {"access": {"token": {"issued_at": "2015-05-28T19:49:14.498769", "expires": "2015-05-28T20:49:14Z", "id": "{SHA1}7a8497b11924d1dbb83a4a8b388997d8b0a38b16", "tenant": {"enabled": true, "description": "BroadSoft Labs Systems", "name": "BroadSoft Labs", "id": "0ebcdedac0a3480ca81050bfedd97cf1"}, "audit_ids": ["S8vl3iTrQF-5J3jIawfNHw"]}, "serviceCatalog": [{"endpoints_links": [], "endpoints": [{"adminURL": " http://10.71.0.218:8774/v2/0ebcdedac0a3480ca81050bfedd97cf1", "region": "RegionOne", "publicURL": " http://10.71.0.218:8774/v2/0ebcdedac0a3480ca81050bfedd97cf1", "internalURL": "http://10.71.0.218:8774/v2/0ebcdedac0a3480ca81050bfedd97cf1", "id": "965990191c7d4fcdb95575dd2e504233"}], "type": "compute", "name": "nova"}, {"endpoints_links": [], "endpoints": [{"adminURL": " http://10.71.0.218:8776/v2/0ebcdedac0a3480ca81050bfedd97cf1", "region": "RegionOne", "publicURL": " http://10.71.0.218:8776/v2/0ebcdedac0a3480ca81050bfedd97cf1", "internalURL": "http://10.71.0.218:8776/v2/0ebcdedac0a3480ca81050bfedd97cf1", "id": "06e9d088a7d2402b88f2c517dbb817db"}], "type": "volumev2", "name": "cinder_v2"}, {"endpoints_links": [], "endpoints": [{"adminURL": " http://10.71.0.218:8774/v3", "region": "RegionOne", "publicURL": " http://10.71.0.218:8774/v3", "internalURL": "http://10.71.0.218:8774/v3", "id": "09fe287f2f8a481489902d46c1d53118"}], "type": "computev3", "name": "novav3"}, {"endpoints_links": [], "endpoints": [{"adminURL": " http://10.71.0.218:9292", "region": "RegionOne", "publicURL": " http://10.71.0.218:9292", "internalURL": "http://10.71.0.218:9292", "id": "1dff3e40f9bf430f9b79654b8e59c1f1"}], "type": "image", "name": "glance"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.71.0.218:8777", "region": "RegionOne", "publicURL": "http://10.71.0.218:8777", "internalURL": "http://10.71.0.218:8777", "id": "98ff5aa8b3ec4df0a6cc2c876dd0d7dc"}], "type": "metering", "name": "ceilometer"}, {"endpoints_links": [], "endpoints": [{"adminURL": " http://10.71.0.218:8776/v1/0ebcdedac0a3480ca81050bfedd97cf1", "region": "RegionOne", "publicURL": " http://10.71.0.218:8776/v1/0ebcdedac0a3480ca81050bfedd97cf1", "internalURL": "http://10.71.0.218:8776/v1/0ebcdedac0a3480ca81050bfedd97cf1", "id": "1dfd84fe0de14c3c81efdfd7ff8a1244"}], "type": "volume", "name": "cinder"}, {"endpoints_links": [], "endpoints": [{"adminURL": " http://10.71.0.218:8773/services/Admin", "region": "RegionOne", "publicURL": "http://10.71.0.218:8773/services/Cloud", "internalURL": " http://10.71.0.218:8773/services/Cloud", "id": "498579a152e54ad58976a779e0ba5724"}], "type": "ec2", "name": "nova_ec2"}, {"endpoints_links": [], "endpoints": [{"adminURL": " http://10.71.0.218:35357/v2.0", "region": "RegionOne", "publicURL": " http://10.71.0.218:5000/v2.0", "internalURL": "http://10.71.0.218:5000/v2.0", "id": "0ef37dfe1c78489ba1fb0599b0956d87"}], "type": "identity", "name": "keystone"}], "user": {"username": "nathan", "roles_links": [], "id": "b4397deb6a884a8c8e70fbc255ce6d80", "roles": [{"name": "admin"}], "name": "nathan"}, "metadata": {"is_admin": 0, "roles": ["d7ed50bf853340e0980d1cbcae8c14ca"]}}} REQ: curl -i ' http://10.71.0.218:8774/v2/0ebcdedac0a3480ca81050bfedd97cf1/flavors/3' -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: BroadSoft Labs" -H "X-Auth-Token: {SHA1}7a8497b11924d1dbb83a4a8b388997d8b0a38b16" INFO (connectionpool:187) Starting new HTTP connection (1): 10.71.0.218 DEBUG (connectionpool:357) "GET /v2/0ebcdedac0a3480ca81050bfedd97cf1/flavors/3 HTTP/1.1" 200 424 RESP: [200] {'date': 'Thu, 28 May 2015 19:49:14 GMT', 'content-length': '424', 'content-type': 'application/json', 'x-compute-request-id': 'req-1e87bab9-3a25-4e2e-ab73-9965ca27bb4c'} RESP BODY: {"flavor": {"name": "m1.medium", "links": [{"href": " http://10.71.0.218:8774/v2/0ebcdedac0a3480ca81050bfedd97cf1/flavors/3", "rel": "self"}, {"href": " http://10.71.0.218:8774/0ebcdedac0a3480ca81050bfedd97cf1/flavors/3", "rel": "bookmark"}], "ram": 4096, "OS-FLV-DISABLED:disabled": false, "vcpus": 4, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 32, "id": "3"}} REQ: curl -i ' http://10.71.0.218:8774/v2/0ebcdedac0a3480ca81050bfedd97cf1/os-volumes_boot' -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: BroadSoft Labs" -H "X-Auth-Token: {SHA1}7a8497b11924d1dbb83a4a8b388997d8b0a38b16" -d '{"server": {"name": "radius", "imageRef": "", "block_device_mapping_v2": [{"source_type": "volume", "destination_type": "volume", "boot_index": 0, "delete_on_termination": false, "uuid": "a9f8f997-bc87-4f39-9f9f-0b41169a0256"}], "flavorRef": "3", "max_count": 1, "min_count": 1, "networks": [{"fixed_ip": "10.71.0.161", "uuid": "b2324538-26ee-4d06-bccd-0ef2f6778f6b"}]}}' INFO (connectionpool:187) Starting new HTTP connection (1): 10.71.0.218 DEBUG (connectionpool:357) "POST /v2/0ebcdedac0a3480ca81050bfedd97cf1/os-volumes_boot HTTP/1.1" 400 135 RESP: [400] {'date': 'Thu, 28 May 2015 19:49:14 GMT', 'content-length': '135', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-727270a1-9df8-4337-b160-e89e29e78f37'} RESP BODY: null DEBUG (shell:803) Block Device Mapping is Invalid: failed to get volume a9f8f997-bc87-4f39-9f9f-0b41169a0256. (HTTP 400) (Request-ID: req-727270a1-9df8-4337-b160-e89e29e78f37) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 800, in main OpenStackComputeShell().main(argv) File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 730, in main args.func(self.cs, args) File "/usr/lib/python2.7/site-packages/novaclient/v1_1/shell.py", line 470, in do_boot server = cs.servers.create(*boot_args, **boot_kwargs) File "/usr/lib/python2.7/site-packages/novaclient/v1_1/servers.py", line 902, in create **boot_kwargs) File "/usr/lib/python2.7/site-packages/novaclient/v1_1/servers.py", line 554, in _boot return_raw=return_raw, **kwargs) File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 100, in _create _resp, body = self.api.client.post(url, body=body) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 490, in post return self._cs_request(url, 'POST', **kwargs) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 465, in _cs_request resp, body = self._time_request(url, method, **kwargs) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 439, in _time_request resp, body = self.request(url, method, **kwargs) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 433, in request raise exceptions.from_response(resp, body, url, method) BadRequest: Block Device Mapping is Invalid: failed to get volume a9f8f997-bc87-4f39-9f9f-0b41169a0256. (HTTP 400) (Request-ID: req-727270a1-9df8-4337-b160-e89e29e78f37) ERROR (BadRequest): Block Device Mapping is Invalid: failed to get volume a9f8f997-bc87-4f39-9f9f-0b41169a0256. (HTTP 400) (Request-ID: req-727270a1-9df8-4337-b160-e89e29e78f37) ><> nathan stratton | vp technology | broadsoft, inc | +1-240-404-6580 | www.broadsoft.com
_______________________________________________ OpenStack-operators mailing list OpenStack-operators@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators