← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1375909] [NEW] upgrade_packages broken in zypper/openSUSE

 

Public bug reported:

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.package_command("upgrade") to upgrade packages, where the given argument is passed directly to zypper. But unlike apt-get on Debian-based systems, zypper uses command update to upgrade packages.

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_update_upgrade_install.py instead of
package_command("upgrade").

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Patch added: "Patch for cloudinit/distros/sles.py"
   https://bugs.launchpad.net/bugs/1375909/+attachment/4220455/+files/sles.py.patch

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1375909

Title:
  upgrade_packages broken in zypper/openSUSE

Status in Init scripts for use on cloud images:
  New

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.package_command("upgrade") to upgrade packages, where the given argument is passed directly to zypper. But unlike apt-get on Debian-based systems, zypper uses command update to upgrade packages.

  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_update_upgrade_install.py instead of
  package_command("upgrade").

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1375909/+subscriptions


Follow ups

References