← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1760405] Re: openstack FIP set without router fails with "Unknown error"

 

The "old" neutronclient shows the correct failure message:

$ neutron floatingip-associate 5d0dc3fa-fb22-42ad-b4c0-b539d47c6d4f 40cb7567-8860-45db-8e40-fca62dc9bad2
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
External network 62de8874-0e12-466a-8e21-2f93910b04dc is not reachable from subnet 2415fbfd-52a7-4fbb-af83-4607505f207a.  Therefore, cannot associate Port 40cb7567-8860-45db-8e40-fca62dc9bad2 with a Floating IP.

** Project changed: neutron => python-openstackclient

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

Title:
  openstack FIP set without router fails with "Unknown error"

Status in python-openstackclient:
  Confirmed

Bug description:
  Queen
  Assiging FIP when there is nor router between the external and internal networks show " unknown error" instead of 

  "External network b6093932-a55d-4f9a-8af0-f6f953c3a443 is not reachable from subnet 535a9a47-6797-454f-a1dc-eeda6ace87d8.  Therefore, cannot associate Port 8af20b95-fbf3-4116-b630-68cc7b468060 with a Floating IP.
  Neutron server returns request_ids: ['req-73ab75d2-5b3b-42ef-9604-37cc539ef0cc']" as with neutron client. 

  
  Case: 
  (.venv) (overcloud) [stack@c09-h04-r630 octavia-tempest-plugin]$ 
  (.venv) (overcloud) [stack@c09-h04-r630 octavia-tempest-plugin]$ openstack floating ip set 172.168.30.221 --port 8af20b95-fbf3-4116-b630-68cc7b468060
  NotFoundException: Unknown error
  (.venv) (overcloud) [stack@c09-h04-r630 octavia-tempest-plugin]$ neutron router-create Router_eNet
  neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  Created a new router:
  +-------------------------+--------------------------------------+
  | Field                   | Value                                |
  +-------------------------+--------------------------------------+
  | admin_state_up          | True                                 |
  | availability_zone_hints |                                      |
  | availability_zones      |                                      |
  | created_at              | 2018-04-01T10:30:47Z                 |
  | description             |                                      |
  | external_gateway_info   |                                      |
  | flavor_id               |                                      |
  | ha                      | True                                 |
  | id                      | b7364546-0227-4de9-beaa-ef5ea848ec0b |
  | name                    | Router_eNet                          |
  | project_id              | a4c33cca12ea4b7e892f80f1009a2363     |
  | revision_number         | 2                                    |
  | routes                  |                                      |
  | status                  | ACTIVE                               |
  | tags                    |                                      |
  | tenant_id               | a4c33cca12ea4b7e892f80f1009a2363     |
  | updated_at              | 2018-04-01T10:30:47Z                 |
  +-------------------------+--------------------------------------+
  (.venv) (overcloud) [stack@c09-h04-r630 octavia-tempest-plugin]$ neutron router-list
  neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  +--------------------------------------+-------------+----------------------------------+-----------------------+------+
  | id                                   | name        | tenant_id                        | external_gateway_info | ha   |
  +--------------------------------------+-------------+----------------------------------+-----------------------+------+
  | b7364546-0227-4de9-beaa-ef5ea848ec0b | Router_eNet | a4c33cca12ea4b7e892f80f1009a2363 | null                  | True |
  +--------------------------------------+-------------+----------------------------------+-----------------------+------+
  (.venv) (overcloud) [stack@c09-h04-r630 octavia-tempest-plugin]$ neutron router-interface-add Router_eNet subnet=int_sub
  neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  Added interface 78ecc2d2-769e-4746-ac59-449b620cdec6 to router Router_eNet.
  (.venv) (overcloud) [stack@c09-h04-r630 octavia-tempest-plugin]$ neutron router-gateway-set Router_eNet admin-ext
  neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  Set gateway for router Router_eNet
  (.venv) (overcloud) [stack@c09-h04-r630 octavia-tempest-plugin]$ openstack floating ip set 172.168.30.221 --port 8af20b95-fbf3-4116-b630-68cc7b468060
  (.venv) (overcloud) [stack@c09-h04-r630 octavia-tempest-plugin]$

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-openstackclient/+bug/1760405/+subscriptions


References