Skip to content

prep-fog-capture: Refactor, split, re-add cobbler-provided hacks#821

Open
djgalloway wants to merge 2 commits intomainfrom
prepfog-v2
Open

prep-fog-capture: Refactor, split, re-add cobbler-provided hacks#821
djgalloway wants to merge 2 commits intomainfrom
prepfog-v2

Conversation

@djgalloway
Copy link
Contributor

@djgalloway djgalloway commented Feb 7, 2026

  • Using systemd instead of rc.local:
    • Configure netplan on boot for Ubuntu
    • Configure NetworkManager on boot for CentOS/Rocky
    • Set hostname

@djgalloway djgalloway force-pushed the prepfog-v2 branch 3 times, most recently from 1815898 to c94f475 Compare February 10, 2026 14:31
@@ -0,0 +1,152 @@
#!/usr/bin/env bash
Copy link
Member

Choose a reason for hiding this comment

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

so...teuthology/provision.fog.py:_fix_hostname() exists, and in my experience handles this. Is there a context where we're using cephlab hosts with fog without using teuthology-lock to provision them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@idryomov seemed to think so

Copy link
Member

Choose a reason for hiding this comment

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

I don't understand. Did @idryomov request this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I thought the discourse was in GitHub comments but it was in Slack https://ceph-storage.slack.com/archives/C1HFJ4VTN/p1770386655453139

Copy link
Collaborator

Choose a reason for hiding this comment

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

@idryomov seemed to think so

Not really -- I wasn't even aware of _fix_hostname() in teuthology/provision.fog.py ;) I'll note that we clearly have too many places that attempt or attempted to do this at some point -- I have pointed out roles/testnode/tasks/static_ip.yml in this repo earlier.

I reported this issue in the context of the RBD suite, scheduled as usual with teuthology-suite command. It's not even a job that involves the kernel task and associated reboots, so about as bog-standard as possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, well, I removed static_ip.yml in this PR and the changes in this PR are already in use and have absolutely stabilized things over the past day.

We handle this in prep-fog-capture now by writing /etc/hosts from scratch.

Signed-off-by: David Galloway <david.galloway@ibm.com>
@djgalloway djgalloway added the dnm label Feb 18, 2026
- Using systemd instead of rc.local:
  - Configure netplan on boot for Ubuntu
  - Configure NetworkManager on boot for CentOS/Rocky
  - Set hostname
  - Update packages and reboot

Signed-off-by: David Galloway <david.galloway@ibm.com>
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.

3 participants