diff options
| author | Zuul <zuul@review.opendev.org> | 2020-01-29 11:55:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2020-01-29 11:55:19 +0000 |
| commit | 7bec0316a8367aca0af54674f574b5d4f9c2721f (patch) | |
| tree | 85d7e44eb97d5942094ccc4e7bafc653764b9704 /kolla | |
| parent | 1439f839d42882c80ce81a1061dc52256df69fba (diff) | |
| parent | 3c618a1f6f0beca723e031fbe323b159400ad08f (diff) | |
| download | kolla-7bec0316a8367aca0af54674f574b5d4f9c2721f.tar.gz kolla-7bec0316a8367aca0af54674f574b5d4f9c2721f.zip | |
Merge "CentOS 8: base and openstack-base images"
Diffstat (limited to 'kolla')
| -rwxr-xr-x | kolla/common/config.py | 26 | ||||
| -rwxr-xr-x | kolla/image/build.py | 98 |
2 files changed, 114 insertions, 10 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py index ce6be6e15..d6fabfc1d 100755 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -13,6 +13,7 @@ import itertools import os +from distutils.version import LooseVersion from oslo_config import cfg from oslo_config import types @@ -33,17 +34,18 @@ DISTRO_RELEASE = { 'debian': '10', 'ubuntu': '18.04', } -OPENSTACK_RELEASE = { - 'centos': 'train', - 'rhel': 'train', - 'debian': 'master', - 'ubuntu': 'master', -} +# NOTE(mgoddard): The default release is set to 'train' for CentOS/RHEL 7 due +# to master dropping support for Python 2. +OPENSTACK_RELEASE = 'master' # This is noarch repository so we will use it on all architectures DELOREAN = \ "https://trunk.rdoproject.org/centos7/current-passed-ci/delorean.repo" DELOREAN_DEPS = "https://trunk.rdoproject.org/centos7/delorean-deps.repo" +DELOREAN_CENTOS8 = "https://trunk.rdoproject.org/centos8-master/" \ + "consistent/delorean.repo" +DELOREAN_DEPS_CENTOS8 = "https://trunk.rdoproject.org/centos8-master/" \ + "delorean-deps.repo" INSTALL_TYPE_CHOICES = ['binary', 'source', 'rdo', 'rhos'] @@ -251,7 +253,7 @@ _CLI_OPTS = [ help=('Squash the image layers. WARNING: it will consume lots' ' of disk IO. "docker-squash" tool is required, install' ' it by "pip install docker-squash"')), - cfg.StrOpt('openstack-release', default='master', + cfg.StrOpt('openstack-release', default=OPENSTACK_RELEASE, help='OpenStack release for building kolla-toolbox'), cfg.StrOpt('openstack-branch', default='master', help='Branch for source images'), @@ -1257,7 +1259,15 @@ def parse(conf, args, usage=None, prog=None, # NOTE(jeffrey4l): set the default base tag based on the # base option conf.set_default('base_tag', DEFAULT_BASE_TAGS.get(conf.base)) - conf.set_default('openstack_release', OPENSTACK_RELEASE.get(conf.base)) + # TODO(mgoddard): Remove this 'if' when CentOS 7 is no longer supported. + if conf.base in ['centos', 'rhel']: + if LooseVersion(conf.base_tag) >= LooseVersion('8'): + # Use CentOS 8 Delorean repos. + conf.set_default('rpm_setup_config', [DELOREAN_CENTOS8, + DELOREAN_DEPS_CENTOS8]) + else: + # Use Train packages on CentOS 7 due to python 2 drop. + conf.set_default('openstack_release', 'train') prefix = '' if conf.openstack_release == 'master' else 'stable-' openstack_branch = '{}{}'.format(prefix, conf.openstack_release) conf.set_default('openstack_branch', openstack_branch) diff --git a/kolla/image/build.py b/kolla/image/build.py index 60625409e..dab011939 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -143,9 +143,103 @@ UNBUILDABLE_IMAGES = { "ovsdpdk", }, - # NOTE(mgoddard): Mark all images unbuildable for CentOS 8. + # NOTE(mgoddard): Mark all images that depend on base or openstack-base as + # unbuildable for CentOS 8. 'centos8': { - "base", + "aodh-base", + "barbican-base", + "bifrost-base", + "blazar-base", + "ceilometer-base", + "ceph-base", + "certmonger", + "chrony", + "cinder-base", + "cloudkitty-base", + "collectd", + "congress-base", + "cron", + "cyborg-base", + "designate-base", + "dnsmasq", + "ec2-api", + "elasticsearch", + "elasticsearch-curator", + "etcd", + "fluentd", + "freezer-base", + "glance-base", + "gnocchi-base", + "grafana", + "hacluster-base", + "haproxy", + "heat-base", + "horizon", + "influxdb", + "ironic-base", + "ironic-inspector", + "iscsid", + "kafka", + "karbor-base", + "keepalived", + "keystone-base", + "kibana", + "kolla-toolbox", + "kuryr-base", + "logstash", + "magnum-base", + "manila-base", + "mariadb", + "masakari-base", + "memcached", + "mistral-base", + "monasca-base", + "monasca-grafana", + "monasca-thresh", + "mongodb", + "multipathd", + "murano-base", + "networking-baremetal", + "neutron-base", + "nova-base", + "nova-libvirt", + "novajoin-base", + "octavia-base", + "opendaylight", + "openvswitch-base", + "ovn-base", + "ovsdpdk", + "panko-base", + "placement-base", + "prometheus-base", + "ptp", + "qdrouterd", + "qinling-base", + "rabbitmq", + "radvd", + "rally", + "redis-base", + "rsyslog-base", + "sahara-base", + "searchlight-base", + "senlin-base", + "sensu-base", + "skydive-base", + "solum-base", + "storm", + "swift-base", + "tacker-base", + "telegraf", + "tempest", + "tgtd", + "tripleoclient", + "trove-base", + "vitrage-base", + "vmtp", + "watcher-base", + "zaqar-base", + "zookeeper", + "zun-base", }, 'debian': { |
