Menu

#3963 yum update during genimage makes specific versions be lost

2.9
closed
None
linux provisioning
5
2014-12-10
2014-01-14
Russell
No

The following piece of code in genimage is making it impossible to install specific versions of packages during genimage time:

      # run yum update to update any installed rpms
      # needed when running genimage again after updating software in repositories
      my $yumcmd_update = $yumcmd_base . " update  ";
      $rc = system("$yumcmd_update");

This really needs to be an optional flag of some sort.

Discussion

  • Lissa Valletta

    Lissa Valletta - 2014-01-16
    • assigned_to: Guang Cheng Li
    • component: --> general
    • Milestones: 2.8.3 --> 2.9
     
  • Lissa Valletta

    Lissa Valletta - 2014-01-16

    Guang Cheng could you evaluate whether this is needed in the next release. Do we need more information.

     
  • Guang Cheng Li

    Guang Cheng Li - 2014-10-23
    • assigned_to: Guang Cheng Li --> Victor Hu
    • component: --> unknown
     
  • Guang Cheng Li

    Guang Cheng Li - 2014-10-23

    Victor, could you work on this bug? Thanks.

     
  • Guang Cheng Li

    Guang Cheng Li - 2014-10-23
    • component: unknown --> linux provisioning
     
  • Anonymous

    Anonymous - 2014-10-28

    Victor - I know we just closed this defect as "won't fix":
    http://sourceforge.net/p/xcat/bugs/3681/

    but that may actually be the correct solution to this problem.

    If a user wants to replace an OS rpm with an older version, they could first do a remove ("- pkgname") in their osimage.pkglist file, then do the add of the older version in their otherpkgs.pkglist file.

    However, this would only work if we do the yum upgrade BEFORE we do the otherpkgs processing.

     
  • Victor Hu

    Victor Hu - 2014-11-06
    • status: open --> accepted
     
  • Victor Hu

    Victor Hu - 2014-11-07

    A new flag is added to the genimage command: --noupdate

    This flag will allow the user to bypass the automatic package update when installing other packages. WITHOUT specifying the new flag, the behavior of genimage remains unchanged.

    Changes are made only to 2.9 release: b59f72bd8eb2f001c50652b0e0ad43287ee87a9e

    Russell, there is no plan to fix the release you opened this on. You can easily bypass this behavior by commenting or deleting those lines of code you identified.

     
  • Victor Hu

    Victor Hu - 2014-11-07
    • status: accepted --> pending
     
  • Victor Hu

    Victor Hu - 2014-11-10

    FYI , Had some discussions with Linda today, as she pointed out, Bug 3681 should be the solution for this. I will work on 3681 and once that is implemented, the --noupdate flag should no longer be needed to achieve this behavior... .

     
  • ting ting li

    ting ting li - 2014-12-10
    • status: pending --> closed
     
MongoDB Logo MongoDB