<div dir="auto">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.<div dir="auto"><br></div><div dir="auto">Also important to know whether you initially connect as admin in the same domain or user project belongs to other domain.</div><div dir="auto"><br></div><div dir="auto">Artem<br><br><div data-smartmail="gmail_signature" dir="auto">----<br>typed from mobile, auto-correct typos assumed<br>----</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 9, 2022, 15:49 Benedikt Trefzer <<a href="mailto:benedikt.trefzer@cirrax.com">benedikt.trefzer@cirrax.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi list<br>
<br>
I like to connect as an amin user to an openstack cloud and create a <br>
snapshot of a volume in the same project as the volume exists.<br>
<br>
I use the openstacksdk to achive this in python.<br>
So far I can connect as admin and create the snapshot but the<br>
snapshot is in the admins project, not in the project of the volume.<br>
<br>
Code so far:<br>
<br>
from openstack import connect<br>
import openstack.config<br>
<br>
conn=connect()<br>
<br>
conn.volume.create_snapshot(name='test', description='testing', <br>
volume='volumeIDinANYproject')<br>
<br>
I tried to use<br>
conn.connect_as_project('ProjectID')<br>
<br>
but was not successfull.<br>
<br>
Please direct me in the correct direction to achive this ! Any help <br>
appreciated.<br>
<br>
Greeting<br>
<br>
Benedikt<br>
<br>
</blockquote></div>