<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.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:599293057;
        mso-list-type:hybrid;
        mso-list-template-ids:-1823959552 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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">I’ve done the following steps while creating load-balancer and other entities under it.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">     
</span></span><![endif]>Create load-balancer. <o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">     
</span></span><![endif]>Created listener under load-balancer created in step 1<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">     
</span></span><![endif]>Created pool under listener created in step 2<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here pool was created successfully but my load-balancer stuck in PENDING_UPDATE state in both Neutron & Octavia databases.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I tried to delete pool I got error saying that pool can not be deleted because respective load-balancer is in immutable state. Ok fine.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">After some time ( after around 1 hr) load-balancer in Neutron DB had become  ACTIVE state , but in Octavia DB still in PENDING_UPDATE state.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">See below<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:.5in">$ neutron lbaas-loadbalancer-list<o:p></o:p></p>
<p class="MsoListParagraph">+--------------------------------------+----------+---------------+---------------------+----------+<o:p></o:p></p>
<p class="MsoListParagraph">| id                                   | name     | vip_address   | provisioning_status | provider |<o:p></o:p></p>
<p class="MsoListParagraph">+--------------------------------------+----------+---------------+---------------------+----------+<o:p></o:p></p>
<p class="MsoListParagraph">| 5f9d1b93-7997-44b5-8db5-53c312f0628c | test_lb1 | 50.50.50.3    |
<span style="background:yellow;mso-highlight:yellow">ACTIVE</span>              | octavia  |<o:p></o:p></p>
<p class="MsoListParagraph">+--------------------------------------+----------+---------------+---------------------+----------+<o:p></o:p></p>
<p class="MsoListParagraph">mysql> select * from load_balancer;<o:p></o:p></p>
<p class="MsoListParagraph">+-----------+--------------------------------------+----------+-------------+---------------------+------------------+---------+----------+<o:p></o:p></p>
<p class="MsoListParagraph">| tenant_id | id                                   | name     | description | provisioning_status | operating_status | enabled | topology |<o:p></o:p></p>
<p class="MsoListParagraph">+-----------+--------------------------------------+----------+-------------+---------------------+------------------+---------+----------+<o:p></o:p></p>
<p class="MsoListParagraph">| NULL      | 5f9d1b93-7997-44b5-8db5-53c312f0628c | test_lb1 |            
<span style="background:yellow;mso-highlight:yellow">| PENDING_UPDATE</span>      | ONLINE           |       1 | NULL     |<o:p></o:p></p>
<p class="MsoListParagraph">+-----------+--------------------------------------+----------+-------------+---------------------+------------------+---------+----------+<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I tried deleting the pool in such state , I got successfully deletion message as show below.
<o:p></o:p></p>
<p class="MsoListParagraph">$ neutron lbaas-pool-delete 74cdfee8-dd49-4085-9830-d57933204c98<o:p></o:p></p>
<p class="MsoListParagraph">Deleted pool: <span style="background:yellow;mso-highlight:yellow">
74cdfee8-dd49-4085-9830-d57933204c98</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But pool is not really get deleted. See below<o:p></o:p></p>
<p class="MsoListParagraph">$ neutron lbaas-pool-list<o:p></o:p></p>
<p class="MsoListParagraph">+--------------------------------------+-------+----------+----------------+<o:p></o:p></p>
<p class="MsoListParagraph">| id                                   | name  | protocol | admin_state_up |<o:p></o:p></p>
<p class="MsoListParagraph">+--------------------------------------+-------+----------+----------------+<o:p></o:p></p>
<p class="MsoListParagraph"><span style="background:yellow;mso-highlight:yellow">| 74cdfee8-dd49-4085-9830-d57933204c98</span> | pool  | HTTP     | True           |<o:p></o:p></p>
<p class="MsoListParagraph">+--------------------------------------+-------+----------+----------------+<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is a bug right ?  This bug a raised as load-balancer-state is not in synch in Neutron DB and Octavia DB.  <o:p></o:p></p>
<p class="MsoNormal">This in synch is coming because load-balancer state becomes ACTIVE from PENDING_UPDATE automatically. Is this expected behavior ?
<o:p></o:p></p>
<p class="MsoNormal">How can we make load-balancer state should be in synch in both the DBs.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Also I saw below log messages in Octavia-api.log<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">2016-10-04 05:57:28.865 10744 INFO octavia.api.v1.controllers.pool [req-cb15f3c9-8746-4079-945f-96cf112a26e2 - - - - -] Pool 74cdfee8-dd49-4085-9830-d57933204c98 cannot be deleted because
 the Load Balancer is in an immutable state<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">2016-10-04 05:57:28.896 10744 DEBUG wsme.api [req-cb15f3c9-8746-4079-945f-96cf112a26e2 - - - - -] Client-side error: Load Balancer 5f9d1b93-7997-44b5-8db5-53c312f0628c is immutable and
 cannot be updated. format_exception /opt/stack/venv/octavia-20160826T092820Z/lib/python2.7/site-packages/wsme/api.py:221</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ravi<o:p></o:p></p>
</div>
</body>
</html>