Skip to content

Commit 998dcf0

Browse files
Allow fetching IPA ramdisk with branch name
This adds branch name to the default URLs for IPA images, ensuring that devstack runs will use the correct branch of IPA for tests. It introduces a variable IPA_DOWNLOAD_BRANCH to accomplish this, which defaults to master. This default will be set to the branch name on stable branches, e.g. stable/mitaka. It is modified to match our URL scheme for agent images, e.g. stable-mitaka. This patch uses stable/liberty as the default, and is an indirect backport of ironic commit cc5ac3f98a2e8e518db57bb1eb95db404e11d922, as ironic moved to a devstack plugin in Mitaka. Change-Id: I045f1a8d674acae9f45bdde8692d4ecc19b328c8 Depends-On: I8c767fa1b56a566c1acabab8552a51ffeb4e1d7d Closes-Bug: #1561756
1 parent ec39f18 commit 998dcf0

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/ironic

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,11 @@ IRONIC_DEPLOY_RAMDISK=${IRONIC_DEPLOY_RAMDISK:-}
9696
IRONIC_DEPLOY_KERNEL=${IRONIC_DEPLOY_KERNEL:-}
9797
IRONIC_DEPLOY_ELEMENT=${IRONIC_DEPLOY_ELEMENT:-deploy-ironic}
9898

99-
IRONIC_AGENT_KERNEL_URL=${IRONIC_AGENT_KERNEL_URL:-http://tarballs.openstack.org/ironic-python-agent/coreos/files/coreos_production_pxe.vmlinuz}
100-
IRONIC_AGENT_RAMDISK_URL=${IRONIC_AGENT_RAMDISK_URL:-http://tarballs.openstack.org/ironic-python-agent/coreos/files/coreos_production_pxe_image-oem.cpio.gz}
99+
# NOTE(jroll) this needs to be updated when stable branches are cut
100+
IPA_DOWNLOAD_BRANCH=${IPA_DOWNLOAD_BRANCH:-stable/liberty}
101+
IPA_DOWNLOAD_BRANCH=$(echo $IPA_DOWNLOAD_BRANCH | tr / -)
102+
IRONIC_AGENT_KERNEL_URL=${IRONIC_AGENT_KERNEL_URL:-http://tarballs.openstack.org/ironic-python-agent/coreos/files/coreos_production_pxe-${IPA_DOWNLOAD_BRANCH}.vmlinuz}
103+
IRONIC_AGENT_RAMDISK_URL=${IRONIC_AGENT_RAMDISK_URL:-http://tarballs.openstack.org/ironic-python-agent/coreos/files/coreos_production_pxe_image-oem-${IPA_DOWNLOAD_BRANCH}.cpio.gz}
101104

102105
# Which deploy driver to use - valid choices right now
103106
# are ``pxe_ssh``, ``pxe_ipmitool``, ``agent_ssh`` and ``agent_ipmitool``.

0 commit comments

Comments
 (0)