Reviewed:  https://review.openstack.org/255875
Committed: 
https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=a7bbea99667750d130e41f68b7f6aeb01b056ca1
Submitter: Jenkins
Branch:    master

commit a7bbea99667750d130e41f68b7f6aeb01b056ca1
Author: Bo Chi <[email protected]>
Date:   Fri Dec 11 06:35:16 2015 -0500

    Change status to DISABLED if admin_state_up if false
    
    If a resource's admin_state_up is false, the status should be DISABLED.
    This patch changes pool, vip, member, health_monitor all together.
    
    Change-Id: I659a0b5ee602edcf18584c55f94ceca2b886224f
    Closes-Bug: #1519664


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1519664

Title:
  lb-pool status remains ACTIVE when admin_state_up is false.

Status in neutron:
  Fix Released

Bug description:
  In Liberty release, I've set the lb-pool LB1 with
  admin_state_up=False, but its status remains ACTIVE.

  =====
  [root@localhost ~(keystone_admin)]#
  [root@localhost ~(keystone_admin)]# neutron lb-pool-update 
256872f4-7ae8-43eb-9764-0c157e4fc2a8 --admin-state-up=False -v
  DEBUG: keystoneclient.session REQ: curl -g -i -X GET 
http://172.16.207.71:5000/v2.0 -H "Accept: application/json" -H "User-Agent: 
python-keystoneclient"
  DEBUG: keystoneclient.session RESP: [200] content-length: 339 vary: 
X-Auth-Token connection: keep-alive date: Wed, 25 Nov 2015 07:14:35 GMT 
content-type: application/json x-openstack-request-id: 
req-280d970a-79ab-47a3-9dec-703ba09596ce
  RESP BODY: {"version": {"status": "stable", "updated": 
"2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": 
"application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": 
[{"href": "http://172.16.207.71:5000/v2.0/";, "rel": "self"}, {"href": 
"http://docs.openstack.org/";, "type": "text/html", "rel": "describedby"}]}}

  DEBUG: neutronclient.neutron.v2_0.lb.pool.UpdatePool 
run(Namespace(id=u'256872f4-7ae8-43eb-9764-0c157e4fc2a8', 
request_format='json'))
  DEBUG: keystoneclient.auth.identity.v2 Making authentication request to 
http://172.16.207.71:5000/v2.0/tokens
  DEBUG: keystoneclient.session REQ: curl -g -i -X GET 
http://172.16.207.71:9696/v2.0/lb/pools.json?fields=id&id=256872f4-7ae8-43eb-9764-0c157e4fc2a8
 -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H 
"X-Auth-Token: {SHA1}ac76e59978aff11fc3e265fe0eef096d0411a372"
  DEBUG: keystoneclient.session RESP: [200] date: Wed, 25 Nov 2015 07:14:36 GMT 
connection: keep-alive content-type: application/json; charset=UTF-8 
content-length: 59 x-openstack-request-id: 
req-4022c95f-16a2-4d52-9de1-ca1da4db6c7d
  RESP BODY: {"pools": [{"id": "256872f4-7ae8-43eb-9764-0c157e4fc2a8"}]}

  DEBUG: keystoneclient.session REQ: curl -g -i -X PUT 
http://172.16.207.71:9696/v2.0/lb/pools/256872f4-7ae8-43eb-9764-0c157e4fc2a8.json
 -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H 
"Accept: application/json" -H "X-Auth-Token: 
{SHA1}ac76e59978aff11fc3e265fe0eef096d0411a372" -d '{"pool": {"admin_state_up": 
"False"}}'
  DEBUG: keystoneclient.session RESP: [200] date: Wed, 25 Nov 2015 07:14:36 GMT 
connection: keep-alive content-type: application/json; charset=UTF-8 
content-length: 428 x-openstack-request-id: 
req-d76074df-41ff-4d96-bd01-3e3d2bc22a8e
  RESP BODY: {"pool": {"status": "PENDING_UPDATE", "lb_method": "ROUND_ROBIN", 
"protocol": "HTTP", "description": "", "health_monitors": [], "members": [], 
"status_description": null, "id": "256872f4-7ae8-43eb-9764-0c157e4fc2a8", 
"vip_id": null, "name": "LB1", "admin_state_up": false, "subnet_id": 
"e5a0cc1d-73a4-4262-9afe-cbed72aa67e9", "tenant_id": 
"ace870e6790a4195b1b50fe69adbab69", "health_monitors_status": [], "provider": 
"haproxy"}}

  Updated pool: 256872f4-7ae8-43eb-9764-0c157e4fc2a8
  [root@localhost ~(keystone_admin)]#
  [root@localhost ~(keystone_admin)]# neutron lb-pool-list
  
+--------------------------------------+------+----------+-------------+----------+----------------+--------+
  | id                                   | name | provider | lb_method   | 
protocol | admin_state_up | status |
  
+--------------------------------------+------+----------+-------------+----------+----------------+--------+
  | 256872f4-7ae8-43eb-9764-0c157e4fc2a8 | LB1  | haproxy  | ROUND_ROBIN | HTTP 
    | False          | ACTIVE |
  
+--------------------------------------+------+----------+-------------+----------+----------------+--------+
  [root@localhost ~(keystone_admin)]#
  [root@localhost ~(keystone_admin)]# neutron lb-pool-show 
256872f4-7ae8-43eb-9764-0c157e4fc2a8
  +------------------------+--------------------------------------+
  | Field                  | Value                                |
  +------------------------+--------------------------------------+
  | admin_state_up         | False                                |
  | description            |                                      |
  | health_monitors        |                                      |
  | health_monitors_status |                                      |
  | id                     | 256872f4-7ae8-43eb-9764-0c157e4fc2a8 |
  | lb_method              | ROUND_ROBIN                          |
  | members                |                                      |
  | name                   | LB1                                  |
  | protocol               | HTTP                                 |
  | provider               | haproxy                              |
  | status                 | ACTIVE                               |
  | status_description     |                                      |
  | subnet_id              | e5a0cc1d-73a4-4262-9afe-cbed72aa67e9 |
  | tenant_id              | ace870e6790a4195b1b50fe69adbab69     |
  | vip_id                 |                                      |
  +------------------------+--------------------------------------+
  [root@localhost ~(keystone_admin)]#

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1519664/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to