Fixes #20440 - Don't delete the CA in katello-change-hostname #494
Conversation
Issues: #20440 |
TODO: check if remote execution can run the commands for the clients after script runs |
@jturel
That will add my fork and then you can checkout my branch (or whatever method of PR checkout you prefer) Since the big concern with this PR is making sure clients and capsules can easily re-register, its best to test this with a proxy and client registered (You can use vagrant box centos7-foreman-proxy-3.4 to easily spin up a foreman-proxy). It would be a good idea to have some content available on each as well. Then run this to change the hostname on katello: After that finishes, run through the instructions given at the output of the script to re-register clients/proxies Test out anything else you would like, it also would be a good idea to check |
After changing the hostname, I was able to use the remote execution plugin to re-register my clients |
305265c
to
d093a92
Compare
For some reason the message at the end isn't showing the new hostname despite it being an instance variable, looking into why |
d093a92
to
f07d0b8
Compare
The CA no longer has to be deleted now that [this](http://projects.theforeman.org/issues/17378) is fixed This allows clients and proxies to not have to be re-registered
f07d0b8
to
b65dcfe
Compare
Once I got everything set up I was able to change my hostname and re-register my client successfully. However, I could not get my proxy re-registered. My steps were:
Let me know if anything seems off about those steps. I am leaving everything in place so we can debug as needed. |
@jturel hey if I am reading this right, it looks like this is what happened:
The steps to test should look like this (sorry for not making them clear the first time):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Followed the correct testing method and this worked just fine for me. The script output is also much better than it was previously. Good stuff!
@ehelms
|
@ehelms I'll wait for you to approve before merging |
The CA no longer has to be deleted now that
this is fixed
This makes the re-registration process for clients/proxies easier