action #89993
closedOSD deployment rollback failed finding "before" and "osd_deployment_rpm_q" files
0%
Description
Observation¶
https://gitlab.suse.de/openqa/osd-deployment/-/jobs/359422
$ ssh $TARGET \ # collapsed multi-line command
cat: before: No such file or directory
+++ cat osd-deployment_rpm_q
cat: osd-deployment_rpm_q: No such file or directory
+++ paste -sd,
++ ssh openqa.suse.de 'set -x; cd /tmp && test -e /tmp/before && sudo zypper -n --no-refresh in --oldpackage $(eval "ls /var/cache/zypp/packages/*/*/{}* | paste -sd'\'' '\''") && sudo salt -C '\''G@roles:worker'\'' cmd.run '\''zypper -n --no-refresh in --oldpackage $(eval "ls /var/cache/zypp/packages/*/*/{}* | paste -sd'\'' '\''")'\'''
Warning: Permanently added the ECDSA host key for IP address '10.160.0.207' to the list of known hosts.
+ cd /tmp
+ test -e /tmp/before
++ eval 'ls /var/cache/zypp/packages/*/*/{}* | paste -sd'\'' '\'''
+++ paste '-sd '
+++ ls '/var/cache/zypp/packages/*/*/{}*'
ls: cannot access '/var/cache/zypp/packages/*/*/{}*': No such file or directory
+ sudo zypper -n --no-refresh in --oldpackage
install (in) [OPTIONS] <CAPABILITY|RPM_FILE_URI> ...
Install packages with specified capabilities or RPM files with specified location. A capability is
NAME[.ARCH][OP<VERSION>], where OP is one of <, <=, =, >=, >.
Command options:
-t, --type <TYPE> Type of package (package, patch, pattern, product).
Updated by mkittler almost 4 years ago
- Status changed from New to Feedback
Updated by okurz almost 4 years ago
MR merged. Feel welcome to actually try out the rollback in deployment for verification.
Updated by mkittler almost 4 years ago
I've tested it as described in the SR. That should be sufficient and even if further amendments are required that shouldn't be a big deal.
Updated by okurz almost 4 years ago
Yes but to have a "verification from production" it would be great to have a URL pointing to a successful rollback job on gitlab.
Updated by mkittler over 3 years ago
When I tried it, it didn't work as there are more problems. So @okurz is trying to move the commands into separate scripts now.
Updated by okurz over 3 years ago
- Status changed from Feedback to In Progress
- Assignee changed from mkittler to okurz
Updated by openqa_review over 3 years ago
- Due date set to 2021-04-13
Setting due date based on mean cycle time of SUSE QE Tools
Updated by okurz over 3 years ago
- Status changed from In Progress to Feedback
https://github.com/os-autoinst/openQA/pull/3814 merged. https://gitlab.suse.de/openqa/osd-deployment/-/merge_requests/28 for the use of the rollback script in the deployment chain. Fails in https://gitlab.suse.de/openqa/osd-deployment/-/jobs/377293#L53 likely due to incorrect quoting around the "dry-run" flag.