<div dir="ltr"><div><div><div><div><div><div>Thanks Bharat for starting this thread<br><br></div>I would like to invite suggestions/opinions from tempest folks on whats the right way to get this to work ?<br><br></div>1) Use priviledge user in cinder.conf<br><br></div>--or --<br><br></div>2) Modify tempest volume snapshot_in_use testcase to bump the user to admin, run the test, revert back to demo before leaving the testcase<br><br></div>thanx,<br></div>deepak<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 27, 2015 at 11:57 AM, Bharat Kumar <span dir="ltr"><<a href="mailto:bharat.kobagana@redhat.com" target="_blank">bharat.kobagana@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    As part of tempest job "
    
    <a href="http://logs.openstack.org/11/159711/1/experimental/gate-tempest-dsvm-full-glusterfs/b2cb37e/" style="text-decoration:none;color:rgb(6,84,172);font-family:sans-serif;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)" target="_blank">gate-tempest-dsvm-full-glusterfs</a>"
    run [1], the test case "
    
    <span style="color:rgb(121,93,163);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:16.7999992370605px;text-align:start;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">test_snapshot_create_with_volume_in_use"</span>
    [2] is failing.<br>
    This is because demo user is unable to create online snapshots, due
    to nova policy rules[3].<br>
    <br>
    To avoid this issue we can modify test case, to make "demo" user as
    an admin before creating snapshot and reverting after it finishes.<br>
    <br>
    Another approach is to use privileged user
    (<a href="https://review.openstack.org/#/c/156940/" target="_blank">https://review.openstack.org/#/c/156940/</a>) to create online
    snapshot.<br>
    <br>
    [1]
<a href="http://logs.openstack.org/11/159711/1/experimental/gate-tempest-dsvm-full-glusterfs/b2cb37e/" target="_blank">http://logs.openstack.org/11/159711/1/experimental/gate-tempest-dsvm-full-glusterfs/b2cb37e/</a><br>
    [2]
<a href="https://github.com/openstack/tempest/blob/master/tempest/api/volume/test_volumes_snapshots.py#L66" target="_blank">https://github.com/openstack/tempest/blob/master/tempest/api/volume/test_volumes_snapshots.py#L66</a><br>
    [3]
    <a href="https://github.com/openstack/nova/blob/master/etc/nova/policy.json#L329" target="_blank">https://github.com/openstack/nova/blob/master/etc/nova/policy.json#L329</a><span class="HOEnZb"><font color="#888888"><br>
    <pre cols="72">-- 
Warm Regards,
Bharat Kumar Kobagana
Software Engineer
OpenStack Storage – RedHat India
</pre>
  </font></span></div>

<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>