[Openstack-operators] Unable to launch instances because of glance errors

Saverio Proto zioproto at gmail.com
Thu Mar 2 16:08:45 UTC 2017


Everything LTGM

but if you do:

openstack image show Ubuntu-16.04

then you get again the error about the multiple names ?

if you go to the glance database and you do:

select * from images where name=''Ubuntu-16.04";

how many rows you have ?

after we collect this information we can try to understand if this is nova
or glance bug.

thank you

Saverio


2017-03-02 17:01 GMT+01:00 Grant Morley <grant at absolutedevops.io>:

> sure no problem:
>
> openstack image show d5d43ba0-82e9-43de-8883-5ebaf07bf3e3
> +------------------+----------------------------------------
> ------------------------------------------------------------------+
> | Field            | Value
>
> |
> +------------------+----------------------------------------
> ------------------------------------------------------------------+
> | checksum         | 6008d3fdf650658965b132b547416d
> 83
> |
> | container_format | bare
>
> |
> | created_at       | 2016-12-07T16:00:54Z
>
> |
> | disk_format      | raw
>
> |
> | file             | /v2/images/d5d43ba0-82e9-43de-
> 8883-5ebaf07bf3e3/file
> |
> | id               | d5d43ba0-82e9-43de-8883-
> 5ebaf07bf3e3
> |
> | min_disk         | 0
>
> |
> | min_ram          | 0
>
> |
> | name             | Ubuntu-16.04
>
> |
> | owner            | 4a6213a64312482896130efc304719
> 5c
> |
> | properties       | direct_url='rbd://742cd163-
> 32ac-4121-8060-d440aa7345d6/images/d5d43ba0-82e9-43de-8883-5ebaf07bf3e3/snap'
> |
> | protected        | False
>
> |
> | schema           | /v2/schemas/image
>
> |
> | size             | 2361393152
>
> |
> | status           | active
>
> |
> | tags             |
>
> |
> | updated_at       | 2016-12-07T16:01:45Z
>
> |
> | virtual_size     | None
>
> |
> | visibility       | public
>
> |
> +------------------+----------------------------------------
> ------------------------------------------------------------------+
>
> On 02/03/17 15:56, Saverio Proto wrote:
>
> Can you share with us the output of:
>
> openstack image show <uuid>
>
> for that image ?
>
> Saverio
>
>
> 2017-03-02 13:54 GMT+01:00 Grant Morley <grant at absolutedevops.io>:
>
>> Unfortunately not, I still get the same error.
>>
>> Grant
>>
>> On 02/03/17 12:54, Saverio Proto wrote:
>>
>> If you pass the uuid of the image does it work ?
>>
>> Saverio
>>
>> 2017-03-02 13:49 GMT+01:00 Grant Morley <grant at absolutedevops.io>:
>>
>>> Hi Saverio,
>>>
>>> We are running Mitaka - sorry forgot to mention that.
>>>
>>> Grant
>>>
>>> On 02/03/17 12:45, Saverio Proto wrote:
>>>
>>> What version of Openstack are we talking about ?
>>>
>>> Saverio
>>>
>>> 2017-03-02 12:11 GMT+01:00 Grant Morley <grant at absolutedevops.io>:
>>>
>>>> Hi All,
>>>>
>>>> Not sure if anyone can help, but as of today we are unable to launch
>>>> any instances and I have traced back the error to glance. Whenever I try
>>>> and launch an instance I get the below returned:
>>>>
>>>> openstack server create --flavor g1.small --image "Ubuntu-16.04"
>>>> --key-name ib-desktop --security-group default --nic
>>>> net-id=e2d925f0-63c1-442f-9158-6a138e5847ce gmtest
>>>> Could not find resource Ubuntu-16.04
>>>>
>>>> The image exists:
>>>>
>>>> openstack image list | grep Ubuntu-16.04
>>>>
>>>> | d5d43ba0-82e9-43de-8883-5ebaf07bf3e3 | Ubuntu-16.04   | active |
>>>>
>>>> The traceback gives a really odd message about Multiple choices ( All
>>>> images have unique names )
>>>>
>>>> Below is the stack trace - not sure if anyone has come across this
>>>> before? I am stumped at the moment.
>>>>
>>>> 2017-03-02 11:10:16.842 2107 INFO eventlet.wsgi.server [-]
>>>> 10.6.2.255,10.6.0.39 - - [02/Mar/2017 11:10:16] "GET
>>>> /images/detail?is_public=none&limit=20 HTTP/1.1" 300 787 0.000769
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> [req-3b498a7e-2d6a-4337-a314-12abfbac0117
>>>> 4c91f07132454a97b21fff35402b7825 4a6213a64312482896130efc3047195c - -
>>>> -] Registry client request GET /images/detail raised MultipleChoices
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> Traceback (most recent call last):
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> File "/openstack/venvs/glance-13.3.8/lib/python2.7/site-packages/
>>>> glance/registry/client/v1/client.py", line 123, in do_request
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> **kwargs)
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> File "/openstack/venvs/glance-13.3.8/lib/python2.7/site-packages/glance/common/client.py",
>>>> line 70, in wrapped
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> return func(self, *args, **kwargs)
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> File "/openstack/venvs/glance-13.3.8/lib/python2.7/site-packages/glance/common/client.py",
>>>> line 373, in do_request
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> headers=copy.deepcopy(headers))
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> File "/openstack/venvs/glance-13.3.8/lib/python2.7/site-packages/glance/common/client.py",
>>>> line 87, in wrapped
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> return func(self, method, url, body, headers)
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> File "/openstack/venvs/glance-13.3.8/lib/python2.7/site-packages/glance/common/client.py",
>>>> line 534, in _do_request
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> raise exception.MultipleChoices(body=read_body(res))
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> MultipleChoices: The request returned a 302 Multiple Choices. This
>>>> generally means that you have not included a version indicator in a request
>>>> URI.
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> The body of response returned:
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> {"versions": [{"status": "CURRENT", "id": "v2.3", "links": [{"href":
>>>> "http://10.6.0.3:9191/v2/" <http://10.6.0.3:9191/v2/>, "rel":
>>>> "self"}]}, {"status": "SUPPORTED", "id": "v2.2", "links": [{"href":
>>>> "http://10.6.0.3:9191/v2/" <http://10.6.0.3:9191/v2/>, "rel":
>>>> "self"}]}, {"status": "SUPPORTED", "id": "v2.1", "links": [{"href":
>>>> "http://10.6.0.3:9191/v2/" <http://10.6.0.3:9191/v2/>, "rel":
>>>> "self"}]}, {"status": "SUPPORTED", "id": "v2.0", "links": [{"href":
>>>> "http://10.6.0.3:9191/v2/" <http://10.6.0.3:9191/v2/>, "rel":
>>>> "self"}]}, {"status": "SUPPORTED", "id": "v1.1", "links": [{"href":
>>>> "http://10.6.0.3:9191/v1/" <http://10.6.0.3:9191/v1/>, "rel":
>>>> "self"}]}, {"status": "SUPPORTED", "id": "v1.0", "links": [{"href":
>>>> "http://10.6.0.3:9191/v1/" <http://10.6.0.3:9191/v1/>, "rel":
>>>> "self"}]}]}
>>>> 2017-03-02 11:10:16.843 2104 ERROR glance.registry.client.v1.client
>>>> 2017-03-02 11:10:16.844 2104 ERROR glance.common.wsgi
>>>> [req-3b498a7e-2d6a-4337-a314-12abfbac0117
>>>> 4c91f07132454a97b21fff35402b7825 4a6213a64312482896130efc3047195c - -
>>>> -] Caught error: The request returned a 302 Multiple Choices. This
>>>> generally means that you have not included a version indicator in a request
>>>> URI.
>>>>
>>>> Any help would be great.
>>>>
>>>> Regards,
>>>> --
>>>> Grant Morley
>>>> Cloud Lead
>>>> Absolute DevOps Ltd
>>>> Units H, J & K, Gateway 1000, Whittle Way, Stevenage, Herts, SG1 2FP
>>>> www.absolutedevops.io grant at absolutedevops.io <grant at absolutedevops.i> 0845
>>>> 874 0580
>>>>
>>>> _______________________________________________
>>>> OpenStack-operators mailing list
>>>> OpenStack-operators at lists.openstack.org
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>>>>
>>>>
>>>
>>> --
>>> Grant Morley
>>> Cloud Lead
>>> Absolute DevOps Ltd
>>> Units H, J & K, Gateway 1000, Whittle Way, Stevenage, Herts, SG1 2FP
>>> www.absolutedevops.io grant at absolutedevops.io <grant at absolutedevops.i> 0845
>>> 874 0580
>>>
>>
>>
>> --
>> Grant Morley
>> Cloud Lead
>> Absolute DevOps Ltd
>> Units H, J & K, Gateway 1000, Whittle Way, Stevenage, Herts, SG1 2FP
>> www.absolutedevops.io grant at absolutedevops.io <grant at absolutedevops.i> 0845
>> 874 0580
>>
>
>
> --
> Grant Morley
> Cloud Lead
> Absolute DevOps Ltd
> Units H, J & K, Gateway 1000, Whittle Way, Stevenage, Herts, SG1 2FP
> www.absolutedevops.io grant at absolutedevops.io <grant at absolutedevops.i> 0845
> 874 0580
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20170302/6e8bfbd6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 4369 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20170302/6e8bfbd6/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 4369 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20170302/6e8bfbd6/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ado_new.png
Type: image/png
Size: 4369 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20170302/6e8bfbd6/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 4369 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20170302/6e8bfbd6/attachment-0007.png>


More information about the OpenStack-operators mailing list