Skip to content
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

support baremetal node vlans in dev-in-a-box via tenks + ovs #295

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

msherman64
Copy link
Contributor

@msherman64 msherman64 commented Jul 11, 2024

This PR documents dev-in-a-box more fully, and provides a pre-configured defaults.yml file suitable to set up a development instance on top of KVM.

In particular, it uses 3 sets of veth pairs to create dummy interfaces for the external api, internal api, and neutron physnet, so that we don't depend on actual interface naming.

some assumptions for this to work:

a separate veth pair is created for each of:

external_api
internal_api
physnet for public
physnet for sharednet+ironic-provisoning+tenant nets

When you run the commands to "start up" tenks, it will create 3 libvirt domains, a virtualbmc listener for each, and a network interface for each VM attached to the provisioning and sharednet physnets.
Then, it will enroll them into ironic (but not blazar or Doni) for you.

to test things out, try commands like:
openstack baremetal node inspect tk0 or openstack server create --flavor my_rc --image CC-Ubuntu20.04 --network sharednet1 test01

to watch the serial console, execute e.g. virsh console tk0, which you can exit by pressing ctrl+a, ]

note some remaining chi-in-a-box tech debt: it's still a bit clunky to import the cc-ubuntu images. Also, these fake nodes need something like 4GB of ram, mostly to unpack our centos8-based ironic initramfs. This could be minimized by using tinyipa instead.

@msherman64 msherman64 marked this pull request as ready for review July 11, 2024 22:23
@msherman64 msherman64 requested a review from codyhammock as a code owner July 11, 2024 22:23
@msherman64 msherman64 merged commit 94202c2 into stable/xena Jul 11, 2024
3 checks passed
@msherman64 msherman64 deleted the wip/tenks_ovs branch July 11, 2024 22:28
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.

1 participant