Skip to content

Get quattor-images working on first-boot - #230

Open
DavidFair wants to merge 3 commits into
0.4.Xfrom
Get_aq_images_working_firstboot
Open

DavidFair wants to merge 3 commits into
0.4.Xfrom
Get_aq_images_working_firstboot

Conversation

@DavidFair

Copy link
Copy Markdown
Collaborator

This fixes a couple of issues:

  • An incorrect package name which isn't required for ncm
  • Quattor repos need to go into the correct location, else quattor-configure spma will cause duplicates
  • Ensure quattor-configure runs on first boot
  • Tidy image shouldn't run quattor. Especially since depending on archetype we'll just undo all the changes e.g. switching from cloud -> tier-1 on first boot. Ship an image that can bootstrap itself

@khalford
khalford changed the base branch from develop to 0.4.X October 2, 2026 10:56
@khalford

khalford commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

I have changed your target branch to 0.4.X. I am just working on a new branch workflow and I am documenting it.

Sorry I don't know why that has just bombed your git history

@DavidFair
DavidFair changed the base branch from 0.4.X to develop October 2, 2026 10:57
@DavidFair
DavidFair force-pushed the Get_aq_images_working_firstboot branch from 37f4db8 to e1159cd Compare October 2, 2026 11:00
@DavidFair
DavidFair changed the base branch from develop to 0.4.X October 2, 2026 11:00
@DavidFair
DavidFair force-pushed the Get_aq_images_working_firstboot branch from e1159cd to bfd9306 Compare October 2, 2026 11:04
@khalford

khalford commented Oct 2, 2026

Copy link
Copy Markdown
Member

Is the ensure_python role still required for this?

@DavidFair

Copy link
Copy Markdown
Collaborator Author

Is the ensure_python role still required for this?

Yes and no

We rely on the implicit fact Python comes in the image and python-dnf is there
This just makes those requirements explicit, so it's either a no-op or resolves a chicken-egg problem where we need Python to install Python in the future

I ran into this after I accidentally removed Python on a base image I was testing to avoid constantly re-downloading from upstream. Hence putting this role in (and fixing that image to match again) as it is the only hard-dependency Ansible has on VMs

If we drop it then it won't break anything, but it's more a correctness thing that might guard against changes in the images in the future too

@DavidFair
DavidFair force-pushed the Get_aq_images_working_firstboot branch from bfd9306 to 7679441 Compare October 2, 2026 11:30
This fixes a couple of issues:
- An incorrect package name which isn't required for ncm
- Quattor repos need to go into the correct location, else quattor-configure spma will cause duplicates
- Ensure quattor-configure runs on first boot
- Tidy image shouldn't run quattor. Especially since depending on archetype we'll just undo
all the changes e.g. switching from cloud -> tier-1 on first boot. Ship an image that can bootstrap itself
Otherwise we clean our image, then pollute it again with logs and dnf package
cache containing quattor steps as that runs after our configure_os_images step
If ssh reconnects but the VM's SSHd restarts (e.g. distro sync)
this will hang the connection for a very long time based on the
ssh caller's default which is (by-default) do not timeout.

Instead if Ansible cannot do anything after 5 seconds over SSH
reconnect and retry using the modules default 600 second limit
for retries. This resolves the hang seen.
@DavidFair
DavidFair force-pushed the Get_aq_images_working_firstboot branch from 7679441 to 7a5615a Compare October 2, 2026 11:40
@DavidFair

Copy link
Copy Markdown
Collaborator Author

Re-tested with RL8 and RL9 images, correctly configures the packages using cloud-init and works on first boot

@DavidFair
DavidFair marked this pull request as ready for review October 2, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants