Skip to contentSkip to conversation

uprev python-openstackclient

PATCH New Mark Asselstine 1 participant 7 messages Nov 22, 2017

lore
Share & tools
lore
#0 lore raw

cover uprev python-openstackclient

Now that we have keystone and horizon mostly working we are starting to uprev the remaining "core" openstack components. The openstackclient which offers the '/usr/bin/openstack' tool is often used to validate if components are working so here we uprev this package and get it working with some basic commands such as

$ openstack project list --os-username admin --os-project-name admin \
    --os-user-domain-id default --os-project-domain-id default \
    --os-identity-api-version 3 --os-auth-url http://localhost:5000 \
    --os-password password
+----------------------------------+-------+
| ID                               | Name  |
+----------------------------------+-------+
| 90e77577a2714795a860817d0de07402 | admin |
+----------------------------------+-------+

Mark

#1 lore raw

PATCH 1/6 python-zaqarclient: uprev to the latest stable/pike

Needed uprev and avoids a deprecation warning when running openstackclient.

---
 .../recipes-devtools/python/python-zaqarclient_git.bb       | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
meta-openstack/recipes-devtools/python/python-zaqarclient_git.bb +8 -5
index 5e11803..b76f2e8 100644
@@ -16,14 +16,17 @@ RDEPENDS_${PN} +=" \
         python-stevedore \
         python-jsonschema \
         python-oslo.i18n \
-        python-keystoneclient \
+        python-oslo.log \
+        python-oslo.utils \
+        python-keystoneauth1 \
+        python-osc-lib \
 	"
-
+	
 SRCNAME = "zaqarclient"
-SRC_URI = "git://github.com/openstack/${BPN}.git;branch=master"
+SRC_URI = "git://github.com/openstack/${BPN}.git;branch=stable/pike"
 
-PV = "0.2.0+git${SRCPV}"
-SRCREV = "c1a0ea98b6f0aad5764ce197172b41d3efc1e485"
+PV = "0.7.0+git${SRCPV}"
+SRCREV = "a1c2de74c56c6ddb11dc6aec78e8c438629ca8e8"
 S = "${WORKDIR}/git"
 
 inherit setuptools
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/6 python-designateclient: uprev to latest stable/pike

In reply to Mark Asselstine

Due for an uprev and avoids a deprecation warning when running openstackclient.

---
 .../recipes-devtools/python/python-designateclient_git.bb   | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
meta-openstack/recipes-devtools/python/python-designateclient_git.bb +7 -6
index d8477d5..7a0ba71 100644
@@ -9,23 +9,24 @@ DEPENDS += " \
         python-pbr \
         "
 
-RDEPENDS_${PN} +=" \
+RDEPENDS_${PN} += " \
         python-cliff \
         python-jsonschema \
+        python-osc-lib \
         python-oslo.utils \
         python-pbr \
-        python-keystoneclient \
+        python-keystoneauth1 \
         python-requests \
         python-six \
         python-stevedore \
         python-debtcollector \
-	"
+        "
 
 SRCNAME = "designateclient"
-SRC_URI = "git://github.com/openstack/${BPN}.git;branch=master"
+SRC_URI = "git://github.com/openstack/${BPN}.git;branch=stable/pike"
 
-PV = "1.5.0+git${SRCPV}"
-SRCREV = "b97ae05612522180cc6f64485212811329da9645"
+PV = "2.7.0+git${SRCPV}"
+SRCREV = "77a705857f2c303a03fdbccd4460a68b61d92fd0"
 S = "${WORKDIR}/git"
 
 inherit setuptools
Signature · 1 line
2.7.4
#3 lore raw

PATCH 3/6 python-deprecation: initial version

In reply to Mark Asselstine

This package is required by python-openstacksdk.

---
 .../recipes-devtools/python/python-deprecation_1.0.1.bb        | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 meta-openstack/recipes-devtools/python/python-deprecation_1.0.1.bb
meta-openstack/recipes-devtools/python/python-deprecation_1.0.1.bb new file +10 -0
new file mode 100644
index 0000000..53e3665
@@ -0,0 +1,10 @@
+DESCRIPTION = "A library to handle automated deprecations"
+HOMEPAGE = "http://deprecation.readthedocs.io/en/latest/"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+SRC_URI[md5sum] = "d8a318c66d442dc4b900e070267ed9aa"
+SRC_URI[sha256sum] = "b9bff5cc91f601ef2a8a0200bc6cde3f18a48c2ed3d1ecbfc16076b14b3ad935"
+
+inherit setuptools pypi
Signature · 1 line
2.7.4
#4 lore raw

PATCH 4/6 python-openstacksdk: initial version

In reply to Mark Asselstine

Required by python-openstackclient (stable/pike).

---
 .../python/python-openstacksdk_git.bb              | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 meta-openstack/recipes-devtools/python/python-openstacksdk_git.bb
meta-openstack/recipes-devtools/python/python-openstacksdk_git.bb new file +29 -0
new file mode 100644
index 0000000..12472ec
@@ -0,0 +1,29 @@
+DESCRIPTION = "Unified SDK for OpenStack"
+HOMEPAGE = "https://github.com/openstack/python-openstacksdk"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658"
+
+SRC_URI = " \
+        git://github.com/openstack/python-openstacksdk.git;branch=master \
+        "
+
+PV = "0.9.19+git${SRCPV}"
+SRCREV = "bd60aa4a21676b8901691298eb0786fc231f7bff"
+S = "${WORKDIR}/git"
+
+inherit setuptools
+
+DEPENDS += "\
+        python-pbr \
+        "
+
+RDEPENDS_${PN} += " \
+        python-pbr \
+        python-jsonpatch \
+        python-six \
+        python-stevedore \
+        python-os-client-config \
+        python-keystoneauth1 \
+        python-deprecation \
+        "
Signature · 1 line
2.7.4
#5 lore raw

PATCH 5/6 python-openstackclient: uprev to latest stable/pike

In reply to Mark Asselstine

Align with other packages found in the openstack project umbrella by switching to use git. Beyond this it is a straightforward uprev.

Requires updates to python-zaqarclient along with the introduction of the python-openstacksdk package.

---
 .../python/python-openstackclient_1.1.0.bb         | 23 --------------
 .../python/python-openstackclient_git.bb           | 35 ++++++++++++++++++++++
 2 files changed, 35 insertions(+), 23 deletions(-)
 delete mode 100644 meta-openstack/recipes-devtools/python/python-openstackclient_1.1.0.bb
 create mode 100644 meta-openstack/recipes-devtools/python/python-openstackclient_git.bb
meta-openstack/recipes-devtools/python/python-openstackclient_1.1.0.bb deleted +0 -23
deleted file mode 100644
index b4beaad..0000000
@@ -1,23 +0,0 @@
-DESCRIPTION = "OpenStack Command-line Client"
-HOMEPAGE = "https://github.com/openstack/python-openstackclient"
-SECTION = "devel/python"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
-
-PYPI_PACKAGE = "python-openstackclient"
-
-SRC_URI[md5sum] = "c965b343b0fdf97d01e28d5460c7c175"
-SRC_URI[sha256sum] = "875b54ac95e29cc83ae76513b48306c8493c12d5ba7d23aea3432216f2fa91ba"
-
-inherit setuptools pypi
-
-DEPENDS += "\
-    python-pbr \
-    "
-
-RDEPENDS_${PN} += "\
-    python-pbr \
-    python-os-client-config \
-    python-appdirs \
-    python-keystoneauth1 \
-    "
meta-openstack/recipes-devtools/python/python-openstackclient_git.bb new file +35 -0
new file mode 100644
index 0000000..ce33f0c
@@ -0,0 +1,35 @@
+DESCRIPTION = "OpenStack Command-line Client"
+HOMEPAGE = "https://github.com/openstack/python-openstackclient"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
+
+SRC_URI = " \
+        git://github.com/openstack/python-openstackclient.git;branch=stable/pike \
+        "
+
+PV = "3.12.0+git${SRCPV}"
+SRCREV = "ff4abb7d19829efa0209cb67faf01011d9c841c5"
+S = "${WORKDIR}/git"
+
+inherit setuptools
+
+DEPENDS += "\
+        python-pbr \
+        "
+
+RDEPENDS_${PN} += " \
+        python-pbr \
+        python-six \
+        python-babel \
+        python-cliff \
+        python-keystoneauth1 \
+        python-openstacksdk \
+        python-osc-lib \
+        python-oslo.i18n \
+        python-oslo.utils \
+        python-glanceclient \
+        python-keystoneclient \
+        python-novaclient \
+        python-cinderclient \
+        "
Signature · 1 line
2.7.4
#6 lore raw

PATCH 6/6 python-keystone: update endpoints in config to match reality

In reply to Mark Asselstine

When attempting to validate python-openstackclient it was found that the old endpoints from previous releases of keystone where still being used. Update the endpoints to reflect how the current version of keyston is configured.

---
 meta-openstack/recipes-devtools/python/python-keystone_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-openstack/recipes-devtools/python/python-keystone_git.bb +2 -2
index d7f6400..c3437cd 100644
@@ -114,11 +114,11 @@ do_install_append() {
     # Edit the configuration to allow it to work out of the box
     KEYSTONE_CONF_FILE=${KEYSTONE_CONF_DIR}/keystone.conf
     sed "/# admin_endpoint = .*/a \
-        public_endpoint = http://%CONTROLLER_IP%:8081/keystone/main/ " \
+        public_endpoint = http://%CONTROLLER_IP%:5000/ " \
         -i ${KEYSTONE_CONF_FILE}
 
     sed "/# admin_endpoint = .*/a \
-        admin_endpoint = http://%CONTROLLER_IP%:8081/keystone/admin/ " \
+        admin_endpoint = http://%CONTROLLER_IP%:35357/ " \
         -i ${KEYSTONE_CONF_FILE}
     
     sed -e "s:%SERVICE_TOKEN%:${SERVICE_TOKEN}:g" -i ${KEYSTONE_CONF_FILE}
Signature · 1 line
2.7.4