by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Francois Armand
    @fanf
    ok, so for now, we eliminated:
    • the fact that it's because of undefined variables,
    • the fact that cache are not expired.
      I think we need @amousset now
    Alexis Mousset
    @amousset
    What does /var/rudder/cfengine-community/modules/packages/yum list-updates < /dev/null | grep -C3 rudder give?
    necarnot
    @necarnot
    on the node ?
    Alexis Mousset
    @amousset
    yes, on the CentOS node
    necarnot
    @necarnot
    @amousset I launched it on a centos 7.6 and on a centos 7.7. So far (2 minutes), both commands are stuck with no answer.
    Sounds like there's smthg interesting there.
    Alexis Mousset
    @amousset
    Indeed, is there another yum process running?
    necarnot
    @necarnot
    no
    (I love that smell of a good track we begin to get...)
    Alexis Mousset
    @amousset
    Does yum check-update work?
    necarnot
    @necarnot
    yes sir
    After reading the python code, I tried to run yum with every args possible. The ones with list-smthg are all stuck. I'm trying to understand the python code to see what's going on.
    necarnot
    @necarnot
    FYI, I'm also looking at apt-get python code on a 18.4 node. It's reacting the same : command stuck, no answer
    Alexis Mousset
    @amousset
    maybe a copy-paste issue with the < /dev/null redirection? that could explain
    necarnot
    @necarnot
    Sorry, I misunderstood that this commands were needing an input flow, so I forgot the "< /dev/null".
    Now, here are the results for different OSes (obviously, using apt-get for debian-like OSes) :
    • 18.04 : empty
    • centos 7.6 : Version=1398866025:6.1.1.release-1.EL.7
      On a centos 7.7, it looks like the automatic upgrade has been successfully during my noon break. To be sure to be sure, I'm trying to replicate the situation on another centos 7.7 node.
    necarnot
    @necarnot
    I have no 7.7 nodes left with an old 6.0.x agent. On a 7.6 node, the upgrade is not working (and the local ymu package command is not listing rudder)
    Alexis Mousset
    @amousset
    Ok, makes more sense. From which version are you trying to upgrade on 18.04?
    Could be because of the new dependencies, do you see new packages when upgrading manually?
    necarnot
    @necarnot
    6.0.6
    yes, I see tons of new packages
    Alexis Mousset
    @amousset
    Ok, passing the --with-new-pkgs option with the package_state_options method should make it work
    Francois Armand
    @fanf
    I would have never ever found that solution
    Alexis Mousset
    @amousset
    (by default apt refuses to upgrade a package if it has new dependencies, it requires a dist-upgrade or specific option)
    necarnot
    @necarnot
    Let me try that (for debian family nodes)
    Alexis Mousset
    @amousset
    You'll need to clear the caches to see the result immediately
    Francois Armand
    @fanf
    necarnot
    @necarnot
    OK. I tried to create a specific directive in which I'm using this option, but so far, even after a cache flush, nothing happened. Is using your patch the only way?
    Francois Armand
    @fanf
    @necarnot patch? You mean like in the screenshot in above PR ?
    image.png
    necarnot
    @necarnot
    No I wasn't using a custom technique, but i was trying to use the packageManagement directive
    Francois Armand
    @fanf
    perhaps the pythons files get resetted at each update, you need to change them on the server
    necarnot
    @necarnot
    I also created another custom technique just like in the screenshot, cleared the cache, and so far, nothing new. Maybe I have to wait the 240 minutes timeout?
    @fanf on the server, what is the location of those python files you're speaking about?
    Francois Armand
    @fanf
    @necarnot sorry, I never remember their place
    but if the custom technique doesn't work either, it seems to be unlikly to be the pb
    Francois Armand
    @fanf
    (i'm trying to reproduce)
    Francois Armand
    @fanf
    image.png
    OK, I reproduce: -^
    Francois Armand
    @fanf
    there must be a pb with the option. I will look to it this night, I need to go now @necarnot
    necarnot
    @necarnot
    @fanf Fran├žois, you're working too late!
    Francois Armand
    @fanf
    @necarnot I found the problem, but correcting it will be above my expertise
    necarnot
    @necarnot
    According to what you pointed at in the issue tracker, you look very close
    Francois Armand
    @fanf
    yes, but I don't get why adding the option in the python script lead to an error "
    while it works in command line
    and apt+python is a bit too much for me
    necarnot
    @necarnot
    I don't know in what timezone you're living, but for myself, this is a very good track I'll be happy to follow tomorow
    Francois Armand
    @fanf
    :)
    bye, good night!
    Francois Armand
    @fanf
    @necarnot update: a master shell/python (@peckpeck) is starting to believe farming goats in Larzac is an appealing live style
    necarnot
    @necarnot
    @fanf I couldn't agree more