Skip to contentSkip to conversation

uprev python-glance to latest stable/pike

PATCH New Mark Asselstine 1 participant 8 messages Dec 1, 2017

lore
Share & tools
lore
#0 lore raw

cover uprev python-glance to latest stable/pike

A mostly straightforward uprev to the latest stable release. Like I have done with the other openstack components I have adjusted the operations we perform in do_install() and as part of -setup to more closely match the openstack installation guide. This aligns us better with that documentation and also with the overall configuration people have become familiar with when using Ubuntu or other distros, but of course we continue to automate the setup process making everything work out of the box.

Along with the uprev we also complete the transition to systemd. As planned the service files are either used as found in the upstream projects, as suggested in their documentation or made to match what is found in other distros.

Mark

#1 lore raw

PATCH 1/7 python-sqlparse: uprev to v0.2.4

This update is required to support the stable/pike version of python-glance.

---
 .../python/python-sqlparse_0.1.16.bb               | 22 ----------------------
 .../python/python-sqlparse_0.2.4.bb                | 22 ++++++++++++++++++++++
 2 files changed, 22 insertions(+), 22 deletions(-)
 delete mode 100644 meta-openstack/recipes-devtools/python/python-sqlparse_0.1.16.bb
 create mode 100644 meta-openstack/recipes-devtools/python/python-sqlparse_0.2.4.bb
meta-openstack/recipes-devtools/python/python-sqlparse_0.1.16.bb deleted +0 -22
deleted file mode 100644
index 93f7210..0000000
@@ -1,22 +0,0 @@
-DESCRIPTION = "Non-validating SQL parser module"
-HOMEPAGE = "http://pypi.python.org/pypi/sqlparse"
-SECTION = "devel/python"
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://COPYING;md5=13ec2f893997ca1f516b55496e019a81"
-
-SRC_URI[md5sum] = "370962a307ebaaa70a28b6b0ccb53980"
-SRC_URI[sha256sum] = "678c6c36ca4b01405177da8b84eecf92ec92c9f6c762396c965bb5d305f20f81"
-
-export BUILD_SYS
-export HOST_SYS
-
-inherit setuptools pypi
-
-# DEPENDS_default: python-pip
-
-DEPENDS += " \
-        "
-
-# RDEPENDS_default: 
-RDEPENDS_${PN} += " \
-        "
meta-openstack/recipes-devtools/python/python-sqlparse_0.2.4.bb new file +22 -0
new file mode 100644
index 0000000..b253af4
@@ -0,0 +1,22 @@
+DESCRIPTION = "Non-validating SQL parser module"
+HOMEPAGE = "http://pypi.python.org/pypi/sqlparse"
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2b136f573f5386001ea3b7b9016222fc"
+
+SRC_URI[md5sum] = "8f753105167f35ea94ae6387e8af152f"
+SRC_URI[sha256sum] = "ce028444cfab83be538752a2ffdb56bc417b7784ff35bb9a3062413717807dec"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit setuptools pypi
+
+# DEPENDS_default: python-pip
+
+DEPENDS += " \
+        "
+
+# RDEPENDS_default: 
+RDEPENDS_${PN} += " \
+        "
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/7 python-barbicanclient: uprev to latest stable/pike

In reply to Mark Asselstine

Needed for the uprev of python-castellan.

---
 .../python/python-barbicanclient_git.bb                 | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
meta-openstack/recipes-devtools/python/python-barbicanclient_git.bb +10 -7
index 4361e34..8b1b8e9 100644
@@ -4,14 +4,12 @@ SECTION = "devel/python"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=e031cff4528978748f9cc064c6e6fa73"
 
-PR = "r0"
-
 SRC_URI = "\
-	git://github.com/openstack/python-barbicanclient.git;branch=master \
+	git://github.com/openstack/python-barbicanclient.git;branch=stable/pike \
 	"
 
-PV = "3.0.3+git${SRCPV}"
-SRCREV = "2919366867af335d59913764a55ca8e95569947d"
+PV = "4.5.2+git${SRCPV}"
+SRCREV = "775de93a612db866bb39ba6828f3e7bd1aa3c9f5"
 S = "${WORKDIR}/git"
 
 inherit setuptools
@@ -22,7 +20,12 @@ DEPENDS += " \
         "
 
 RDEPENDS_${PN} += " \
+        python-pbr \
         python-requests \
         python-six \
-        python-keystoneclient \
-	"
+        python-cliff \
+        python-keystoneauth1 \
+        python-oslo.i18n \
+        python-oslo.serialization \
+        python-oslo.utils \
+        "
Signature · 1 line
2.7.4
#3 lore raw

PATCH 3/7 python-cursive: initial version using stable/pike

In reply to Mark Asselstine

This package is required by python-glance.

---
 .../recipes-devtools/python/python-cursive_git.bb  | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 meta-openstack/recipes-devtools/python/python-cursive_git.bb
meta-openstack/recipes-devtools/python/python-cursive_git.bb new file +32 -0
new file mode 100644
index 0000000..1a677f1
@@ -0,0 +1,32 @@
+DESCRIPTION = "Library for validation of digital signatures."
+HOMEPAGE = "https://github.com/openstack/cursive"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
+
+SRC_URI = "\
+	git://git.openstack.org/openstack/cursive.git;branch=master \
+	"
+
+PV="0.2.0+git${SRCPV}"
+SRCREV="ad25a4016c56eeceb85764c7ac4501def2b5445a"
+S = "${WORKDIR}/git"
+
+inherit setuptools
+
+DEPENDS += " \
+        python-pbr \
+        "
+
+RDEPENDS_${PN} += " \
+        python-pbr \
+        python-lxml \
+        python-cryptography \
+        python-netifaces \
+        python-six \
+        python-oslo.serialization \
+        python-oslo.utils \
+        python-oslo.i18n \
+        python-oslo.log \
+        python-castellan \
+        "
Signature · 1 line
2.7.4
#4 lore raw

PATCH 4/7 python-taskflow: uprev to latest stable/pike

In reply to Mark Asselstine

This uprev is required by the stable/pike version of python-glance.

---
 .../recipes-devtools/python/python-taskflow_git.bb | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)
meta-openstack/recipes-devtools/python/python-taskflow_git.bb +10 -12
index 088d4d1..1717617 100644
@@ -5,11 +5,11 @@ LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=4476c4be31402271e101d9a4a3430d52"
 
 SRC_URI = "\
-	git://git.openstack.org/openstack/taskflow.git;branch=master \
+	git://git.openstack.org/openstack/taskflow.git;branch=stable/pike \
 	"
 
-PV="1.21.0+git${SRCPV}"
-SRCREV="52bd5e89fdddec49907a45e83a7a4b1abd1d1291"
+PV="2.14.1+git${SRCPV}"
+SRCREV="ed867c4fd17e4102a133c313a13af37baccf14a4"
 S = "${WORKDIR}/git"
 
 inherit setuptools
@@ -21,22 +21,20 @@ DEPENDS += " \
 
 RDEPENDS_${PN} += " \
         python-pbr \
-        python-anyjson \
-        python-iso8601 \
         python-six \
-        python-networkx \
-        python-babel \
-        python-stevedore \
-        python-futures \
+        python-enum34 \
         python-futurist \
         python-fasteners \
+        python-networkx \
         python-contextlib2 \
-        python-monotonic \
+        python-stevedore \
+        python-futures \
         python-jsonschema \
         python-automaton \
         python-oslo.utils \
         python-oslo.serialization \
+        python-tenacity \
         python-cachetools \
         python-debtcollector \
-        python-enum34 \
-	"
+        "
+	
\ No newline at end of file
Signature · 1 line
2.7.4
#5 lore raw

PATCH 5/7 python-castellan: uprev to latest stable/pike

In reply to Mark Asselstine

This uprev is required by the stable/pike version of python-cursive.

---
 .../recipes-devtools/python/python-castellan_git.bb         | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
meta-openstack/recipes-devtools/python/python-castellan_git.bb +7 -6
index 40a085d..9401ad9 100644
@@ -7,11 +7,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
 SRCNAME = "castellan"
 
 SRC_URI = "\
-	git://git.openstack.org/openstack/${SRCNAME}.git;branch=master \
+	git://git.openstack.org/openstack/${SRCNAME}.git;branch=stable/pike \
 	"
 
-PV="0.2.1+git${SRCPV}"
-SRCREV="4fda4a749f3f908d58817c326676073aa6fcf62a"
+PV="0.12.1+git${SRCPV}"
+SRCREV="124e9296fe79412b510c73b35936a6be91267d18"
 S = "${WORKDIR}/git"
 
 inherit setuptools
@@ -25,10 +25,11 @@ RDEPENDS_${PN} += " \
         python-pbr \
         python-babel \
         python-cryptography \
+        python-barbicanclient \
         python-oslo.config \
         python-oslo.context \
+        python-oslo.i18n \
         python-oslo.log \
-        python-oslo.policy \
-        python-oslo.serialization \
         python-oslo.utils \
-	"
+        python-keystoneauth1 \
+        "
Signature · 1 line
2.7.4
#6 lore raw

PATCH 6/7 python-glance-store: initial version

In reply to Mark Asselstine

The stable/pike version of this package is required by the stable/pike version of python-glance.

---
 .../python/python-glance-store_git.bb              | 37 ++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 meta-openstack/recipes-devtools/python/python-glance-store_git.bb
meta-openstack/recipes-devtools/python/python-glance-store_git.bb new file +37 -0
new file mode 100644
index 0000000..f6cfaa7
@@ -0,0 +1,37 @@
+DESCRIPTION = "Glance stores library"
+HOMEPAGE = "https://github.com/openstack/glance_store"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
+
+SRC_URI = "\
+	git://git.openstack.org/openstack/glance_store.git;branch=stable/pike \
+	"
+
+PV="0.22.0+git${SRCPV}"
+SRCREV="49c915f498fc8d91c98fcf4e07ceecdcf167fc5a"
+S = "${WORKDIR}/git"
+
+inherit setuptools
+
+DEPENDS += " \
+        python-pip \
+        python-pbr \
+        "
+
+RDEPENDS_${PN} += " \
+        bash \
+        python-oslo.config \
+        python-oslo.i18n \
+        python-oslo.serialization \
+        python-oslo.utils \
+        python-oslo.concurrency \
+        python-stevedore \
+        python-enum34 \
+        python-eventlet \
+        python-six \
+        python-jsonschema \
+        python-keystoneauth1 \
+        python-keystoneclient \
+        python-requests \
+        "
Signature · 1 line
2.7.4
#7 lore raw

PATCH 7/7 python-glance: uprev to latest stable/pike

In reply to Mark Asselstine

Complete the uprev and the transition to systemd. The configuration is cleaned up to match the setup documentation found in the openstack installation guide. Once a build is completed with these changes the controller image is able to have images added via:

%> . /etc/keystone/admin-openrc
%> openstack image create "cirros" \
--file cirros-0.3.5-x86_64-disk.img \
--disk-format qcow2 --container-format bare \
--public

Images can be listed with 'openstack image list' or 'glance image-list' or via the horizon web interface.

Requires introduction of python-glance-store...

---
 .../python/python-glance/glance-api.service        |  20 ++
 .../python/python-glance/glance-init               |  42 ++++
 .../python/python-glance/glance-init.service       |  12 +
 .../python/python-glance/glance-registry.service   |  20 ++
 .../recipes-devtools/python/python-glance_git.bb   | 261 +++++++++++----------
 5 files changed, 225 insertions(+), 130 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-glance/glance-api.service
 create mode 100644 meta-openstack/recipes-devtools/python/python-glance/glance-init
 create mode 100644 meta-openstack/recipes-devtools/python/python-glance/glance-init.service
 create mode 100644 meta-openstack/recipes-devtools/python/python-glance/glance-registry.service
meta-openstack/recipes-devtools/python/python-glance/glance-api.service new file +20 -0
new file mode 100644
index 0000000..6777496
@@ -0,0 +1,20 @@
+[Unit]
+Description=OpenStack Image Service API
+After=postgresql.service keystone.service ntp.service rabbitmq-server.service
+
+[Service]
+User=%USER%
+Group=%GROUP%
+Type=simple
+WorkingDirectory=%LOCALSTATEDIR%/lib/glance
+PermissionsStartOnly=true
+ExecStartPre=/bin/mkdir -p %LOCALSTATEDIR%/lock/glance %LOCALSTATEDIR%/log/glance %LOCALSTATEDIR%/lib/glance
+ExecStartPre=/bin/chown %USER%:%GROUP% %LOCALSTATEDIR%/lock/glance %LOCALSTATEDIR%/lib/glance
+ExecStartPre=/bin/chown %USER%:adm %LOCALSTATEDIR%/log/glance
+ExecStart=/usr/bin/glance-api --config-file=%SYSCONFDIR%/glance/glance-api.conf --log-file=%LOCALSTATEDIR%/log/glance/glance-api.log
+Restart=on-failure
+LimitNOFILE=65535
+TimeoutStopSec=15
+
+[Install]
+WantedBy=multi-user.target
meta-openstack/recipes-devtools/python/python-glance/glance-init new file +42 -0

42 lines not on this page · raw message

meta-openstack/recipes-devtools/python/python-glance/glance-init.service new file +12 -0
new file mode 100644
index 0000000..34941b9
@@ -0,0 +1,12 @@
+[Unit]
+Description=Barebones OpenStack glance initialization
+After=postgresql-init.service keystone-init.service
+
+[Service]
+Type=oneshot
+ExecStart=%SYSCONFDIR%/glance/glance-init
+ExecStartPost=/bin/systemctl --no-reload disable glance-init.service
+RemainAfterExit=No
+
+[Install]
+WantedBy=multi-user.target
meta-openstack/recipes-devtools/python/python-glance/glance-registry.service new file +20 -0
new file mode 100644
index 0000000..a72e6ea
@@ -0,0 +1,20 @@
+[Unit]
+Description=OpenStack Image Service Registry
+After=postgresql.service keystone.service ntp.service rabbitmq-server.service
+
+[Service]
+User=%USER%
+Group=%GROUP%
+Type=simple
+WorkingDirectory=%LOCALSTATEDIR%/lib/glance
+PermissionsStartOnly=true
+ExecStartPre=/bin/mkdir -p %LOCALSTATEDIR%/lock/glance %LOCALSTATEDIR%/log/glance %LOCALSTATEDIR%/lib/glance
+ExecStartPre=/bin/chown %USER%:%GROUP% %LOCALSTATEDIR%/lock/glance %LOCALSTATEDIR%/lib/glance
+ExecStartPre=/bin/chown %USER%:adm %LOCALSTATEDIR%/log/glance
+ExecStart=/usr/bin/glance-registry --config-file=%SYSCONFDIR%/glance/glance-registry.conf --log-file=%LOCALSTATEDIR%/log/glance/glance-registry.log
+Restart=on-failure
+LimitNOFILE=65535
+TimeoutStopSec=15
+
+[Install]
+WantedBy=multi-user.target
meta-openstack/recipes-devtools/python/python-glance_git.bb +131 -130

337 lines not on this page · raw message

Signature · 1 line
2.7.4