[SRU] Failed to create port on network <UUID>, because fixed_ips included invalid subnet <UUID>
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Fix Released
|
Undecided
|
Felipe Reyes | ||
Ubuntu Cloud Archive |
Invalid
|
Undecided
|
Unassigned | ||
Antelope |
In Progress
|
Undecided
|
Unassigned | ||
Bobcat |
Won't Fix
|
Undecided
|
Unassigned | ||
Ussuri |
New
|
Undecided
|
Unassigned | ||
Yoga |
New
|
Undecided
|
Unassigned | ||
Zed |
Won't Fix
|
Undecided
|
Unassigned | ||
magnum (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
In Progress
|
Undecided
|
Unassigned | ||
Jammy |
In Progress
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When creating a new "cluster"that overrides the fixed network defined in the cluster template, but not the subnet.
It would be expected that the cluster create request fails with a 400 error since the client is submitting an invalid request.
[Environment]
Focal Ussuri
[Test Case]
1. Create a new cluster template WITHOUT a fixed network/subnet set.
openstack coe cluster template create k8s-cluster-
--image fedora-coreos-32 \
--keypair testkey \
--external-
--flavor m1.small \
--network-
--coe kubernetes \
--fixed-network admin_net \
--fixed-subnet admin_subnet
2. Create a new cluster using the template previously created and select an existing network
openstack coe cluster create \
--cluster-
--timeout 120 \
--fixed-network private \
k8scluster
Expected result
The cluster gets created
Actual result:
The cluster creation fails with the following error:
$ openstack coe cluster show k8scluster -f json -c faults | jq -r '.faults'
{
"default-master": "Resource CREATE failed: BadRequest: resources.
"default-worker": "Resource CREATE failed: BadRequest: resources.
}
[ Where problems could occur ]
- This change introduces validation of the configuration passed by the user during the creation of a new cluster, issues can be raised during the creation of new clusters, but not for already created clusters.
[ Other Info ]
- The patches associated to this SRU were merged during the OpenStack 2024.1 (Caracal) devel cycle
- Patches
+ https:/
+ https:/
Related branches
- Ubuntu OpenStack uploaders: Pending requested
-
Diff: 301 lines (+275/-0)4 files modifieddebian/changelog (+7/-0)
debian/patches/lp2038109-1.patch (+93/-0)
debian/patches/lp2038109-2.patch (+173/-0)
debian/patches/series (+2/-0)
- Ubuntu OpenStack uploaders: Pending requested
-
Diff: 301 lines (+275/-0)4 files modifieddebian/changelog (+7/-0)
debian/patches/lp2038109-1.patch (+93/-0)
debian/patches/lp2038109-2.patch (+173/-0)
debian/patches/series (+2/-0)
- Ubuntu OpenStack uploaders: Pending requested
-
Diff: 301 lines (+275/-0)4 files modifieddebian/changelog (+7/-0)
debian/patches/lp2038109-1.patch (+93/-0)
debian/patches/lp2038109-2.patch (+173/-0)
debian/patches/series (+2/-0)
Changed in magnum (Ubuntu): | |
status: | New → Confirmed |
description: | updated |
the issue can be reproduced using master (with devstack)
$ openstack coe cluster template create k8s-cluster- template --image fedora- coreos- 35.20220116. 3.0-openstack. x86_64 --keypair testkey --external-network public --flavor m1.small --network-driver flannel --coe kubernetes template accepted ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ---+ ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ---+ a710-4f24- 8850-f9911e7ff0 d5 | coreos- 35.20220116. 3.0-openstack. x86_64 | storage_ driver | overlay2 | template | 03T19:45: 21.945595+ 00:00 | ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ---+ template k8s-cluster- template \ ...
Request to create cluster template k8s-cluster-
+------
| Field | Value |
+------
| insecure_registry | - |
| labels | {} |
| updated_at | - |
| floating_ip_enabled | True |
| fixed_subnet | - |
| master_flavor_id | - |
| uuid | 9c7edc11-
| no_proxy | - |
| https_proxy | - |
| tls_disabled | False |
| keypair_id | testkey |
| public | False |
| http_proxy | - |
| docker_volume_size | - |
| server_type | vm |
| external_network_id | public |
| cluster_distro | fedora-coreos |
| image_id | fedora-
| volume_driver | - |
| registry_enabled | False |
| docker_
| apiserver_port | - |
| name | k8s-cluster-
| created_at | 2023-10-
| network_driver | flannel |
| fixed_network | - |
| coe | kubernetes |
| flavor_id | m1.small |
| master_lb_enabled | False |
| dns_nameserver | 8.8.8.8 |
| hidden | False |
| tags | - |
+------
$ openstack coe cluster create \
--cluster-