-
Notifications
You must be signed in to change notification settings - Fork 83
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
re-factor lib/networking #170
re-factor lib/networking #170
Conversation
7d00e4b
to
7ec5983
Compare
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.
Thank you @hjensas
In general I think this is good so that the lib directory is more usable. I understand you need this so that you can still use the common nad
and metallb
directories while adding an IPv6 controlplane with Ironic (PR 168). I'd like to merge this after we are sure it will not break anything.
A few questions:
-
With this patch
kustomize build control-plane
inarchitecture/examples/va/hci
produces networks with CamelCase names (e.g. InternalApi) while prior to this patch they were all lower case (e.g. internalapi). Is this intentional? -
@Jaganathancse do you see any issues with this that might affect VA2?
I did some quick testing of this PR and saw that the kustomize build
commands as described in the VA1 readme and it seemed to produce the correct CRs. However, I think we need to see results of a fully automated VA1 deployment triggered by something like this:
ansible-playbook reproducer.yml \
-i custom/inventory.yml \
-e cifmw_target_host=hypervisor-1 \
-e @scenarios/reproducers/va-hci.yml \
-e @scenarios/reproducers/networking-definition.yml \
-e @custom/secrets.yml \
-e @custom/default-vars.yaml \
[-e @custom/hci.yaml] \
-e cifmw_deploy_architecture=true
This was not intentional - I moved this to Draft. I will look into why that changed. |
|
So I tried locally - and I get the same result with/without the patch:
|
e67b781
to
5bb41ac
Compare
When trying to re-use this for a DT I had to duplicate everything in lib/networking because the netconfig requires values for an external network. I think splitting to separate subdirectories/kustomization files in lib/networking will allow me to re-use the metallb and nad bits.
5bb41ac
to
8559172
Compare
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.
Tested in a fully-automated VA1 deployment and it succeeded
/lgtm
When trying to re-use this for a DT I had to duplicate everything in lib/networking because the netconfig requires values for an external network.
I think splitting to separate subdirectories/kustomization files in lib/networking will allow me to re-use the metallb and nad bits.