-
Notifications
You must be signed in to change notification settings - Fork 229
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
updating puppetserver 6.x -> 7.x fails without manual intervention #846
Comments
Yes, we worked around this in our installer using a hook combined with code here: puppet-puppet/manifests/server/config.pp Lines 168 to 179 in 9421bd4
I was a bit scared to automate too much here. For example, if the puppetserver is down, will the agent continue correctly? In our installer it's safe because it's essentially "just" a serverless Puppet agent run, but in complex environments it often isn't so clear. I'd love to hear some more suggestions on how to deal with this. |
I am trying to do the upgrade as part of a regular agent run, not using the foreman-installer, which means puppet is managing puppet. What I can state for sure is that as-is, this results in puppetserver breaking. I am not sure if solving that needs to be automated. I think the only way for this to work is for the puppetserver to be stopped during the agent run with the transition module. This should be acceptable as puppetserver doesn't generally need to be accessible by the agent after the catalog has been downloaded. I suppose it might result in the agent report being lost if the puppetserver is still down at the end of the agent run. |
So you're advocating for something like: transition { 'stop puppetserver service':
resource => Service['puppetserver'],
attributes => { ensure => stopped },
prior_to => Exec['migrate Puppetserver cadir'],
} We've used |
In #873 we're dropping Puppet 6 support, including the migration. I don't think we're going to get to this anymore. |
It appears that something akin to the
puppetlabs/transition
mod may be needed in order to allow the puppserver process to be temporarily stopped to run the puppet7 ca migration:The fix is to manually stop puppetserver and run the ca migration:
The text was updated successfully, but these errors were encountered: