-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #751 from hjensas/ironic-pre-launch-conditions
Add conditions on ironic node enroll and chrony restart
- Loading branch information
Showing
4 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,16 +37,20 @@ function wait_image_active() { | |
|
||
# If the snapshot was reverted, and time is way off we get SSL issues in agent<->ironic connection | ||
# Workaround by restarting chronyd.service | ||
ssh -i $EDPM_PRIVATEKEY_PATH [email protected] systemctl restart chronyd.service | ||
ssh -i $EDPM_PRIVATEKEY_PATH [email protected] chronyc -a makestep | ||
if [[ "${PRE_LAUNCH_IRONIC_RESTART_CHRONY,,}" != "false" ]]; then | ||
ssh -i $EDPM_PRIVATEKEY_PATH [email protected] systemctl restart chronyd.service | ||
ssh -i $EDPM_PRIVATEKEY_PATH [email protected] chronyc -a makestep | ||
fi | ||
|
||
# Enroll baremetal nodes | ||
pushd ${INSTALL_YAMLS_PATH}/devsetup | ||
make --silent bmaas_generate_nodes_yaml | tail -n +2 | tee /tmp/ironic_nodes.yaml | ||
popd | ||
|
||
scp -i $EDPM_PRIVATEKEY_PATH /tmp/ironic_nodes.yaml [email protected]:/root/ironic_nodes.yaml | ||
ssh -i $EDPM_PRIVATEKEY_PATH [email protected] OS_CLOUD=standalone openstack baremetal create /root/ironic_nodes.yaml | ||
if [[ "${ENROLL_BMAAS_IRONIC_NODES,,}" != "false" ]]; then | ||
pushd ${INSTALL_YAMLS_PATH}/devsetup | ||
make --silent bmaas_generate_nodes_yaml | tail -n +2 | tee /tmp/ironic_nodes.yaml | ||
popd | ||
|
||
scp -i $EDPM_PRIVATEKEY_PATH /tmp/ironic_nodes.yaml [email protected]:/root/ironic_nodes.yaml | ||
ssh -i $EDPM_PRIVATEKEY_PATH [email protected] OS_CLOUD=standalone openstack baremetal create /root/ironic_nodes.yaml | ||
fi | ||
|
||
export IRONIC_PYTHON_AGENT_RAMDISK_ID=$(${BASH_ALIASES[openstack]} image show deploy-ramdisk -c id -f value) | ||
export IRONIC_PYTHON_AGENT_KERNEL_ID=$(${BASH_ALIASES[openstack]} image show deploy-kernel -c id -f value) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters