← Back to team overview

openstack team mailing list archive

Re: Fwd: nova endpoint in keystone

 

You are welcome!

On Mon, Mar 12, 2012 at 12:56 PM, Roman Sokolkov <rsokolkov@xxxxxxxxx>wrote:

> Yeah, thanks! that solved problem
>
> --auth_strategy=keystone
>
>
> 2012/3/7 Ghe Rivero <ghe.rivero@xxxxxxxxxxxx>
>
>> Hi,
>>     do you have "auth_strategy=keystone" or similar in your nova.conf
>> file?
>>
>> Ghe Rivero
>>
>>
>> On Wed, Mar 7, 2012 at 7:21 AM, Roman Sokolkov <rsokolkov@xxxxxxxxx>wrote:
>>
>>> and in nova-api.log
>>>
>>> 2012-03-07 10:16:23 INFO nova.api.openstack.wsgi
>>> [req-384a202a-45c6-4aa7-9a92-a8ad15f8ec3c 7e749fed4cee4999ac86a79044c68d1b
>>> 7e749fed4cee4999ac86a79044c68d1b] GET
>>> http://127.0.0.1:8774/v2/6b2fa9e4aadf48e7b0d44ad6a0eea6a8/servers/detail
>>> 2012-03-07 10:16:23 DEBUG nova.api.openstack.wsgi
>>> [req-384a202a-45c6-4aa7-9a92-a8ad15f8ec3c 7e749fed4cee4999ac86a79044c68d1b
>>> 7e749fed4cee4999ac86a79044c68d1b] Unrecognized Content-Type provided in
>>> request from (pid=29743) get_body
>>> /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:694
>>>
>>> ---------- Forwarded message ----------
>>> From: Roman Sokolkov <rsokolkov@xxxxxxxxx>
>>> Date: 2012/3/7
>>> Subject: Re: [Openstack] nova endpoint in keystone
>>> To: Dolph Mathews <dolph.mathews@xxxxxxxxx>
>>>
>>>
>>> Thanks, but from keystone client I couldn't add  *$(tenant_id)s* , but
>>> could  %*(tenant_id)s*  and it fixed this problem. But I have another
>>> one
>>>
>>> # nova --debug list
>>> connect: (127.0.0.1, 5000)
>>> send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length:
>>> 103\r\ncontent-type: application/json\r\naccept-encoding: gzip,
>>> deflate\r\naccept: application/json\r\nuser-agent:
>>> python-novaclient\r\n\r\n{"auth": {"tenantName": "admin",
>>> "passwordCredentials": {"username": "demouser2", "password": "demo"}}}'
>>> reply: 'HTTP/1.1 200 OK\r\n'
>>> header: Content-Type: application/json
>>> header: Vary: X-Auth-Token
>>> header: Date: Wed, 07 Mar 2012 06:16:23 GMT
>>> header: Transfer-Encoding: chunked
>>> connect: (127.0.0.1, 8774)
>>> send: u'GET /v2/6b2fa9e4aadf48e7b0d44ad6a0eea6a8/servers/detail
>>> HTTP/1.1\r\nHost: 127.0.0.1:8774\r\nx-auth-project-id:
>>> admin\r\nx-auth-token: 7e749fed4cee4999ac86a79044c68d1b\r\naccept-encoding:
>>> gzip, deflate\r\naccept: application/json\r\nuser-agent:
>>> python-novaclient\r\n\r\n'
>>> reply: 'HTTP/1.1 400 Bad Request\r\n'
>>> header: Content-Length: 65
>>> header: Content-Type: application/json; charset=UTF-8
>>> header: Date: Wed, 07 Mar 2012 06:16:23 GMT
>>> DEBUG (shell:384) Malformed request url (HTTP 400)
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 381,
>>> in main
>>>     OpenStackComputeShell().main(sys.argv[1:])
>>>   File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 332,
>>> in main
>>>     args.func(self.cs, args)
>>>   File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line
>>> 465, in do_list
>>>     utils.print_list(cs.servers.list(search_opts=search_opts), columns,
>>>   File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py",
>>> line 265, in list
>>>     return self._list("/servers%s%s" % (detail, query_string), "servers")
>>>   File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 74,
>>> in _list
>>>     resp, body = self.api.client.get(url)
>>>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line
>>> 132, in get
>>>     return self._cs_request(url, 'GET', **kwargs)
>>>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line
>>> 120, in _cs_request
>>>     **kwargs)
>>>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line
>>> 103, in request
>>>     raise exceptions.from_response(resp, body)
>>> BadRequest: Malformed request url (HTTP 400)
>>> ERROR: Malformed request url (HTTP 400)
>>>
>>>
>>>
>>>  2012/3/6 Dolph Mathews <dolph.mathews@xxxxxxxxx>
>>>
>>>> Try using *$(tenant_id)s* instead of *%tenant_id%*
>>>>
>>>> On Tue, Mar 6, 2012 at 10:38 AM, Roman Sokolkov <rsokolkov@xxxxxxxxx>wrote:
>>>>
>>>>> Hi, folks!
>>>>>
>>>>> I use essex-4 packages for ubuntu. I ve added endpoint in keystone
>>>>>
>>>>> *keystone endpoint-create --region=nova
>>>>> --service_id=264d572eaccc44f69b465a571983496f --publicurl=
>>>>> http://127.0.0.1:8774/v2/%tenant_id% --internalurl=
>>>>> http://127.0.0.1:8774/v2/%tenant_id% --adminurl=
>>>>> http://127.0.0.1:35357/v2/%tenant_id%*
>>>>>
>>>>> and try to
>>>>>
>>>>> *nova list*
>>>>>
>>>>> keystone has a traceback. ends with
>>>>>
>>>>>   File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py",
>>>>> line 180, in __call__
>>>>>     result = method(context, **params)
>>>>>   File "/usr/lib/python2.7/dist-packages/keystone/service.py", line
>>>>> 294, in authenticate
>>>>>     metadata=metadata_ref)
>>>>>   File "/usr/lib/python2.7/dist-packages/keystone/common/manager.py",
>>>>> line 34, in _wrapper
>>>>>     return f(*args, **kw)
>>>>>   File
>>>>> "/usr/lib/python2.7/dist-packages/keystone/catalog/backends/sql.py", line
>>>>> 163, in get_catalog
>>>>>     catalog[region][srv_type]['publicURL'] = public_url % d
>>>>> ValueError: unsupported format character 't' (0x74) at index 27
>>>>>
>>>>> if
>>>>>
>>>>> *keystone endpoint-create --region=nova
>>>>> --service_id=264d572eaccc44f69b465a571983496f --publicurl=
>>>>> http://127.0.0.1:8774/v2/ --internalurl=http://127.0.0.1:8774/v2/--adminurl=
>>>>> http://127.0.0.1:35357/v2/*
>>>>>
>>>>> *nova list*
>>>>>
>>>>>
>>>>> ERROR: n/a (HTTP 404)
>>>>>  --
>>>>> Regards, Roman Sokolkov
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~openstack
>>>>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~openstack
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Regards, Roman Sokolkov
>>>
>>>
>>>
>>> --
>>> Regards, Roman Sokolkov
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Ghe Rivero
>> *OpenStack & Distribution Engineer
>> **www.stackops.com | * ghe.rivero@xxxxxxxxxxxx<diego.parrilla@xxxxxxxxxxxx>
>> ** | +34 625 63 45 23 | skype:ghe.rivero*
>> * <http://www.stackops.com/>
>> *
>>
>> *
>>
>> ******************** ADVERTENCIA LEGAL ********************
>> Le informamos, como destinatario de este mensaje, que el correo
>> electrónico y las comunicaciones por medio de Internet no permiten asegurar
>> ni garantizar la confidencialidad de los mensajes transmitidos, así como
>> tampoco su integridad o su correcta recepción, por lo que STACKOPS
>> TECHNOLOGIES S.L. no asume responsabilidad alguna por tales circunstancias.
>> Si no consintiese en la utilización del correo electrónico o de las
>> comunicaciones vía Internet le rogamos nos lo comunique y ponga en nuestro
>> conocimiento de manera inmediata. Este mensaje va dirigido, de manera
>> exclusiva, a su destinatario y contiene información confidencial y sujeta
>> al secreto profesional, cuya divulgación no está permitida por la ley. En
>> caso de haber recibido este mensaje por error, le rogamos que, de forma
>> inmediata, nos lo comunique mediante correo electrónico remitido a nuestra
>> atención y proceda a su eliminación, así como a la de cualquier documento
>> adjunto al mismo. Asimismo, le comunicamos que la distribución, copia o
>> utilización de este mensaje, o de cualquier documento adjunto al mismo,
>> cualquiera que fuera su finalidad, están prohibidas por la ley.
>>
>> ***************** PRIVILEGED AND CONFIDENTIAL ****************
>> We hereby inform you, as addressee of this message, that e-mail and
>> Internet do not guarantee the confidentiality, nor the completeness or
>> proper reception of the messages sent and, thus, STACKOPS TECHNOLOGIES S.L.
>> does not assume any liability for those circumstances. Should you not agree
>> to the use of e-mail or to communications via Internet, you are kindly
>> requested to notify us immediately. This message is intended exclusively
>> for the person to whom it is addressed and contains privileged and
>> confidential information protected from disclosure by law. If you are not
>> the addressee indicated in this message, you should immediately delete it
>> and any attachments and notify the sender by reply e-mail. In such case,
>> you are hereby notified that any dissemination, distribution, copying or
>> use of this message or any attachments, for any purpose, is strictly
>> prohibited by law.
>>
>>
>
>
> --
> Regards, Roman Sokolkov
>



-- 
Ghe Rivero
*OpenStack & Distribution Engineer
**www.stackops.com | * ghe.rivero@xxxxxxxxxxxx <diego.parrilla@xxxxxxxxxxxx>
** | +34 625 63 45 23 | skype:ghe.rivero*
* <http://www.stackops.com/>
*

*

******************** ADVERTENCIA LEGAL ********************
Le informamos, como destinatario de este mensaje, que el correo electrónico
y las comunicaciones por medio de Internet no permiten asegurar ni
garantizar la confidencialidad de los mensajes transmitidos, así como
tampoco su integridad o su correcta recepción, por lo que STACKOPS
TECHNOLOGIES S.L. no asume responsabilidad alguna por tales circunstancias.
Si no consintiese en la utilización del correo electrónico o de las
comunicaciones vía Internet le rogamos nos lo comunique y ponga en nuestro
conocimiento de manera inmediata. Este mensaje va dirigido, de manera
exclusiva, a su destinatario y contiene información confidencial y sujeta
al secreto profesional, cuya divulgación no está permitida por la ley. En
caso de haber recibido este mensaje por error, le rogamos que, de forma
inmediata, nos lo comunique mediante correo electrónico remitido a nuestra
atención y proceda a su eliminación, así como a la de cualquier documento
adjunto al mismo. Asimismo, le comunicamos que la distribución, copia o
utilización de este mensaje, o de cualquier documento adjunto al mismo,
cualquiera que fuera su finalidad, están prohibidas por la ley.

***************** PRIVILEGED AND CONFIDENTIAL ****************
We hereby inform you, as addressee of this message, that e-mail and
Internet do not guarantee the confidentiality, nor the completeness or
proper reception of the messages sent and, thus, STACKOPS TECHNOLOGIES S.L.
does not assume any liability for those circumstances. Should you not agree
to the use of e-mail or to communications via Internet, you are kindly
requested to notify us immediately. This message is intended exclusively
for the person to whom it is addressed and contains privileged and
confidential information protected from disclosure by law. If you are not
the addressee indicated in this message, you should immediately delete it
and any attachments and notify the sender by reply e-mail. In such case,
you are hereby notified that any dissemination, distribution, copying or
use of this message or any attachments, for any purpose, is strictly
prohibited by law.

References