Fix building Ubuntu 20.04 focal amphorae

Ubuntu 20.04 is a "Tested Runtime" for the Victoria release[1].
This patch updated our diskimage-create script and elements to
support building a amphora image that uses Ubuntu 20.04 (focal).

[1] https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: I6f53ea5d012ab64b985d981ecd1b1967e18e4e81
This commit is contained in:
Michael Johnson 2020-04-23 15:44:06 -07:00
parent c3ad32d1a8
commit 70079d861d
5 changed files with 24 additions and 8 deletions

View File

@ -420,10 +420,8 @@ AMP_element_sequence="$AMP_element_sequence ${AMP_BASEOS}"
if [ "$AMP_PACKAGE_INSTALL" -eq 1 ]; then
export DIB_INSTALLTYPE_amphora_agent=package
else
# We will need pip for amphora-agent
AMP_element_sequence="$AMP_element_sequence pip-and-virtualenv"
fi
# Add our backend element (haproxy, etc.)
AMP_element_sequence="$AMP_element_sequence $AMP_BACKEND"

View File

@ -9,8 +9,7 @@ set -o pipefail
SCRIPTDIR=$(dirname $0)
AMP_VENV=/opt/amphora-agent-venv
# Create a virtual environment to contain the amphora agent
${DIB_PYTHON} -m virtualenv $AMP_VENV
/usr/bin/python3 -m venv $AMP_VENV
$AMP_VENV/bin/pip install pip --upgrade

View File

@ -6,8 +6,14 @@ libffi-dev:
build-only: True
libssl-dev:
build-only: True
python-dev:
python3-dev:
build-only: True
installtype: source
python3-pip:
installtype: source
python3:
python3-venv:
installtype: source
acl:
# Note: Red Hat family does not currently ship acpid for ppc64le.

View File

@ -3,7 +3,9 @@
"rhel": {
"8": {
"isc-dhcp-client": "dhcp-client",
"python-dev": "platform-python-devel",
"python3-dev": "platform-python-devel",
"python3-venv": "python3-virtualenv",
"python3": "python36",
"vlan": "",
"screen": "",
"dkms": ""
@ -12,11 +14,18 @@
"centos": {
"8": {
"isc-dhcp-client": "dhcp-client",
"python-dev": "platform-python-devel",
"python3-dev": "platform-python-devel",
"python3-venv": "python3-virtualenv",
"python3": "python36",
"vlan": "",
"screen": "",
"dkms": ""
}
},
"ubuntu": {
"focal": {
"ureadahead": ""
}
}
},
"family": {

View File

@ -10,3 +10,7 @@ set -o pipefail
if [[ "$DISTRO_NAME" =~ (rhel|centos) ]] && [ "$DIB_RELEASE" == "8" ]; then
chkconfig network on
fi
if [[ "$DISTRO_NAME" =~ (ubuntu) ]] && [ "$DIB_RELEASE" == "focal" ]; then
systemctl enable systemd-networkd
fi