<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a href="https://bugs.launchpad.net/manila/+bug/1526284">https://bugs.launchpad.net/manila/+bug/1526284</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="mso-margin-top-alt:0in;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;mso-highlight: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>
+-----------------------------+--------------------------------------+<o:p></o:p></span></p>
<div style="mso-element:para-border-div;border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 0in 0in;background:white">
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;line-height:13.5pt;background:white;border:none;padding:0in;max-width: 45em;orphans: auto;widows: 1;-webkit-text-stroke-width: 0px;word-spacing:0px" id="yui_3_10_3_1_1451979833676_2037">
<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.<o:p></o:p></span></b></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:.2in;margin-left:0in;line-height:13.5pt;background:white;border:none;padding:0in">
I am working on this bug. I have a doubt. code is as below. <o:p></o:p></p>
</div>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:10.0pt">In file manila/share/api.py<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:10.0pt">try:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">234 <b> share = self.db.share_create(context, options,<o:p></o:p></b></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt">235 create_share_instance=False)>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt">236 QUOTAS.commit(context, reservations)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">237 except Exception:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">238 with excutils.save_and_reraise_exception():<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">239 try:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">240 self.db.share_delete(context, share['id'])<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">241 finally:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">242 QUOTAS.rollback(context, reservations)<o:p></o:p></span></p>
<p class="MsoNormal">--------------------------------------------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Where we are intentionally giving <b>create_share_instance=False that means in db function
<o:p></o:p></b></p>
<p class="MsoNormal"><b>share_create(), share Instance will not be created And status is a field in share_instances table only.
<o:p></o:p></b></p>
<p class="MsoNormal"><b><o:p> </o:p></b></p>
<p class="MsoNormal"><b>Hence it will come as “None” only till instance is created.<o:p></o:p></b></p>
<p class="MsoNormal"><b><o:p> </o:p></b></p>
<p class="MsoNormal">Is this an “intentional step” to show status as “None”.. <o:p>
</o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">is this bug not valid?<o:p></o:p></p>
<p class="MsoNormal"><b><o:p> </o:p></b></p>
<p class="MsoNormal"><b>Please suggest.<o:p></o:p></b></p>
<p class="MsoNormal"><b><o:p> </o:p></b></p>
<p class="MsoNormal"><b>Thanks<br>
Nidhi<o:p></o:p></b></p>
</div>
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. www.wipro.com
</body>
</html>