Re: [openstack-dev] [keystone] keystone client service_catalog is None
Thank you Boris for the pointers! On 12/9/17, 7:07 AM, "Boris Bobrov"wrote: >Hi, > >Have a look at how openstackclient does this. Read this code: >https://github.com/openstack/python-openstackclient/blob/master/openstackc >lient/identity/v3/catalog.py#L43 >and then this code: >https://github.com/openstack/osc-lib/blob/master/osc_lib/clientmanager.py# >L239 > > >On 09.12.2017 04:15, Eric K wrote: >> Hi all, >> >> I'm working on some code [1] that attempts to retrieve a endpoint from >>the >> service_catalog, but the service_catalog comes up None. Any suggestions >>on >> what I need to do differently to get a working service_catalog? Thanks >> very much! >> >> Python 2.7.12 (default, Nov 20 2017, 18:23:56) >> [GCC 5.4.0 20160609] on linux2 > from keystoneauth1 import session # Version 2.12.1 > from keystoneauth1.identity import v2 > import keystoneclient.v3.client as ksclient > auth = v2.Password(auth_url='http://127.0.0.1/identity', > username='admin', password='password', tenant_name='admin') > sess = session.Session(auth=auth) > keystone = ksclient.Client(session=sess) > print(keystone.service_catalog) >> None >> >> >> >> [1] >> >>https://review.openstack.org/#/c/526813/1/congress/datasources/monasca_dr >>iv >> er.py@94 >> >> >> >> >>_ >>_ >> OpenStack Development Mailing List (not for usage questions) >> Unsubscribe: >>openstack-dev-requ...@lists.openstack.org?subject:unsubscribe >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> > >__ >OpenStack Development Mailing List (not for usage questions) >Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe >http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [keystone] keystone client service_catalog is None
Hi, Have a look at how openstackclient does this. Read this code: https://github.com/openstack/python-openstackclient/blob/master/openstackclient/identity/v3/catalog.py#L43 and then this code: https://github.com/openstack/osc-lib/blob/master/osc_lib/clientmanager.py#L239 On 09.12.2017 04:15, Eric K wrote: > Hi all, > > I'm working on some code [1] that attempts to retrieve a endpoint from the > service_catalog, but the service_catalog comes up None. Any suggestions on > what I need to do differently to get a working service_catalog? Thanks > very much! > > Python 2.7.12 (default, Nov 20 2017, 18:23:56) > [GCC 5.4.0 20160609] on linux2 from keystoneauth1 import session # Version 2.12.1 from keystoneauth1.identity import v2 import keystoneclient.v3.client as ksclient auth = v2.Password(auth_url='http://127.0.0.1/identity', username='admin', password='password', tenant_name='admin') sess = session.Session(auth=auth) keystone = ksclient.Client(session=sess) print(keystone.service_catalog) > None > > > > [1] > https://review.openstack.org/#/c/526813/1/congress/datasources/monasca_driv > er.py@94 > > > > __ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] [keystone] keystone client service_catalog is None
Hi all, I'm working on some code [1] that attempts to retrieve a endpoint from the service_catalog, but the service_catalog comes up None. Any suggestions on what I need to do differently to get a working service_catalog? Thanks very much! Python 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609] on linux2 >>> from keystoneauth1 import session # Version 2.12.1 >>> from keystoneauth1.identity import v2 >>> import keystoneclient.v3.client as ksclient >>> auth = v2.Password(auth_url='http://127.0.0.1/identity', >>>username='admin', password='password', tenant_name='admin') >>> sess = session.Session(auth=auth) >>> keystone = ksclient.Client(session=sess) >>> print(keystone.service_catalog) None [1] https://review.openstack.org/#/c/526813/1/congress/datasources/monasca_driv er.py@94 __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev