<div dir="ltr"><div><div><div>Hello,<br><br></div>It's better to discuss this on IRC.<br><br><a href="https://wiki.openstack.org/wiki/IRC">https://wiki.openstack.org/wiki/IRC</a><br><br></div>Rgds,<br></div>Shinobu<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 7, 2016 at 4:11 PM,  <span dir="ltr"><<a href="mailto:nidhi.hada@wipro.com" target="_blank">nidhi.hada@wipro.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div>
<p class="MsoNormal"><span style="color:#1f497d">Hi All,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Could someone please reply to the mail below ..<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Is this an expected state to get created share status as None?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">As we are intentionally not creating “share instance” while creating
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">share..<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">For details please see mail below..
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Nidhi<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Nidhi Mittal Hada (WT01 - Product Engineering Service)
<br>
<b>Sent:</b> Wednesday, January 06, 2016 1:23 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions) <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
<b>Subject:</b> [Openstack-dev][Manila] status=NONE when share is created<u></u><u></u></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hi All,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><a href="https://bugs.launchpad.net/manila/+bug/1526284" target="_blank">https://bugs.launchpad.net/manila/+bug/1526284</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p style="margin-right:0in;margin-bottom:.2in;margin-left:0in;line-height:13.5pt;background:white">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">stack@controller:~/devstack$ manila create NFS 1 --name share5 --share-type GENERAL_Storage<br>
+-----------------------------+--------------------------------------+<br>
| Property | Value |<br>
+-----------------------------+--------------------------------------+<br>
| <b><span style="background:yellow">status | None >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |</span><br>
</b>| share_type_name | GENERAL_Storage |<br>
| description | None |<br>
| availability_zone | None |<br>
| share_network_id | None |<br>
| export_locations | [] |<br>
| share_server_id | None |<br>
| host | None |<br>
| snapshot_id | None |<br>
| is_public | False |<br>
| task_state | None |<br>
| snapshot_support | True |<br>
| id | 6572a26a-2313-4a1d-8765-4a031ec0ae3a |<br>
| size | 1 |<br>
| name | share5 |<br>
| share_type | 961b767b-b8e4-4769-884f-7214af944f29 |<br>
| created_at | 2015-12-15T11:31:23.818642 |<br>
| export_location | None |<br>
| share_proto | NFS |<br>
| consistency_group_id | None |<br>
| source_cgsnapshot_member_id | None |<br>
| project_id | 0e15488bc7a14ce5b530920c95357457 |<br>
| metadata | {} |<br>
+-----------------------------+--------------------------------------+<u></u><u></u></span></p>
<div style="border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 0in 0in">
<p style="margin-right:0in;margin-bottom:.2in;margin-left:0in;line-height:13.5pt;background:white;max-width:45em;word-spacing:0px">
<b><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">status should be “<u>creating”</u>.. but it’s being shown as “NONE” which is not right.<u></u><u></u></span></b></p>
<p style="margin-right:0in;margin-bottom:.2in;margin-left:0in;line-height:13.5pt;background:white">
I am working on this bug. I have a doubt. code is as below. <u></u><u></u></p>
</div>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:10.0pt">In file manila/share/api.py<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:10.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:10.0pt">try:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">234        <b>     share = self.db.share_create(context, options,<u></u><u></u></b></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt">235                                          create_share_instance=False)>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt">236             QUOTAS.commit(context, reservations)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">237         except Exception:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">238             with excutils.save_and_reraise_exception():<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">239                 try:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">240                     self.db.share_delete(context, share['id'])<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">241                 finally:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">242                     QUOTAS.rollback(context, reservations)<u></u><u></u></span></p>
<p class="MsoNormal">--------------------------------------------------------------------------------------------------------------------------------------------------------------------<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Where we are intentionally giving <b>create_share_instance=False that means in db function
<u></u><u></u></b></p>
<p class="MsoNormal"><b>share_create(), share Instance will not be created And status is a field in share_instances table only.
<u></u><u></u></b></p>
<p class="MsoNormal"><b><u></u> <u></u></b></p>
<p class="MsoNormal"><b>Hence it will come as “None” only till instance is created.<u></u><u></u></b></p>
<p class="MsoNormal"><b><u></u> <u></u></b></p>
<p class="MsoNormal">Is this an “intentional step” to show status as “None”.. <u></u>
<u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">is this bug not valid?<u></u><u></u></p>
<p class="MsoNormal"><b><u></u> <u></u></b></p>
<p class="MsoNormal"><b>Please suggest.<u></u><u></u></b></p>
<p class="MsoNormal"><b><u></u> <u></u></b></p>
<p class="MsoNormal"><b>Thanks<br>
Nidhi<u></u><u></u></b></p>
</div></div></div><div><div class="h5">
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should
 not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments
 for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. <a href="http://www.wipro.com" target="_blank">www.wipro.com</a>
</div></div></div>

<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Email:<br><a href="mailto:shinobu@linux.com" target="_blank">shinobu@linux.com</a><br></div><div>GitHub:<br><a href="https://github.com/shinobu-x/" target="_blank">shinobu-x</a><br>Blog:<br></div><div><a href="http://i-shinobu.hatenablog.com/" target="_blank">Life with Distributed Computational System based on OpenSource</a><br></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>