-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[zypper] "msg: Zypper run command failed with return code 5." when using community.general.zypper module on MicroOS #5615
Comments
Files identified in the description: If these files are incorrect, please update the |
Right now the module detects whether it should use transactional-update by looking whether |
An additional check if transactional-update exists might help
|
I propose testing if See ExNG@5fd014f |
Great to see that the support for transactional-updates / MicroOS & Co. is actually used :)
I'm not sure if that's correct, I had that in mind when implementing it, but intentionally decided against it. Does anything like |
Sorry i only yet got around testing. |
* fix(zypper): Added condition to check for transactional-update binary to support microos closes #5615 * style(changelog): Made zypper-change uppercase Co-authored-by: Felix Fontein <felix@fontein.de> * fix(zypper): Removed check for /var/lib/misc/transactional-update.state * feat(zypper): Aligned transactional-update checks with zypper's * refactor(zypper): Removed dependency to psutil and made use of parsing /proc/mount * refactor(zypper): Removed need for regex, plus small refactoring --------- Co-authored-by: André Dörscheln <ad@itesign.de> Co-authored-by: Felix Fontein <felix@fontein.de>
* fix(zypper): Added condition to check for transactional-update binary to support microos closes #5615 * style(changelog): Made zypper-change uppercase Co-authored-by: Felix Fontein <felix@fontein.de> * fix(zypper): Removed check for /var/lib/misc/transactional-update.state * feat(zypper): Aligned transactional-update checks with zypper's * refactor(zypper): Removed dependency to psutil and made use of parsing /proc/mount * refactor(zypper): Removed need for regex, plus small refactoring --------- Co-authored-by: André Dörscheln <ad@itesign.de> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 2c762c4)
* fix(zypper): Added condition to check for transactional-update binary to support microos closes #5615 * style(changelog): Made zypper-change uppercase Co-authored-by: Felix Fontein <felix@fontein.de> * fix(zypper): Removed check for /var/lib/misc/transactional-update.state * feat(zypper): Aligned transactional-update checks with zypper's * refactor(zypper): Removed dependency to psutil and made use of parsing /proc/mount * refactor(zypper): Removed need for regex, plus small refactoring --------- Co-authored-by: André Dörscheln <ad@itesign.de> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 2c762c4)
…roOS (#6077) Added support for openSUSE MicroOS (#5998) * fix(zypper): Added condition to check for transactional-update binary to support microos closes #5615 * style(changelog): Made zypper-change uppercase Co-authored-by: Felix Fontein <felix@fontein.de> * fix(zypper): Removed check for /var/lib/misc/transactional-update.state * feat(zypper): Aligned transactional-update checks with zypper's * refactor(zypper): Removed dependency to psutil and made use of parsing /proc/mount * refactor(zypper): Removed need for regex, plus small refactoring --------- Co-authored-by: André Dörscheln <ad@itesign.de> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 2c762c4) Co-authored-by: andre161292 <andre161292@users.noreply.github.com>
…roOS (#6078) Added support for openSUSE MicroOS (#5998) * fix(zypper): Added condition to check for transactional-update binary to support microos closes #5615 * style(changelog): Made zypper-change uppercase Co-authored-by: Felix Fontein <felix@fontein.de> * fix(zypper): Removed check for /var/lib/misc/transactional-update.state * feat(zypper): Aligned transactional-update checks with zypper's * refactor(zypper): Removed dependency to psutil and made use of parsing /proc/mount * refactor(zypper): Removed need for regex, plus small refactoring --------- Co-authored-by: André Dörscheln <ad@itesign.de> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 2c762c4) Co-authored-by: andre161292 <andre161292@users.noreply.github.com>
* fix(zypper): Added condition to check for transactional-update binary to support microos closes ansible-collections#5615 * style(changelog): Made zypper-change uppercase Co-authored-by: Felix Fontein <felix@fontein.de> * fix(zypper): Removed check for /var/lib/misc/transactional-update.state * feat(zypper): Aligned transactional-update checks with zypper's * refactor(zypper): Removed dependency to psutil and made use of parsing /proc/mount * refactor(zypper): Removed need for regex, plus small refactoring --------- Co-authored-by: André Dörscheln <ad@itesign.de> Co-authored-by: Felix Fontein <felix@fontein.de>
Summary
Using the following snippet on a freshly installed MicroOS will result in the zypper module not using
transactional-update
.Failling with:
Issue Type
Bug Report
Component Name
community.general.zypper module
Ansible Version
$ ansible --version
Community.general Version
Configuration
OS / Environment
openSUSE Tumbleweed
Steps to Reproduce
Expected Results
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: