Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2213207 - systemd: Puppet Agent starts before network-online.target is reached
Summary: systemd: Puppet Agent starts before network-online.target is reached
Keywords:
Status: CLOSED DUPLICATE of bug 1980277
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Puppet
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-07 13:14 UTC by Satyajit Das
Modified: 2023-06-27 11:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-27 11:37:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Satyajit Das 2023-06-07 13:14:05 UTC
Description of problem:
Puppet Agent now waits for network-online.target and does not attempt to contact Puppet Server before having network connectivity. If client is using NetworkManager with DHCP, the agent tried to apply configuration before the network connection was up, resulting in printing several errors to the logs.


Version-Release number of selected component (if applicable):

Name        : puppet-agent
Version     : 7.16.0
Release     : 2.el8sat
Architecture: x86_64
Install Date: Tue 06 Jun 2023 06:48:17 PM IST
Group       : System Environment/Base
Size        : 112250823
License     : See components
Signature   : RSA/SHA256, Tue 28 Jun 2022 01:57:31 AM IST, Key ID 199e2f91fd431d51
Source RPM  : puppet-agent-7.16.0-2.el8sat.src.rpm
Build Date  : Fri 13 May 2022 06:04:25 PM IST
Build Host  : x86-039.build.eng.bos.redhat.com



How reproducible:

100%


Steps to Reproduce:
1. Install and configure puppet agent on the client host.
2. Reboot the client host


Actual results:

May 26 19:32:20 client puppet-agent[2554]: Starting Puppet client version 7.16.0
May 26 19:32:20 client puppet-agent[3150]: Connection to https://satellite.example.com:8140/puppet/v3 failed, trying next route: Request to https://satellite.example.com:8140/puppet/v3 failed after 0.001 seconds: Failed to open TCP connection to satellite.example.com:8140 (getaddrinfo: Name or service not known)
May 26 19:32:20 client puppet-agent[3150]: Wrapped exception:
May 26 19:32:20 client puppet-agent[3150]: Failed to open TCP connection to satellite.example.com:8140 (getaddrinfo: Name or service not known)
May 26 19:32:20 client puppet-agent[3150]: No more routes to fileserver


Expected results:

The service configuration file /usr/lib/systemd/system/puppet.service:
After=basic.target network.target

This is the default version of this configuration, I suggest reconsidering these settings and adding network-online.target to the default configuration file, especially since puppet can't really work without network access.

Additional info:

Same is raised and addressed by puppet labs in the below BZ.

https://tickets.puppetlabs.com/browse/PUP-5402

Comment 1 Girija Soni 2023-06-27 11:37:34 UTC

*** This bug has been marked as a duplicate of bug 1980277 ***


Note You need to log in before you can comment on or make changes to this bug.