[Bug 2038663] Re: [SRU] no option to override the fixed_subnet when creating a new cluster
Felipe Reyes
2038663 at bugs.launchpad.net
Wed Dec 4 16:06:16 UTC 2024
The validation for Focal has been successful, here it's the log of the
changes made to upgrade python3-magnum-ui and screenshots of reproducing
the issue and the issue fixed.
$ juju ssh magnum-dashboard/leader sudo -i
root at juju-aa3bad-zaza-0ac9fbf43d8c-18:~# apt policy python3-magnum-ui
python3-magnum-ui:
Installed: 6.0.1-0ubuntu1
Candidate: 6.0.1-0ubuntu1
Version table:
*** 6.0.1-0ubuntu1 500
500 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
100 /var/lib/dpkg/status
5.2.0-1 500
500 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
root at juju-aa3bad-zaza-0ac9fbf43d8c-18:~# vim /etc/apt/sources.list
root at juju-aa3bad-zaza-0ac9fbf43d8c-18:~# apt-get update
Get:1 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB]
Get:3 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-proposed InRelease [277 kB]
Get:4 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB]
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Get:6 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages [305 kB]
Get:7 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-proposed/main Translation-en [61.2 kB]
Get:8 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-proposed/main amd64 c-n-f Metadata [1436 B]
Get:9 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-proposed/universe amd64 Packages [40.6 kB]
Get:10 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-proposed/universe Translation-en [20.0 kB]
Get:11 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-proposed/universe amd64 c-n-f Metadata [1772 B]
Fetched 1227 kB in 2s (637 kB/s)
Reading package lists... Done
root at juju-aa3bad-zaza-0ac9fbf43d8c-18:~# apt policy python3-magnum-ui
python3-magnum-ui:
Installed: 6.0.1-0ubuntu1
Candidate: 6.0.1-0ubuntu1.1
Version table:
6.0.1-0ubuntu1.1 500
500 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-proposed/universe amd64 Packages
*** 6.0.1-0ubuntu1 500
500 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
100 /var/lib/dpkg/status
5.2.0-1 500
500 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
root at juju-aa3bad-zaza-0ac9fbf43d8c-18:~# apt install --only-upgrade python3-magnum-ui
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
python3-magnum-ui
1 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.
Need to get 79.6 kB of archives.
After this operation, 2048 B of additional disk space will be used.
Get:1 http://availability-zone-2.clouds.archive.ubuntu.com/ubuntu focal-proposed/universe amd64 python3-magnum-ui all 6.0.1-0ubuntu1.1 [79.6 kB]
Fetched 79.6 kB in 0s (175 kB/s)
(Reading database ... 90440 files and directories currently installed.)
Preparing to unpack .../python3-magnum-ui_6.0.1-0ubuntu1.1_all.deb ...
Unpacking python3-magnum-ui (6.0.1-0ubuntu1.1) over (6.0.1-0ubuntu1) ...
Setting up python3-magnum-ui (6.0.1-0ubuntu1.1) ...
root at juju-aa3bad-zaza-0ac9fbf43d8c-18:~# systemctl restart apache2
root at juju-aa3bad-zaza-0ac9fbf43d8c-18:~#
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/2038663
Title:
[SRU] no option to override the fixed_subnet when creating a new
cluster
Status in Ubuntu Cloud Archive:
Invalid
Status in Ubuntu Cloud Archive antelope series:
Fix Committed
Status in Ubuntu Cloud Archive bobcat series:
Won't Fix
Status in Ubuntu Cloud Archive ussuri series:
New
Status in Ubuntu Cloud Archive yoga series:
New
Status in Ubuntu Cloud Archive zed series:
Won't Fix
Status in Magnum UI:
Fix Released
Status in magnum-ui package in Ubuntu:
Invalid
Status in magnum-ui source package in Focal:
Fix Committed
Status in magnum-ui source package in Jammy:
Fix Committed
Bug description:
[Impact]
When a cluster template sets fixed_network and fixed_subnet and the
user tries to create a new cluster using that template and decides to
override the network, the fixed_subnet will inherited from the
template, leaving an invalid configuration and later Neutron will
refuse to allocate a port (since the subnet doesn't belong to the
network). For more details see
https://bugs.launchpad.net/ubuntu/+source/magnum/+bug/2038109
[Test Case]
1. Deploy an OpenStack cloud with the magnum-ui extension installed.
```
git clone https://opendev.org/openstack/charm-magnum-dashboard
cd charm-magnum-dashboard
git checkout stable/${VERSION} # ${VERSION} can be 2023.1, yoga or ussuri.
tox -e build
tox -e func-target -- ${BUNDLE} # ${BUNDLE} can be jammy-antelope, jammy-yoga or focal-ussuri
```
2. Create a new cluster template with a fixed_network test-net and fixed_subnet test-subnet
3. Create a new cluster, uncheck the option "Create new network" and pick a network different from test-net in the dropdown list.
Expected result:
The cluster gets created
Actual result:
The cluster creation fails, because the network configuration is
invalid.
[ Where problems could occur ]
This is a javascript (Angular) code change, issues can be detected
using the Web Developer Tools console where a javascript exeception
may be raised.
Another source of problems is that this code change adds a handler
when populate the list of subnets when the network is changed in the
"Fixed Network" dropdown list, if there were issues the subnet list
would be rendered empty.
[ Other Info ]
- This bug fix was merged during the 2024.1 (Caracal) development cycle - https://review.opendev.org/c/openstack/magnum-ui/+/898007
- The commit that fixes this issue is available since magnum-ui-14.0.0 - https://opendev.org/openstack/magnum-ui/commit/6f6c3db282fe2f0e08ad69c557eb153858b0164a
- This bug fix is not relevant for upgrades, it's purely UI fix
- This change is adding a new UI component, which on the surface may look like not suitable for a SRU, although the current UI induces users to get into a broken configuration for new clusters when overriding the cluster template's network.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/2038663/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list