Victoria -> Wallaby openstack-upgrade fails with "Command '['apt-get'] ' returned non-zero exit status 100." and apt gets into "Try 'apt --fix-broken install'"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
Environment is:
* Focal-Victoria cloud during upgrade to Focal-Wallaby
* Juju 2.9.45
* All charms were refreshed to their victoria/latest on the 29th of May.
* The juju status --relations output: https:/
* Nova-compute revision after refresh to wallaby/stable is 726
* The sanitized bundle is here: https:/
Cloud is under upgrade from Victoria to Wallaby. I'm doing one by one upgrades.
1. Control plane is all on Wallaby, including nova-cloud-
2. Set `juju config nova-compute action-
3. Refreshed `nova-compute` to 'wallaby/stable'
4. `dist-upgrade` on the node
5. Set `juju config nova-compute openstack-
6. Ran `juju run-action --wait nova-compute/XX pause`
7. Ran `juju run-action --wait nova-compute/XX openstack-upgrade`
Two out of three nodes fail `openstack-upgrade`
```
$ juju show-action-status 7259
actions:
- action: openstack-upgrade
completed at: "2024-06-05 06:32:57"
id: "7259"
status: failed
unit: nova-compute/2
$ juju show-action-output 7259
...
outcome: upgrade failed, see traceback.
traceback: |
Traceback (most recent call last):
File "/var/lib/
File "/var/lib/
File "/var/lib/
File "/var/lib/
File "/var/lib/
result = subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.
```
The full output of the failed action is: https:/
Unit log during the upgrade is: https:/
Workaround was to complete the upgrade manually:
```
sudo apt install --fix-broken --option Dpkg::Options:
sudo apt upgrade --option Dpkg::Options:
```
Hosts work well after that, I cannot detect any obvious issue.
I suspect there are some broken dependencies in apt repos for the upgrade. To make it easier to troubleshoot, I collected a nova-wallaby-
* packages-*.txt - contains `dpkg -l`
* upgradable-*.txt - contains `apt list --upgradable`
* sources-*.txt - contains `grep ^ /etc/apt/
* apt-history.log - a copy of /var/log/
* *-before-
* *-before-
* *-during-
* *-after-
* *-after-upgade.txt - means I took it after manual `apt upgrade`
* fix-broken-
Sorry for my lack of expertise in apt dependency management. I'm attaching also /var/log/ apt/eipp. log for both nodes. Maybe it will be useful.