Merge "Add RHEL 8 amphora support"
This commit is contained in:
commit
620c19804c
@ -94,7 +94,7 @@ Command syntax:
|
|||||||
[-a i386 | **amd64** | armhf | ppc64le ]
|
[-a i386 | **amd64** | armhf | ppc64le ]
|
||||||
[-b **haproxy** ]
|
[-b **haproxy** ]
|
||||||
[-c **~/.cache/image-create** | <cache directory> ]
|
[-c **~/.cache/image-create** | <cache directory> ]
|
||||||
[-d **xenial**/**7** | trusty | <other release id> ]
|
[-d **xenial**/**7** | trusty | 8 | <other release id> ]
|
||||||
[-e]
|
[-e]
|
||||||
[-f]
|
[-f]
|
||||||
[-h]
|
[-h]
|
||||||
@ -201,22 +201,24 @@ For example to build a CentOS 7 amphora with Pike RPM packages:
|
|||||||
RHEL specific variables
|
RHEL specific variables
|
||||||
------------------------
|
------------------------
|
||||||
Building a RHEL-based image requires:
|
Building a RHEL-based image requires:
|
||||||
- a RHEL 7 base cloud image, manually download from the
|
- a Red Hat Enterprise Linux KVM Guest Image, manually download from the
|
||||||
Red Hat Customer Portal. Set the DIB_LOCAL_IMAGE variable
|
Red Hat Customer Portal. Set the DIB_LOCAL_IMAGE variable to point to
|
||||||
to point to the file. More details at:
|
the file. More details at:
|
||||||
<DIB_REPO_PATH>/elements/rhel7
|
<DIB_REPO_PATH>/elements/rhel
|
||||||
|
|
||||||
- a Red Hat subscription for the matching Red Hat OpenStack Platform
|
- a Red Hat subscription for the matching Red Hat OpenStack Platform
|
||||||
repository. Set the needed registration parameters depending on your
|
repository if you want to install the amphora agent from the official
|
||||||
configuration. More details at:
|
distribution package (requires setting -p option in diskimage-create.sh).
|
||||||
|
Set the needed registration parameters depending on your configuration.
|
||||||
|
More details at:
|
||||||
<DIB_REPO_PATH>/elements/rhel-common
|
<DIB_REPO_PATH>/elements/rhel-common
|
||||||
|
|
||||||
Here is an example with Customer Portal registration and OSP 8 repository:
|
Here is an example with Customer Portal registration and OSP 13 repository:
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
$ export DIB_LOCAL_IMAGE='/tmp/rhel-guest-image-7.2-20160302.0.x86_64.qcow2'
|
$ export DIB_LOCAL_IMAGE='/tmp/rhel-server-7.6-x86_64-kvm.qcow2'
|
||||||
|
|
||||||
$ export REG_METHOD='portal' REG_REPOS='rhel-7-server-openstack-8-rpms'
|
$ export REG_METHOD='portal' REG_REPOS='rhel-7-server-openstack-13-rpms'
|
||||||
|
|
||||||
$ export REG_USER='<user>' REG_PASSWORD='<password>' REG_AUTO_ATTACH=true
|
$ export REG_USER='<user>' REG_PASSWORD='<password>' REG_AUTO_ATTACH=true
|
||||||
|
|
||||||
@ -224,7 +226,7 @@ This example uses registration via a Satellite (the activation key must enable
|
|||||||
an OSP repository):
|
an OSP repository):
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
$ export DIB_LOCAL_IMAGE='/tmp/rhel-guest-image-7.2-20160302.0.x86_64.qcow2'
|
$ export DIB_LOCAL_IMAGE='/tmp/rhel-server-7.6-x86_64-kvm.qcow2'
|
||||||
|
|
||||||
$ export REG_METHOD='satellite' REG_ACTIVATION_KEY="<activation key>"
|
$ export REG_METHOD='satellite' REG_ACTIVATION_KEY="<activation key>"
|
||||||
|
|
||||||
@ -282,4 +284,3 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|||||||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
License for the specific language governing permissions and limitations
|
License for the specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ usage() {
|
|||||||
echo " [-a i386 | **amd64** | armhf | ppc64le]"
|
echo " [-a i386 | **amd64** | armhf | ppc64le]"
|
||||||
echo " [-b **haproxy** ]"
|
echo " [-b **haproxy** ]"
|
||||||
echo " [-c **~/.cache/image-create** | <cache directory> ]"
|
echo " [-c **~/.cache/image-create** | <cache directory> ]"
|
||||||
echo " [-d **xenial**/**7** | trusty | <other release id> ]"
|
echo " [-d **xenial**/**7** | trusty | 8 | <other release id> ]"
|
||||||
echo " [-e]"
|
echo " [-e]"
|
||||||
echo " [-f]"
|
echo " [-f]"
|
||||||
echo " [-h]"
|
echo " [-h]"
|
||||||
@ -224,7 +224,7 @@ AMP_ENABLE_FULL_MAC_SECURITY=${AMP_ENABLE_FULL_MAC_SECURITY:-0}
|
|||||||
AMP_DISABLE_TMP_FS=${AMP_DISABLE_TMP_FS:-""}
|
AMP_DISABLE_TMP_FS=${AMP_DISABLE_TMP_FS:-""}
|
||||||
|
|
||||||
if [ "$AMP_BASEOS" = "rhel" -o "$AMP_BASEOS" = "centos" -o "$AMP_BASEOS" = "fedora" ] && [ "$AMP_IMAGESIZE" -lt 3 ]; then
|
if [ "$AMP_BASEOS" = "rhel" -o "$AMP_BASEOS" = "centos" -o "$AMP_BASEOS" = "fedora" ] && [ "$AMP_IMAGESIZE" -lt 3 ]; then
|
||||||
echo "RHEL/centos based amphora requires an image size of at least 3GB"
|
echo "RHEL/CentOS based amphora requires an image size of at least 3GB"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -262,8 +262,8 @@ export CLOUD_INIT_DATASOURCES=${CLOUD_INIT_DATASOURCES:-"ConfigDrive"}
|
|||||||
# Additional RHEL environment checks
|
# Additional RHEL environment checks
|
||||||
if [ "${AMP_BASEOS}" = "rhel" ]; then
|
if [ "${AMP_BASEOS}" = "rhel" ]; then
|
||||||
if [ -z "${DIB_LOCAL_IMAGE}" ]; then
|
if [ -z "${DIB_LOCAL_IMAGE}" ]; then
|
||||||
echo "DIB_LOCAL_IMAGE variable must be set and point to a RHEL 7 base cloud image. Exiting."
|
echo "DIB_LOCAL_IMAGE variable must be set and point to a RHEL base cloud image. Exiting."
|
||||||
echo "For more information, see the README file in ${DIB_ELEMENTS_PATH}/elements/rhel7"
|
echo "For more information, see the README file in ${DIB_ELEMENTS_PATH}/elements/rhel"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -345,9 +345,12 @@ pushd $TEMP > /dev/null
|
|||||||
# Setup the elements list
|
# Setup the elements list
|
||||||
|
|
||||||
AMP_element_sequence=${AMP_element_sequence:-"base vm"}
|
AMP_element_sequence=${AMP_element_sequence:-"base vm"}
|
||||||
if [ "${AMP_BASEOS}" = "centos" ] || [ "${AMP_BASEOS}" = "rhel" ]; then
|
if [ "${AMP_BASEOS}" = "centos" ]; then
|
||||||
AMP_element_sequence="$AMP_element_sequence ${AMP_BASEOS}${DIB_RELEASE}"
|
AMP_element_sequence="$AMP_element_sequence ${AMP_BASEOS}${DIB_RELEASE}"
|
||||||
else
|
else
|
||||||
|
if [ "${AMP_BASEOS}" = "rhel" ] && [ "${DIB_RELEASE}" = "8" ]; then
|
||||||
|
export DIB_INSTALLTYPE_pip_and_virtualenv=package
|
||||||
|
fi
|
||||||
AMP_element_sequence="$AMP_element_sequence ${AMP_BASEOS}"
|
AMP_element_sequence="$AMP_element_sequence ${AMP_BASEOS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ lsof:
|
|||||||
net-tools:
|
net-tools:
|
||||||
netbase:
|
netbase:
|
||||||
netcat-openbsd:
|
netcat-openbsd:
|
||||||
|
network-scripts:
|
||||||
open-vm-tools:
|
open-vm-tools:
|
||||||
openssh-client:
|
openssh-client:
|
||||||
openssh-server:
|
openssh-server:
|
||||||
|
@ -1,4 +1,14 @@
|
|||||||
{
|
{
|
||||||
|
"release": {
|
||||||
|
"rhel": {
|
||||||
|
"8": {
|
||||||
|
"python-dev": "platform-python-devel",
|
||||||
|
"vlan": "",
|
||||||
|
"screen": "",
|
||||||
|
"dkms": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"family": {
|
"family": {
|
||||||
"redhat": {
|
"redhat": {
|
||||||
"amphora-agent": "openstack-octavia-amphora-agent",
|
"amphora-agent": "openstack-octavia-amphora-agent",
|
||||||
@ -10,17 +20,19 @@
|
|||||||
"cloud-guest-utils": "",
|
"cloud-guest-utils": "",
|
||||||
"apparmor": "",
|
"apparmor": "",
|
||||||
"dmeventd": "",
|
"dmeventd": "",
|
||||||
"isc-dhcp-client": "",
|
"isc-dhcp-client": "dhcp-client",
|
||||||
"uuid-runtime": "",
|
"uuid-runtime": "",
|
||||||
"ubuntu-cloudimage-keyring": "",
|
"ubuntu-cloudimage-keyring": "",
|
||||||
"vim-tiny": "",
|
"vim-tiny": "",
|
||||||
"ureadahead": "",
|
"ureadahead": "",
|
||||||
"apt-transport-https": "",
|
"apt-transport-https": "",
|
||||||
"pollinate": "",
|
"pollinate": "",
|
||||||
"ifupdown": ""
|
"ifupdown": "",
|
||||||
|
"network-scripts": "network-scripts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"default": {
|
"default": {
|
||||||
"amphora-agent": "amphora-agent"
|
"amphora-agent": "amphora-agent",
|
||||||
|
"network-scripts": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
12
elements/amphora-agent/post-install.d/10-enable-network-scripts
Executable file
12
elements/amphora-agent/post-install.d/10-enable-network-scripts
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
if [ "$DISTRO_NAME" == "rhel" ] && [ "$DIB_RELEASE" == "8" ]; then
|
||||||
|
chkconfig network on
|
||||||
|
fi
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Added support to create RHEL 8 amphora images.
|
Loading…
Reference in New Issue
Block a user