Hello. Just guessing here, is 3.x_oidc_access_token what you want for ex_force_auth_version? https://libcloud.readthedocs.io/en/stable/compute/drivers/openstack.html
Dan On 6/2/21, 1:01 PM, "Massimo Canonico" <[email protected]> wrote: Caution: This email is from an external sender. Please do not click links or open attachments unless you recognize the sender and know the content is safe. Forward suspicious emails to isitbad@. Hi, I'm using the openstack cloud provided by chameleon project and they use the v3oidcpassword. After my signature, I paste the script that I'm trying to use but it does not work. Do you have any suggestion in order to have libcloud working? I read something related to "openstack token issue" trick but I'm not sure how to use id and user_id provided by the previous command inside my script. Thank in advance, Massimo from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver auth_username = 'mcanonic' auth_password = '<MY_PASSOWORD>' project_name = 'CCC-19/20' auth_url = 'https://kvm.tacc.chameleoncloud.org:5000' region_name = 'KVM@TACC' provider = get_driver(Provider.OPENSTACK) conn = provider(auth_username,auth_password,ex_force_auth_url=auth_url,ex_force_auth_version='3.x_password',ex_tenant_name=project_name,ex_force_service_region=region_name,api_version='2.1') instances = conn.list_nodes() i = 1 for instance in instances: print(i,"):",instance.name) i += 1
