Bug 1622064
Summary: | puppet agent starts before installer registers capsule to satellite and fails with registering the host | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Roman Plevka <rplevka> | ||||
Component: | Installation | Assignee: | Evgeni Golov <egolov> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Roman Plevka <rplevka> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.4 | CC: | egolov, ehelms, ekohlvan, mmccune, rplevka | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | foreman-installer-1.20.0 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-05-01 13:31:29 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Roman Plevka
2018-08-24 10:56:23 UTC
Created attachment 1478459 [details]
production log
I was unable to reproduce this on SNAP 22. 1) Create RHEL 7.5 VM 2) register to Satellite 3) install capsule 4) run installer: # satellite-installer --scenario capsule\ > --foreman-proxy-content-parent-fqdn "****"\ > --foreman-proxy-register-in-foreman "true"\ > --foreman-proxy-foreman-base-url "****"\ > --foreman-proxy-trusted-hosts "****"\ > --foreman-proxy-trusted-hosts "****"\ > --foreman-proxy-oauth-consumer-key "****"\ > --foreman-proxy-oauth-consumer-secret "****"\ > --foreman-proxy-content-certs-tar "****"\ > --puppet-server-foreman-url "****" Resetting puppet server version param... Installing Done [100%] [...........................................................................] Success! * Capsule is running at https://cap.example.com:9090 The full log is at /var/log/foreman-installer/capsule.log Upgrade Step: remove_legacy_mongo... yum install -y -q rh-mongodb34-syspaths finished successfully! 5) No errors in log: # grep ERROR /var/log/foreman-installer/satellite.log # 6) Check Satellite: # hammer host list | grep cap.example.com 103 | cap.example.com | RedHat 7.5 | | 172.0.2.45 | fa:16:3e:4b:ed:70 | Default Organization View | Library Roman, can you re-test this on the latest SNAP and ensure that your Capsule was 100% updated to the latest packages in RHEL 7.5 before attempting an install? @Mike, this is most probably a race condition somewhere in the installer. @Mike, the requests resulting in 403 can be seen in production.log on satellite side. the capsule installer log in my description are to demonstrate the timestamp of the puppet agent service up and smart proxy create events (agent started up sooner than the capsule was created and wanted to post the host facts, which failed quietly with 403). the request and the 403 response is from the production.log on the satellite side. - i can reproduce this behaviour like every single time. - the reason why you can see the host there is because you register the machine first (which creates the host record). i know one should do this, but that hides the issue => those puppet agent facts are unable to be sent out before the capsule record gets created. - if they were fired after it, the host record would be created as well. I can actually reproduce this in our pipeline, as we register the capsule to dogfood, not to the newly installed satellite. Created redmine issue https://projects.theforeman.org/issues/25036 from this bug Satellite 6.4 is now End of Life. These bus will not be fixed on the 6.4 stream. Users of Satellite should upgrade to the latest version of Satellite to get access to the most current set of bugfixes and feature improvements. |