upgrade_packages broken in zypper/openSUSE
Bug #1375909 reported by
Aleš Křivák
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Given the following setting in user data:
#cloud-config
package_upgrade: true
cloud-init will fail to upgrade packages on openSUSE (and probably SLES) distro.
The reason for this is that cloud-init calls cloud.distro.
I am including simple patch to sles.py, which will modify argument in package_command, but it would be probably better to add new function (e. g. upgrade_packages) and call this in cc_package_
To post a comment you must log in.
Hi! thanks for taking the time to not only file a bug but also include a patch to resolve the issue! I apologize that no one got to your bug till now. I wanted to let you know that a revamp of the sles/opensuse code was recently merged here:
https:/ /github. com/cloud- init/cloud- init/commit/ cbda576a7bbf846 710ad55940bf8ca 1f2d2194b9
I am going to mark this fix committed. If you have any further questions or follow ups please feel free to respond in this bug! Thanks!