Skip to content
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

Fixes #36886 - upload facts for new hosts #9888

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

sbernhard
Copy link
Contributor

No description provided.

@sbernhard
Copy link
Contributor Author

Thoughts about this @ares ?

@ares
Copy link
Member

ares commented Jan 22, 2024

Oops sorry, please ping me on matrix in case you need my attention. I'm trying to better understand the motivation. Based on the RM ticket, I feel like the facts were ignored because the host was in build mode. That is correct, we ignore facts (primarily puppet facts) while host is in build mode, because the puppet agent runs in Anaconda environment. I assume, this is supposed to update sub-man facts right after the build mode is disabled but it could still be before the reboot. I think a better place would be in the post-reboot template, once #9677 gets merged.

@sbernhard
Copy link
Contributor Author

I think a better place would be in the post-reboot template, once #9677 gets merged.

Thanks for your reply. post-reboot would be a good place but I'm unsure if all OSses would be then supported. Even, it depends on a final reboot after installation is done or not.

@stejskalleos stejskalleos self-assigned this Feb 13, 2024
@stejskalleos
Copy link
Contributor

@sbernhard @ares any agreement on the approach?

@stejskalleos stejskalleos requested a review from ares February 26, 2024 06:56
@stejskalleos stejskalleos assigned ares and unassigned stejskalleos Feb 26, 2024
@sbernhard
Copy link
Contributor Author

Thoughts @stejskalleos / @ares?

@sbernhard
Copy link
Contributor Author

ping....

Copy link
Contributor

@stejskalleos stejskalleos left a comment

Choose a reason for hiding this comment

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

🍏 LGTM, we have the same approach for global registration.

@stejskalleos stejskalleos merged commit cd049d5 into theforeman:develop Jun 5, 2024
6 checks passed
@stejskalleos
Copy link
Contributor

Thanks @sbernhard

@evgeni
Copy link
Member

evgeni commented Jun 6, 2024

This was merged with super old test results and broke things as not all snapshots were uptodate. 😿

@evgeni
Copy link
Member

evgeni commented Jun 6, 2024

#10198

@ares
Copy link
Member

ares commented Jun 7, 2024

I'm very sorry I didn't reply earlier, as stated above, feel free to ping me on matrix.

The reason why we didn't upload facts from provisioning template is, that the facts come from Installer env, not the actual installed OS. That means you'll get e.g. wrong kernel version etc. I believe that's why we ignore facts while the host is in the build mode, even though puppet already uploads them on the first run. This may bite us in the future.

@evgeni
Copy link
Member

evgeni commented Jun 7, 2024

But is that really bad? I mean most facts would end up correct, and the ones that would not will get updated the next time the "real" OS runs a fact upload?

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

Successfully merging this pull request may close these issues.

4 participants