chrony package purge doesn't work because of the norpm provider
Bug #1665426 reported by
Alex Schultz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Alex Schultz |
Bug Description
We try and purge the chrony package when we install ntp[0]. But because we have a norpm provider that noops package interactions[1], it never gets purged so it's repeatedly attempted every run.
[0] https:/
[1] https:/
Changed in tripleo: | |
status: | Confirmed → Triaged |
tags: | added: ocata-backport-potential |
Changed in tripleo: | |
milestone: | pike-1 → ocata-rc2 |
Changed in tripleo: | |
milestone: | ocata-rc2 → pike-1 |
Changed in tripleo: | |
status: | Triaged → In Progress |
tags: | added: idempotency |
To post a comment you must log in.
So just for kicks I tried simply commenting out the whole purge section:
# package { 'chrony':
# ensure => 'purged',
# before => Service['ntp'],
# }
And I still get 5 restarts of ntp when redeploying the overcloud: main]/Ntp/ Anchor[ ntp::begin] /before (debug): subscribes to Class[Ntp::Install] main]/Ntp: :Install/ before (debug): subscribes to Class[Ntp::Config] main]/Ntp: :Config/ notify (debug): subscribes to Class[Ntp::Service] main]/Ntp: :Service/ before (debug): subscribes to Anchor[ntp::end] main]/Ntp: :Service/ Service[ ntp]/before (debug): subscribes to Class[Tripleo: :Firewall: :Post] iptables- services] sysconfig/ iptables] sysconfig/ ip6tables] iptables- services] sysconfig/ iptables] sysconfig/ ip6tables] {%{EPOCH} }:{0}| %{VERSION} %{RELEASE} %{ARCH}\n' main]/Ntp: :Config/ File[/etc/ ntp.conf] (info): Filebucketed /etc/ntp.conf to puppet with sum c07b9a377faea45 b96b7d3bf897600 4b main]/Ntp: :Config/ File[/etc/ ntp.conf] /content (notice): content changed '{md5}c07b9a377 faea45b96b7d3bf 8976004b' to '{md5}ff273154a 520ecc0e21c25db 677de324' etc/ntp. conf]/seltype (notice): seltype changed 'etc_t' to 'net_conf_t' main]/Ntp: :Config/ File[/etc/ nt...
2017-02-18 08:06:26 +0000 /Stage[
2017-02-18 08:06:26 +0000 /Stage[
2017-02-18 08:06:26 +0000 /Stage[
2017-02-18 08:06:26 +0000 /Stage[
2017-02-18 08:06:26 +0000 /Stage[
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv4] (debug): Adding autorequire relationship with Package[iptables]
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv4] (debug): Adding autorequire relationship with Package[
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv4] (debug): Adding autorequire relationship with Service[firewalld]
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv4] (debug): Adding autorequire relationship with Service[iptables]
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv4] (debug): Adding autorequire relationship with Service[ip6tables]
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv4] (debug): Adding autobefore relationship with File[/etc/
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv4] (debug): Adding autobefore relationship with File[/etc/
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv6] (debug): Adding autorequire relationship with Package[iptables]
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv6] (debug): Adding autorequire relationship with Package[
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv6] (debug): Adding autorequire relationship with Service[firewalld]
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv6] (debug): Adding autorequire relationship with Service[iptables]
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv6] (debug): Adding autorequire relationship with Service[ip6tables]
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv6] (debug): Adding autobefore relationship with File[/etc/
2017-02-18 08:06:27 +0000 /Firewall[105 ntp ipv6] (debug): Adding autobefore relationship with File[/etc/
2017-02-18 08:06:28 +0000 Puppet (debug): Executing: '/usr/bin/rpm -q ntp --nosignature --nodigest --qf %{NAME} %|EPOCH?
2017-02-18 08:06:28 +0000 Puppet (info): Computing checksum on file /etc/ntp.conf
2017-02-18 08:06:28 +0000 /Stage[
2017-02-18 08:06:28 +0000 /Stage[
2017-02-18 08:06:28 +0000 /File[/
2017-02-18 08:06:28 +0000 /Stage[