https://www.puppet.com/community logo
Join Slack
Powered by
# voxpupuli
  • v

    VoxBot

    06/17/2022, 4:30 PM
    Sorry for the bother but this is literally a roadblock for us right now. I'm hoping that without that one change, things will be fine
  • v

    VoxBot

    06/17/2022, 4:31 PM
    Is there anyone else that might be able to review?
  • v

    VoxBot

    06/17/2022, 4:31 PM
    I'll rereview after dinner
  • v

    VoxBot

    06/17/2022, 4:31 PM
    ewoud: Much appreciated!
  • v

    VoxBot

    06/17/2022, 5:02 PM
    tvaughan: btw, you may find https://github.com/theforeman/puppet-puppet/issues/832 also interesting - I only saw this on Ubuntu Focal and I should probably file a bug against systemd
  • v

    VoxBot

    06/17/2022, 5:03 PM
    tl;dr: on Ubuntu 20.04 systemctl show --property NeedDaemonReload is unreliable when the $unit.d directory is created
  • t

    tvaughan

    06/17/2022, 5:03 PM
    Well, that's unpleasant 😞
  • v

    VoxBot

    06/17/2022, 5:40 PM
    anyone have any thoughts on this? and if Tim is busy, maybe we can drop Arch support, or at least tests? https://github.com/voxpupuli/puppet-rabbitmq/pull/905
  • p

    Pat Riehecky

    06/17/2022, 6:21 PM
    Thanks for the review @tvaughan An approval of https://github.com/voxpupuli/puppet-yum/pull/253 and release with this fix would be handy for EL8+
  • p

    Pat Riehecky

    06/17/2022, 6:21 PM
    Thanks for the review @tvaughan An approval of https://github.com/voxpupuli/puppet-yum/pull/253 and release with this fix would be handy for EL8+
  • v

    vchepkov

    06/17/2022, 6:30 PM
    That seems weird
  • t

    tvaughan

    06/17/2022, 6:33 PM
    Honestly, just switching it to
    include
    is sufficient to prevent circular deps and issues with class resource declarations
  • t

    tvaughan

    06/17/2022, 6:34 PM
    @Pat Riehecky What were you trying to solve with that? ☝️
  • p

    Pat Riehecky

    06/17/2022, 6:35 PM
    I was trying to prevent circular dep loops
  • t

    tvaughan

    06/17/2022, 6:35 PM
    Yeah, just switching over to
    include
    will do that
  • v

    vchepkov

    06/17/2022, 6:35 PM
    I don't think it would be a correct change. plugin class makes sure that versionlock package is installed , why wouldn't it be required ?
  • v

    vchepkov

    06/17/2022, 6:36 PM
    I don't think it would be a correct change. plugin class makes sure that versionlock package is installed , why wouldn't it be required ?
  • p

    Pat Riehecky

    06/17/2022, 6:36 PM
    The
    include
    ensures the RPM is loaded, but a puppet
    require
    makes a dep loop if you want to use a param to generate a bunch of locks inline
  • s

    Slackbot

    06/17/2022, 6:37 PM
    This message was deleted.
    p
    • 2
    • 1
  • p

    Pat Riehecky

    06/17/2022, 6:37 PM
    I did
    👍 1
  • t

    tvaughan

    06/17/2022, 6:38 PM
    Yeah, I see where that could cause an issue pretty quickly.
  • p

    Pat Riehecky

    06/17/2022, 6:38 PM
    PR updated
  • t

    tvaughan

    06/17/2022, 6:48 PM
    Yep, that test works as expected. I flipped it back and did, indeed, get dependency cycles.
  • t

    tvaughan

    06/17/2022, 6:55 PM
    facepalm Oh...I see the issue. The
    yum::plugin::versionlock
    class should not have calls to
    yum::versionlock
    in it if it's going to use
    require
    . The
    require
    is generally correct in terms of wanting to make sure that the package is installed first.
  • t

    tvaughan

    06/17/2022, 6:56 PM
    So, either that package loop needs to go into a class or the
    yum::plugin
    call needs to go into a class.
  • t

    tvaughan

    06/17/2022, 6:56 PM
    (Or you leave it as-is because it's probably fine)
  • t

    tvaughan

    06/17/2022, 6:56 PM
    But it's not 100% guaranteed to be correct
  • v

    vchepkov

    06/17/2022, 6:58 PM
    right, in this case it just so happens that existing directory is used to store configuration file, but in general case there would be a failure if package creates a directory structure.
  • t

    tvaughan

    06/17/2022, 7:00 PM
    @Pat Riehecky Yeah, the
    require
    needs to go back but the
    plugin::versionlock::packages
    parameter needs to either be removed or farmed out to another class to do the resource creation.
1...818283...648Latest