Skip to content

(bug) fix systemd daemon-reload order when updating service files #1230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2021

Conversation

sheenaajay
Copy link
Contributor

@sheenaajay sheenaajay commented Jan 27, 2021

Bug Details
Problem reported on Puppet version 6.20, OS Centos 8

Proposed solution
Issue systemctl daemon-reload first, after the deletion of old unit file followed by the restart newly configured service.

Create separate file resource for deleting old unit file and specifying the ordering to make sure it deletes the files first, then daemon- reload followed by service start

Puppet agent 5 Results
Notice: /Stage[main]/Postgresql::Server::Config/File[old-systemd-override]/ensure: removed Info: /Stage[main]/Postgresql::Server::Config/File[old-systemd-override]: Scheduling refresh of Exec[restart-systemd] Debug: /Stage[main]/Postgresql::Server::Config/File[old-systemd-override]: The container Class[Postgresql::Server::Config] will propagate my refresh event Info: /Stage[main]/Postgresql::Server::Config/File[old-systemd-override]: Scheduling refresh of Class[Postgresql::Server::Service] Debug: /Stage[main]/Postgresql::Server::Config/Exec[restart-systemd]: 'systemctl daemon-reload' won't be executed because of failed check 'refreshonly' Debug: Exec[restart-systemd](provider=posix): Executing 'systemctl daemon-reload' Debug: Executing: 'systemctl daemon-reload' Notice: /Stage[main]/Postgresql::Server::Config/Exec[restart-systemd]: Triggered 'refresh' from 1 event Debug: /Stage[main]/Postgresql::Server::Config/Exec[restart-systemd]: The container Class[Postgresql::Server::Config] will propagate my refresh event Debug: Prefetching parsed resources for postgresql_conf Debug: Class[Postgresql::Server::Config]: The container Stage[main] will propagate my refresh event Debug: Class[Postgresql::Server::Config]: The container Class[Postgresql::Server] will propagate my refresh event Info: Class[Postgresql::Server::Service]: Scheduling refresh of Anchor[postgresql::server::service::begin] Info: Class[Postgresql::Server::Service]: Scheduling refresh of Service[postgresqld] Info: Class[Postgresql::Server::Service]: Scheduling refresh of Anchor[postgresql::server::service::end] Notice: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::begin]: Triggered 'refresh' from 1 event Debug: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::begin]: The container Class[Postgresql::Server::Service] will propagate my refresh event Debug: Executing: 'systemctl status postgresql' Debug: Executing: '/usr/bin/systemctl is-enabled -- postgresql' Debug: Executing: 'systemctl status postgresql' Debug: Executing: '/usr/bin/systemctl restart -- postgresql' Notice: /Stage[main]/Postgresql::Server::Service/Service[postgresqld]: Triggered 'refresh' from 1 event Debug: /Stage[main]/Postgresql::Server::Service/Service[postgresqld]: The container Class[Postgresql::Server::Service] will propagate my refresh event Debug: PostgresqlValidator.attempt_connection: Attempting connection to postgres Debug: PostgresqlValidator.attempt_connection: /usr/bin/psql --tuples-only --quiet --no-psqlrc --port 5432 --dbname postgres --command 'SELECT 1' Debug: Executing with uid=postgres: ' /usr/bin/psql --tuples-only --quiet --no-psqlrc --port 5432 --dbname postgres --command 'SELECT 1' ' Debug: PostgresqlValidator.attempt_connection: Connection to postgres successful!

puppet agent 6 Results
Debug: /Stage[main]/Postgresql::Server::Config/File[old-systemd-override]: Removing existing file for replacement with absent Notice: /Stage[main]/Postgresql::Server::Config/File[old-systemd-override]/ensure: removed Debug: /Stage[main]/Postgresql::Server::Config/File[old-systemd-override]: The container Class[Postgresql::Server::Config] will propagate my refresh event Info: /Stage[main]/Postgresql::Server::Config/File[old-systemd-override]: Scheduling refresh of Class[Postgresql::Server::Service] Debug: Prefetching parsed resources for postgresql_conf Debug: Class[Postgresql::Server::Config]: The container Stage[main] will propagate my refresh event Debug: Class[Postgresql::Server::Config]: The container Class[Postgresql::Server] will propagate my refresh event Info: Class[Postgresql::Server::Service]: Scheduling refresh of Anchor[postgresql::server::service::begin] Info: Class[Postgresql::Server::Service]: Scheduling refresh of Service[postgresqld] Info: Class[Postgresql::Server::Service]: Scheduling refresh of Anchor[postgresql::server::service::end] Notice: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::begin]: Triggered 'refresh' from 1 event Debug: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::begin]: The container Class[Postgresql::Server::Service] will propagate my refresh event Debug: Executing: 'systemctl status postgresql' Debug: Executing: '/usr/bin/systemctl is-enabled -- postgresql' Debug: Executing: 'systemctl status postgresql' Debug: Executing: '/usr/bin/systemctl show --property=NeedDaemonReload -- postgresql' Debug: Executing: '/usr/bin/systemctl restart -- postgresql' Notice: /Service[postgresqld]: Triggered 'refresh' from 1 event Debug: /Service[postgresqld]: The container Class[Postgresql::Server::Service] will propagate my refresh event Debug: PostgresqlValidator.attempt_connection: Attempting connection to postgres Debug: PostgresqlValidator.attempt_connection: /usr/bin/psql --tuples-only --quiet --no-psqlrc --port 5432 --dbname postgres --command 'SELECT 1' Debug: Executing with uid=postgres: ' /usr/bin/psql --tuples-only --quiet --no-psqlrc --port 5432 --dbname postgres --command 'SELECT 1' ' Debug: PostgresqlValidator.attempt_connection: Connection to postgres successful!

@puppet-community-rangefinder
Copy link

postgresql::server::config is a class

that may have no external impact to Forge modules.

This module is declared in 71 of 576 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

@vchepkov
Copy link

This doesn't establish ordering, the following should be added in the manifest and then it's good as it is now

Exec['restart-systemd'] -> Class['postgresql::server::service']

@sheenaajay
Copy link
Contributor Author

This doesn't establish ordering, the following should be added in the manifest and then it's good as it is now

Exec['restart-systemd'] -> Class['postgresql::server::service']

Thanks alot @vchepkov

@codecov-io
Copy link

codecov-io commented Jan 27, 2021

Codecov Report

Merging #1230 (b519b59) into main (08e3a51) will increase coverage by 0.37%.
The diff coverage is 54.54%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1230      +/-   ##
==========================================
+ Coverage   65.81%   66.18%   +0.37%     
==========================================
  Files          14       14              
  Lines         351      349       -2     
==========================================
  Hits          231      231              
+ Misses        120      118       -2     
Impacted Files Coverage Δ
...ns/postgresql/postgresql_acls_to_resources_hash.rb 0.00% <0.00%> (ø)
...b/puppet/functions/postgresql/postgresql_escape.rb 0.00% <0.00%> (ø)
...puppet/functions/postgresql/postgresql_password.rb 0.00% <ø> (ø)
lib/puppet/functions/postgresql_escape.rb 0.00% <ø> (ø)
lib/puppet/functions/postgresql_password.rb 0.00% <ø> (ø)
lib/puppet/provider/postgresql_conf/parsed.rb 100.00% <ø> (ø)
.../puppet/provider/postgresql_conn_validator/ruby.rb 80.00% <ø> (ø)
lib/puppet/type/postgresql_conf.rb 93.33% <ø> (ø)
lib/puppet/type/postgresql_conn_validator.rb 100.00% <ø> (ø)
lib/puppet/type/postgresql_replication_slot.rb 100.00% <ø> (ø)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe93ba9...b519b59. Read the comment docs.

@sheenaajay sheenaajay marked this pull request as ready for review January 28, 2021 10:17
@sheenaajay sheenaajay requested a review from a team as a code owner January 28, 2021 10:17
@vchepkov
Copy link

Hmm, this doesn't look like a valid syntax to me, I am surprised it works

@sheenaajay
Copy link
Contributor Author

Hmm, this doesn't look like a valid syntax to me, I am surprised it works

Thank you @vchepkov you are right.
it worked on centos 8 for puppet agent 6 which satisfy the else condition
Was able to get the error while tested on redhat7 with puppet agent5 since it satisfies the if condition.

Doing some test locally before pushing the new changes .

@sheenaajay sheenaajay changed the title (bug) reload the service after the deletion of old unit file (DONOT MERGE) (bug) reload the service after the deletion of old unit file Jan 28, 2021
@sheenaajay sheenaajay marked this pull request as draft January 28, 2021 19:14
@sheenaajay sheenaajay changed the title (DONOT MERGE) (bug) reload the service after the deletion of old unit file (bug) reload the service after the deletion of old unit file Jan 29, 2021
Copy link
Contributor

@carabasdaniel carabasdaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, my understanding is that on Puppet 6 the daemon-reload isn't needed. So wouldn't the following work:

   if (versioncmp($facts['puppetversion'], '6.1.0') < 0) {
     exec { 'restart-systemd': 
      command     => 'systemctl daemon-reload',
      refreshonly => true,
      path        => '/bin:/usr/bin:/usr/local/bin',
      require     => File['old-systemd-override'],
      before      => Class['postgresql::server::service'],
    }
  }

@sheenaajay sheenaajay marked this pull request as ready for review February 1, 2021 11:39
Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is odd that on Puppet 5 it will reload systemd and perhaps trigger a service restart (depending on if other resources will trigger it), on Puppet 6+ it will always trigger a service restart. That feels odd.

@sheenaajay
Copy link
Contributor Author

Thank you @ekohl @vchepkov for the reviews. Once the PR is merged will get a release out asap.

Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code wise I love how minimal the final version is. I just hope I didn't miss anything in the review and that this is somehow insufficient. I trust that you'll properly test it to confirm.

@ekohl
Copy link
Collaborator

ekohl commented Feb 3, 2021

On a side note: perhaps it should be squashed into a single commit.

@sheenaajay
Copy link
Contributor Author

On a side note: perhaps it should be squashed into a single commit.

Sure, I will be squashing to single commit before the merge. Just kept there to make sure the comments are addressed.

@sheenaajay
Copy link
Contributor Author

Code wise I love how minimal the final version is. I just hope I didn't miss anything in the review and that this is somehow insufficient. I trust that you'll properly test it to confirm.

very true @ekohl

Copy link
Contributor

@DavidS DavidS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, everyone for chipping in!

@DavidS DavidS merged commit 3c6e00e into puppetlabs:main Feb 5, 2021
@DavidS DavidS changed the title (bug) reload the service after the deletion of old unit file (bug) fix systemd daemon-reload order when updating service files Feb 5, 2021
@vchepkov
Copy link

vchepkov commented Feb 8, 2021

The module still breaks postgresql service when switching from 6.8.0 to 6.10.0. Here is the output:

I don't see call to refresh restart-systemd anywhere :

[root@puppet ~]# puppet agent -t --environment postgresql 
Info: Using configured environment 'postgresql'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for puppet.localdomain
Info: Applying configuration version '15e237d'
Notice: /Stage[main]/Postgresql::Server::Config/File[systemd-conf-dir]/ensure: created
Info: /Stage[main]/Postgresql::Server::Config/File[systemd-conf-dir]: Scheduling refresh of Class[Postgresql::Server::Service]
Notice: /Stage[main]/Postgresql::Server::Config/File[systemd-override]/ensure: defined content as '{md5}103bd15ab1c02315fe7f676b9b98d727' (corrective)
Info: /Stage[main]/Postgresql::Server::Config/File[systemd-override]: Scheduling refresh of Class[Postgresql::Server::Service]
Notice: /Stage[main]/Postgresql::Server::Config/File[old-systemd-override]/ensure: removed
Info: /Stage[main]/Postgresql::Server::Config/File[old-systemd-override]: Scheduling refresh of Class[Postgresql::Server::Service]
Info: Class[Postgresql::Server::Service]: Scheduling refresh of Anchor[postgresql::server::service::begin]
Info: Class[Postgresql::Server::Service]: Scheduling refresh of Service[postgresqld]
Info: Class[Postgresql::Server::Service]: Scheduling refresh of Anchor[postgresql::server::service::end]
Notice: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::begin]: Triggered 'refresh' from 1 event
Error: Systemd start for postgresql-11 failed!
journalctl log for postgresql-11:
-- Logs begin at Mon 2021-02-08 21:42:58 UTC, end at Mon 2021-02-08 21:52:10 UTC. --
Feb 08 21:47:13 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:13 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:38 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:38 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:38 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:39 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:39 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:39 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:40 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:40 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:40 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:49:49 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:49:49 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:51:38 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Error: /Stage[main]/Postgresql::Server::Service/Service[postgresqld]/ensure: change from 'stopped' to 'running' failed: Systemd start for postgresql-11 failed!
journalctl log for postgresql-11:
-- Logs begin at Mon 2021-02-08 21:42:58 UTC, end at Mon 2021-02-08 21:52:10 UTC. --
Feb 08 21:47:13 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:13 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:38 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:38 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:38 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:39 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:39 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:39 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:40 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:40 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:47:40 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:49:49 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:49:49 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Feb 08 21:51:38 puppet.localdomain systemd[1]: /etc/systemd/system/postgresql-11.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
 (corrective)
Notice: /Stage[main]/Postgresql::Server::Service/Service[postgresqld]: Triggered 'refresh' from 1 event
Notice: /Stage[main]/Postgresql::Server::Service/Postgresql_conn_validator[validate_service_is_running]: Dependency Service[postgresqld] has failures: true
Warning: /Stage[main]/Postgresql::Server::Service/Postgresql_conn_validator[validate_service_is_running]: Skipping because of failed dependencies
Warning: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::end]: Skipping because of failed dependencies
Info: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::end]: Unscheduling all events on Anchor[postgresql::server::service::end]
Info: Class[Postgresql::Server::Service]: Unscheduling all events on Class[Postgresql::Server::Service]
Warning: /Stage[main]/Postgresql::Server::Reload/Exec[postgresql_reload]: Skipping because of failed dependencies
Info: Class[Postgresql::Server]: Unscheduling all events on Class[Postgresql::Server]
Warning: /Stage[main]/Puppetdb::Database::Postgresql/Postgresql::Server::Db[puppetdb]/Postgresql::Server::Database[puppetdb]/Postgresql_psql[CREATE DATABASE "puppetdb"]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Database::Postgresql/Postgresql::Server::Db[puppetdb]/Postgresql::Server::Database[puppetdb]/Postgresql_psql[REVOKE CONNECT ON DATABASE "puppetdb" FROM public]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Database::Postgresql/Postgresql::Server::Db[puppetdb]/Postgresql::Server::Database[puppetdb]/Postgresql_psql[UPDATE pg_database SET datistemplate = false WHERE datname = 'puppetdb']: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Database::Postgresql/Postgresql::Server::Db[puppetdb]/Postgresql::Server::Database_grant[GRANT puppetdb - all - puppetdb]/Postgresql::Server::Grant[database:GRANT puppetdb - all - puppetdb]/Postgresql_psql[grant:database:GRANT puppetdb - all - puppetdb]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Database::Postgresql/Postgresql::Server::Extension[pg_trgm]/Postgresql_psql[puppetdb: CREATE EXTENSION "pg_trgm"]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server/Package[puppetdb]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Global/File[/etc/puppetlabs/puppetdb/conf.d/config.ini]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Global/Ini_setting[puppetdb_global_vardir]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Command_processing/Ini_setting[puppetdb_command_processing_threads]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Command_processing/Ini_setting[puppetdb_command_processing_concurrent_writes]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Command_processing/Ini_setting[puppetdb_command_processing_store_usage]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Command_processing/Ini_setting[puppetdb_command_processing_temp_usage]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/File[/etc/puppetlabs/puppetdb/conf.d/database.ini]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_psdatabase_username]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_psdatabase_password]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_classname]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_subprotocol]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_pgs]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_subname]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_gc_interval]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_node_purge_gc_batch_limit]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_node_ttl]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_node_purge_ttl]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_report_ttl]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_log_slow_statements]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_conn_max_age]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_conn_keep_alive]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_conn_lifetime]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_migrate]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Database/Ini_setting[puppetdb_facts_blacklist]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Read_database/File[/etc/puppetlabs/puppetdb/conf.d/read_database.ini]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Jetty/File[/etc/puppetlabs/puppetdb/conf.d/jetty.ini]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Jetty/Ini_setting[puppetdb_host]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Jetty/Ini_setting[puppetdb_port]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Jetty/Ini_setting[puppetdb_sslhost]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Jetty/Ini_setting[puppetdb_sslport]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Jetty/Ini_setting[puppetdb_cipher-suites]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Jetty/Ini_setting[puppetdb_max_threads]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Puppetdb/File[/etc/puppetlabs/puppetdb/conf.d/puppetdb.ini]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Puppetdb/Ini_setting[puppetdb-connections-from-master-only]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Puppetdb/File[/etc/puppetlabs/puppetdb/certificate-whitelist]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server::Puppetdb/Ini_setting[puppetdb_disable_update_checking]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server/Service[puppetdb]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Master::Config/Puppetdb_conn_validator[puppetdb_conn]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Master::Routes/File[/etc/puppetlabs/puppet/routes.yaml]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Master::Puppetdb_conf/Ini_setting[puppetdbserver_urls]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Master::Puppetdb_conf/Ini_setting[soft_write_failure]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server/Systemd::Unit_file[puppetdb-dlo-cleanup.service]/File[/etc/systemd/system/puppetdb-dlo-cleanup.service]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server/Systemd::Unit_file[puppetdb-dlo-cleanup.timer]/File[/etc/systemd/system/puppetdb-dlo-cleanup.timer]: Skipping because of failed dependencies
Warning: /Stage[main]/Systemd::Systemctl::Daemon_reload/Exec[systemctl-daemon-reload]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Server/Systemd::Unit_file[puppetdb-dlo-cleanup.timer]/Service[puppetdb-dlo-cleanup.timer]: Skipping because of failed dependencies
Warning: /Stage[main]/Bootstrap::Agent/Systemd::Unit_file[puppet-onetime.service]/Service[puppet-onetime.service]: Skipping because of failed dependencies
Info: Class[Puppet::Config]: Scheduling refresh of Class[Puppet::Agent::Service]
Info: Class[Puppet::Config]: Scheduling refresh of Class[Puppet::Server::Service]
Info: Class[Puppet::Server::Service]: Unscheduling all events on Class[Puppet::Server::Service]
Warning: /Stage[main]/Puppet::Server::Service/Service[puppetserver]: Skipping because of failed dependencies
Info: Class[Puppet::Agent::Service]: Unscheduling all events on Class[Puppet::Agent::Service]
Info: Class[Puppet]: Unscheduling all events on Class[Puppet]
Info: Stage[main]: Unscheduling all events on Stage[main]
Notice: Applied catalog in 5.72 seconds

I also don't see it in resource list:

[root@puppet ~]# grep -ic restart-systemd  /opt/puppetlabs/puppet/cache/state/resources.txt 
0

This reproducible 100%

@ekohl
Copy link
Collaborator

ekohl commented Feb 9, 2021

@vchepkov I think that was my bad in the review. I missed the description that this was a problem on Puppet 6. I did find out before 6.10.0 was released and #1233 should address that, but it didn't make it into 6.10.0. Should be in 6.10.1 that's being prepared.

@sheenaajay
Copy link
Contributor Author

@vchepkov @ekohl sorry for that. Release prep is prepared and we will getting the release out soon.

@vchepkov
Copy link

vchepkov commented Feb 9, 2021

v6.10.1 fixed the issue. thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants