Using CERN Openstack cloud resource with libcloud module.

14 views
Skip to first unread message

Vladimir Romanovsky

unread,
Nov 22, 2022, 4:22:21 AM11/22/22
to diracgrid-forum
Have anybody experience of authorization to CERN Openstack  with libcloud?

For example, minimal yaml file for authorization with help of openstack command is
clouds: 
    roma: 
      auth: 
        auth_url: https://keystone.cern.ch/v3 
         project_name: Personal romanov 
         username: romanov
         password: <XXXXXXXXX> 
        project_domain_id: default 
        user_domain_name: Default
How convert parameters of openstack to libclaud, like
OpenStack = get_driver(Provider.OPENSTACK) 
driver = OpenStack(
 ...: "romanov",
 ...: romanov_password,
 ...: ex_force_auth_url="https://keystone.cern.ch/v3",
 ...: ex_force_auth_version="3.x_password",
 ...: ex_tenant_name = "Personal romanov"
 ...: )

Thanks,
Vladimir

Simon Fayer

unread,
Nov 30, 2022, 7:19:30 AM11/30/22
to Vladimir Romanovsky, diracgrid-forum
Hi Vladimir,

Can you please try the following changes?
- Change ex_force_auth_url to just "https://keystone.cern.ch/": The v3 is
added automatically based on the auth version selected.
- Add ex_force_service_region="cern" to the parameters.

If that doesn't work, please let us know the error message you get back
from the service (it generally helps to enable debug logging as well with
import logging; logging.basicConfig(level=logging.DEBUG) as this shows the
URLs its contacting).

Regards,
Simon
Reply all
Reply to author
Forward
0 new messages