diff --git a/.gitignore b/.gitignore index acb93792..cad81b6e 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ centos-mirror-tools/logs/ centos-mirror-tools/output/ # Sphinx documentation -docs/build/ +doc/build/ # Release Notes documentation releasenotes/build diff --git a/.zuul.yaml b/.zuul.yaml index 7ccbd0a6..6c524d97 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,8 +1,12 @@ --- - project: + templates: + - build-openstack-docs-pti check: jobs: + - build-openstack-releasenotes - openstack-tox-linters gate: jobs: + - build-openstack-releasenotes - openstack-tox-linters diff --git a/centos-mirror-tools/dl_rpms.sh b/centos-mirror-tools/dl_rpms.sh index 29c0ae48..d6753db0 100755 --- a/centos-mirror-tools/dl_rpms.sh +++ b/centos-mirror-tools/dl_rpms.sh @@ -40,6 +40,7 @@ get_from() { # By default, we use "sudo" and we don't use a local yum.conf. These can # be overridden via flags. SUDOCMD="sudo -E" +RELEASEVER="--releasever=7" YUMCONFOPT="" CLEAN_LOGS_ONLY=0 @@ -59,6 +60,7 @@ while getopts "c:nxh" o; do c) # Use an alternate yum.conf YUMCONFOPT="-c $OPTARG" + grep -q "releasever=" $OPTARG && RELEASEVER="--$(grep releasever= ${OPTARG})" ;; h) # Help @@ -215,11 +217,11 @@ download () { echo " ------ using $SFILE to search $rpm_name ------" # Yumdownloader with the appropriate flag for src, noarch or x86_64 if [ "$_type" == "src" ];then - download_cmd="${SUDOCMD} yumdownloader -q ${YUMCONFOPT} -C --source $SFILE" - download_url_cmd="${SUDOCMD} yumdownloader --urls -q ${YUMCONFOPT}-C --source $SFILE" + download_cmd="${SUDOCMD} yumdownloader -q ${YUMCONFOPT} ${RELEASEVER} -C --source $SFILE" + download_url_cmd="${SUDOCMD} yumdownloader --urls -q ${YUMCONFOPT} ${RELEASEVER} -C --source $SFILE" else - download_cmd="${SUDOCMD} yumdownloader -q -C ${YUMCONFOPT} $SFILE --archlist=noarch,x86_64" - download_url_cmd="${SUDOCMD} yumdownloader --urls -q -C ${YUMCONFOPT} $SFILE --archlist=noarch,x86_64" + download_cmd="${SUDOCMD} yumdownloader -q -C ${YUMCONFOPT} ${RELEASEVER} $SFILE --archlist=noarch,x86_64" + download_url_cmd="${SUDOCMD} yumdownloader --urls -q -C ${YUMCONFOPT} ${RELEASEVER} $SFILE --archlist=noarch,x86_64" fi fi else @@ -296,7 +298,7 @@ download () { } # Prime the cache -${SUDOCMD} yum ${YUMCONFOPT} makecache +${SUDOCMD} yum ${YUMCONFOPT} ${RELEASEVER} makecache # Download files if [ -s "$rpms_list" ];then diff --git a/centos-mirror-tools/mirror-check.sh b/centos-mirror-tools/mirror-check.sh index 6a8c4776..919cfb80 100755 --- a/centos-mirror-tools/mirror-check.sh +++ b/centos-mirror-tools/mirror-check.sh @@ -39,6 +39,7 @@ truncate -s 0 $ERROR_LOG_FILE retcode=0 extra_opts="" + usage() { echo "$0 [-c ]" echo "" @@ -76,7 +77,7 @@ get_repoquery_info() { else repoquery_opts= fi - repoquery $extra_opts -C --qf '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}' \ + repoquery $extra_opts ${RELEASEVER} -C --qf '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}' \ $repoquery_opts "$_package_name" } @@ -114,6 +115,7 @@ while getopts "c:" opt; do case $opt in c) extra_opts="-c ${OPTARG}" + grep -q "releasever=" $OPTARG && RELEASEVER="--$(grep releasever= ${OPTARG})" ;; \?) echo "Invalid option: -$OPTARG" >&2 @@ -124,7 +126,7 @@ while getopts "c:" opt; do done info "Getting yum cache" -if ! yum $extra_opts makecache; then +if ! yum $extra_opts ${RELEASEVER} makecache; then error "There was a problem getting yum cache" exit 1 fi diff --git a/centos-mirror-tools/rpms_3rdparties.lst b/centos-mirror-tools/rpms_3rdparties.lst index 6961bfc7..eaeec2ca 100644 --- a/centos-mirror-tools/rpms_3rdparties.lst +++ b/centos-mirror-tools/rpms_3rdparties.lst @@ -1,5 +1,5 @@ libvirt-python-3.5.0-1.fc24.src.rpm#https://libvirt.org/sources/python/libvirt-python-3.5.0-1.fc24.src.rpm -novnc-0.6.2-1.el7.src.rpm#http://cbs.centos.org/kojifiles/packages/novnc/0.6.2/1.el7/src/novnc-0.6.2-1.el7.src.rpm +novnc-0.6.2-1.el7.noarch.rpm#http://cbs.centos.org/kojifiles/packages/novnc/0.6.2/1.el7/noarch/novnc-0.6.2-1.el7.noarch.rpm python2-httpbin-0.5.0-6.el7.noarch.rpm#http://cbs.centos.org/kojifiles/packages/python-httpbin/0.5.0/6.el7/noarch/python2-httpbin-0.5.0-6.el7.noarch.rpm python2-pytest-httpbin-0.2.3-6.el7.noarch.rpm#http://cbs.centos.org/kojifiles/packages/python-pytest-httpbin/0.2.3/6.el7/noarch/python2-pytest-httpbin-0.2.3-6.el7.noarch.rpm python2-pytest-mock-1.6.0-2.el7.noarch.rpm#http://cbs.centos.org/kojifiles/packages/python-pytest-mock/1.6.0/2.el7/noarch/python2-pytest-mock-1.6.0-2.el7.noarch.rpm diff --git a/centos-mirror-tools/rpms_centos.lst b/centos-mirror-tools/rpms_centos.lst index 9662fa6f..02fe0267 100644 --- a/centos-mirror-tools/rpms_centos.lst +++ b/centos-mirror-tools/rpms_centos.lst @@ -810,7 +810,7 @@ mcstrans-0.3.4-5.el7.x86_64.rpm mdadm-4.0-13.el7.x86_64.rpm mdi-common-1.4.57.0-4.el7.noarch.rpm mdi-fonts-1.4.57.0-4.el7.noarch.rpm -memcached-1.4.39-1.el7.src.rpm +memcached-1.4.39-1.el7.x86_64.rpm mesa-libGLU-9.0.0-4.el7.x86_64.rpm mesa-libGLU-devel-9.0.0-4.el7.x86_64.rpm mesa-libwayland-egl-17.2.3-8.20171019.el7.x86_64.rpm diff --git a/deployment/libvirt/README.rst b/deployment/libvirt/README.rst index b5f0396a..ed28b7b5 100644 --- a/deployment/libvirt/README.rst +++ b/deployment/libvirt/README.rst @@ -5,6 +5,9 @@ This is a quick reference for deploying StarlingX on libvirt/qemu systems. It assumes you have a working libvirt/qemu installation for a non-root user and that your user has NOPASSWD sudo permissions. +Refer also to pages "Installation Guide Virtual Environment", "Testing Guide" +on the StarlingX wiki: https://wiki.openstack.org/wiki/StarlingX + Overview -------- @@ -22,10 +25,8 @@ an interactive shell that configures everything. Here's an example:: export CONTROLLER=madcloud export COMPUTE=madnode export BRIDGE_INTERFACE=madbr - export INTERNAL_NETWORK=172.30.20.0/24 - export INTERNAL_IP=172.30.20.1/24 - export EXTERNAL_NETWORK=192.168.20.0/24 - export EXTERNAL_IP=192.168.20.1/24 + export EXTERNAL_NETWORK=172.30.20.0/24 + export EXTERNAL_IP=172.30.20.1/24 There is also a script ``cleanup_network.sh`` that will remove networking configuration from libvirt. diff --git a/deployment/libvirt/cleanup_network.sh b/deployment/libvirt/cleanup_network.sh index ebace0bb..a783a8c0 100755 --- a/deployment/libvirt/cleanup_network.sh +++ b/deployment/libvirt/cleanup_network.sh @@ -2,13 +2,17 @@ # # cleanup_network.sh - Cleans up network interfaces - not safe to run blindly! +MY_WORKING_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}" )" )" + +source ${MY_WORKING_DIR}/functions.sh + NETWORK_DEFAULT=${NETWORK_DEFAULT:-default} BRIDGE_INTERFACE=${BRIDGE_INTERFACE=stxbr0} if virsh net-list --name | grep ${NETWORK_DEFAULT} ; then sudo virsh net-destroy ${NETWORK_DEFAULT} sudo virsh net-undefine ${NETWORK_DEFAULT} - sudo rm -rf /etc/libvirt/qemu/networks/autostart/${NETWORK_DEFAULT}.xml + delete_xml /etc/libvirt/qemu/networks/autostart/${NETWORK_DEFAULT}.xml fi if [ -d "/sys/class/net/${BRIDGE_INTERFACE}" ]; then diff --git a/deployment/libvirt/compute.xml b/deployment/libvirt/compute.xml index 85474c03..d1f92913 100644 --- a/deployment/libvirt/compute.xml +++ b/deployment/libvirt/compute.xml @@ -7,17 +7,17 @@ /machine - hvm + hvm - - + + Nehalem - + @@ -32,34 +32,18 @@ - -
- -
- - -
- - - - - - -
- -
@@ -67,21 +51,18 @@ -
-
-
@@ -101,11 +82,9 @@