-
Notifications
You must be signed in to change notification settings - Fork 166
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
ansible: upgrade test-nearform_intel-ubuntu1604-x64-2 #3122
Conversation
Update the second benchmark machine to Ubuntu 18.04.
I am currently blocked on this error when running the playbook.
|
@targos To clarify, was this a normal distribution upgrade and therefore other than the hostname this machine should till be fully functional as it was before as opposed to being blocked due to the playbook not working? |
I did a |
That's annoying 😞. Normally when this task fails there's usually a warning or error message from the underlying apt command when run manually -- bad repository (no longer exists) or expired gpg key are the ones I remember hitting before. I think the bad repository one may have been a warning and not an error (i.e. the apt update completed) but Ansible treated the warning as an error. |
If I comment out this step, the next error is even weirder:
|
Wow, I found the problem 🤦🏻♂️ The first error I got was
To fix it, I just copied and renamed the template. After deleting all variables except the placeholder secret, the playbook works better. |
I'm almost done. It just seems that it's running with the wrong secret? Not sure how to reconnect it to Jenkins. |
Ah - you've renamed it in jenkins which means it gets a new secret. The jenkins agent is still trying to connect to the old name of test-nearform_intel-ubuntu1604-x64-2 so they are inconsistent. The inventory.tml in the secrets repo will need to be updated to sync up the secret key with the one jenkins now shows. |
Ok, thanks! Now how do I "install" the new key on the agent? I tried to rerun the playbook after updating the secrets repo but it's still using the old key. |
Simplest fix would just be be to update |
Fixed with
|
Did you still have the copy of the renamed template present? |
Yes. TBH I don't understand why I had to create this in the first place. I was able to create a macOS host from scratch without it. |
The templates are not needed. Perhaps we should remove them (they were what was used before the secrets repo existed to set the Jenkins agent secret). I suspect the still running with previous key would be resolved by |
Can I merge this? |
Yeah, looks okay to merge. I'm surprised we don't need the benchmarking role on this machine but the inventory didn't have it before 🤷. |
I'm still not sure if we need it. Note that I ran the playbook before removing it (also for #3135, I forgot to pull the last change done on GH). |
Thanks @targos, for the work you did on this! |
Update the second benchmark machine to Ubuntu 18.04.