[Bug 2077382] [NEW] [SRU] support additional parametes on deploy()
Launchpad Bug Tracker
2077382 at bugs.launchpad.net
Thu Oct 24 20:22:26 UTC 2024
You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):
[ Impact ]
* This SRU is not addressing an existing problem but adds support for
two additional optional parameters being ephemeral_deploy and
enable_hw_sync on deploy(). For more details please see (1).
[ Test Plan ]
* Pre-Requisits: A MAAS controller, an API key as well as a free
physical machine or VM to perform the deployment tests.
* Install the current version of python3-libmaas
(0.6.8-0ubuntu0.22.04.1), then perform a deployment. Validate the final
results, including the final machine state of Deployed and any other
tests such as SSH. Release the machine after he validation is complete.
* Install the modified python3-libmaas (0.6.8-0ubuntu0.22.04.2), then
perform a new deployment. Verify the deployment results, similar to the
previous step. Release the machine after completion. This step ensures
there are no regressions as the newly introduced parameters are set to
False by default.
* Repeat the deployment while still on modified version. This time
supply the new additional parameters ephemeral_deploy=True,
enable_hw_sync=True. Verify the final results and release the machine.
Please note that since this is an ephemeral deployment, it completes
very quickly.
* To help streamlining the test process, a test script has been provided
and attached to the bug. It requires maas_endpoint as well as
maas_apikey variables to be filled in the source before being utilized.
Please note that install_python_libmaas_modified() currently installs
the modified package from a temporary PPA - That would require a
modification to install the modified package from the proposed pocket
and similar.
* To manually validate an Ephemeral deployment, SSH to the deployed
machine and issue the following command, while comparing the output
(Note overlayroot):
$ mount | grep -w /
overlayroot on / type overlay (rw,relatime,lowerdir=/media/root-ro,upperdir=/media/root-rw/overlay,workdir=/media/root-rw/overlay-workdir/_,xino=off)
* To manually validate the presence of Hardware Sync, issue the
following command. Note "Finished MAAS Hardware Sync Service" message
line in the output.
$ sudo systemctl status maas_hardware_sync
[ Where problems could occur ]
* Due to the nature of the change and the additional parameters being
optional we are not expecting any adverse effect on existing integration
using python-libmaas.
(1) https://github.com/canonical/python-libmaas/issues/300
** Affects: python-libmaas (Ubuntu)
Importance: High
Assignee: Alan Baghumian (alanbach)
Status: Incomplete
** Affects: python-libmaas (Ubuntu Jammy)
Importance: High
Assignee: Alan Baghumian (alanbach)
Status: Incomplete
** Affects: python-libmaas (Ubuntu Noble)
Importance: High
Assignee: Alan Baghumian (alanbach)
Status: Incomplete
** Affects: python-libmaas (Ubuntu Oracular)
Importance: High
Assignee: Alan Baghumian (alanbach)
Status: Incomplete
** Affects: python-libmaas (Ubuntu Plucky)
Importance: High
Assignee: Alan Baghumian (alanbach)
Status: Incomplete
** Tags: patch
--
[SRU] support additional parametes on deploy()
https://bugs.launchpad.net/bugs/2077382
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