Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenStack: Dev

[Glance][Nova] Can't list images

 

 

OpenStack dev RSS feed   Index | Next | Previous | View Threaded


leanderbb at gmail

May 4, 2012, 7:13 AM

Post #1 of 17 (407 views)
Permalink
[Glance][Nova] Can't list images

Hello,

I seem to be unable to list the images available in glance. I'm not sure
why this is happening. I've check the logs for nova-api, glance-api and
glance-registry and am unable to found anything out of the ordinary.

Below is an output from the command 'nova image-list'

> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
> "Content-Type: application/json" -H "Accept: application/json" -H
> "User-Agent: python-novaclient"
> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
> {"username": "admin", "password": "nova"}}}
> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'transfer-encoding':
> 'chunked', 'status': '200', 'vary': 'X-Auth-Token', 'content-type':
> 'application/json'} {"access": {"token": {"expires":
> "2012-05-05T14:08:53Z", "id": "c6d3145f1e924982982b54e52b97bec9", "tenant":
> {"description": null, "enabled": true, "id":
> "765a2012198f4751b8457c49932ec80d", "name": "admin"}}, "serviceCatalog":
> [{"endpoints": [{"adminURL": "
> http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
> "region": "nova", "internalURL": "
> http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
> "publicURL": "
> http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d"}],
> "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints":
> [{"adminURL": "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
> "region": "nova", "internalURL": "http://127.0.0.1:8080", "publicURL":
> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
> "endpoints_links": [], "type": "storage", "name": "swift"}, {"endpoints":
> [{"adminURL": "http://192.168.164.128:9292/v1", "region": "nova",
> "internalURL": "http://192.168.164.128:9292/v1", "publicURL": "
> http://192.168.164.128:9292/v1"}], "endpoints_links": [], "type":
> "image", "name": "glance"}, {"endpoints": [{"adminURL": "
> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
> "region": "nova", "internalURL": "
> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
> "publicURL": "
> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d"}],
> "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints":
> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region": "nova",
> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL": "
> http://192.168.164.128:35357/v2.0"}], "endpoints_links": [], "type":
> "identity", "name": "keystone"}], "user": {"username": "admin",
> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba", "roles":
> [.{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"}, {"id":
> "e1428c3c9403494494b53393660a930a", "name": "KeystoneServiceAdmin"}, {"id":
> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}], "name":
> "admin"}}}
> REQ: curl -i
> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail-X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H
> "Accept: application/json" -H "X-Auth-Token:
> c6d3145f1e924982982b54e52b97bec9"
> REQ: curl -i
> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail-X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H
> "Accept: application/json" -H "X-Auth-Token:
> c6d3145f1e924982982b54e52b97bec9"
> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
> 'content-length': '128', 'content-type': 'application/json; charset=UTF-8',
> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
> {"computeFault": {"message": "The server has either erred or is incapable
> of performing the requested operation.", "code": 500}}
> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
> 'content-length': '128', 'content-type': 'application/json; charset=UTF-8',
> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
> {"computeFault": {"message": "The server has either erred or is incapable
> of performing the requested operation.", "code": 500}}

I'm using ubuntu 12.04 with the default repository packages. All the
services are running.

Regards,

Leander


yorik.sar at gmail

May 4, 2012, 3:30 PM

Post #2 of 17 (376 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

Please post to http://paste.openstack.org error text and backtrace
from nova-api.log.

Kind regards, Yuriy.


On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail> wrote:
> Hello,
>
> I seem to be unable to list the images available in glance. I'm not sure why
> this is happening. I've check the logs for nova-api, glance-api and
> glance-registry and am unable to found anything out of the ordinary.
>
> Below is an output from the command 'nova image-list'
>>
>> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
>> "Content-Type: application/json" -H "Accept: application/json" -H
>> "User-Agent: python-novaclient"
>> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
>> {"username": "admin", "password": "nova"}}}
>> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'transfer-encoding':
>> 'chunked', 'status': '200', 'vary': 'X-Auth-Token', 'content-type':
>> 'application/json'} {"access": {"token": {"expires": "2012-05-05T14:08:53Z",
>> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant": {"description": null,
>> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d", "name":
>> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
>> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d", "region":
>> "nova", "internalURL":
>> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>> "publicURL":
>> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d"}],
>> "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints":
>> [{"adminURL":
>> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
>> "region": "nova", "internalURL": "http://127.0.0.1:8080", "publicURL":
>> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
>> "endpoints_links": [], "type": "storage", "name": "swift"}, {"endpoints":
>> [{"adminURL": "http://192.168.164.128:9292/v1", "region": "nova",
>> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
>> "http://192.168.164.128:9292/v1"}], "endpoints_links": [], "type": "image",
>> "name": "glance"}, {"endpoints": [{"adminURL":
>> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d", "region":
>> "nova", "internalURL":
>> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>> "publicURL":
>> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d"}],
>> "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints":
>> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region": "nova",
>> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
>> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [], "type":
>> "identity", "name": "keystone"}], "user": {"username": "admin",
>> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba", "roles":
>> [.{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"}, {"id":
>> "e1428c3c9403494494b53393660a930a", "name": "KeystoneServiceAdmin"}, {"id":
>> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}], "name":
>> "admin"}}}
>> REQ: curl -i
>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H
>> "Accept: application/json" -H "X-Auth-Token:
>> c6d3145f1e924982982b54e52b97bec9"
>> REQ: curl -i
>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H
>> "Accept: application/json" -H "X-Auth-Token:
>> c6d3145f1e924982982b54e52b97bec9"
>> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>> 'content-length': '128', 'content-type': 'application/json; charset=UTF-8',
>> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>> {"computeFault": {"message": "The server has either erred or is incapable of
>> performing the requested operation.", "code": 500}}
>> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>> 'content-length': '128', 'content-type': 'application/json; charset=UTF-8',
>> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>> {"computeFault": {"message": "The server has either erred or is incapable of
>> performing the requested operation.", "code": 500}}
>
> I'm using ubuntu 12.04 with the default repository packages. All the
> services are running.
>
> Regards,
>
> Leander
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp


nick.lothian at gmail

May 6, 2012, 8:53 PM

Post #3 of 17 (375 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

I think you should only need the token. Make sure there is no space
between "X-Auth-Token:" and your token value.

This works for me:

curl -k -X 'GET' -v
http://192.168.1.50:8774/v2/41d00832aebb4ac9ac847d7a0803445c/images/detail
-H 'X-Auth-Token:1a7c3ee51f56481f9ac601351cbf2f8b'

Nick

On Fri, May 4, 2012 at 11:43 PM, Leander Bessa <leanderbb [at] gmail> wrote:
> Hello,
>
> I seem to be unable to list the images available in glance. I'm not sure why
> this is happening. I've check the logs for nova-api, glance-api and
> glance-registry and am unable to found anything out of the ordinary.
>
> Below is an output from the command 'nova image-list'
>>
>> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
>> "Content-Type: application/json" -H "Accept: application/json" -H
>> "User-Agent: python-novaclient"
>> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
>> {"username": "admin", "password": "nova"}}}
>> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'transfer-encoding':
>> 'chunked', 'status': '200', 'vary': 'X-Auth-Token', 'content-type':
>> 'application/json'} {"access": {"token": {"expires": "2012-05-05T14:08:53Z",
>> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant": {"description": null,
>> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d", "name":
>> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
>> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d", "region":
>> "nova", "internalURL":
>> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>> "publicURL":
>> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d"}],
>> "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints":
>> [{"adminURL":
>> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
>> "region": "nova", "internalURL": "http://127.0.0.1:8080", "publicURL":
>> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
>> "endpoints_links": [], "type": "storage", "name": "swift"}, {"endpoints":
>> [{"adminURL": "http://192.168.164.128:9292/v1", "region": "nova",
>> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
>> "http://192.168.164.128:9292/v1"}], "endpoints_links": [], "type": "image",
>> "name": "glance"}, {"endpoints": [{"adminURL":
>> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d", "region":
>> "nova", "internalURL":
>> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>> "publicURL":
>> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d"}],
>> "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints":
>> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region": "nova",
>> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
>> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [], "type":
>> "identity", "name": "keystone"}], "user": {"username": "admin",
>> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba", "roles":
>> [.{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"}, {"id":
>> "e1428c3c9403494494b53393660a930a", "name": "KeystoneServiceAdmin"}, {"id":
>> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}], "name":
>> "admin"}}}
>> REQ: curl -i
>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H
>> "Accept: application/json" -H "X-Auth-Token:
>> c6d3145f1e924982982b54e52b97bec9"
>> REQ: curl -i
>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H
>> "Accept: application/json" -H "X-Auth-Token:
>> c6d3145f1e924982982b54e52b97bec9"
>> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>> 'content-length': '128', 'content-type': 'application/json; charset=UTF-8',
>> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>> {"computeFault": {"message": "The server has either erred or is incapable of
>> performing the requested operation.", "code": 500}}
>> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>> 'content-length': '128', 'content-type': 'application/json; charset=UTF-8',
>> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>> {"computeFault": {"message": "The server has either erred or is incapable of
>> performing the requested operation.", "code": 500}}
>
> I'm using ubuntu 12.04 with the defaultrepositorypackages. All the
> services are running.
>
> Regards,
>
> Leander
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp


leanderbb at gmail

May 7, 2012, 3:23 AM

Post #4 of 17 (366 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

This is as much as i can capture at the moment.
http://paste.openstack.org/show/15899/

For some reason, nothing is written to the logs, am i forgetting a flag or
something?

On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail> wrote:

> Please post to http://paste.openstack.org error text and backtrace
> from nova-api.log.
>
> Kind regards, Yuriy.
>
>
> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail> wrote:
> > Hello,
> >
> > I seem to be unable to list the images available in glance. I'm not sure
> why
> > this is happening. I've check the logs for nova-api, glance-api and
> > glance-registry and am unable to found anything out of the ordinary.
> >
> > Below is an output from the command 'nova image-list'
> >>
> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
> >> "Content-Type: application/json" -H "Accept: application/json" -H
> >> "User-Agent: python-novaclient"
> >> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
> >> {"username": "admin", "password": "nova"}}}
> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'transfer-encoding':
> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token', 'content-type':
> >> 'application/json'} {"access": {"token": {"expires":
> "2012-05-05T14:08:53Z",
> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant": {"description":
> null,
> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d", "name":
> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
> "region":
> >> "nova", "internalURL":
> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
> >> "publicURL":
> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d"}],
> >> "endpoints_links": [], "type": "volume", "name": "volume"},
> {"endpoints":
> >> [{"adminURL":
> >> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
> >> "region": "nova", "internalURL": "http://127.0.0.1:8080", "publicURL":
> >> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
> >> "endpoints_links": [], "type": "storage", "name": "swift"},
> {"endpoints":
> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region": "nova",
> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [], "type":
> "image",
> >> "name": "glance"}, {"endpoints": [{"adminURL":
> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
> "region":
> >> "nova", "internalURL":
> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
> >> "publicURL":
> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d"}],
> >> "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints":
> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region": "nova",
> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [], "type":
> >> "identity", "name": "keystone"}], "user": {"username": "admin",
> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba", "roles":
> >> [.{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"}, {"id":
> >> "e1428c3c9403494494b53393660a930a", "name": "KeystoneServiceAdmin"},
> {"id":
> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}], "name":
> >> "admin"}}}
> >> REQ: curl -i
> >>
> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient"
> -H
> >> "Accept: application/json" -H "X-Auth-Token:
> >> c6d3145f1e924982982b54e52b97bec9"
> >> REQ: curl -i
> >>
> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient"
> -H
> >> "Accept: application/json" -H "X-Auth-Token:
> >> c6d3145f1e924982982b54e52b97bec9"
> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
> >> 'content-length': '128', 'content-type': 'application/json;
> charset=UTF-8',
> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
> >> {"computeFault": {"message": "The server has either erred or is
> incapable of
> >> performing the requested operation.", "code": 500}}
> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
> >> 'content-length': '128', 'content-type': 'application/json;
> charset=UTF-8',
> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
> >> {"computeFault": {"message": "The server has either erred or is
> incapable of
> >> performing the requested operation.", "code": 500}}
> >
> > I'm using ubuntu 12.04 with the default repository packages. All the
> > services are running.
> >
> > Regards,
> >
> > Leander
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~openstack
> > Post to : openstack [at] lists
> > Unsubscribe : https://launchpad.net/~openstack
> > More help : https://help.launchpad.net/ListHelp
> >
>


dolph.mathews at gmail

May 7, 2012, 6:59 AM

Post #5 of 17 (373 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

Your swift endpoint appears to be literally configured in keystone as
"http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing that's unreachable :)

Based on your logs, I'm not certain that will fix your 500, however.

-Dolph

On Mon, May 7, 2012 at 5:23 AM, Leander Bessa <leanderbb [at] gmail> wrote:

> This is as much as i can capture at the moment.
> http://paste.openstack.org/show/15899/
>
> For some reason, nothing is written to the logs, am i forgetting a flag or
> something?
>
>
> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail>wrote:
>
>> Please post to http://paste.openstack.org error text and backtrace
>> from nova-api.log.
>>
>> Kind regards, Yuriy.
>>
>>
>> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail>
>> wrote:
>> > Hello,
>> >
>> > I seem to be unable to list the images available in glance. I'm not
>> sure why
>> > this is happening. I've check the logs for nova-api, glance-api and
>> > glance-registry and am unable to found anything out of the ordinary.
>> >
>> > Below is an output from the command 'nova image-list'
>> >>
>> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
>> >> "Content-Type: application/json" -H "Accept: application/json" -H
>> >> "User-Agent: python-novaclient"
>> >> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
>> >> {"username": "admin", "password": "nova"}}}
>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'transfer-encoding':
>> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token', 'content-type':
>> >> 'application/json'} {"access": {"token": {"expires":
>> "2012-05-05T14:08:53Z",
>> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant": {"description":
>> null,
>> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d", "name":
>> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>> "region":
>> >> "nova", "internalURL":
>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>> >> "publicURL":
>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d"}],
>> >> "endpoints_links": [], "type": "volume", "name": "volume"},
>> {"endpoints":
>> >> [{"adminURL":
>> >> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
>> >> "region": "nova", "internalURL": "http://127.0.0.1:8080", "publicURL":
>> >> "http://
>> ${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
>> >> "endpoints_links": [], "type": "storage", "name": "swift"},
>> {"endpoints":
>> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region": "nova",
>> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
>> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [], "type":
>> "image",
>> >> "name": "glance"}, {"endpoints": [{"adminURL":
>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>> "region":
>> >> "nova", "internalURL":
>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>> >> "publicURL":
>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d"}],
>> >> "endpoints_links": [], "type": "compute", "name": "nova"},
>> {"endpoints":
>> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region": "nova",
>> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
>> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [], "type":
>> >> "identity", "name": "keystone"}], "user": {"username": "admin",
>> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba", "roles":
>> >> [.{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"}, {"id":
>> >> "e1428c3c9403494494b53393660a930a", "name": "KeystoneServiceAdmin"},
>> {"id":
>> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}], "name":
>> >> "admin"}}}
>> >> REQ: curl -i
>> >>
>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>> python-novaclient" -H
>> >> "Accept: application/json" -H "X-Auth-Token:
>> >> c6d3145f1e924982982b54e52b97bec9"
>> >> REQ: curl -i
>> >>
>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>> python-novaclient" -H
>> >> "Accept: application/json" -H "X-Auth-Token:
>> >> c6d3145f1e924982982b54e52b97bec9"
>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>> >> 'content-length': '128', 'content-type': 'application/json;
>> charset=UTF-8',
>> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>> >> {"computeFault": {"message": "The server has either erred or is
>> incapable of
>> >> performing the requested operation.", "code": 500}}
>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>> >> 'content-length': '128', 'content-type': 'application/json;
>> charset=UTF-8',
>> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>> >> {"computeFault": {"message": "The server has either erred or is
>> incapable of
>> >> performing the requested operation.", "code": 500}}
>> >
>> > I'm using ubuntu 12.04 with the default repository packages. All the
>> > services are running.
>> >
>> > Regards,
>> >
>> > Leander
>> >
>> > _______________________________________________
>> > Mailing list: https://launchpad.net/~openstack
>> > Post to : openstack [at] lists
>> > Unsubscribe : https://launchpad.net/~openstack
>> > More help : https://help.launchpad.net/ListHelp
>> >
>>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>


leanderbb at gmail

May 7, 2012, 7:11 AM

Post #6 of 17 (358 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

Does that mean that glance is somehow configured to use swift as storage
instead of the local file system or is does the error simply occur due to
the a parsing error because of ${SWIFT_HOST}?

On Mon, May 7, 2012 at 2:59 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:

> Your swift endpoint appears to be literally configured in keystone as
> "http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing that's unreachable :)
>
> Based on your logs, I'm not certain that will fix your 500, however.
>
> -Dolph
>
> On Mon, May 7, 2012 at 5:23 AM, Leander Bessa <leanderbb [at] gmail> wrote:
>
>> This is as much as i can capture at the moment.
>> http://paste.openstack.org/show/15899/
>>
>> For some reason, nothing is written to the logs, am i forgetting a flag
>> or something?
>>
>>
>> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail>wrote:
>>
>>> Please post to http://paste.openstack.org error text and backtrace
>>> from nova-api.log.
>>>
>>> Kind regards, Yuriy.
>>>
>>>
>>> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail>
>>> wrote:
>>> > Hello,
>>> >
>>> > I seem to be unable to list the images available in glance. I'm not
>>> sure why
>>> > this is happening. I've check the logs for nova-api, glance-api and
>>> > glance-registry and am unable to found anything out of the ordinary.
>>> >
>>> > Below is an output from the command 'nova image-list'
>>> >>
>>> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
>>> >> "Content-Type: application/json" -H "Accept: application/json" -H
>>> >> "User-Agent: python-novaclient"
>>> >> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
>>> >> {"username": "admin", "password": "nova"}}}
>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'transfer-encoding':
>>> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token', 'content-type':
>>> >> 'application/json'} {"access": {"token": {"expires":
>>> "2012-05-05T14:08:53Z",
>>> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant": {"description":
>>> null,
>>> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d", "name":
>>> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>> "region":
>>> >> "nova", "internalURL":
>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>> >> "publicURL":
>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d"}],
>>> >> "endpoints_links": [], "type": "volume", "name": "volume"},
>>> {"endpoints":
>>> >> [{"adminURL":
>>> >> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
>>> >> "region": "nova", "internalURL": "http://127.0.0.1:8080",
>>> "publicURL":
>>> >> "http://
>>> ${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
>>> >> "endpoints_links": [], "type": "storage", "name": "swift"},
>>> {"endpoints":
>>> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region": "nova",
>>> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
>>> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [], "type":
>>> "image",
>>> >> "name": "glance"}, {"endpoints": [{"adminURL":
>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>> "region":
>>> >> "nova", "internalURL":
>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>> >> "publicURL":
>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d"}],
>>> >> "endpoints_links": [], "type": "compute", "name": "nova"},
>>> {"endpoints":
>>> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region": "nova",
>>> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
>>> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [], "type":
>>> >> "identity", "name": "keystone"}], "user": {"username": "admin",
>>> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba", "roles":
>>> >> [.{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"}, {"id":
>>> >> "e1428c3c9403494494b53393660a930a", "name": "KeystoneServiceAdmin"},
>>> {"id":
>>> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}], "name":
>>> >> "admin"}}}
>>> >> REQ: curl -i
>>> >>
>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>> python-novaclient" -H
>>> >> "Accept: application/json" -H "X-Auth-Token:
>>> >> c6d3145f1e924982982b54e52b97bec9"
>>> >> REQ: curl -i
>>> >>
>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>> python-novaclient" -H
>>> >> "Accept: application/json" -H "X-Auth-Token:
>>> >> c6d3145f1e924982982b54e52b97bec9"
>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>> >> 'content-length': '128', 'content-type': 'application/json;
>>> charset=UTF-8',
>>> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>> >> {"computeFault": {"message": "The server has either erred or is
>>> incapable of
>>> >> performing the requested operation.", "code": 500}}
>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>> >> 'content-length': '128', 'content-type': 'application/json;
>>> charset=UTF-8',
>>> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>> >> {"computeFault": {"message": "The server has either erred or is
>>> incapable of
>>> >> performing the requested operation.", "code": 500}}
>>> >
>>> > I'm using ubuntu 12.04 with the default repository packages. All the
>>> > services are running.
>>> >
>>> > Regards,
>>> >
>>> > Leander
>>> >
>>> > _______________________________________________
>>> > Mailing list: https://launchpad.net/~openstack
>>> > Post to : openstack [at] lists
>>> > Unsubscribe : https://launchpad.net/~openstack
>>> > More help : https://help.launchpad.net/ListHelp
>>> >
>>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack [at] lists
>> Unsubscribe : https://launchpad.net/~openstack
>> More help : https://help.launchpad.net/ListHelp
>>
>>
>


dolph.mathews at gmail

May 7, 2012, 8:51 AM

Post #7 of 17 (355 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

There's not enough information in those logs to say (check your glance
config and glance/keystone logs) -- but you'll definitely need to recreate
that endpoint with SWIFT_HOST defined in your env to use swift through your
service catalog.

-Dolph

On Mon, May 7, 2012 at 9:11 AM, Leander Bessa <leanderbb [at] gmail> wrote:

> Does that mean that glance is somehow configured to use swift as storage
> instead of the local file system or is does the error simply occur due to
> the a parsing error because of ${SWIFT_HOST}?
>
>
> On Mon, May 7, 2012 at 2:59 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:
>
>> Your swift endpoint appears to be literally configured in keystone as
>> "http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing that's unreachable :)
>>
>> Based on your logs, I'm not certain that will fix your 500, however.
>>
>> -Dolph
>>
>> On Mon, May 7, 2012 at 5:23 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>
>>> This is as much as i can capture at the moment.
>>> http://paste.openstack.org/show/15899/
>>>
>>> For some reason, nothing is written to the logs, am i forgetting a flag
>>> or something?
>>>
>>>
>>> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail>wrote:
>>>
>>>> Please post to http://paste.openstack.org error text and backtrace
>>>> from nova-api.log.
>>>>
>>>> Kind regards, Yuriy.
>>>>
>>>>
>>>> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail>
>>>> wrote:
>>>> > Hello,
>>>> >
>>>> > I seem to be unable to list the images available in glance. I'm not
>>>> sure why
>>>> > this is happening. I've check the logs for nova-api, glance-api and
>>>> > glance-registry and am unable to found anything out of the ordinary.
>>>> >
>>>> > Below is an output from the command 'nova image-list'
>>>> >>
>>>> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
>>>> >> "Content-Type: application/json" -H "Accept: application/json" -H
>>>> >> "User-Agent: python-novaclient"
>>>> >> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
>>>> >> {"username": "admin", "password": "nova"}}}
>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'transfer-encoding':
>>>> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token', 'content-type':
>>>> >> 'application/json'} {"access": {"token": {"expires":
>>>> "2012-05-05T14:08:53Z",
>>>> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant": {"description":
>>>> null,
>>>> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d", "name":
>>>> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>> "region":
>>>> >> "nova", "internalURL":
>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>> >> "publicURL":
>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d"}],
>>>> >> "endpoints_links": [], "type": "volume", "name": "volume"},
>>>> {"endpoints":
>>>> >> [{"adminURL":
>>>> >> "http://
>>>> ${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
>>>> >> "region": "nova", "internalURL": "http://127.0.0.1:8080",
>>>> "publicURL":
>>>> >> "http://
>>>> ${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
>>>> >> "endpoints_links": [], "type": "storage", "name": "swift"},
>>>> {"endpoints":
>>>> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region": "nova",
>>>> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
>>>> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [], "type":
>>>> "image",
>>>> >> "name": "glance"}, {"endpoints": [{"adminURL":
>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>> "region":
>>>> >> "nova", "internalURL":
>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>> >> "publicURL":
>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d"}],
>>>> >> "endpoints_links": [], "type": "compute", "name": "nova"},
>>>> {"endpoints":
>>>> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region": "nova",
>>>> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
>>>> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [],
>>>> "type":
>>>> >> "identity", "name": "keystone"}], "user": {"username": "admin",
>>>> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba", "roles":
>>>> >> [.{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"}, {"id":
>>>> >> "e1428c3c9403494494b53393660a930a", "name": "KeystoneServiceAdmin"},
>>>> {"id":
>>>> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}],
>>>> "name":
>>>> >> "admin"}}}
>>>> >> REQ: curl -i
>>>> >>
>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>> python-novaclient" -H
>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>> >> REQ: curl -i
>>>> >>
>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>> python-novaclient" -H
>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>> charset=UTF-8',
>>>> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>> incapable of
>>>> >> performing the requested operation.", "code": 500}}
>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>> charset=UTF-8',
>>>> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>> incapable of
>>>> >> performing the requested operation.", "code": 500}}
>>>> >
>>>> > I'm using ubuntu 12.04 with the default repository packages. All the
>>>> > services are running.
>>>> >
>>>> > Regards,
>>>> >
>>>> > Leander
>>>> >
>>>> > _______________________________________________
>>>> > Mailing list: https://launchpad.net/~openstack
>>>> > Post to : openstack [at] lists
>>>> > Unsubscribe : https://launchpad.net/~openstack
>>>> > More help : https://help.launchpad.net/ListHelp
>>>> >
>>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to : openstack [at] lists
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>


leanderbb at gmail

May 8, 2012, 4:11 AM

Post #8 of 17 (361 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

I fixed the swift ip and i'm still getting the same error.

Here are the log files and the config files:

nova-api > http://paste.openstack.org/show/16176/

glance-api.log

> 2012-05-08 11:39:55 6143 INFO [eventlet.wsgi.server] Starting single
>> process server
>
> 2012-05-08 11:40:01 6255 INFO [eventlet.wsgi.server] Starting single
>> process server
>
>
glance-registery.log > http://paste.openstack.org/show/16180/

glance-api.conf > http://paste.openstack.org/show/16184/

glance-registry.conf > http://paste.openstack.org/show/16185/

glance-api-paste.ini > http://paste.openstack.org/show/16186/

glance-registry-pastet-ini > http://paste.openstack.org/show/16187/

keystone log is empty.

Regards,

Leander

On Mon, May 7, 2012 at 4:51 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:

> There's not enough information in those logs to say (check your glance
> config and glance/keystone logs) -- but you'll definitely need to recreate
> that endpoint with SWIFT_HOST defined in your env to use swift through your
> service catalog.
>
> -Dolph
>
>
> On Mon, May 7, 2012 at 9:11 AM, Leander Bessa <leanderbb [at] gmail> wrote:
>
>> Does that mean that glance is somehow configured to use swift as storage
>> instead of the local file system or is does the error simply occur due to
>> the a parsing error because of ${SWIFT_HOST}?
>>
>>
>> On Mon, May 7, 2012 at 2:59 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:
>>
>>> Your swift endpoint appears to be literally configured in keystone as
>>> "http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing that's unreachable :)
>>>
>>> Based on your logs, I'm not certain that will fix your 500, however.
>>>
>>> -Dolph
>>>
>>> On Mon, May 7, 2012 at 5:23 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>
>>>> This is as much as i can capture at the moment.
>>>> http://paste.openstack.org/show/15899/
>>>>
>>>> For some reason, nothing is written to the logs, am i forgetting a flag
>>>> or something?
>>>>
>>>>
>>>> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail>wrote:
>>>>
>>>>> Please post to http://paste.openstack.org error text and backtrace
>>>>> from nova-api.log.
>>>>>
>>>>> Kind regards, Yuriy.
>>>>>
>>>>>
>>>>> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail>
>>>>> wrote:
>>>>> > Hello,
>>>>> >
>>>>> > I seem to be unable to list the images available in glance. I'm not
>>>>> sure why
>>>>> > this is happening. I've check the logs for nova-api, glance-api and
>>>>> > glance-registry and am unable to found anything out of the ordinary.
>>>>> >
>>>>> > Below is an output from the command 'nova image-list'
>>>>> >>
>>>>> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
>>>>> >> "Content-Type: application/json" -H "Accept: application/json" -H
>>>>> >> "User-Agent: python-novaclient"
>>>>> >> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
>>>>> >> {"username": "admin", "password": "nova"}}}
>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'transfer-encoding':
>>>>> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token', 'content-type':
>>>>> >> 'application/json'} {"access": {"token": {"expires":
>>>>> "2012-05-05T14:08:53Z",
>>>>> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant": {"description":
>>>>> null,
>>>>> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d", "name":
>>>>> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>>> "region":
>>>>> >> "nova", "internalURL":
>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>>> >> "publicURL":
>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d
>>>>> "}],
>>>>> >> "endpoints_links": [], "type": "volume", "name": "volume"},
>>>>> {"endpoints":
>>>>> >> [{"adminURL":
>>>>> >> "http://
>>>>> ${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
>>>>> >> "region": "nova", "internalURL": "http://127.0.0.1:8080",
>>>>> "publicURL":
>>>>> >> "http://
>>>>> ${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
>>>>> >> "endpoints_links": [], "type": "storage", "name": "swift"},
>>>>> {"endpoints":
>>>>> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region": "nova",
>>>>> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
>>>>> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [], "type":
>>>>> "image",
>>>>> >> "name": "glance"}, {"endpoints": [{"adminURL":
>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>>> "region":
>>>>> >> "nova", "internalURL":
>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>>> >> "publicURL":
>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d
>>>>> "}],
>>>>> >> "endpoints_links": [], "type": "compute", "name": "nova"},
>>>>> {"endpoints":
>>>>> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region": "nova",
>>>>> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
>>>>> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [],
>>>>> "type":
>>>>> >> "identity", "name": "keystone"}], "user": {"username": "admin",
>>>>> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba",
>>>>> "roles":
>>>>> >> [{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"}, {"id":
>>>>> >> "e1428c3c9403494494b53393660a930a", "name":
>>>>> "KeystoneServiceAdmin"}, {"id":
>>>>> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}],
>>>>> "name":
>>>>> >> "admin"}}}
>>>>> >> REQ: curl -i
>>>>> >>
>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>> python-novaclient" -H
>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>> >> REQ: curl -i
>>>>> >>
>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>> python-novaclient" -H
>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>> charset=UTF-8',
>>>>> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>> incapable of
>>>>> >> performing the requested operation.", "code": 500}}
>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>> charset=UTF-8',
>>>>> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>> incapable of
>>>>> >> performing the requested operation.", "code": 500}}
>>>>> >
>>>>> > I'm using ubuntu 12.04 with the default repository packages. All the
>>>>> > services are running.
>>>>> >
>>>>> > Regards,
>>>>> >
>>>>> > Leander
>>>>> >
>>>>> > _______________________________________________
>>>>> > Mailing list: https://launchpad.net/~openstack
>>>>> > Post to : openstack [at] lists
>>>>> > Unsubscribe : https://launchpad.net/~openstack
>>>>> > More help : https://help.launchpad.net/ListHelp
>>>>> >
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~openstack
>>>> Post to : openstack [at] lists
>>>> Unsubscribe : https://launchpad.net/~openstack
>>>> More help : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>
>


leanderbb at gmail

May 10, 2012, 8:20 AM

Post #9 of 17 (339 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

Can anyone pinpoint what exactly is wrong with this. I've been stuck here
for the past three days, and nothing i do seems to be working :/

On Tue, May 8, 2012 at 12:11 PM, Leander Bessa <leanderbb [at] gmail> wrote:

> I fixed the swift ip and i'm still getting the same error.
>
> Here are the log files and the config files:
>
> nova-api > http://paste.openstack.org/show/16176/
>
> glance-api.log
>
>> 2012-05-08 11:39:55 6143 INFO [eventlet.wsgi.server] Starting single
>>> process server
>>
>> 2012-05-08 11:40:01 6255 INFO [eventlet.wsgi.server] Starting single
>>> process server
>>
>>
> glance-registery.log > http://paste.openstack.org/show/16180/
>
> glance-api.conf > http://paste.openstack.org/show/16184/
>
> glance-registry.conf > http://paste.openstack.org/show/16185/
>
> glance-api-paste.ini > http://paste.openstack.org/show/16186/
>
> glance-registry-pastet-ini > http://paste.openstack.org/show/16187/
>
> keystone log is empty.
>
> Regards,
>
> Leander
>
> On Mon, May 7, 2012 at 4:51 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:
>
>> There's not enough information in those logs to say (check your glance
>> config and glance/keystone logs) -- but you'll definitely need to recreate
>> that endpoint with SWIFT_HOST defined in your env to use swift through your
>> service catalog.
>>
>> -Dolph
>>
>>
>> On Mon, May 7, 2012 at 9:11 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>
>>> Does that mean that glance is somehow configured to use swift as storage
>>> instead of the local file system or is does the error simply occur due to
>>> the a parsing error because of ${SWIFT_HOST}?
>>>
>>>
>>> On Mon, May 7, 2012 at 2:59 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:
>>>
>>>> Your swift endpoint appears to be literally configured in keystone as
>>>> "http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing that's unreachable
>>>> :)
>>>>
>>>> Based on your logs, I'm not certain that will fix your 500, however.
>>>>
>>>> -Dolph
>>>>
>>>> On Mon, May 7, 2012 at 5:23 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>>
>>>>> This is as much as i can capture at the moment.
>>>>> http://paste.openstack.org/show/15899/
>>>>>
>>>>> For some reason, nothing is written to the logs, am i forgetting a
>>>>> flag or something?
>>>>>
>>>>>
>>>>> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail>wrote:
>>>>>
>>>>>> Please post to http://paste.openstack.org error text and backtrace
>>>>>> from nova-api.log.
>>>>>>
>>>>>> Kind regards, Yuriy.
>>>>>>
>>>>>>
>>>>>> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail>
>>>>>> wrote:
>>>>>> > Hello,
>>>>>> >
>>>>>> > I seem to be unable to list the images available in glance. I'm not
>>>>>> sure why
>>>>>> > this is happening. I've check the logs for nova-api, glance-api and
>>>>>> > glance-registry and am unable to found anything out of the ordinary.
>>>>>> >
>>>>>> > Below is an output from the command 'nova image-list'
>>>>>> >>
>>>>>> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
>>>>>> >> "Content-Type: application/json" -H "Accept: application/json" -H
>>>>>> >> "User-Agent: python-novaclient"
>>>>>> >> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
>>>>>> >> {"username": "admin", "password": "nova"}}}
>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'transfer-encoding':
>>>>>> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token', 'content-type':
>>>>>> >> 'application/json'} {"access": {"token": {"expires":
>>>>>> "2012-05-05T14:08:53Z",
>>>>>> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant":
>>>>>> {"description": null,
>>>>>> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d", "name":
>>>>>> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
>>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>>>> "region":
>>>>>> >> "nova", "internalURL":
>>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>>>> >> "publicURL":
>>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d
>>>>>> "}],
>>>>>> >> "endpoints_links": [], "type": "volume", "name": "volume"},
>>>>>> {"endpoints":
>>>>>> >> [{"adminURL":
>>>>>> >> "http://
>>>>>> ${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
>>>>>> >> "region": "nova", "internalURL": "http://127.0.0.1:8080",
>>>>>> "publicURL":
>>>>>> >> "http://
>>>>>> ${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
>>>>>> >> "endpoints_links": [], "type": "storage", "name": "swift"},
>>>>>> {"endpoints":
>>>>>> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region": "nova",
>>>>>> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
>>>>>> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [],
>>>>>> "type": "image",
>>>>>> >> "name": "glance"}, {"endpoints": [{"adminURL":
>>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>>>> "region":
>>>>>> >> "nova", "internalURL":
>>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>>>> >> "publicURL":
>>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d
>>>>>> "}],
>>>>>> >> "endpoints_links": [], "type": "compute", "name": "nova"},
>>>>>> {"endpoints":
>>>>>> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region":
>>>>>> "nova",
>>>>>> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
>>>>>> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [],
>>>>>> "type":
>>>>>> >> "identity", "name": "keystone"}], "user": {"username": "admin",
>>>>>> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba",
>>>>>> "roles":
>>>>>> >> [{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"},
>>>>>> {"id":
>>>>>> >> "e1428c3c9403494494b53393660a930a", "name":
>>>>>> "KeystoneServiceAdmin"}, {"id":
>>>>>> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}],
>>>>>> "name":
>>>>>> >> "admin"}}}
>>>>>> >> REQ: curl -i
>>>>>> >>
>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>>> python-novaclient" -H
>>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>>> >> REQ: curl -i
>>>>>> >>
>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>>> python-novaclient" -H
>>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>>> charset=UTF-8',
>>>>>> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>>> incapable of
>>>>>> >> performing the requested operation.", "code": 500}}
>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>>> charset=UTF-8',
>>>>>> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>>> incapable of
>>>>>> >> performing the requested operation.", "code": 500}}
>>>>>> >
>>>>>> > I'm using ubuntu 12.04 with the default repository packages. All the
>>>>>> > services are running.
>>>>>> >
>>>>>> > Regards,
>>>>>> >
>>>>>> > Leander
>>>>>> >
>>>>>> > _______________________________________________
>>>>>> > Mailing list: https://launchpad.net/~openstack
>>>>>> > Post to : openstack [at] lists
>>>>>> > Unsubscribe : https://launchpad.net/~openstack
>>>>>> > More help : https://help.launchpad.net/ListHelp
>>>>>> >
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~openstack
>>>>> Post to : openstack [at] lists
>>>>> Unsubscribe : https://launchpad.net/~openstack
>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>
>>
>


dolph.mathews at gmail

May 10, 2012, 8:32 AM

Post #10 of 17 (338 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

Concerning your keystone.log being empty (empty for the duration of the
request, or completely empty?)... is logging to a specific file configured
in your keystone.conf? If not, keystone just "logs" to stdout.

-Dolph

On Thu, May 10, 2012 at 10:20 AM, Leander Bessa Beernaert <
leanderbb [at] gmail> wrote:

> Can anyone pinpoint what exactly is wrong with this. I've been stuck here
> for the past three days, and nothing i do seems to be working :/
>
>
> On Tue, May 8, 2012 at 12:11 PM, Leander Bessa <leanderbb [at] gmail>wrote:
>
>> I fixed the swift ip and i'm still getting the same error.
>>
>> Here are the log files and the config files:
>>
>> nova-api > http://paste.openstack.org/show/16176/
>>
>> glance-api.log
>>
>>> 2012-05-08 11:39:55 6143 INFO [eventlet.wsgi.server] Starting single
>>>> process server
>>>
>>> 2012-05-08 11:40:01 6255 INFO [eventlet.wsgi.server] Starting single
>>>> process server
>>>
>>>
>> glance-registery.log > http://paste.openstack.org/show/16180/
>>
>> glance-api.conf > http://paste.openstack.org/show/16184/
>>
>> glance-registry.conf > http://paste.openstack.org/show/16185/
>>
>> glance-api-paste.ini > http://paste.openstack.org/show/16186/
>>
>> glance-registry-pastet-ini > http://paste.openstack.org/show/16187/
>>
>> keystone log is empty.
>>
>> Regards,
>>
>> Leander
>>
>> On Mon, May 7, 2012 at 4:51 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:
>>
>>> There's not enough information in those logs to say (check your glance
>>> config and glance/keystone logs) -- but you'll definitely need to recreate
>>> that endpoint with SWIFT_HOST defined in your env to use swift through your
>>> service catalog.
>>>
>>> -Dolph
>>>
>>>
>>> On Mon, May 7, 2012 at 9:11 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>
>>>> Does that mean that glance is somehow configured to use swift as
>>>> storage instead of the local file system or is does the error simply occur
>>>> due to the a parsing error because of ${SWIFT_HOST}?
>>>>
>>>>
>>>> On Mon, May 7, 2012 at 2:59 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:
>>>>
>>>>> Your swift endpoint appears to be literally configured in keystone as
>>>>> "http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing that's unreachable
>>>>> :)
>>>>>
>>>>> Based on your logs, I'm not certain that will fix your 500, however.
>>>>>
>>>>> -Dolph
>>>>>
>>>>> On Mon, May 7, 2012 at 5:23 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>>>
>>>>>> This is as much as i can capture at the moment.
>>>>>> http://paste.openstack.org/show/15899/
>>>>>>
>>>>>> For some reason, nothing is written to the logs, am i forgetting a
>>>>>> flag or something?
>>>>>>
>>>>>>
>>>>>> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail>wrote:
>>>>>>
>>>>>>> Please post to http://paste.openstack.org error text and backtrace
>>>>>>> from nova-api.log.
>>>>>>>
>>>>>>> Kind regards, Yuriy.
>>>>>>>
>>>>>>>
>>>>>>> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail>
>>>>>>> wrote:
>>>>>>> > Hello,
>>>>>>> >
>>>>>>> > I seem to be unable to list the images available in glance. I'm
>>>>>>> not sure why
>>>>>>> > this is happening. I've check the logs for nova-api, glance-api and
>>>>>>> > glance-registry and am unable to found anything out of the
>>>>>>> ordinary.
>>>>>>> >
>>>>>>> > Below is an output from the command 'nova image-list'
>>>>>>> >>
>>>>>>> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
>>>>>>> >> "Content-Type: application/json" -H "Accept: application/json" -H
>>>>>>> >> "User-Agent: python-novaclient"
>>>>>>> >> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
>>>>>>> >> {"username": "admin", "password": "nova"}}}
>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT',
>>>>>>> 'transfer-encoding':
>>>>>>> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token',
>>>>>>> 'content-type':
>>>>>>> >> 'application/json'} {"access": {"token": {"expires":
>>>>>>> "2012-05-05T14:08:53Z",
>>>>>>> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant":
>>>>>>> {"description": null,
>>>>>>> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d", "name":
>>>>>>> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
>>>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>> "region":
>>>>>>> >> "nova", "internalURL":
>>>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d
>>>>>>> ",
>>>>>>> >> "publicURL":
>>>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d
>>>>>>> "}],
>>>>>>> >> "endpoints_links": [], "type": "volume", "name": "volume"},
>>>>>>> {"endpoints":
>>>>>>> >> [{"adminURL":
>>>>>>> >> "http://
>>>>>>> ${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
>>>>>>> >> "region": "nova", "internalURL": "http://127.0.0.1:8080",
>>>>>>> "publicURL":
>>>>>>> >> "http://
>>>>>>> ${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
>>>>>>> >> "endpoints_links": [], "type": "storage", "name": "swift"},
>>>>>>> {"endpoints":
>>>>>>> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region": "nova",
>>>>>>> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
>>>>>>> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [],
>>>>>>> "type": "image",
>>>>>>> >> "name": "glance"}, {"endpoints": [{"adminURL":
>>>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>> "region":
>>>>>>> >> "nova", "internalURL":
>>>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d
>>>>>>> ",
>>>>>>> >> "publicURL":
>>>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d
>>>>>>> "}],
>>>>>>> >> "endpoints_links": [], "type": "compute", "name": "nova"},
>>>>>>> {"endpoints":
>>>>>>> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region":
>>>>>>> "nova",
>>>>>>> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
>>>>>>> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [],
>>>>>>> "type":
>>>>>>> >> "identity", "name": "keystone"}], "user": {"username": "admin",
>>>>>>> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba",
>>>>>>> "roles":
>>>>>>> >> [{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"},
>>>>>>> {"id":
>>>>>>> >> "e1428c3c9403494494b53393660a930a", "name":
>>>>>>> "KeystoneServiceAdmin"}, {"id":
>>>>>>> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}],
>>>>>>> "name":
>>>>>>> >> "admin"}}}
>>>>>>> >> REQ: curl -i
>>>>>>> >>
>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>>>> python-novaclient" -H
>>>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>>>> >> REQ: curl -i
>>>>>>> >>
>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>>>> python-novaclient" -H
>>>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>>>> charset=UTF-8',
>>>>>>> >> 'x-compute-request-id':
>>>>>>> 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>>>> incapable of
>>>>>>> >> performing the requested operation.", "code": 500}}
>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>>>> charset=UTF-8',
>>>>>>> >> 'x-compute-request-id':
>>>>>>> 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>>>> incapable of
>>>>>>> >> performing the requested operation.", "code": 500}}
>>>>>>> >
>>>>>>> > I'm using ubuntu 12.04 with the default repository packages. All
>>>>>>> the
>>>>>>> > services are running.
>>>>>>> >
>>>>>>> > Regards,
>>>>>>> >
>>>>>>> > Leander
>>>>>>> >
>>>>>>> > _______________________________________________
>>>>>>> > Mailing list: https://launchpad.net/~openstack
>>>>>>> > Post to : openstack [at] lists
>>>>>>> > Unsubscribe : https://launchpad.net/~openstack
>>>>>>> > More help : https://help.launchpad.net/ListHelp
>>>>>>> >
>>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list: https://launchpad.net/~openstack
>>>>>> Post to : openstack [at] lists
>>>>>> Unsubscribe : https://launchpad.net/~openstack
>>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>


leanderbb at gmail

May 10, 2012, 8:37 AM

Post #11 of 17 (346 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

Both. The log file is completely empty and the stdout only prints
deprecation warnings :/

On Thu, May 10, 2012 at 4:32 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:

> Concerning your keystone.log being empty (empty for the duration of the
> request, or completely empty?)... is logging to a specific file configured
> in your keystone.conf? If not, keystone just "logs" to stdout.
>
> -Dolph
>
> On Thu, May 10, 2012 at 10:20 AM, Leander Bessa Beernaert <
> leanderbb [at] gmail> wrote:
>
>> Can anyone pinpoint what exactly is wrong with this. I've been stuck here
>> for the past three days, and nothing i do seems to be working :/
>>
>>
>> On Tue, May 8, 2012 at 12:11 PM, Leander Bessa <leanderbb [at] gmail>wrote:
>>
>>> I fixed the swift ip and i'm still getting the same error.
>>>
>>> Here are the log files and the config files:
>>>
>>> nova-api > http://paste.openstack.org/show/16176/
>>>
>>> glance-api.log
>>>
>>>> 2012-05-08 11:39:55 6143 INFO [eventlet.wsgi.server] Starting
>>>>> single process server
>>>>
>>>> 2012-05-08 11:40:01 6255 INFO [eventlet.wsgi.server] Starting
>>>>> single process server
>>>>
>>>>
>>> glance-registery.log > http://paste.openstack.org/show/16180/
>>>
>>> glance-api.conf > http://paste.openstack.org/show/16184/
>>>
>>> glance-registry.conf > http://paste.openstack.org/show/16185/
>>>
>>> glance-api-paste.ini > http://paste.openstack.org/show/16186/
>>>
>>> glance-registry-pastet-ini > http://paste.openstack.org/show/16187/
>>>
>>> keystone log is empty.
>>>
>>> Regards,
>>>
>>> Leander
>>>
>>> On Mon, May 7, 2012 at 4:51 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:
>>>
>>>> There's not enough information in those logs to say (check your glance
>>>> config and glance/keystone logs) -- but you'll definitely need to recreate
>>>> that endpoint with SWIFT_HOST defined in your env to use swift through your
>>>> service catalog.
>>>>
>>>> -Dolph
>>>>
>>>>
>>>> On Mon, May 7, 2012 at 9:11 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>>
>>>>> Does that mean that glance is somehow configured to use swift as
>>>>> storage instead of the local file system or is does the error simply occur
>>>>> due to the a parsing error because of ${SWIFT_HOST}?
>>>>>
>>>>>
>>>>> On Mon, May 7, 2012 at 2:59 PM, Dolph Mathews <dolph.mathews [at] gmail
>>>>> > wrote:
>>>>>
>>>>>> Your swift endpoint appears to be literally configured in keystone as
>>>>>> "http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing that's
>>>>>> unreachable :)
>>>>>>
>>>>>> Based on your logs, I'm not certain that will fix your 500, however.
>>>>>>
>>>>>> -Dolph
>>>>>>
>>>>>> On Mon, May 7, 2012 at 5:23 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>>>>
>>>>>>> This is as much as i can capture at the moment.
>>>>>>> http://paste.openstack.org/show/15899/
>>>>>>>
>>>>>>> For some reason, nothing is written to the logs, am i forgetting a
>>>>>>> flag or something?
>>>>>>>
>>>>>>>
>>>>>>> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail>wrote:
>>>>>>>
>>>>>>>> Please post to http://paste.openstack.org error text and backtrace
>>>>>>>> from nova-api.log.
>>>>>>>>
>>>>>>>> Kind regards, Yuriy.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail>
>>>>>>>> wrote:
>>>>>>>> > Hello,
>>>>>>>> >
>>>>>>>> > I seem to be unable to list the images available in glance. I'm
>>>>>>>> not sure why
>>>>>>>> > this is happening. I've check the logs for nova-api, glance-api
>>>>>>>> and
>>>>>>>> > glance-registry and am unable to found anything out of the
>>>>>>>> ordinary.
>>>>>>>> >
>>>>>>>> > Below is an output from the command 'nova image-list'
>>>>>>>> >>
>>>>>>>> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
>>>>>>>> >> "Content-Type: application/json" -H "Accept: application/json" -H
>>>>>>>> >> "User-Agent: python-novaclient"
>>>>>>>> >> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
>>>>>>>> >> {"username": "admin", "password": "nova"}}}
>>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT',
>>>>>>>> 'transfer-encoding':
>>>>>>>> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token',
>>>>>>>> 'content-type':
>>>>>>>> >> 'application/json'} {"access": {"token": {"expires":
>>>>>>>> "2012-05-05T14:08:53Z",
>>>>>>>> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant":
>>>>>>>> {"description": null,
>>>>>>>> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d",
>>>>>>>> "name":
>>>>>>>> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
>>>>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>>> "region":
>>>>>>>> >> "nova", "internalURL":
>>>>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d
>>>>>>>> ",
>>>>>>>> >> "publicURL":
>>>>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d
>>>>>>>> "}],
>>>>>>>> >> "endpoints_links": [], "type": "volume", "name": "volume"},
>>>>>>>> {"endpoints":
>>>>>>>> >> [{"adminURL":
>>>>>>>> >> "http://
>>>>>>>> ${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
>>>>>>>> >> "region": "nova", "internalURL": "http://127.0.0.1:8080",
>>>>>>>> "publicURL":
>>>>>>>> >> "http://
>>>>>>>> ${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
>>>>>>>> >> "endpoints_links": [], "type": "storage", "name": "swift"},
>>>>>>>> {"endpoints":
>>>>>>>> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region":
>>>>>>>> "nova",
>>>>>>>> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
>>>>>>>> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [],
>>>>>>>> "type": "image",
>>>>>>>> >> "name": "glance"}, {"endpoints": [{"adminURL":
>>>>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>>> "region":
>>>>>>>> >> "nova", "internalURL":
>>>>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d
>>>>>>>> ",
>>>>>>>> >> "publicURL":
>>>>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d
>>>>>>>> "}],
>>>>>>>> >> "endpoints_links": [], "type": "compute", "name": "nova"},
>>>>>>>> {"endpoints":
>>>>>>>> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region":
>>>>>>>> "nova",
>>>>>>>> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
>>>>>>>> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [],
>>>>>>>> "type":
>>>>>>>> >> "identity", "name": "keystone"}], "user": {"username": "admin",
>>>>>>>> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba",
>>>>>>>> "roles":
>>>>>>>> >> [{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"},
>>>>>>>> {"id":
>>>>>>>> >> "e1428c3c9403494494b53393660a930a", "name":
>>>>>>>> "KeystoneServiceAdmin"}, {"id":
>>>>>>>> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}],
>>>>>>>> "name":
>>>>>>>> >> "admin"}}}
>>>>>>>> >> REQ: curl -i
>>>>>>>> >>
>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>>>>> python-novaclient" -H
>>>>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>>>>> >> REQ: curl -i
>>>>>>>> >>
>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>>>>> python-novaclient" -H
>>>>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>>>>> charset=UTF-8',
>>>>>>>> >> 'x-compute-request-id':
>>>>>>>> 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>>>>> incapable of
>>>>>>>> >> performing the requested operation.", "code": 500}}
>>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>>>>> charset=UTF-8',
>>>>>>>> >> 'x-compute-request-id':
>>>>>>>> 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>>>>> incapable of
>>>>>>>> >> performing the requested operation.", "code": 500}}
>>>>>>>> >
>>>>>>>> > I'm using ubuntu 12.04 with the default repository packages. All
>>>>>>>> the
>>>>>>>> > services are running.
>>>>>>>> >
>>>>>>>> > Regards,
>>>>>>>> >
>>>>>>>> > Leander
>>>>>>>> >
>>>>>>>> > _______________________________________________
>>>>>>>> > Mailing list: https://launchpad.net/~openstack
>>>>>>>> > Post to : openstack [at] lists
>>>>>>>> > Unsubscribe : https://launchpad.net/~openstack
>>>>>>>> > More help : https://help.launchpad.net/ListHelp
>>>>>>>> >
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Mailing list: https://launchpad.net/~openstack
>>>>>>> Post to : openstack [at] lists
>>>>>>> Unsubscribe : https://launchpad.net/~openstack
>>>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>


dolph.mathews at gmail

May 10, 2012, 8:49 AM

Post #12 of 17 (345 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

Can you paste those deprecation warnings, your keystone.conf, and logging.conf?

-Dolph Mathews

On May 10, 2012, at 10:37 AM, Leander Bessa Beernaert <leanderbb [at] gmail> wrote:

> Both. The log file is completely empty and the stdout only prints deprecation warnings :/
>
> On Thu, May 10, 2012 at 4:32 PM, Dolph Mathews <dolph.mathews [at] gmail> wrote:
> Concerning your keystone.log being empty (empty for the duration of the request, or completely empty?)... is logging to a specific file configured in your keystone.conf? If not, keystone just "logs" to stdout.
>
> -Dolph
>
> On Thu, May 10, 2012 at 10:20 AM, Leander Bessa Beernaert <leanderbb [at] gmail> wrote:
> Can anyone pinpoint what exactly is wrong with this. I've been stuck here for the past three days, and nothing i do seems to be working :/
>
>
> On Tue, May 8, 2012 at 12:11 PM, Leander Bessa <leanderbb [at] gmail> wrote:
> I fixed the swift ip and i'm still getting the same error.
>
> Here are the log files and the config files:
>
> nova-api > http://paste.openstack.org/show/16176/
>
> glance-api.log
> 2012-05-08 11:39:55 6143 INFO [eventlet.wsgi.server] Starting single process server
> 2012-05-08 11:40:01 6255 INFO [eventlet.wsgi.server] Starting single process server
>
> glance-registery.log > http://paste.openstack.org/show/16180/
>
> glance-api.conf > http://paste.openstack.org/show/16184/
>
> glance-registry.conf > http://paste.openstack.org/show/16185/
>
> glance-api-paste.ini > http://paste.openstack.org/show/16186/
>
> glance-registry-pastet-ini > http://paste.openstack.org/show/16187/
>
> keystone log is empty.
>
> Regards,
>
> Leander
>
> On Mon, May 7, 2012 at 4:51 PM, Dolph Mathews <dolph.mathews [at] gmail> wrote:
> There's not enough information in those logs to say (check your glance config and glance/keystone logs) -- but you'll definitely need to recreate that endpoint with SWIFT_HOST defined in your env to use swift through your service catalog.
>
> -Dolph
>
>
> On Mon, May 7, 2012 at 9:11 AM, Leander Bessa <leanderbb [at] gmail> wrote:
> Does that mean that glance is somehow configured to use swift as storage instead of the local file system or is does the error simply occur due to the a parsing error because of ${SWIFT_HOST}?
>
>
> On Mon, May 7, 2012 at 2:59 PM, Dolph Mathews <dolph.mathews [at] gmail> wrote:
> Your swift endpoint appears to be literally configured in keystone as "http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing that's unreachable :)
>
> Based on your logs, I'm not certain that will fix your 500, however.
>
> -Dolph
>
> On Mon, May 7, 2012 at 5:23 AM, Leander Bessa <leanderbb [at] gmail> wrote:
> This is as much as i can capture at the moment. http://paste.openstack.org/show/15899/
>
> For some reason, nothing is written to the logs, am i forgetting a flag or something?
>
>
> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail> wrote:
> Please post to http://paste.openstack.org error text and backtrace
> from nova-api.log.
>
> Kind regards, Yuriy.
>
>
> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail> wrote:
> > Hello,
> >
> > I seem to be unable to list the images available in glance. I'm not sure why
> > this is happening. I've check the logs for nova-api, glance-api and
> > glance-registry and am unable to found anything out of the ordinary.
> >
> > Below is an output from the command 'nova image-list'
> >>
> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
> >> "Content-Type: application/json" -H "Accept: application/json" -H
> >> "User-Agent: python-novaclient"
> >> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
> >> {"username": "admin", "password": "nova"}}}
> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'transfer-encoding':
> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token', 'content-type':
> >> 'application/json'} {"access": {"token": {"expires": "2012-05-05T14:08:53Z",
> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant": {"description": null,
> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d", "name":
> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d", "region":
> >> "nova", "internalURL":
> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
> >> "publicURL":
> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d"}],
> >> "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints":
> >> [{"adminURL":
> >> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
> >> "region": "nova", "internalURL": "http://127.0.0.1:8080", "publicURL":
> >> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
> >> "endpoints_links": [], "type": "storage", "name": "swift"}, {"endpoints":
> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region": "nova",
> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [], "type": "image",
> >> "name": "glance"}, {"endpoints": [{"adminURL":
> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d", "region":
> >> "nova", "internalURL":
> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
> >> "publicURL":
> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d"}],
> >> "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints":
> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region": "nova",
> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [], "type":
> >> "identity", "name": "keystone"}], "user": {"username": "admin",
> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba", "roles":
> >> [.{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"}, {"id":
> >> "e1428c3c9403494494b53393660a930a", "name": "KeystoneServiceAdmin"}, {"id":
> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}], "name":
> >> "admin"}}}
> >> REQ: curl -i
> >> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H
> >> "Accept: application/json" -H "X-Auth-Token:
> >> c6d3145f1e924982982b54e52b97bec9"
> >> REQ: curl -i
> >> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H
> >> "Accept: application/json" -H "X-Auth-Token:
> >> c6d3145f1e924982982b54e52b97bec9"
> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
> >> 'content-length': '128', 'content-type': 'application/json; charset=UTF-8',
> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
> >> {"computeFault": {"message": "The server has either erred or is incapable of
> >> performing the requested operation.", "code": 500}}
> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
> >> 'content-length': '128', 'content-type': 'application/json; charset=UTF-8',
> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
> >> {"computeFault": {"message": "The server has either erred or is incapable of
> >> performing the requested operation.", "code": 500}}
> >
> > I'm using ubuntu 12.04 with the default repository packages. All the
> > services are running.
> >
> > Regards,
> >
> > Leander
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~openstack
> > Post to : openstack [at] lists
> > Unsubscribe : https://launchpad.net/~openstack
> > More help : https://help.launchpad.net/ListHelp
> >
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
>
>
>
>


leanderbb at gmail

May 10, 2012, 8:57 AM

Post #13 of 17 (344 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

keystone deprecation: http://paste.openstack.org/show/16778/

keystone conf: http://paste.openstack.org/show/16779/

logging conf: http://paste.openstack.org/show/16780/

On Thu, May 10, 2012 at 4:49 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:

> Can you paste those deprecation warnings, your keystone.conf, and
> logging.conf?
>
> -Dolph Mathews
>
> On May 10, 2012, at 10:37 AM, Leander Bessa Beernaert <leanderbb [at] gmail>
> wrote:
>
> Both. The log file is completely empty and the stdout only prints
> deprecation warnings :/
>
> On Thu, May 10, 2012 at 4:32 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:
>
>> Concerning your keystone.log being empty (empty for the duration of the
>> request, or completely empty?)... is logging to a specific file configured
>> in your keystone.conf? If not, keystone just "logs" to stdout.
>>
>> -Dolph
>>
>> On Thu, May 10, 2012 at 10:20 AM, Leander Bessa Beernaert <
>> leanderbb [at] gmail> wrote:
>>
>>> Can anyone pinpoint what exactly is wrong with this. I've been stuck
>>> here for the past three days, and nothing i do seems to be working :/
>>>
>>>
>>> On Tue, May 8, 2012 at 12:11 PM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>
>>>> I fixed the swift ip and i'm still getting the same error.
>>>>
>>>> Here are the log files and the config files:
>>>>
>>>> nova-api > http://paste.openstack.org/show/16176/
>>>>
>>>> glance-api.log
>>>>
>>>>> 2012-05-08 11:39:55 6143 INFO [eventlet.wsgi.server] Starting
>>>>>> single process server
>>>>>
>>>>> 2012-05-08 11:40:01 6255 INFO [eventlet.wsgi.server] Starting
>>>>>> single process server
>>>>>
>>>>>
>>>> glance-registery.log > http://paste.openstack.org/show/16180/
>>>>
>>>> glance-api.conf > http://paste.openstack.org/show/16184/
>>>>
>>>> glance-registry.conf > http://paste.openstack.org/show/16185/
>>>>
>>>> glance-api-paste.ini > http://paste.openstack.org/show/16186/
>>>>
>>>> glance-registry-pastet-ini > http://paste.openstack.org/show/16187/
>>>>
>>>> keystone log is empty.
>>>>
>>>> Regards,
>>>>
>>>> Leander
>>>>
>>>> On Mon, May 7, 2012 at 4:51 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:
>>>>
>>>>> There's not enough information in those logs to say (check your glance
>>>>> config and glance/keystone logs) -- but you'll definitely need to recreate
>>>>> that endpoint with SWIFT_HOST defined in your env to use swift through your
>>>>> service catalog.
>>>>>
>>>>> -Dolph
>>>>>
>>>>>
>>>>> On Mon, May 7, 2012 at 9:11 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>>>
>>>>>> Does that mean that glance is somehow configured to use swift as
>>>>>> storage instead of the local file system or is does the error simply occur
>>>>>> due to the a parsing error because of ${SWIFT_HOST}?
>>>>>>
>>>>>>
>>>>>> On Mon, May 7, 2012 at 2:59 PM, Dolph Mathews <
>>>>>> dolph.mathews [at] gmail> wrote:
>>>>>>
>>>>>>> Your swift endpoint appears to be literally configured in keystone
>>>>>>> as "http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing that's
>>>>>>> unreachable :)
>>>>>>>
>>>>>>> Based on your logs, I'm not certain that will fix your 500, however.
>>>>>>>
>>>>>>> -Dolph
>>>>>>>
>>>>>>> On Mon, May 7, 2012 at 5:23 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>>>>>
>>>>>>>> This is as much as i can capture at the moment.
>>>>>>>> http://paste.openstack.org/show/15899/
>>>>>>>>
>>>>>>>> For some reason, nothing is written to the logs, am i forgetting a
>>>>>>>> flag or something?
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail
>>>>>>>> > wrote:
>>>>>>>>
>>>>>>>>> Please post to http://paste.openstack.org error text and backtrace
>>>>>>>>> from nova-api.log.
>>>>>>>>>
>>>>>>>>> Kind regards, Yuriy.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail>
>>>>>>>>> wrote:
>>>>>>>>> > Hello,
>>>>>>>>> >
>>>>>>>>> > I seem to be unable to list the images available in glance. I'm
>>>>>>>>> not sure why
>>>>>>>>> > this is happening. I've check the logs for nova-api, glance-api
>>>>>>>>> and
>>>>>>>>> > glance-registry and am unable to found anything out of the
>>>>>>>>> ordinary.
>>>>>>>>> >
>>>>>>>>> > Below is an output from the command 'nova image-list'
>>>>>>>>> >>
>>>>>>>>> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
>>>>>>>>> >> "Content-Type: application/json" -H "Accept: application/json"
>>>>>>>>> -H
>>>>>>>>> >> "User-Agent: python-novaclient"
>>>>>>>>> >> REQ BODY: {"auth": {"tenantName": "admin",
>>>>>>>>> "passwordCredentials":
>>>>>>>>> >> {"username": "admin", "password": "nova"}}}
>>>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT',
>>>>>>>>> 'transfer-encoding':
>>>>>>>>> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token',
>>>>>>>>> 'content-type':
>>>>>>>>> >> 'application/json'} {"access": {"token": {"expires":
>>>>>>>>> "2012-05-05T14:08:53Z",
>>>>>>>>> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant":
>>>>>>>>> {"description": null,
>>>>>>>>> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d",
>>>>>>>>> "name":
>>>>>>>>> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
>>>>>>>>> >> "
>>>>>>>>> http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>>>> "region":
>>>>>>>>> >> "nova", "internalURL":
>>>>>>>>> >> "
>>>>>>>>> http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>>>> >> "publicURL":
>>>>>>>>> >> "
>>>>>>>>> http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d
>>>>>>>>> "}],
>>>>>>>>> >> "endpoints_links": [], "type": "volume", "name": "volume"},
>>>>>>>>> {"endpoints":
>>>>>>>>> >> [{"adminURL":
>>>>>>>>> >> "
>>>>>>>>> http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d
>>>>>>>>> ",
>>>>>>>>> >> "region": "nova", "internalURL": "http://127.0.0.1:8080",
>>>>>>>>> "publicURL":
>>>>>>>>> >> "
>>>>>>>>> http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d
>>>>>>>>> "}],
>>>>>>>>> >> "endpoints_links": [], "type": "storage", "name": "swift"},
>>>>>>>>> {"endpoints":
>>>>>>>>> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region":
>>>>>>>>> "nova",
>>>>>>>>> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
>>>>>>>>> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [],
>>>>>>>>> "type": "image",
>>>>>>>>> >> "name": "glance"}, {"endpoints": [{"adminURL":
>>>>>>>>> >> "
>>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>>>> "region":
>>>>>>>>> >> "nova", "internalURL":
>>>>>>>>> >> "
>>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>>>> >> "publicURL":
>>>>>>>>> >> "
>>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d
>>>>>>>>> "}],
>>>>>>>>> >> "endpoints_links": [], "type": "compute", "name": "nova"},
>>>>>>>>> {"endpoints":
>>>>>>>>> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region":
>>>>>>>>> "nova",
>>>>>>>>> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
>>>>>>>>> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [],
>>>>>>>>> "type":
>>>>>>>>> >> "identity", "name": "keystone"}], "user": {"username": "admin",
>>>>>>>>> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba",
>>>>>>>>> "roles":
>>>>>>>>> >> [{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"},
>>>>>>>>> {"id":
>>>>>>>>> >> "e1428c3c9403494494b53393660a930a", "name":
>>>>>>>>> "KeystoneServiceAdmin"}, {"id":
>>>>>>>>> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}],
>>>>>>>>> "name":
>>>>>>>>> >> "admin"}}}
>>>>>>>>> >> REQ: curl -i
>>>>>>>>> >>
>>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>>>>>> python-novaclient" -H
>>>>>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>>>>>> >> REQ: curl -i
>>>>>>>>> >>
>>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>>>>>> python-novaclient" -H
>>>>>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>>>>>> charset=UTF-8',
>>>>>>>>> >> 'x-compute-request-id':
>>>>>>>>> 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>>>>>> incapable of
>>>>>>>>> >> performing the requested operation.", "code": 500}}
>>>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>>>>>> charset=UTF-8',
>>>>>>>>> >> 'x-compute-request-id':
>>>>>>>>> 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>>>>>> incapable of
>>>>>>>>> >> performing the requested operation.", "code": 500}}
>>>>>>>>> >
>>>>>>>>> > I'm using ubuntu 12.04 with the default repository packages. All
>>>>>>>>> the
>>>>>>>>> > services are running.
>>>>>>>>> >
>>>>>>>>> > Regards,
>>>>>>>>> >
>>>>>>>>> > Leander
>>>>>>>>> >
>>>>>>>>> > _______________________________________________
>>>>>>>>> > Mailing list: https://launchpad.net/~openstack
>>>>>>>>> > Post to : openstack [at] lists
>>>>>>>>> > Unsubscribe : https://launchpad.net/~openstack
>>>>>>>>> > More help : https://help.launchpad.net/ListHelp
>>>>>>>>> >
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Mailing list: https://launchpad.net/~openstack
>>>>>>>> Post to : openstack [at] lists
>>>>>>>> Unsubscribe : https://launchpad.net/~openstack
>>>>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>


brian.waldon at rackspace

May 10, 2012, 10:10 AM

Post #14 of 17 (336 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

Glance isn't able to authenticate who you are. What happens if you speak to glance directly?


On May 10, 2012, at 8:20 AM, Leander Bessa Beernaert wrote:

> Can anyone pinpoint what exactly is wrong with this. I've been stuck here for the past three days, and nothing i do seems to be working :/
>
> On Tue, May 8, 2012 at 12:11 PM, Leander Bessa <leanderbb [at] gmail> wrote:
> I fixed the swift ip and i'm still getting the same error.
>
> Here are the log files and the config files:
>
> nova-api > http://paste.openstack.org/show/16176/
>
> glance-api.log
> 2012-05-08 11:39:55 6143 INFO [eventlet.wsgi.server] Starting single process server
> 2012-05-08 11:40:01 6255 INFO [eventlet.wsgi.server] Starting single process server
>
> glance-registery.log > http://paste.openstack.org/show/16180/
>
> glance-api.conf > http://paste.openstack.org/show/16184/
>
> glance-registry.conf > http://paste.openstack.org/show/16185/
>
> glance-api-paste.ini > http://paste.openstack.org/show/16186/
>
> glance-registry-pastet-ini > http://paste.openstack.org/show/16187/
>
> keystone log is empty.
>
> Regards,
>
> Leander
>
> On Mon, May 7, 2012 at 4:51 PM, Dolph Mathews <dolph.mathews [at] gmail> wrote:
> There's not enough information in those logs to say (check your glance config and glance/keystone logs) -- but you'll definitely need to recreate that endpoint with SWIFT_HOST defined in your env to use swift through your service catalog.
>
> -Dolph
>
>
> On Mon, May 7, 2012 at 9:11 AM, Leander Bessa <leanderbb [at] gmail> wrote:
> Does that mean that glance is somehow configured to use swift as storage instead of the local file system or is does the error simply occur due to the a parsing error because of ${SWIFT_HOST}?
>
>
> On Mon, May 7, 2012 at 2:59 PM, Dolph Mathews <dolph.mathews [at] gmail> wrote:
> Your swift endpoint appears to be literally configured in keystone as "http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing that's unreachable :)
>
> Based on your logs, I'm not certain that will fix your 500, however.
>
> -Dolph
>
> On Mon, May 7, 2012 at 5:23 AM, Leander Bessa <leanderbb [at] gmail> wrote:
> This is as much as i can capture at the moment. http://paste.openstack.org/show/15899/
>
> For some reason, nothing is written to the logs, am i forgetting a flag or something?
>
>
> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail> wrote:
> Please post to http://paste.openstack.org error text and backtrace
> from nova-api.log.
>
> Kind regards, Yuriy.
>
>
> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail> wrote:
> > Hello,
> >
> > I seem to be unable to list the images available in glance. I'm not sure why
> > this is happening. I've check the logs for nova-api, glance-api and
> > glance-registry and am unable to found anything out of the ordinary.
> >
> > Below is an output from the command 'nova image-list'
> >>
> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
> >> "Content-Type: application/json" -H "Accept: application/json" -H
> >> "User-Agent: python-novaclient"
> >> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
> >> {"username": "admin", "password": "nova"}}}
> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'transfer-encoding':
> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token', 'content-type':
> >> 'application/json'} {"access": {"token": {"expires": "2012-05-05T14:08:53Z",
> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant": {"description": null,
> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d", "name":
> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d", "region":
> >> "nova", "internalURL":
> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
> >> "publicURL":
> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d"}],
> >> "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints":
> >> [{"adminURL":
> >> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
> >> "region": "nova", "internalURL": "http://127.0.0.1:8080", "publicURL":
> >> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
> >> "endpoints_links": [], "type": "storage", "name": "swift"}, {"endpoints":
> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region": "nova",
> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [], "type": "image",
> >> "name": "glance"}, {"endpoints": [{"adminURL":
> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d", "region":
> >> "nova", "internalURL":
> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
> >> "publicURL":
> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d"}],
> >> "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints":
> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region": "nova",
> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [], "type":
> >> "identity", "name": "keystone"}], "user": {"username": "admin",
> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba", "roles":
> >> [.{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"}, {"id":
> >> "e1428c3c9403494494b53393660a930a", "name": "KeystoneServiceAdmin"}, {"id":
> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}], "name":
> >> "admin"}}}
> >> REQ: curl -i
> >> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H
> >> "Accept: application/json" -H "X-Auth-Token:
> >> c6d3145f1e924982982b54e52b97bec9"
> >> REQ: curl -i
> >> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H
> >> "Accept: application/json" -H "X-Auth-Token:
> >> c6d3145f1e924982982b54e52b97bec9"
> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
> >> 'content-length': '128', 'content-type': 'application/json; charset=UTF-8',
> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
> >> {"computeFault": {"message": "The server has either erred or is incapable of
> >> performing the requested operation.", "code": 500}}
> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
> >> 'content-length': '128', 'content-type': 'application/json; charset=UTF-8',
> >> 'x-compute-request-id': 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
> >> {"computeFault": {"message": "The server has either erred or is incapable of
> >> performing the requested operation.", "code": 500}}
> >
> > I'm using ubuntu 12.04 with the default repository packages. All the
> > services are running.
> >
> > Regards,
> >
> > Leander
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~openstack
> > Post to : openstack [at] lists
> > Unsubscribe : https://launchpad.net/~openstack
> > More help : https://help.launchpad.net/ListHelp
> >
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp


david.kranz at qrclab

May 10, 2012, 10:48 AM

Post #15 of 17 (341 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

I don't know if this is your problem, but the default log level in
/etc/keystone/logging.conf is WARNING (at least in Ubuntu). I had a
similar issue and saw important stuff in the log after changing that to
DEBUG.

-David

On 5/10/2012 11:32 AM, Dolph Mathews wrote:
> Concerning your keystone.log being empty (empty for the duration of
> the request, or completely empty?)... is logging to a specific file
> configured in your keystone.conf? If not, keystone just "logs" to stdout.
>
> -Dolph
>
> On Thu, May 10, 2012 at 10:20 AM, Leander Bessa Beernaert
> <leanderbb [at] gmail <mailto:leanderbb [at] gmail>> wrote:
>
> Can anyone pinpoint what exactly is wrong with this. I've been
> stuck here for the past three days, and nothing i do seems to be
> working :/
>
>
> On Tue, May 8, 2012 at 12:11 PM, Leander Bessa
> <leanderbb [at] gmail <mailto:leanderbb [at] gmail>> wrote:
>
> I fixed the swift ip and i'm still getting the same error.
>
> Here are the log files and the config files:
>
> nova-api > http://paste.openstack.org/show/16176/
>
> glance-api.log
>
> 2012-05-08 11:39:55 6143 INFO
> [eventlet.wsgi.server] Starting single process server
>
> 2012-05-08 11:40:01 6255 INFO
> [eventlet.wsgi.server] Starting single process server
>
> glance-registery.log > http://paste.openstack.org/show/16180/
>
> glance-api.conf > http://paste.openstack.org/show/16184/
>
> glance-registry.conf > http://paste.openstack.org/show/16185/
>
> glance-api-paste.ini > http://paste.openstack.org/show/16186/
>
> glance-registry-pastet-ini >
> http://paste.openstack.org/show/16187/
>
> keystone log is empty.
>
> Regards,
>
> Leander
>
> On Mon, May 7, 2012 at 4:51 PM, Dolph Mathews
> <dolph.mathews [at] gmail <mailto:dolph.mathews [at] gmail>> wrote:
>
> There's not enough information in those logs to say (check
> your glance config and glance/keystone logs) -- but you'll
> definitely need to recreate that endpoint with SWIFT_HOST
> defined in your env to use swift through your service catalog.
>
> -Dolph
>
>
> On Mon, May 7, 2012 at 9:11 AM, Leander Bessa
> <leanderbb [at] gmail <mailto:leanderbb [at] gmail>> wrote:
>
> Does that mean that glance is somehow configured to
> use swift as storage instead of the local file system
> or is does the error simply occur due to the a parsing
> error because of ${SWIFT_HOST}?
>
>
> On Mon, May 7, 2012 at 2:59 PM, Dolph Mathews
> <dolph.mathews [at] gmail
> <mailto:dolph.mathews [at] gmail>> wrote:
>
> Your swift endpoint appears to
> be literally configured in keystone as
> "http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing
> that's unreachable :)
>
> Based on your logs, I'm not certain that will fix
> your 500, however.
>
> -Dolph
>
> On Mon, May 7, 2012 at 5:23 AM, Leander Bessa
> <leanderbb [at] gmail <mailto:leanderbb [at] gmail>>
> wrote:
>
> This is as much as i can capture at the
> moment. http://paste.openstack.org/show/15899/
>
> For some reason, nothing is written to the
> logs, am i forgetting a flag or something?
>
>
> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday
> <yorik.sar [at] gmail
> <mailto:yorik.sar [at] gmail>> wrote:
>
> Please post to http://paste.openstack.org
> error text and backtrace
> from nova-api.log.
>
> Kind regards, Yuriy.
>
>
> On Fri, May 4, 2012 at 6:13 PM, Leander
> Bessa <leanderbb [at] gmail
> <mailto:leanderbb [at] gmail>> wrote:
> > Hello,
> >
> > I seem to be unable to list the images
> available in glance. I'm not sure why
> > this is happening. I've check the logs
> for nova-api, glance-api and
> > glance-registry and am unable to found
> anything out of the ordinary.
> >
> > Below is an output from the command
> 'nova image-list'
> >>
> >> REQ: curl -i
> http://192.168.164.128:5000/v2.0/tokens -X
> POST -H
> >> "Content-Type: application/json" -H
> "Accept: application/json" -H
> >> "User-Agent: python-novaclient"
> >> REQ BODY: {"auth": {"tenantName":
> "admin", "passwordCredentials":
> >> {"username": "admin", "password": "nova"}}}
> >> RESP:{'date': 'Fri, 04 May 2012
> 14:08:53 GMT', 'transfer-encoding':
> >> 'chunked', 'status': '200', 'vary':
> 'X-Auth-Token', 'content-type':
> >> 'application/json'} {"access":
> {"token": {"expires": "2012-05-05T14:08:53Z",
> >> "id":
> "c6d3145f1e924982982b54e52b97bec9",
> "tenant": {"description": null,
> >> "enabled": true, "id":
> "765a2012198f4751b8457c49932ec80d", "name":
> >> "admin"}}, "serviceCatalog":
> [{"endpoints": [{"adminURL":
> >>
> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
> "region":
> >> "nova", "internalURL":
> >>
> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
> >> "publicURL":
> >>
> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d"}],
> >> "endpoints_links": [], "type":
> "volume", "name": "volume"}, {"endpoints":
> >> [{"adminURL":
> >>
> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d",
> >> "region": "nova", "internalURL":
> "http://127.0.0.1:8080", "publicURL":
> >>
> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"}],
> >> "endpoints_links": [], "type":
> "storage", "name": "swift"}, {"endpoints":
> >> [{"adminURL":
> "http://192.168.164.128:9292/v1",
> "region": "nova",
> >> "internalURL":
> "http://192.168.164.128:9292/v1", "publicURL":
> >> "http://192.168.164.128:9292/v1"}],
> "endpoints_links": [], "type": "image",
> >> "name": "glance"}, {"endpoints":
> [{"adminURL":
> >>
> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
> "region":
> >> "nova", "internalURL":
> >>
> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
> >> "publicURL":
> >>
> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d"}],
> >> "endpoints_links": [], "type":
> "compute", "name": "nova"}, {"endpoints":
> >> [{"adminURL":
> "http://192.168.164.128:5000/v2.0",
> "region": "nova",
> >> "internalURL":
> "http://192.168.164.128:5000/v2.0",
> "publicURL":
> >> "http://192.168.164.128:35357/v2.0"}],
> "endpoints_links": [], "type":
> >> "identity", "name": "keystone"}],
> "user": {"username": "admin",
> >> "roles_links": [], "id":
> "842c74e5daa246239426f92b6f5c5dba", "roles":
> >> [{"id":
> "d6d2f681acbf4f91a3bd3522e1c006ae",
> "name": "admin"}, {"id":
> >> "e1428c3c9403494494b53393660a930a",
> "name": "KeystoneServiceAdmin"}, {"id":
> >> "f2a9436d68974a049547c08324a37aed",
> "name": "KeystoneAdmin"}], "name":
> >> "admin"}}}
> >> REQ: curl -i
> >>
> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
> >> -X GET -H "X-Auth-Project-Id: admin" -H
> "User-Agent: python-novaclient" -H
> >> "Accept: application/json" -H
> "X-Auth-Token:
> >> c6d3145f1e924982982b54e52b97bec9"
> >> REQ: curl -i
> >>
> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
> >> -X GET -H "X-Auth-Project-Id: admin" -H
> "User-Agent: python-novaclient" -H
> >> "Accept: application/json" -H
> "X-Auth-Token:
> >> c6d3145f1e924982982b54e52b97bec9"
> >> RESP:{'date': 'Fri, 04 May 2012
> 14:08:53 GMT', 'status': '500',
> >> 'content-length': '128',
> 'content-type': 'application/json;
> charset=UTF-8',
> >> 'x-compute-request-id':
> 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
> >> {"computeFault": {"message": "The
> server has either erred or is incapable of
> >> performing the requested operation.",
> "code": 500}}
> >> RESP:{'date': 'Fri, 04 May 2012
> 14:08:53 GMT', 'status': '500',
> >> 'content-length': '128',
> 'content-type': 'application/json;
> charset=UTF-8',
> >> 'x-compute-request-id':
> 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
> >> {"computeFault": {"message": "The
> server has either erred or is incapable of
> >> performing the requested operation.",
> "code": 500}}
> >
> > I'm using ubuntu 12.04 with the
> default repository packages. All the
> > services are running.
> >
> > Regards,
> >
> > Leander
> >
> >
> _______________________________________________
> > Mailing list:
> https://launchpad.net/~openstack
> <https://launchpad.net/%7Eopenstack>
> > Post to :
> openstack [at] lists
> <mailto:openstack [at] lists>
> > Unsubscribe :
> https://launchpad.net/~openstack
> <https://launchpad.net/%7Eopenstack>
> > More help :
> https://help.launchpad.net/ListHelp
> >
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> <https://launchpad.net/%7Eopenstack>
> Post to : openstack [at] lists
> <mailto:openstack [at] lists>
> Unsubscribe : https://launchpad.net/~openstack
> <https://launchpad.net/%7Eopenstack>
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp


leanderbb at gmail

May 11, 2012, 5:30 AM

Post #16 of 17 (331 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

David, thx for the tip. When i changed to DEBUG e caught this in keystone:
http://paste.openstack.org/show/16935/ and when i try to access glance
directly i get this: http://paste.openstack.org/show/16936/

On Thu, May 10, 2012 at 6:48 PM, David Kranz <david.kranz [at] qrclab> wrote:

> I don't know if this is your problem, but the default log level in
> /etc/keystone/logging.conf is WARNING (at least in Ubuntu). I had a similar
> issue and saw important stuff in the log after changing that to DEBUG.
>
> -David
>
>
> On 5/10/2012 11:32 AM, Dolph Mathews wrote:
>
> Concerning your keystone.log being empty (empty for the duration of the
> request, or completely empty?)... is logging to a specific file configured
> in your keystone.conf? If not, keystone just "logs" to stdout.
>
> -Dolph
>
> On Thu, May 10, 2012 at 10:20 AM, Leander Bessa Beernaert <
> leanderbb [at] gmail> wrote:
>
>> Can anyone pinpoint what exactly is wrong with this. I've been stuck here
>> for the past three days, and nothing i do seems to be working :/
>>
>>
>> On Tue, May 8, 2012 at 12:11 PM, Leander Bessa <leanderbb [at] gmail>wrote:
>>
>>> I fixed the swift ip and i'm still getting the same error.
>>>
>>> Here are the log files and the config files:
>>>
>>> nova-api > http://paste.openstack.org/show/16176/
>>>
>>> glance-api.log
>>>
>>>> 2012-05-08 11:39:55 6143 INFO [eventlet.wsgi.server] Starting
>>>>> single process server
>>>>
>>>> 2012-05-08 11:40:01 6255 INFO [eventlet.wsgi.server] Starting
>>>>> single process server
>>>>
>>>>
>>> glance-registery.log > http://paste.openstack.org/show/16180/
>>>
>>> glance-api.conf > http://paste.openstack.org/show/16184/
>>>
>>> glance-registry.conf > http://paste.openstack.org/show/16185/
>>>
>>> glance-api-paste.ini > http://paste.openstack.org/show/16186/
>>>
>>> glance-registry-pastet-ini > http://paste.openstack.org/show/16187/
>>>
>>> keystone log is empty.
>>>
>>> Regards,
>>>
>>> Leander
>>>
>>> On Mon, May 7, 2012 at 4:51 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:
>>>
>>>> There's not enough information in those logs to say (check your glance
>>>> config and glance/keystone logs) -- but you'll definitely need to recreate
>>>> that endpoint with SWIFT_HOST defined in your env to use swift through your
>>>> service catalog.
>>>>
>>>> -Dolph
>>>>
>>>>
>>>> On Mon, May 7, 2012 at 9:11 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>>
>>>>> Does that mean that glance is somehow configured to use swift as
>>>>> storage instead of the local file system or is does the error simply occur
>>>>> due to the a parsing error because of ${SWIFT_HOST}?
>>>>>
>>>>>
>>>>> On Mon, May 7, 2012 at 2:59 PM, Dolph Mathews <
>>>>> dolph.mathews [at] gmail> wrote:
>>>>>
>>>>>> Your swift endpoint appears to be literally configured in keystone as
>>>>>> "http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing that's
>>>>>> unreachable :)
>>>>>>
>>>>>> Based on your logs, I'm not certain that will fix your 500, however.
>>>>>>
>>>>>> -Dolph
>>>>>>
>>>>>> On Mon, May 7, 2012 at 5:23 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>>>>
>>>>>>> This is as much as i can capture at the moment.
>>>>>>> http://paste.openstack.org/show/15899/
>>>>>>>
>>>>>>> For some reason, nothing is written to the logs, am i forgetting a
>>>>>>> flag or something?
>>>>>>>
>>>>>>>
>>>>>>> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail>wrote:
>>>>>>>
>>>>>>>> Please post to http://paste.openstack.org error text and backtrace
>>>>>>>> from nova-api.log.
>>>>>>>>
>>>>>>>> Kind regards, Yuriy.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail>
>>>>>>>> wrote:
>>>>>>>> > Hello,
>>>>>>>> >
>>>>>>>> > I seem to be unable to list the images available in glance. I'm
>>>>>>>> not sure why
>>>>>>>> > this is happening. I've check the logs for nova-api, glance-api
>>>>>>>> and
>>>>>>>> > glance-registry and am unable to found anything out of the
>>>>>>>> ordinary.
>>>>>>>> >
>>>>>>>> > Below is an output from the command 'nova image-list'
>>>>>>>> >>
>>>>>>>> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
>>>>>>>> >> "Content-Type: application/json" -H "Accept: application/json" -H
>>>>>>>> >> "User-Agent: python-novaclient"
>>>>>>>> >> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials":
>>>>>>>> >> {"username": "admin", "password": "nova"}}}
>>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT',
>>>>>>>> 'transfer-encoding':
>>>>>>>> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token',
>>>>>>>> 'content-type':
>>>>>>>> >> 'application/json'} {"access": {"token": {"expires":
>>>>>>>> "2012-05-05T14:08:53Z",
>>>>>>>> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant":
>>>>>>>> {"description": null,
>>>>>>>> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d",
>>>>>>>> "name":
>>>>>>>> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
>>>>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>>> "region":
>>>>>>>> >> "nova", "internalURL":
>>>>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d
>>>>>>>> ",
>>>>>>>> >> "publicURL":
>>>>>>>> >> "http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d
>>>>>>>> "}],
>>>>>>>> >> "endpoints_links": [], "type": "volume", "name": "volume"},
>>>>>>>> {"endpoints":
>>>>>>>> >> [{"adminURL":
>>>>>>>> >>
>>>>>>>> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"
>>>>>>>> ,
>>>>>>>> >> "region": "nova", "internalURL": "http://127.0.0.1:8080",
>>>>>>>> "publicURL":
>>>>>>>> >>
>>>>>>>> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"
>>>>>>>> }],
>>>>>>>> >> "endpoints_links": [], "type": "storage", "name": "swift"},
>>>>>>>> {"endpoints":
>>>>>>>> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region":
>>>>>>>> "nova",
>>>>>>>> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
>>>>>>>> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [],
>>>>>>>> "type": "image",
>>>>>>>> >> "name": "glance"}, {"endpoints": [{"adminURL":
>>>>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>>> "region":
>>>>>>>> >> "nova", "internalURL":
>>>>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d
>>>>>>>> ",
>>>>>>>> >> "publicURL":
>>>>>>>> >> "http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d
>>>>>>>> "}],
>>>>>>>> >> "endpoints_links": [], "type": "compute", "name": "nova"},
>>>>>>>> {"endpoints":
>>>>>>>> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region":
>>>>>>>> "nova",
>>>>>>>> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
>>>>>>>> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [],
>>>>>>>> "type":
>>>>>>>> >> "identity", "name": "keystone"}], "user": {"username": "admin",
>>>>>>>> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba",
>>>>>>>> "roles":
>>>>>>>> >> [{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"},
>>>>>>>> {"id":
>>>>>>>> >> "e1428c3c9403494494b53393660a930a", "name":
>>>>>>>> "KeystoneServiceAdmin"}, {"id":
>>>>>>>> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}],
>>>>>>>> "name":
>>>>>>>> >> "admin"}}}
>>>>>>>> >> REQ: curl -i
>>>>>>>> >>
>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>>>>> python-novaclient" -H
>>>>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>>>>> >> REQ: curl -i
>>>>>>>> >>
>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>>>>> python-novaclient" -H
>>>>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>>>>> charset=UTF-8',
>>>>>>>> >> 'x-compute-request-id':
>>>>>>>> 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>>>>> incapable of
>>>>>>>> >> performing the requested operation.", "code": 500}}
>>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>>>>> charset=UTF-8',
>>>>>>>> >> 'x-compute-request-id':
>>>>>>>> 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>>>>> incapable of
>>>>>>>> >> performing the requested operation.", "code": 500}}
>>>>>>>> >
>>>>>>>> > I'm using ubuntu 12.04 with the default repository packages. All
>>>>>>>> the
>>>>>>>> > services are running.
>>>>>>>> >
>>>>>>>> > Regards,
>>>>>>>> >
>>>>>>>> > Leander
>>>>>>>> >
>>>>>>>> > _______________________________________________
>>>>>>>> > Mailing list: https://launchpad.net/~openstack
>>>>>>>> > Post to : openstack [at] lists
>>>>>>>> > Unsubscribe : https://launchpad.net/~openstack
>>>>>>>> > More help : https://help.launchpad.net/ListHelp
>>>>>>>> >
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Mailing list: https://launchpad.net/~openstack
>>>>>>> Post to : openstack [at] lists
>>>>>>> Unsubscribe : https://launchpad.net/~openstack
>>>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>


leanderbb at gmail

May 14, 2012, 5:08 AM

Post #17 of 17 (290 views)
Permalink
Re: [Glance][Nova] Can't list images [In reply to]

I've think i solved half of the issue, some passwords got mixed up. However
i keep getting the same problem.

For instance, when i run lance --os_username=glance
--os_password=111222333444 --os_tenant=service --os_auth_url=
http://127.0.0.1:5000/v2.0 index i get >
http://paste.openstack.org/show/17468/

and i find this in the keystone log:

> (root): 2012-05-14 13:04:42,742 DEBUG TOKEN_REF {'id':
> '70ad2536c85b47ceae56574939ab50cf', 'expires': datetime.datetime(2012, 5,
> 15, 12, 4, 42, 705625), 'user': {u'tenantId':
> u'5a9081d2830e4ca095156ad33e5ae09f', u'enabled': True, u'email':
> u'glance [at] hastexo', 'name': u'glance', 'id':
> u'6ae95f65465e42d1925341267b805b61'}, 'tenant': {u'description': None,
> u'enabled': True, 'id': u'5a9081d2830e4ca095156ad33e5ae09f', 'name':
> u'service'}, 'metadata': {u'roles': [u'524eb08c20264f05a0ead30418625b51']}}
> (eventlet.wsgi.server): 2012-05-14 13:04:42,748 DEBUG 127.0.0.1 - -
> [14/May/2012 13:04:42] "POST /v2.0/tokens HTTP/1.1" 200 2032 0.118644
> (keystone.policy.backends.rules): 2012-05-14 13:04:42,817 DEBUG enforce
> admin_required: {'tenant_id': u'5a9081d2830e4ca095156ad33e5ae09f',
> 'user_id': u'6ae95f65465e42d1925341267b805b61', u'roles': [u'admin']}
> (eventlet.wsgi.server): 2012-05-14 13:04:42,834 DEBUG 127.0.0.1 - -
> [14/May/2012 13:04:42] "GET /v2.0/tokens/70ad2536c85b47ceae56574939ab50cf
> HTTP/1.1" 200 542 0.079579


Any ideas?

On Fri, May 11, 2012 at 1:30 PM, Leander Bessa Beernaert <
leanderbb [at] gmail> wrote:

> David, thx for the tip. When i changed to DEBUG e caught this in keystone:
> http://paste.openstack.org/show/16935/ and when i try to access glance
> directly i get this: http://paste.openstack.org/show/16936/
>
> On Thu, May 10, 2012 at 6:48 PM, David Kranz <david.kranz [at] qrclab>wrote:
>
>> I don't know if this is your problem, but the default log level in
>> /etc/keystone/logging.conf is WARNING (at least in Ubuntu). I had a similar
>> issue and saw important stuff in the log after changing that to DEBUG.
>>
>> -David
>>
>>
>> On 5/10/2012 11:32 AM, Dolph Mathews wrote:
>>
>> Concerning your keystone.log being empty (empty for the duration of the
>> request, or completely empty?)... is logging to a specific file configured
>> in your keystone.conf? If not, keystone just "logs" to stdout.
>>
>> -Dolph
>>
>> On Thu, May 10, 2012 at 10:20 AM, Leander Bessa Beernaert <
>> leanderbb [at] gmail> wrote:
>>
>>> Can anyone pinpoint what exactly is wrong with this. I've been stuck
>>> here for the past three days, and nothing i do seems to be working :/
>>>
>>>
>>> On Tue, May 8, 2012 at 12:11 PM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>
>>>> I fixed the swift ip and i'm still getting the same error.
>>>>
>>>> Here are the log files and the config files:
>>>>
>>>> nova-api > http://paste.openstack.org/show/16176/
>>>>
>>>> glance-api.log
>>>>
>>>>> 2012-05-08 11:39:55 6143 INFO [eventlet.wsgi.server] Starting
>>>>>> single process server
>>>>>
>>>>> 2012-05-08 11:40:01 6255 INFO [eventlet.wsgi.server] Starting
>>>>>> single process server
>>>>>
>>>>>
>>>> glance-registery.log > http://paste.openstack.org/show/16180/
>>>>
>>>> glance-api.conf > http://paste.openstack.org/show/16184/
>>>>
>>>> glance-registry.conf > http://paste.openstack.org/show/16185/
>>>>
>>>> glance-api-paste.ini > http://paste.openstack.org/show/16186/
>>>>
>>>> glance-registry-pastet-ini > http://paste.openstack.org/show/16187/
>>>>
>>>> keystone log is empty.
>>>>
>>>> Regards,
>>>>
>>>> Leander
>>>>
>>>> On Mon, May 7, 2012 at 4:51 PM, Dolph Mathews <dolph.mathews [at] gmail>wrote:
>>>>
>>>>> There's not enough information in those logs to say (check your glance
>>>>> config and glance/keystone logs) -- but you'll definitely need to recreate
>>>>> that endpoint with SWIFT_HOST defined in your env to use swift through your
>>>>> service catalog.
>>>>>
>>>>> -Dolph
>>>>>
>>>>>
>>>>> On Mon, May 7, 2012 at 9:11 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>>>
>>>>>> Does that mean that glance is somehow configured to use swift as
>>>>>> storage instead of the local file system or is does the error simply occur
>>>>>> due to the a parsing error because of ${SWIFT_HOST}?
>>>>>>
>>>>>>
>>>>>> On Mon, May 7, 2012 at 2:59 PM, Dolph Mathews <
>>>>>> dolph.mathews [at] gmail> wrote:
>>>>>>
>>>>>>> Your swift endpoint appears to be literally configured in keystone
>>>>>>> as "http://${SWIFT_HOST}:8080/v1/..." -- I'm guessing that's
>>>>>>> unreachable :)
>>>>>>>
>>>>>>> Based on your logs, I'm not certain that will fix your 500,
>>>>>>> however.
>>>>>>>
>>>>>>> -Dolph
>>>>>>>
>>>>>>> On Mon, May 7, 2012 at 5:23 AM, Leander Bessa <leanderbb [at] gmail>wrote:
>>>>>>>
>>>>>>>> This is as much as i can capture at the moment.
>>>>>>>> http://paste.openstack.org/show/15899/
>>>>>>>>
>>>>>>>> For some reason, nothing is written to the logs, am i forgetting
>>>>>>>> a flag or something?
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, May 4, 2012 at 11:30 PM, Yuriy Taraday <yorik.sar [at] gmail
>>>>>>>> > wrote:
>>>>>>>>
>>>>>>>>> Please post to http://paste.openstack.org error text and backtrace
>>>>>>>>> from nova-api.log.
>>>>>>>>>
>>>>>>>>> Kind regards, Yuriy.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, May 4, 2012 at 6:13 PM, Leander Bessa <leanderbb [at] gmail>
>>>>>>>>> wrote:
>>>>>>>>> > Hello,
>>>>>>>>> >
>>>>>>>>> > I seem to be unable to list the images available in glance. I'm
>>>>>>>>> not sure why
>>>>>>>>> > this is happening. I've check the logs for nova-api, glance-api
>>>>>>>>> and
>>>>>>>>> > glance-registry and am unable to found anything out of the
>>>>>>>>> ordinary.
>>>>>>>>> >
>>>>>>>>> > Below is an output from the command 'nova image-list'
>>>>>>>>> >>
>>>>>>>>> >> REQ: curl -i http://192.168.164.128:5000/v2.0/tokens -X POST -H
>>>>>>>>> >> "Content-Type: application/json" -H "Accept: application/json"
>>>>>>>>> -H
>>>>>>>>> >> "User-Agent: python-novaclient"
>>>>>>>>> >> REQ BODY: {"auth": {"tenantName": "admin",
>>>>>>>>> "passwordCredentials":
>>>>>>>>> >> {"username": "admin", "password": "nova"}}}
>>>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT',
>>>>>>>>> 'transfer-encoding':
>>>>>>>>> >> 'chunked', 'status': '200', 'vary': 'X-Auth-Token',
>>>>>>>>> 'content-type':
>>>>>>>>> >> 'application/json'} {"access": {"token": {"expires":
>>>>>>>>> "2012-05-05T14:08:53Z",
>>>>>>>>> >> "id": "c6d3145f1e924982982b54e52b97bec9", "tenant":
>>>>>>>>> {"description": null,
>>>>>>>>> >> "enabled": true, "id": "765a2012198f4751b8457c49932ec80d",
>>>>>>>>> "name":
>>>>>>>>> >> "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL":
>>>>>>>>> >> "
>>>>>>>>> http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>>>> "region":
>>>>>>>>> >> "nova", "internalURL":
>>>>>>>>> >> "
>>>>>>>>> http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>>>> >> "publicURL":
>>>>>>>>> >> "
>>>>>>>>> http://192.168.164.128:8776/v2/765a2012198f4751b8457c49932ec80d
>>>>>>>>> "}],
>>>>>>>>> >> "endpoints_links": [], "type": "volume", "name": "volume"},
>>>>>>>>> {"endpoints":
>>>>>>>>> >> [{"adminURL":
>>>>>>>>> >>
>>>>>>>>> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"
>>>>>>>>> ,
>>>>>>>>> >> "region": "nova", "internalURL": "http://127.0.0.1:8080",
>>>>>>>>> "publicURL":
>>>>>>>>> >>
>>>>>>>>> "http://${SWIFT_HOST}:8080/v1/AUTH_765a2012198f4751b8457c49932ec80d"
>>>>>>>>> }],
>>>>>>>>> >> "endpoints_links": [], "type": "storage", "name": "swift"},
>>>>>>>>> {"endpoints":
>>>>>>>>> >> [{"adminURL": "http://192.168.164.128:9292/v1", "region":
>>>>>>>>> "nova",
>>>>>>>>> >> "internalURL": "http://192.168.164.128:9292/v1", "publicURL":
>>>>>>>>> >> "http://192.168.164.128:9292/v1"}], "endpoints_links": [],
>>>>>>>>> "type": "image",
>>>>>>>>> >> "name": "glance"}, {"endpoints": [{"adminURL":
>>>>>>>>> >> "
>>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>>>> "region":
>>>>>>>>> >> "nova", "internalURL":
>>>>>>>>> >> "
>>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d",
>>>>>>>>> >> "publicURL":
>>>>>>>>> >> "
>>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d
>>>>>>>>> "}],
>>>>>>>>> >> "endpoints_links": [], "type": "compute", "name": "nova"},
>>>>>>>>> {"endpoints":
>>>>>>>>> >> [{"adminURL": "http://192.168.164.128:5000/v2.0", "region":
>>>>>>>>> "nova",
>>>>>>>>> >> "internalURL": "http://192.168.164.128:5000/v2.0", "publicURL":
>>>>>>>>> >> "http://192.168.164.128:35357/v2.0"}], "endpoints_links": [],
>>>>>>>>> "type":
>>>>>>>>> >> "identity", "name": "keystone"}], "user": {"username": "admin",
>>>>>>>>> >> "roles_links": [], "id": "842c74e5daa246239426f92b6f5c5dba",
>>>>>>>>> "roles":
>>>>>>>>> >> [{"id": "d6d2f681acbf4f91a3bd3522e1c006ae", "name": "admin"},
>>>>>>>>> {"id":
>>>>>>>>> >> "e1428c3c9403494494b53393660a930a", "name":
>>>>>>>>> "KeystoneServiceAdmin"}, {"id":
>>>>>>>>> >> "f2a9436d68974a049547c08324a37aed", "name": "KeystoneAdmin"}],
>>>>>>>>> "name":
>>>>>>>>> >> "admin"}}}
>>>>>>>>> >> REQ: curl -i
>>>>>>>>> >>
>>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>>>>>> python-novaclient" -H
>>>>>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>>>>>> >> REQ: curl -i
>>>>>>>>> >>
>>>>>>>>> http://192.168.164.128:8774/v2/765a2012198f4751b8457c49932ec80d/images/detail
>>>>>>>>> >> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent:
>>>>>>>>> python-novaclient" -H
>>>>>>>>> >> "Accept: application/json" -H "X-Auth-Token:
>>>>>>>>> >> c6d3145f1e924982982b54e52b97bec9"
>>>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>>>>>> charset=UTF-8',
>>>>>>>>> >> 'x-compute-request-id':
>>>>>>>>> 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>>>>>> incapable of
>>>>>>>>> >> performing the requested operation.", "code": 500}}
>>>>>>>>> >> RESP:{'date': 'Fri, 04 May 2012 14:08:53 GMT', 'status': '500',
>>>>>>>>> >> 'content-length': '128', 'content-type': 'application/json;
>>>>>>>>> charset=UTF-8',
>>>>>>>>> >> 'x-compute-request-id':
>>>>>>>>> 'req-3e953b5d-5953-438f-bd9b-20f52f2f4bf2'}
>>>>>>>>> >> {"computeFault": {"message": "The server has either erred or is
>>>>>>>>> incapable of
>>>>>>>>> >> performing the requested operation.", "code": 500}}
>>>>>>>>> >
>>>>>>>>> > I'm using ubuntu 12.04 with the default repository packages. All
>>>>>>>>> the
>>>>>>>>> > services are running.
>>>>>>>>> >
>>>>>>>>> > Regards,
>>>>>>>>> >
>>>>>>>>> > Leander
>>>>>>>>> >
>>>>>>>>> > _______________________________________________
>>>>>>>>> > Mailing list: https://launchpad.net/~openstack
>>>>>>>>> > Post to : openstack [at] lists
>>>>>>>>> > Unsubscribe : https://launchpad.net/~openstack
>>>>>>>>> > More help : https://help.launchpad.net/ListHelp
>>>>>>>>> >
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Mailing list: https://launchpad.net/~openstack
>>>>>>>> Post to : openstack [at] lists
>>>>>>>> Unsubscribe : https://launchpad.net/~openstack
>>>>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack [at] lists
>> Unsubscribe : https://launchpad.net/~openstack
>> More help : https://help.launchpad.net/ListHelp
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack [at] lists
>> Unsubscribe : https://launchpad.net/~openstack
>> More help : https://help.launchpad.net/ListHelp
>>
>>
>

OpenStack dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.