[Bug 2038109] [NEW] Failed to create port on network <UUID>, because fixed_ips included invalid subnet <UUID>
Launchpad Bug Tracker
2038109 at bugs.launchpad.net
Wed Jul 17 20:31:28 UTC 2024
You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):
[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-template \
--image fedora-coreos-32 \
--keypair testkey \
--external-network ext_net \
--flavor m1.small \
--network-driver flannel \
--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-template k8s-cluster-template \
--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.kube_masters.resources[0].resources.kube_master_eth0: Invalid input for operation: Failed to create port on network 525df7a4-1aeb-4eae-a37f-432a809a8161, because fixed_ips included invalid subnet 30e1b4ed-811f-4226-a19d-0a56cc72fc10.\nNeutron server returns request_ids: ['req-7a55a40a-3aa3-4a67-8ecf-b2e47ae16a84']",
"default-worker": "Resource CREATE failed: BadRequest: resources.kube_masters.resources[0].resources.kube_master_eth0: Invalid input for operation: Failed to create port on network 525df7a4-1aeb-4eae-a37f-432a809a8161, because fixed_ips included invalid subnet 30e1b4ed-811f-4226-a19d-0a56cc72fc10.\nNeutron server returns request_ids: ['req-7a55a40a-3aa3-4a67-8ecf-b2e47ae16a84']"
}
** Affects: cloud-archive
Importance: Undecided
Status: Invalid
** Affects: cloud-archive/antelope
Importance: Undecided
Status: In Progress
** Affects: cloud-archive/bobcat
Importance: Undecided
Status: In Progress
** Affects: cloud-archive/ussuri
Importance: Undecided
Status: New
** Affects: cloud-archive/yoga
Importance: Undecided
Status: New
** Affects: cloud-archive/zed
Importance: Undecided
Status: In Progress
** Affects: magnum
Importance: Undecided
Assignee: Felipe Reyes (freyes)
Status: Fix Released
** Affects: magnum (Ubuntu)
Importance: Undecided
Status: Confirmed
** Affects: magnum (Ubuntu Focal)
Importance: Undecided
Status: In Progress
** Affects: magnum (Ubuntu Jammy)
Importance: Undecided
Status: In Progress
** Tags: patch
--
Failed to create port on network <UUID>, because fixed_ips included invalid subnet <UUID>
https://bugs.launchpad.net/bugs/2038109
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list