action #29977
closed[CaaSP] Install the pkg before trying to update
100%
Description
See here: https://openqa.suse.de/tests/1346993#step/stack_update/4
This maintenance update contained an update for qemu, but qemu is not pre-installed by default in MicroOS. As a result, when openQA tried to apply the update, the update failed because nothing got updated.
d173:~ # zypper se -s qemu
Refreshing service 'SUSE_Container_as_a_Service_Platform_2.0_x86_64'.
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository |
---|---|---|---|---|---|
qemu | srcpackage | 2.9.1-6.9.2 | noarch | SUSE-CAASP-ALL-Updates | |
qemu-guest-agent | package | 2.9.1-6.9.2 | x86_64 | SUSE-CAASP-ALL-Updates | |
qemu-guest-agent | package | 2.9.1-6.6.3 | x86_64 | SUSE-CAASP-ALL-Pool |
Now we have to make the test more clever, in order to know up front what packages are included in the update and try to install them before.
Updated by pdostal about 6 years ago
- % Done changed from 0 to 10
Hello, I'm working on it and in the update.sh
script I managed to make the list of packages in the UPDATE repository, installed those packages and then with Panos we figured out that after this we need to actually reboot the whole cluster to make those changes present and after that reboot we can continue with the update process. So this is getting more complex and will need further planning and discussion.
Updated by pgeorgiadis about 6 years ago
- Assignee changed from pgeorgiadis to pdostal
Alright then. I've changed the Assignee to corresponds your name ;)
Today I see we got hit again by this issue: https://openqa.suse.de/tests/1645828#step/stack_update/8
Updated by mkravec about 6 years ago
I started to work on it here: https://github.com/kravciak/openqa-tests/tree/cluster_reboot
It's just a draft, not tested yet. Hope it helps, I can add more next week.
Please try to look at "Detect & install missing packages" in update.sh - I have no idea how to do that.
Updated by pgeorgiadis almost 6 years ago
- Status changed from New to In Progress
- Assignee changed from pdostal to pgeorgiadis
- % Done changed from 10 to 100
After revising your both approaches, I ended up with with: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/4986
Updated by pgeorgiadis almost 6 years ago
- Status changed from In Progress to Resolved