Following the examples I'm constructing Scope, Password and then Session or Cloud. On last step (either of..) getting error below.
Not sure which format for IP based URL should be used.
Tried:
http://ip:port/v3
http://ip:port
http://ip
http://ip:port/v3/
Code in question:
info!("Creating OpenStack scope");
let scope = Scope::Project {
project: IdOrName::from_name(&GC.openstack_project),
domain: Some(IdOrName::from_id(&GC.openstack_project)),
};
info!("Creating OpenStack authentication");
let auth = Password::new(
&GC.openstack_api_address,
&GC.openstack_user,
&GC.openstack_password,
&GC.openstack_project,
)?
.with_scope(scope);
info!("Creating OpenStack session");
let session = Session::new(auth.clone()).await?;
info!("Creating OpenStack client");
let openstack = Cloud::new(auth).await?;
Output:
INFO > Creating OpenStack scope
INFO > Creating OpenStack authentication
INFO > Creating OpenStack session
Error: Failed to authenticate: The request you have made requires authentication.
Following the examples I'm constructing Scope, Password and then Session or Cloud. On last step (either of..) getting error below.
Not sure which format for IP based URL should be used.
Tried:
http://ip:port/v3http://ip:porthttp://iphttp://ip:port/v3/Code in question:
Output: