[openstacksdk] create object (eg. snapshot) on behalf of user as admin
artem.goncharov at gmail.com
Wed Feb 9 19:32:47 UTC 2022
Please provide details whether you mean overall OpenStack admin user or
your domain admin user. I assume it would be necessary to connect as
destination project, but here exactly it is necessary to do this carefully.
You may also share you clouds.yaml (of course without passwords), this will
help to eventually notice the problem.
Also important to know whether you initially connect as admin in the same
domain or user project belongs to other domain.
typed from mobile, auto-correct typos assumed
On Wed, Feb 9, 2022, 15:49 Benedikt Trefzer <benedikt.trefzer at cirrax.com>
> Hi list
> I like to connect as an amin user to an openstack cloud and create a
> snapshot of a volume in the same project as the volume exists.
> I use the openstacksdk to achive this in python.
> So far I can connect as admin and create the snapshot but the
> snapshot is in the admins project, not in the project of the volume.
> Code so far:
> from openstack import connect
> import openstack.config
> conn.volume.create_snapshot(name='test', description='testing',
> I tried to use
> but was not successfull.
> Please direct me in the correct direction to achive this ! Any help
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the openstack-discuss