<div dir="ltr"><div dir="ltr">Hi Russell,<div><br></div><div>Thanks for finding the issue.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 31, 2022 at 5:46 PM Russell Stather <<a href="mailto:Russell.Stather@ignitiongroup.co.za">Russell.Stather@ignitiongroup.co.za</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Hi</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Trying to create an image from a volume.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Getting this very unhelpful error message.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
igadmin@ig-umh-maas:~$ openstack image create  --volume 57bc3efa-6cdc-4e2d-a0e2-262340cc6180 commvaultimage
<div>upload_to_image() got an unexpected keyword argument 'visibility'</div>
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Anyone seen this before?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br></div></div></blockquote><div><br></div><div>This is indeed a valid bug for which I've proposed the fix here[1]. To summarize, this is caused because OSC is calling cinderclient with <b>visibility</b> and <b>protected</b></div><div>arguments[2] without checking the microversion and the support for passing <b>visibility</b> and <b>protected</b> fields is available only since microversion <b>3.1</b> or greater[3][4].</div><div><br></div><div>For a quick workaround, pass the<b> ``--os-volume-api-version 3.1``</b> parameter along with the command or set the environment variable <b>``OS_VOLUME_API_VERSION``</b></div><div>to <b>3.1</b> or greater value.</div><div><br></div><div>[1] <a href="https://review.opendev.org/c/openstack/python-openstackclient/+/844268">https://review.opendev.org/c/openstack/python-openstackclient/+/844268</a></div><div>[2] <a href="https://opendev.org/openstack/python-openstackclient/src/branch/master/openstackclient/image/v2/image.py#L492-L493">https://opendev.org/openstack/python-openstackclient/src/branch/master/openstackclient/image/v2/image.py#L492-L493</a> </div><div>[3] <a href="https://opendev.org/openstack/cinder/src/branch/master/cinder/api/openstack/api_version_request.py#L49">https://opendev.org/openstack/cinder/src/branch/master/cinder/api/openstack/api_version_request.py#L49</a><br></div><div><div>[4] <a href="https://opendev.org/openstack/python-cinderclient/src/branch/master/cinderclient/v3/volumes.py#L197-L211">https://opendev.org/openstack/python-cinderclient/src/branch/master/cinderclient/v3/volumes.py#L197-L211</a></div><br class="gmail-Apple-interchange-newline"></div><div>Thanks and regards</div><div>Rajat Dhasmana</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Thanks</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Russell</div>
</div>

</blockquote></div></div>