Public bug reported:

This is found at Kilo and Mitaka releases.
--admin-state-down argument should be --admin-state-up

I think this is not lbaas issue, but neutron CLI.

$ ​neutron help lbaas-member-update
usage: neutron lbaas-member-update [-h] [--request-format {json}]
                                   [--admin-state-down] [--weight WEIGHT]
                                   [--name NAME]
                                   MEMBER POOL

LBaaS v2 Update a given member.

positional arguments:
  MEMBER                ID or name of member to update.
  POOL                  ID or name of the pool that this member belongs to

optional arguments:
  -h, --help            show this help message and exit
  --request-format {json}
                        DEPRECATED! Only JSON request format is supported.
  --admin-state-down    Set admin state up to false
  --weight WEIGHT       Weight of member in the pool (default:1, [0..256])
  --name NAME           Updated name of the member.


## test logs
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​env|grep OS_
OS_REGION_NAME=RegionOne
OS_LOG_DIR=/opt/logs/marvin-os/
OS_PROJECT_NAME=Venus
OS_IDENTITY_API_VERSION=2.0
OS_PASSWORD=itempest8@OS
OS_AUTH_URL=http://10.34.57.68:5000/v2.0
OS_USERNAME=Venus
OS_TENANT_NAME=Venus
OS_VOLUME_API_VERSION=2
OS_NO_CACHE=1
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​neutron lbaas-loadbalancer-status venus-lb2-http
{
    "loadbalancer": {
        "name": "venus-lb2-http", 
        "provisioning_status": "ACTIVE", 
        "listeners": [
            {
                "name": "venus-lb2-http-listener1", 
                "provisioning_status": "ACTIVE", 
                "pools": [
                    {
                        "name": "venus-lb2-http-pool1", 
                        "provisioning_status": "ACTIVE", 
                        "healthmonitor": {
                            "provisioning_status": "ACTIVE", 
                            "type": "HTTP", 
                            "id": "2ed7bff3-5a83-480b-a1f9-0f38ebd1b163", 
                            "name": ""
                        }, 
                        "members": [
                            {
                                "name": "", 
                                "provisioning_status": "ACTIVE", 
                                "address": "10.199.88.4", 
                                "protocol_port": 80, 
                                "id": "b9f625d1-1328-494c-a2a2-7f6bd53a358b", 
                                "operating_status": "ONLINE"
                            }, 
                            {
                                "name": "m1", 
                                "provisioning_status": "ACTIVE", 
                                "address": "10.199.88.3", 
                                "protocol_port": 80, 
                                "id": "49fb6de4-507d-4085-ab3a-40bf3df18b50", 
                                "operating_status": "ONLINE"
                            }
                        ], 
                        "id": "6b1cbd02-98e4-4d32-af2e-e91c119dc633", 
                        "operating_status": "ONLINE"
                    }
                ], 
                "l7policies": [], 
                "id": "77ced1af-e194-453f-b50b-1bacc0d210dc", 
                "operating_status": "ONLINE"
            }
        ], 
        "pools": [
            {
                "name": "venus-lb2-http-pool1", 
                "provisioning_status": "ACTIVE", 
                "healthmonitor": {
                    "provisioning_status": "ACTIVE", 
                    "type": "HTTP", 
                    "id": "2ed7bff3-5a83-480b-a1f9-0f38ebd1b163", 
                    "name": ""
                }, 
                "members": [
                    {
                        "name": "", 
                        "provisioning_status": "ACTIVE", 
                        "address": "10.199.88.4", 
                        "protocol_port": 80, 
                        "id": "b9f625d1-1328-494c-a2a2-7f6bd53a358b", 
                        "operating_status": "ONLINE"
                    }, 
                    {
                        "name": "m1", 
                        "provisioning_status": "ACTIVE", 
                        "address": "10.199.88.3", 
                        "protocol_port": 80, 
                        "id": "49fb6de4-507d-4085-ab3a-40bf3df18b50", 
                        "operating_status": "ONLINE"
                    }
                ], 
                "id": "6b1cbd02-98e4-4d32-af2e-e91c119dc633", 
                "operating_status": "ONLINE"
            }
        ], 
        "id": "c47585b8-04ad-4c87-9e0e-05028a85b89f", 
        "operating_status": "ONLINE"
    }
}
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​neutron lbaas-member-list venus-lb2-http-pool1 -c id -c name -c address -c 
subnet-id -c admin_state_up
+--------------------------------------+------+-------------+----------------+
| id                                   | name | address     | admin_state_up |
+--------------------------------------+------+-------------+----------------+
| 49fb6de4-507d-4085-ab3a-40bf3df18b50 | m1   | 10.199.88.3 | True           |
| b9f625d1-1328-494c-a2a2-7f6bd53a358b |      | 10.199.88.4 | True           |
+--------------------------------------+------+-------------+----------------+
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​neutron lbaas-member-list venus-lb2-http-pool1 -c id -c name -c address -c 
subnet_id -c admin_state_up
+--------------------------------------+------+-------------+--------------------------------------+----------------+
| id                                   | name | address     | subnet_id         
                   | admin_state_up |
+--------------------------------------+------+-------------+--------------------------------------+----------------+
| 49fb6de4-507d-4085-ab3a-40bf3df18b50 | m1   | 10.199.88.3 | 
99722276-ed5d-4234-b951-4622f690c71d | True           |
| b9f625d1-1328-494c-a2a2-7f6bd53a358b |      | 10.199.88.4 | 
99722276-ed5d-4234-b951-4622f690c71d | True           |
+--------------------------------------+------+-------------+--------------------------------------+----------------+
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​neutron help lbaas-member-update
usage: neutron lbaas-member-update [-h] [--request-format {json}]
                                   [--admin-state-down] [--weight WEIGHT]
                                   [--name NAME]
                                   MEMBER POOL

LBaaS v2 Update a given member.

positional arguments:
  MEMBER                ID or name of member to update.
  POOL                  ID or name of the pool that this member belongs to

optional arguments:
  -h, --help            show this help message and exit
  --request-format {json}
                        DEPRECATED! Only JSON request format is supported.
  --admin-state-down    Set admin state up to false
  --weight WEIGHT       Weight of member in the pool (default:1, [0..256])
  --name NAME           Updated name of the member.
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​neutron lbaas-member-update --admin-state-down m1 venus-lb2-http-pool1
Must specify new values to update lbaas_member
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​neutron lbaas-member-update --admin-state-down=True m1 venus-lb2-http-pool1
usage: neutron lbaas-member-update [-h] [--request-format {json}]
                                   [--admin-state-down] [--weight WEIGHT]
                                   [--name NAME]
                                   MEMBER POOL
neutron lbaas-member-update: error: argument --admin-state-down: ignored 
explicit argument u'True'
Try 'neutron help lbaas-member-update' for more information.
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​neutron lbaas-member-update --admin-state-up=True m1 venus-lb2-http-pool1
Updated member: m1
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​neutron lbaas-member-list venus-lb2-http-pool1 -c id -c name -c address -c 
admin_state_up
+--------------------------------------+------+-------------+----------------+
| id                                   | name | address     | admin_state_up |
+--------------------------------------+------+-------------+----------------+
| 49fb6de4-507d-4085-ab3a-40bf3df18b50 | m1   | 10.199.88.3 | True           |
| b9f625d1-1328-494c-a2a2-7f6bd53a358b |      | 10.199.88.4 | True           |
+--------------------------------------+------+-------------+----------------+
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​neutron lbaas-member-update --admin-state-up=Down m1 venus-lb2-http-pool1
Invalid input for operation: 'Down' cannot be converted to boolean.
Neutron server returns request_ids: ['req-f007d93f-177f-4a3a-965e-a87f5d799e24']
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​neutron lbaas-member-update --admin-state-up=False m1 venus-lb2-http-pool1
Updated member: m1
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​neutron lbaas-member-list venus-lb2-http-pool1 -c id -c name -c address -c 
admin_state_up
+--------------------------------------+------+-------------+----------------+
| id                                   | name | address     | admin_state_up |
+--------------------------------------+------+-------------+----------------+
| 49fb6de4-507d-4085-ab3a-40bf3df18b50 | m1   | 10.199.88.3 | False          |
| b9f625d1-1328-494c-a2a2-7f6bd53a358b |      | 10.199.88.4 | True           |
+--------------------------------------+------+-------------+----------------+
stack@falcon-devstack ~/jenkins22/devstack {marvin*}
$ ​

** Affects: neutron
     Importance: Undecided
         Status: New

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

Title:
  lbaas member update accept --admin-state-up not --admin-state-down

Status in neutron:
  New

Bug description:
  This is found at Kilo and Mitaka releases.
  --admin-state-down argument should be --admin-state-up

  I think this is not lbaas issue, but neutron CLI.

  $ ​neutron help lbaas-member-update
  usage: neutron lbaas-member-update [-h] [--request-format {json}]
                                     [--admin-state-down] [--weight WEIGHT]
                                     [--name NAME]
                                     MEMBER POOL

  LBaaS v2 Update a given member.

  positional arguments:
    MEMBER                ID or name of member to update.
    POOL                  ID or name of the pool that this member belongs to

  optional arguments:
    -h, --help            show this help message and exit
    --request-format {json}
                          DEPRECATED! Only JSON request format is supported.
    --admin-state-down    Set admin state up to false
    --weight WEIGHT       Weight of member in the pool (default:1, [0..256])
    --name NAME           Updated name of the member.

  
  ## test logs
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​env|grep OS_
  OS_REGION_NAME=RegionOne
  OS_LOG_DIR=/opt/logs/marvin-os/
  OS_PROJECT_NAME=Venus
  OS_IDENTITY_API_VERSION=2.0
  OS_PASSWORD=itempest8@OS
  OS_AUTH_URL=http://10.34.57.68:5000/v2.0
  OS_USERNAME=Venus
  OS_TENANT_NAME=Venus
  OS_VOLUME_API_VERSION=2
  OS_NO_CACHE=1
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​neutron lbaas-loadbalancer-status venus-lb2-http
  {
      "loadbalancer": {
          "name": "venus-lb2-http", 
          "provisioning_status": "ACTIVE", 
          "listeners": [
              {
                  "name": "venus-lb2-http-listener1", 
                  "provisioning_status": "ACTIVE", 
                  "pools": [
                      {
                          "name": "venus-lb2-http-pool1", 
                          "provisioning_status": "ACTIVE", 
                          "healthmonitor": {
                              "provisioning_status": "ACTIVE", 
                              "type": "HTTP", 
                              "id": "2ed7bff3-5a83-480b-a1f9-0f38ebd1b163", 
                              "name": ""
                          }, 
                          "members": [
                              {
                                  "name": "", 
                                  "provisioning_status": "ACTIVE", 
                                  "address": "10.199.88.4", 
                                  "protocol_port": 80, 
                                  "id": "b9f625d1-1328-494c-a2a2-7f6bd53a358b", 
                                  "operating_status": "ONLINE"
                              }, 
                              {
                                  "name": "m1", 
                                  "provisioning_status": "ACTIVE", 
                                  "address": "10.199.88.3", 
                                  "protocol_port": 80, 
                                  "id": "49fb6de4-507d-4085-ab3a-40bf3df18b50", 
                                  "operating_status": "ONLINE"
                              }
                          ], 
                          "id": "6b1cbd02-98e4-4d32-af2e-e91c119dc633", 
                          "operating_status": "ONLINE"
                      }
                  ], 
                  "l7policies": [], 
                  "id": "77ced1af-e194-453f-b50b-1bacc0d210dc", 
                  "operating_status": "ONLINE"
              }
          ], 
          "pools": [
              {
                  "name": "venus-lb2-http-pool1", 
                  "provisioning_status": "ACTIVE", 
                  "healthmonitor": {
                      "provisioning_status": "ACTIVE", 
                      "type": "HTTP", 
                      "id": "2ed7bff3-5a83-480b-a1f9-0f38ebd1b163", 
                      "name": ""
                  }, 
                  "members": [
                      {
                          "name": "", 
                          "provisioning_status": "ACTIVE", 
                          "address": "10.199.88.4", 
                          "protocol_port": 80, 
                          "id": "b9f625d1-1328-494c-a2a2-7f6bd53a358b", 
                          "operating_status": "ONLINE"
                      }, 
                      {
                          "name": "m1", 
                          "provisioning_status": "ACTIVE", 
                          "address": "10.199.88.3", 
                          "protocol_port": 80, 
                          "id": "49fb6de4-507d-4085-ab3a-40bf3df18b50", 
                          "operating_status": "ONLINE"
                      }
                  ], 
                  "id": "6b1cbd02-98e4-4d32-af2e-e91c119dc633", 
                  "operating_status": "ONLINE"
              }
          ], 
          "id": "c47585b8-04ad-4c87-9e0e-05028a85b89f", 
          "operating_status": "ONLINE"
      }
  }
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​neutron lbaas-member-list venus-lb2-http-pool1 -c id -c name -c address -c 
subnet-id -c admin_state_up
  +--------------------------------------+------+-------------+----------------+
  | id                                   | name | address     | admin_state_up |
  +--------------------------------------+------+-------------+----------------+
  | 49fb6de4-507d-4085-ab3a-40bf3df18b50 | m1   | 10.199.88.3 | True           |
  | b9f625d1-1328-494c-a2a2-7f6bd53a358b |      | 10.199.88.4 | True           |
  +--------------------------------------+------+-------------+----------------+
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​neutron lbaas-member-list venus-lb2-http-pool1 -c id -c name -c address -c 
subnet_id -c admin_state_up
  
+--------------------------------------+------+-------------+--------------------------------------+----------------+
  | id                                   | name | address     | subnet_id       
                     | admin_state_up |
  
+--------------------------------------+------+-------------+--------------------------------------+----------------+
  | 49fb6de4-507d-4085-ab3a-40bf3df18b50 | m1   | 10.199.88.3 | 
99722276-ed5d-4234-b951-4622f690c71d | True           |
  | b9f625d1-1328-494c-a2a2-7f6bd53a358b |      | 10.199.88.4 | 
99722276-ed5d-4234-b951-4622f690c71d | True           |
  
+--------------------------------------+------+-------------+--------------------------------------+----------------+
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​neutron help lbaas-member-update
  usage: neutron lbaas-member-update [-h] [--request-format {json}]
                                     [--admin-state-down] [--weight WEIGHT]
                                     [--name NAME]
                                     MEMBER POOL

  LBaaS v2 Update a given member.

  positional arguments:
    MEMBER                ID or name of member to update.
    POOL                  ID or name of the pool that this member belongs to

  optional arguments:
    -h, --help            show this help message and exit
    --request-format {json}
                          DEPRECATED! Only JSON request format is supported.
    --admin-state-down    Set admin state up to false
    --weight WEIGHT       Weight of member in the pool (default:1, [0..256])
    --name NAME           Updated name of the member.
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​neutron lbaas-member-update --admin-state-down m1 venus-lb2-http-pool1
  Must specify new values to update lbaas_member
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​neutron lbaas-member-update --admin-state-down=True m1 venus-lb2-http-pool1
  usage: neutron lbaas-member-update [-h] [--request-format {json}]
                                     [--admin-state-down] [--weight WEIGHT]
                                     [--name NAME]
                                     MEMBER POOL
  neutron lbaas-member-update: error: argument --admin-state-down: ignored 
explicit argument u'True'
  Try 'neutron help lbaas-member-update' for more information.
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​neutron lbaas-member-update --admin-state-up=True m1 venus-lb2-http-pool1
  Updated member: m1
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​neutron lbaas-member-list venus-lb2-http-pool1 -c id -c name -c address -c 
admin_state_up
  +--------------------------------------+------+-------------+----------------+
  | id                                   | name | address     | admin_state_up |
  +--------------------------------------+------+-------------+----------------+
  | 49fb6de4-507d-4085-ab3a-40bf3df18b50 | m1   | 10.199.88.3 | True           |
  | b9f625d1-1328-494c-a2a2-7f6bd53a358b |      | 10.199.88.4 | True           |
  +--------------------------------------+------+-------------+----------------+
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​neutron lbaas-member-update --admin-state-up=Down m1 venus-lb2-http-pool1
  Invalid input for operation: 'Down' cannot be converted to boolean.
  Neutron server returns request_ids: 
['req-f007d93f-177f-4a3a-965e-a87f5d799e24']
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​neutron lbaas-member-update --admin-state-up=False m1 venus-lb2-http-pool1
  Updated member: m1
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​neutron lbaas-member-list venus-lb2-http-pool1 -c id -c name -c address -c 
admin_state_up
  +--------------------------------------+------+-------------+----------------+
  | id                                   | name | address     | admin_state_up |
  +--------------------------------------+------+-------------+----------------+
  | 49fb6de4-507d-4085-ab3a-40bf3df18b50 | m1   | 10.199.88.3 | False          |
  | b9f625d1-1328-494c-a2a2-7f6bd53a358b |      | 10.199.88.4 | True           |
  +--------------------------------------+------+-------------+----------------+
  stack@falcon-devstack ~/jenkins22/devstack {marvin*}
  $ ​

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to