Ceph-utility python and Ubuntu upgrade.
This Patchset updated Ubuntu to Bionic and Python from 2.0 to 3.0 Change-Id: I0e967fa7f7f4d4a5619489a9da79b6561da9c9cb
This commit is contained in:
parent
d6b23767ba
commit
f2125faf4d
@ -29,7 +29,7 @@ root logger by oslo-rootwrap module, imported in _openstack-utility-rootwrap.tpl
|
|||||||
These lines will get rid of duplicate logs, generated because of the formatter
|
These lines will get rid of duplicate logs, generated because of the formatter
|
||||||
attached by oslo-rootwrap.
|
attached by oslo-rootwrap.
|
||||||
*/}}
|
*/}}
|
||||||
sed -i "/rootwrap_logger.setLevel/s/.*/#&/" /usr/lib/python2.7/dist-packages/oslo_rootwrap/wrapper.py
|
sed -i "/rootwrap_logger.setLevel/s/.*/#&/" /usr/lib/python3/dist-packages/oslo_rootwrap/wrapper.py
|
||||||
sed -i "/handler.setFormatter/s/.*/#&/" /usr/lib/python2.7/dist-packages/oslo_rootwrap/wrapper.py
|
sed -i "/handler.setFormatter/s/.*/#&/" /usr/lib/python3/dist-packages/oslo_rootwrap/wrapper.py
|
||||||
sed -i "/os.path.basename/s/.*/#&/" /usr/lib/python2.7/dist-packages/oslo_rootwrap/wrapper.py
|
sed -i "/os.path.basename/s/.*/#&/" /usr/lib/python3/dist-packages/oslo_rootwrap/wrapper.py
|
||||||
sed -i "/rootwrap_logger.addHandler/s/.*/#&/" /usr/lib/python2.7/dist-packages/oslo_rootwrap/wrapper.py
|
sed -i "/rootwrap_logger.addHandler/s/.*/#&/" /usr/lib/python3/dist-packages/oslo_rootwrap/wrapper.py
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
{{/*
|
{{/*
|
||||||
Copyright 2019 The Openstack-Helm Authors.
|
Copyright 2019 The Openstack-Helm Authors.
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ release_group: null
|
|||||||
images:
|
images:
|
||||||
pull_policy: IfNotPresent
|
pull_policy: IfNotPresent
|
||||||
tags:
|
tags:
|
||||||
ceph_utility: 'quay.io/airshipit/porthole-ceph-utility:latest-ubuntu_xenial'
|
ceph_utility: 'quay.io/airshipit/porthole-ceph-utility:latest-ubuntu_bionic'
|
||||||
image_repo_sync: docker.io/docker:18.09.02
|
image_repo_sync: docker.io/docker:18.09.02
|
||||||
local_registry:
|
local_registry:
|
||||||
active: false
|
active: false
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
ARG FROM=docker.io/ubuntu:xenial
|
ARG FROM=docker.io/ubuntu:bionic
|
||||||
FROM ${FROM}
|
FROM ${FROM}
|
||||||
|
|
||||||
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \
|
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \
|
||||||
@ -18,8 +18,8 @@ RUN set -xe \
|
|||||||
&& apt-get update && apt-get dist-upgrade -y \
|
&& apt-get update && apt-get dist-upgrade -y \
|
||||||
&& apt-get install -y wget curl apt-transport-https ca-certificates gnupg\
|
&& apt-get install -y wget curl apt-transport-https ca-certificates gnupg\
|
||||||
&& wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add - \
|
&& wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add - \
|
||||||
&& echo deb https://download.ceph.com/debian-${CEPH_RELEASE}/ xenial main | tee /etc/apt/sources.list.d/ceph.list \
|
&& echo deb https://download.ceph.com/debian-${CEPH_RELEASE}/ bionic main | tee /etc/apt/sources.list.d/ceph.list \
|
||||||
&& apt-get update && apt-get install -y bash python-oslo.rootwrap moreutils vim sudo screen ceph ceph-common python-rbd radosgw rsyslog hexedit jq s3cmd rsync xz-utils iperf \
|
&& apt-get update && apt-get install -y bash python3 python3-pip python3-oslo.rootwrap moreutils vim sudo screen ceph ceph-common python-rbd radosgw rsyslog hexedit jq s3cmd rsync xz-utils iperf \
|
||||||
&& apt-get remove --purge -y wget apt-transport-https && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* \
|
&& apt-get remove --purge -y wget apt-transport-https && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* \
|
||||||
&& TMP_DIR=$(mktemp --directory) \
|
&& TMP_DIR=$(mktemp --directory) \
|
||||||
&& cd ${TMP_DIR} \
|
&& cd ${TMP_DIR} \
|
@ -17,7 +17,7 @@
|
|||||||
parent: &parent airship-porthole-images
|
parent: &parent airship-porthole-images
|
||||||
vars:
|
vars:
|
||||||
image_name: &image_name porthole-ceph-utility
|
image_name: &image_name porthole-ceph-utility
|
||||||
distro_suffix: &distro_suffix ubuntu_xenial
|
distro_suffix: &distro_suffix ubuntu_bionic
|
||||||
files:
|
files:
|
||||||
- ^charts/ceph-utility/.*$
|
- ^charts/ceph-utility/.*$
|
||||||
- ^images/ceph-utility/.*$
|
- ^images/ceph-utility/.*$
|
||||||
|
Loading…
Reference in New Issue
Block a user