-
Notifications
You must be signed in to change notification settings - Fork 20
Added post-install script to apply mcos #28
Conversation
The bridge should have vlan_filtering enabled and set trunk on the default NIC port. I'm not sure whether it is possible to do that via ifcfg or we would need to have a custom systemd script on top of it, calling |
@e-minguez sounds great! Will open an issue to track the VLAN part separately. |
What does |
99_post_install.sh
Outdated
oc patch --type=merge --patch='{"spec":{"paused":false}}' machineconfigpool/${node_type} | ||
|
||
# This sleep is required because the machine-config changes are not immediate | ||
sleep 30 |
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.
What needs to happen in these 30 seconds? There's a wait right after this. Will that one fail if this wait doesn't happen? What does it fix?
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.
If the oc wait
is performed just after applying the machine configs, it finishes as the machine config operator takes a while to notice the changes and create the rendered machine config. 30 seconds is just random, but definitely in my tests I needed to wait a few seconds.
machine config objects (I've modified the comment to be more explicit) |
@russellb @e-minguez - don't count on adding MCO's at boot time, especially if they involve configuring interfaces that DHCP...
I was trying to setup ens4 to be part of a brext bridge via an MCO, but upon DHCP it overrides the config I want to lay down, whereas it successfully creates the brext bridge-
For reference, he's my MCO object-
|
To follow this up, I managed to get this working by adding a dispatcher.d script-
|
I've mixed this PR with #33 in order to create the bridge as a function in the post-install script instead doing it just for CNV |
Ping @rlopez133 @sreichar as it looks like you own the repo now :) |
Also added the bridge creation as a function instead a different script.
Once the storage VLAN is clear (see #4) the mco object can be hosted in
assets/post-install/ as well