<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div>Hi Brian</div><div><br></div><div>Thanks for your </div><div>A couple of answers in-line:</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 1, 2019 at 3:25 PM Brian Rosmaita <<a href="mailto:rosmaita.fossdev@gmail.com">rosmaita.fossdev@gmail.com</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">(Apologies for top-posting.)<br>
<br>
Hi Massimo,<br>
<br>
Two things:<br>
<br>
(1) Please file a glance bug for this. I didn't think the sharing code<br>
would touch image locations, but apparently it does. In the bug report,<br>
please include your policy settings for *_location and *_member, and<br>
also the output of an image-show call for the image you're trying to<br>
share, and the log extract.<br></blockquote><div><br></div><div>Sure: I will</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
(2) With the policy settings you have for *_location, I don't think that<br>
any regular (non-admin) user will be able to download an image or boot<br>
an instance from an image, so you should verify those operations. </blockquote><div><br></div><div><div>Actually it works</div><div><br></div><div>E.g.:</div><div>$ openstack image show 7ebe160d-5498-477b-aa2e-94a6d962a075</div><div>+------------------+------------------------------------------------------------------------------+</div><div>| Field | Value |</div><div>+------------------+------------------------------------------------------------------------------+</div><div>| checksum | b4548edf0bc476c50c083fb88717d92f |</div><div>| container_format | bare |</div><div>| created_at | 2018-01-15T16:14:35Z |</div><div>| disk_format | qcow2 |</div><div>| file | /v2/images/7ebe160d-5498-477b-aa2e-94a6d962a075/file |</div><div>| id | 7ebe160d-5498-477b-aa2e-94a6d962a075 |</div><div>| min_disk | 3 |</div><div>| min_ram | 512 |</div><div>| name | CentOS7 |</div><div>| owner | 56c3f5c047e74a78a71438c4412e6e13 |</div><div>| properties | locations='[]', os_hash_algo='None', os_hash_value='None', os_hidden='False' |</div><div>| protected | False |</div><div>| schema | /v2/schemas/image |</div><div>| size | 877985792 |</div><div>| status | active |</div><div>| tags | |</div><div>| updated_at | 2018-01-15T16:21:23Z |</div><div>| virtual_size | None |</div><div>| visibility | public |</div><div>+------------------+------------------------------------------------------------------------------+</div><div><br></div><div>So locations are not showed, as expected, since I am a 'regular' (non-admin) user</div><div><br></div><div>But I able to download the image:</div><div><br></div><div>$ openstack image save --file ~/CentOS7.qcow2 7ebe160d-5498-477b-aa2e-94a6d962a075</div><div><br></div><div>$ ls -l ~/CentOS7.qcow2</div><div>-rw-r--r-- 1 sgaravat utenti 877985792 May 2 08:54 /home/sgaravat/CentOS7.qcow2</div><div><br></div><div>$ md5sum ~/CentOS7.qcow2</div><div>b4548edf0bc476c50c083fb88717d92f /home/sgaravat/CentOS7.qcow2</div><div><br></div><div><br></div><div>I am also able to launch an instance using this image</div><div><br></div><div>Thanks, Massimo</div></div><div><br></div><div><br></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"><br>
</blockquote></div></div></div>