Getting Error as missing schema for attaching volume [closed]

asked 2014-02-25 04:04:03 -0600

Vikrant Pawar gravatar image

updated 2014-02-25 22:58:50 -0600

Hi,

I'm getting error as "MissingSchema: Invalid URL u'<none>/volumes/909ceade-3ef0-42a2-8ebc-58f3f65648bf': No schema supplied"

While attaching volume to instance with nova volume-attach command.

I am using cinder to create and mange block storage, Volumes are create using cinder command and could be shown using nova volume-list command, even LV is created at backend.

However when trying to attach new volume to instance I'm getting this error in nova api.log Log trace is below.

ERROR nova.api.openstack [req-d709b6ea-fb1c-4ed5-8220-bd438a0b8487 5f9b5ab95d4d4f6ead90373c9adb373d 8fa0f51b94704628973164d39f7c1cc2] Caught error: Invalid URL u'<None>/volumes/909ceade-3ef0-42a2-8ebc-58f3f65648bf': No schema supplied
 TRACE nova.api.openstack Traceback (most recent call last):
 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/api/openstack/__init__.py", line 119, in __call__
 TRACE nova.api.openstack     return req.get_response(self.application)
 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/request.py", line 1296, in send
 TRACE nova.api.openstack     application, catch_exc_info=False)
 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/request.py", line 1260, in call_application
 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
 TRACE nova.api.openstack     return resp(environ, start_response)
......

Let me know I missing something

Here are details of volume-attach command:

nova --debug volume-attach 57d6482f-838c-4513-86a0-3b0fe205d510 909ceade-3ef0-42a2-8ebc-58f3f65648bf /dev/sdb1

REQ: curl -i http://controller:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "XXXXX"}}}'

INFO (connectionpool:203) Starting new HTTP connection (1): controller DEBUG (connectionpool:295) "POST /v2.0/tokens HTTP/1.1" 200 5686 RESP: [200] {'date': 'Wed, 26 Feb 2014 12:38:53 GMT', 'content-type': 'application/json', 'content-length': '5686', 'vary': 'X-Auth-Token'} RESP BODY: {"access": {"token": {"issued_at": "2014-02-26T12:38:53.128484", "expires": "2014-02-27T12:38:53Z", "id": "MIIKRgYJKoZIhvcNAQcCoIIKNzCCCj.......fTAuzAT2fWzr0VNWqoaElfuMjIVQ7GKe-0iq0j3uIPKp0", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "8fa0f51b94704628973164d39f7c1cc2", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:8776/v1/8fa0f51b94704628973164d39f7c1cc2", "region": "regionOne", "internalURL": "http://controller:8776/v1/8fa0f51b94704628973164d39f7c1cc2", "id": "67761a3d8381429ebe826cbe7c04dfe2", "publicURL": "http://controller:8776/v1/8fa0f51b94704628973164d39f7c1cc2"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "445dd4449a2244d29c34e3326f46b28f", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8774/v2/8fa0f51b94704628973164d39f7c1cc2", "region": "regionOne", "internalURL": "http://controller:8774/v2/8fa0f51b94704628973164d39f7c1cc2", "id": "ac367e68db814fd5ab8b2bc8ee290545", "publicURL": "http://controller:8774/v2/8fa0f51b94704628973164d39f7c1cc2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "038074c8e340491284ac824fb735fdfc", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}, {"endpoints": [{"adminURL": "http://controller:8776/v2/8fa0f51b94704628973164d39f7c1cc2", "region": "regionOne", "internalURL": "http://controller:8776/v2/8fa0f51b94704628973164d39f7c1cc2", "id": "12c13ce5590547f6b684f93f0af79b87", "publicURL": "http://controller:8776/v2/8fa0f51b94704628973164d39f7c1cc2"}], "endpoints_links": [], "type": "volumev2", "name": "cinderv2"}], "user": {"username": "admin", "roles_links": [], "id": "5f9b5ab95d4d4f6ead90373c9adb373d", "roles": [{"name": "_member_"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "2dac005d2508441fa2a5aa87b8f46761"]}}}

REQ: curl -i http://controller:8774/v2/8fa0f51b94704628973164d39f7c1cc2/servers/57d6482f-838c-4513-86a0-3b0fe205d510 (http://controller:8774/v2/8fa0f51b947...) -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by rahmu
close date 2014-02-26 08:19:31.524730

Comments

Can you show us the command you use to attach the volume to the instance, including as much detail as you can? (e.g. include the `--debug` option if you're using the nova client)

rahmu gravatar imagerahmu ( 2014-02-25 04:10:21 -0600 )edit

Hi, I have not used this forum much, Hence I modified main question with output for command.

Vikrant Pawar gravatar imageVikrant Pawar ( 2014-02-25 22:59:55 -0600 )edit

Hi , Found issue Cinder endpoint template wast not correct in nova conf file it was cinder_endpoint_template=<none> given it default value and it worked.

Vikrant Pawar gravatar imageVikrant Pawar ( 2014-02-25 23:31:35 -0600 )edit