← Back to team overview

openstack team mailing list archive

Re: nova image-list error

 

On Fri, Mar 8, 2013 at 9:27 PM, Sylvain Bauza <sylvain.bauza@xxxxxxxxxxxx>wrote:

>  Glad to hear that.
>
> Do that mean you forgot to restart nova-* ?
>
Yes, nova-* services after making changes to the configuration files.

>
> -Sylvain
>
> Le 08/03/2013 15:54, Ashutosh Narayan a écrit :
>
> Hi Sylvain,
>
>  I was able to resolve this issue.
> I edited nova.conf file and checked relevant services were up
> or not. It showed the desired output.
>
>  Thank you,
>
> On Fri, Mar 8, 2013 at 7:30 PM, Ashutosh Narayan <
> aashutoshnarayan@xxxxxxxxx> wrote:
>
>> Hi Sylvain,
>>
>> I followed this link<http://docs.openstack.org/trunk/openstack-compute/install/yum/content/keystone-service-endpoint-create.html>to set Nova Compute service
>>  Here is the command I ran earlier to set it :
>>
>>  [root@RLD1OPST01 ~]#  keystone --token 58e7c511e8e6ad09be56 --endpoint
>> http://192.168.105.61:35357/v2.0/ endpoint-create --region RegionOne
>>  --service-id=5d144f9df18d4b35810afb4199b1a321 --publicurl='
>> http://192.168.105.61:8774/v2/%(tenant_id)s' --internalurl='
>> http://192.168.105.61:8774/v2/%(tenant_id)s' --adminurl='
>> http://192.168.105.61:8774/v2/%(tenant_id)s'
>>
>>  And keystone service-list shows that service id set for Nova Compute
>> Service
>> which can be seen below --
>>
>>   [root@RLD1OPST01 ~]# keystone service-list
>>
>> +----------------------------------+----------+--------------+---------------------------+
>> |                id                |   name   |     type     |
>>  description        |
>>
>> +----------------------------------+----------+--------------+---------------------------+
>> | 5d144f9df18d4b35810afb4199b1a321 |   nova   |   compute    |    Nova
>> Compute Service   |
>>
>> I am stuck here and can't proceed to nova secgroup-list which also throws the same error.
>>
>> Please help.
>>
>> Thank you,
>>
>>
>>  On Fri, Mar 8, 2013 at 7:05 PM, Ashutosh Narayan <
>> aashutoshnarayan@xxxxxxxxx> wrote:
>>
>>> As per point number '2'
>>> 2) Check that the tenant ID in the request matches the tenant you are
>>> authenticated under
>>> mentioned in the link you sent where can I verify this ?
>>>
>>>  On Fri, Mar 8, 2013 at 6:45 PM, Ashutosh Narayan <
>>> aashutoshnarayan@xxxxxxxxx> wrote:
>>>
>>>> I have auth_strategy = keystone defined in nova.conf.
>>>>
>>>>  Tenant ID is also set for the same. Any changes I need to do here ?
>>>> What else should I see ?
>>>>
>>>> On Fri, Mar 8, 2013 at 6:30 PM, Sylvain Bauza <
>>>> sylvain.bauza@xxxxxxxxxxxx> wrote:
>>>>
>>>>>  https://answers.launchpad.net/nova/+faq/2004
>>>>>
>>>>> Make sure auth_strategy = keystone is defined in nova.conf
>>>>>
>>>>> -Sylvain
>>>>>
>>>>> Le 08/03/2013 13:21, Ashutosh Narayan a écrit :
>>>>>
>>>>> Hi Sylvain,
>>>>>
>>>>>  Here is the content of ketstonerc file :
>>>>>
>>>>>  [root@RLD1OPST01 ~]# cat keystonerc
>>>>> export OS_USERNAME=admin
>>>>> export OS_PASSWORD=xxxxx
>>>>> export OS_TENANT_NAME=demo
>>>>> export OS_AUTH_URL=http://192.168.105.61:35357/v2.0
>>>>>
>>>>>  keystone endpoint-list throws :
>>>>>
>>>>>  [root@RLD1OPST01 ~]# keystone endpoint-list
>>>>>
>>>>> +----------------------------------+-----------+--------------------------------------------------+--------------------------------------------------+---------------------------------------------+----------------------------------+
>>>>> |                id                |   region  |
>>>>>  publicurl                     |                   internalurl
>>>>>        |                   adminurl                  |
>>>>>  service_id            |
>>>>>
>>>>> +----------------------------------+-----------+--------------------------------------------------+--------------------------------------------------+---------------------------------------------+----------------------------------+
>>>>> | 50bb93035d9a4a18aacafdd895906f10 | RegionOne |
>>>>> http://192.168.105.61:8888/v1/AUTH_%(tenant_id)s |
>>>>> http://192.168.105.61:8888/v1/AUTH_%(tenant_id)s |
>>>>> http://192.168.105.61:8888/v1        |
>>>>> 76772ef3f79b4648981f19de39d4cab1 |
>>>>> | 749974748ce8482bb2339954631baea5 | RegionOne |
>>>>> http://192.168.105.61:8773/services/Cloud     |
>>>>> http://192.168.105.61:8773/services/Cloud     |
>>>>> http://192.168.105.61:8773/services/Admin  |
>>>>> 75748b8502964bf8aab214c074058a08 |
>>>>> | 80a940e76e314148bc349578ce8eadf7 | RegionOne |
>>>>> http://192.168.105.61:8776/v1/%(tenant_id)s    |
>>>>> http://192.168.105.61:8776/v1/%(tenant_id)s    |
>>>>> http://192.168.105.61:8776/v1/%(tenant_id)s |
>>>>> a5da6ff105184cbda9a3619d41d297f6 |
>>>>> | 897375e2d299416db3281d1b8baeabc1 | RegionOne |
>>>>> http://192.168.105.61:8774/v2/%(tenant_id)s    |
>>>>> http://192.168.105.61:8774/v2/%(tenant_id)s    |
>>>>> http://192.168.105.61:8774/v2/%(tenant_id)s |
>>>>> 5d144f9df18d4b35810afb4199b1a321 |
>>>>> | cc2fd4c2b1314cfb958e8702139a960c | RegionOne |
>>>>> http://192.168.105.61:5000/v2.0          |
>>>>> http://192.168.105.61:5000/v2.0          |
>>>>> http://192.168.105.61:35357/v2.0      |
>>>>> d307d545040e4bda8ace9a7fd3581cb2 |
>>>>> | e2d7819ff84746dc8e79c76bf308f2cd | RegionOne |
>>>>> http://192.168.105.61:9292            |
>>>>> http://192.168.105.61:9292            |
>>>>> http://192.168.105.61:9292         | 96299197a84a43d7a3932c5c6ae53ca0
>>>>> |
>>>>>
>>>>> +----------------------------------+-----------+--------------------------------------------------+--------------------------------------------------+---------------------------------------------+----------------------------------+
>>>>>
>>>>>  Keystone service-list throws :
>>>>>
>>>>>  [root@RLD1OPST01 ~]# keystone service-list
>>>>>
>>>>> +----------------------------------+----------+--------------+---------------------------+
>>>>> |                id                |   name   |     type     |
>>>>>  description        |
>>>>>
>>>>> +----------------------------------+----------+--------------+---------------------------+
>>>>> | 5d144f9df18d4b35810afb4199b1a321 |   nova   |   compute    |    Nova
>>>>> Compute Service   |
>>>>> | 75748b8502964bf8aab214c074058a08 |   ec2    |     ec2      |  EC2
>>>>> Compatibility Layer  |
>>>>> | 76772ef3f79b4648981f19de39d4cab1 |  swift   | object-store |
>>>>> Object Storage Service  |
>>>>> | 96299197a84a43d7a3932c5c6ae53ca0 |  glance  |    image     |
>>>>>  Glance Image Service   |
>>>>> | a5da6ff105184cbda9a3619d41d297f6 |  volume  |    volume    |    Nova
>>>>> Volume Service    |
>>>>> | d307d545040e4bda8ace9a7fd3581cb2 | keystone |   identity   |
>>>>> Keystone Identity Service |
>>>>>
>>>>> +----------------------------------+----------+--------------+---------------------------+
>>>>>
>>>>>  nova list also throws the same error.
>>>>>
>>>>>  On Fri, Mar 8, 2013 at 5:44 PM, Sylvain Bauza <
>>>>> sylvain.bauza@xxxxxxxxxxxx> wrote:
>>>>>
>>>>>>  Could you please tell us :
>>>>>>  - your credentials (except password of course)
>>>>>>  - 'keystone endpoint-list'
>>>>>>  - 'keystone service-list'
>>>>>>
>>>>>> It seems like you're requesting a wrong API.
>>>>>>
>>>>>> Is 'nova list' working btw ?
>>>>>>
>>>>>> -Sylvain
>>>>>>
>>>>>>  Le 08/03/2013 12:56, Ashutosh Narayan a écrit :
>>>>>>
>>>>>>  Services nova-compute, nova-api, nova-scheduler, nova-network are
>>>>>> running fine.
>>>>>> Still am facing this issue. I can't proceed from here. Please help
>>>>>>
>>>>>> On Fri, Mar 8, 2013 at 4:46 PM, Ashutosh Narayan <
>>>>>> aashutoshnarayan@xxxxxxxxx> wrote:
>>>>>>
>>>>>>> Hi folks,
>>>>>>>
>>>>>>>  I get the following error message while running nova image-list.
>>>>>>>
>>>>>>>  [root@RLD1OPST01 ~]# nova image-list
>>>>>>> ERROR: Malformed request url (HTTP 400) (Request-ID:
>>>>>>> req-96acb3fd-3fbe-4f71-ba5f-8d143f1da502)
>>>>>>>
>>>>>>>  But #glance index works fine.
>>>>>>>
>>>>>>>  [root@RLD1OPST01 ~]# glance index
>>>>>>> ID                                   Name
>>>>>>> Disk Format          Container Format     Size
>>>>>>> ------------------------------------ ------------------------------
>>>>>>> -------------------- -------------------- --------------
>>>>>>> 4448d100-d230-4556-a98c-2d15054a4f0a cirros-0.3.0-x86_64
>>>>>>>  qcow2                bare                        9761280
>>>>>>> 709fd1b2-9f2a-40f1-b7a8-09cdd04964c9 tty-linux
>>>>>>>  ami                  ami                        25165824
>>>>>>> deb541dc-2e67-40c1-ac8f-d934962c04df tty-linux-ramdisk
>>>>>>>  ari                  ari                           96629
>>>>>>> e1043470-0d97-4ddc-8f84-d15870040093 tty-linux-kernel
>>>>>>> aki                  aki                         4404752
>>>>>>>
>>>>>>>  I am following this link<http://docs.openstack.org/trunk/openstack-compute/install/yum/content/uploading-to-glance.html>
>>>>>>>
>>>>>>> Any suggestions ?
>>>>>>>
>>>>>>>  Thank you,
>>>>>>> --
>>>>>>> Ashutosh Narayan
>>>>>>>
>>>>>>> http://ashutoshn.wordpress.com/
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>  --
>>>>>> Ashutosh Narayan
>>>>>>
>>>>>> http://ashutoshn.wordpress.com/
>>>>>>
>>>>>>
>>>>>>
>>>>>>  _______________________________________________
>>>>>> Mailing list: https://launchpad.net/~openstack
>>>>>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>>>>>> Unsubscribe : https://launchpad.net/~openstack
>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list: https://launchpad.net/~openstack
>>>>>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>>>>>> Unsubscribe : https://launchpad.net/~openstack
>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>  --
>>>>> Ashutosh Narayan
>>>>>
>>>>> http://ashutoshn.wordpress.com/
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>  --
>>>> Ashutosh Narayan
>>>>
>>>> http://ashutoshn.wordpress.com/
>>>>
>>>>
>>>
>>>
>>>  --
>>> Ashutosh Narayan
>>>
>>> http://ashutoshn.wordpress.com/
>>>
>>>
>>
>>
>>  --
>> Ashutosh Narayan
>>
>> http://ashutoshn.wordpress.com/
>>
>>
>
>
>  --
> Ashutosh Narayan
>
> http://ashutoshn.wordpress.com/
>
>
>


-- 
Ashutosh Narayan

http://ashutoshn.wordpress.com/

References