-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.16.z
-
+
-
No
-
False
-
-
Release Note Not Required
-
In Progress
Description of problem:
In RHOSP18, octavia requires a provider network to work that is visible for all tenants:
$ OS_CLOUD=shiftstack openstack network list +--------------------------------------+------------------------------------------------------------------+--------------------------------------+ | ID | Name | Subnets | +--------------------------------------+------------------------------------------------------------------+--------------------------------------+ | 7d368673-868a-4f3d-b56c-f0f4535d2cf9 | octavia-provider-net | f4578152-e927-49df-b306-4e4780688248 | | 7f92fe74-1b53-48f0-87ef-ab51a733e8e0 | k8s-clusterapi-cluster-openshift-cluster-api-guests-ostest-xk7mq | 0fc1e0ac-ecfa-4a79-b99e-55d90baa9d29 | | e50c7fcb-f061-45a1-a1be-fde2b8c2c183 | public | 824bafbe-b247-4a3c-85d8-056f2593e9de | +--------------------------------------+------------------------------------------------------------------+--------------------------------------+
That is provoking that the function GetFloatingNetworkID in https://github.com/openshift/openstack-test/blob/main/test/extended/openstack/utils.go#L484 is taking the octavia-provider-net instead of the public.
The testcase is failing then as below:
fail [/home/cloud-admin/artifacts/openstack-test/test/extended/openstack/egressip.go:171]: Unexpected error: <gophercloud.ErrUnexpectedResponseCode>: Expected HTTP response code [200] when accessing [PUT https://neutron-public-openstack.apps.ocp.openstack.lab/v2.0/floatingips/a8227415-a238-46a9-8742-8d97788379a7], but got 404 instead: {"NeutronError": {"type": "ExternalGatewayForFloatingIPNotFound", "message": "External network 7d368673-868a-4f3d-b56c-f0f4535d2cf9 is not reachable from subnet 0fc1e0ac-ecfa-4a79-b99e-55d90baa9d29. Therefore, cannot associate Port b3880a25-d5c4-403e-962c-fcf7453f7c90 with a Floating IP.", "detail": ""}} { BaseError: {DefaultErrString: "", Info: ""}, URL: "https://neutron-public-openstack.apps.ocp.openstack.lab/v2.0/floatingips/a8227415-a238-46a9-8742-8d97788379a7", Method: "PUT", Expected: [200], Actual: 404, Body: "{\"NeutronError\": {\"type\": \"ExternalGatewayForFloatingIPNotFound\", \"message\": \"External network 7d368673-868a-4f3d-b56c-f0f4535d2cf9 is not reachable from subnet 0fc1e0ac-ecfa-4a79-b99e-55d90baa9d29. Therefore, cannot associate Port b3880a25-d5c4-403e-962c-fcf7453f7c90 with a Floating IP.\", \"detail\": \"\"}}", ResponseHeader: { "Date": [ "Fri, 07 Jun 2024 09:48:14 GMT", ], "Server": ["Apache"], "Content-Type": ["application/json"], "Content-Length": ["306"], "X-Openstack-Request-Id": [ "req-efd5edd2-51b5-406d-a4b6-247bc122a9a7", ], "Set-Cookie": [ "38cec1d9c789c59243203143f8ef839e=7ee82543e17ea0cf5b513f2453505183; path=/; HttpOnly; Secure; SameSite=None", ], }, } occurred
The test should be able to pick the public network instead and discard the octavia-provider-net without affecting the current behaviour in OSP17.1 deployments.
Further info:
[cloud-admin@shiftstackclient ~]$ OS_CLOUD=shiftstack openstack network show octavia-provider-net +---------------------------+--------------------------------------+ | Field | Value | +---------------------------+--------------------------------------+ | admin_state_up | UP | | availability_zone_hints | | | availability_zones | | | created_at | 2024-06-06T17:45:06Z | | description | LBaaS Management Provider Network | | dns_domain | | | id | 7d368673-868a-4f3d-b56c-f0f4535d2cf9 | | ipv4_address_scope | None | | ipv6_address_scope | None | | is_default | False | | is_vlan_transparent | None | | l2_adjacency | True | | mtu | 1500 | | name | octavia-provider-net | | port_security_enabled | True | | project_id | 05c0461393ef4435b0e76b356b71c598 | | provider:network_type | None | | provider:physical_network | None | | provider:segmentation_id | None | | qos_policy_id | None | | revision_number | 2 | | router:external | External | | segments | None | | shared | False | | status | ACTIVE | | subnets | f4578152-e927-49df-b306-4e4780688248 | | tags | | | tenant_id | 05c0461393ef4435b0e76b356b71c598 | | updated_at | 2024-06-06T17:45:08Z | +---------------------------+--------------------------------------+ [cloud-admin@shiftstackclient ~]$ OS_CLOUD=shiftstack openstack network show public +---------------------------+--------------------------------------+ | Field | Value | +---------------------------+--------------------------------------+ | admin_state_up | UP | | availability_zone_hints | | | availability_zones | | | created_at | 2024-06-06T17:57:10Z | | description | | | dns_domain | | | id | e50c7fcb-f061-45a1-a1be-fde2b8c2c183 | | ipv4_address_scope | None | | ipv6_address_scope | None | | is_default | False | | is_vlan_transparent | None | | l2_adjacency | True | | mtu | 1500 | | name | public | | port_security_enabled | True | | project_id | 05c0461393ef4435b0e76b356b71c598 | | provider:network_type | None | | provider:physical_network | None | | provider:segmentation_id | None | | qos_policy_id | None | | revision_number | 2 | | router:external | External | | segments | None | | shared | True | | status | ACTIVE | | subnets | 824bafbe-b247-4a3c-85d8-056f2593e9de | | tags | | | tenant_id | 05c0461393ef4435b0e76b356b71c598 | | updated_at | 2024-06-06T17:57:14Z | +---------------------------+--------------------------------------+
- blocks
-
OCPBUGS-37495 egressIP test selecting wrong floatingNetworkId in RHOSP18
- Verified
- is cloned by
-
OCPBUGS-37495 egressIP test selecting wrong floatingNetworkId in RHOSP18
- Verified
- links to