Project

General

Profile

Actions

action #29977

closed

[CaaSP] Install the pkg before trying to update

Added by pgeorgiadis over 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2018-01-04
Due date:
% Done:

100%

Estimated time:
Difficulty:

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.

Actions #1

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.

Actions #2

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

Actions #3

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.

Actions #4

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

Actions

Also available in: Atom PDF