Re: [Openstack] retrieve all instances whatever tenant/user via python SDK

2016-06-09 Thread Tobias Urdin
Hello, Auth using the admin user then list all instances in all tenants, should be something like: client.servers.list(search_opts={'all_tenants': 1}) You should search, there is a lot of resources online that could help you out. For example if you would have searched:

Re: [Openstack] retrieve all instances whatever tenant/user via python SDK

2016-06-08 Thread Leslie-Alexandre DENIS
d to issue a request for every >tenant !! > >Any idea is welcome. > >Thx for help. >Grazie mille. > >J.P. > >From: Remo Mattei [mailto:r...@italy1.com] >Sent: mercredi 8 juin 2016 17:07 >To: Jean-Pierre Ribeauville >Cc: openstack@lists.openstack.org >Subject: Re:

Re: [Openstack] retrieve all instances whatever tenant/user via python SDK

2016-06-08 Thread Jean-Pierre Ribeauville
Ribeauville Sent: mercredi 8 juin 2016 17:24 To: 'Remo Mattei' Cc: openstack@lists.openstack.org Subject: RE: [Openstack] retrieve all instances whatever tenant/user via python SDK Hi, nova list --all-t works fine ( with “admin” environment variables). So it means that , within the python code

Re: [Openstack] retrieve all instances whatever tenant/user via python SDK

2016-06-08 Thread Remo Mattei
Did you try the nova list --all-t Ciao Inviato da iPhone > Il giorno 08 giu 2016, alle ore 06:20, Jean-Pierre Ribeauville > ha scritto: > > Hi all, > > By running this piece if code : > > ……… > def get_nova_credentials_v2(): > d = {} > d['version'] = '2'

[Openstack] retrieve all instances whatever tenant/user via python SDK

2016-06-08 Thread Jean-Pierre Ribeauville
Hi all, By running this piece if code : . def get_nova_credentials_v2(): d = {} d['version'] = '2' d['username'] = os.environ['OS_USERNAME'] d['api_key'] = os.environ['OS_PASSWORD'] d['auth_url'] = os.environ['OS_AUTH_URL'] d['project_id'] =