From 5d546e3ceedbd0f5df7f1434427ff2244b3cdf6d Mon Sep 17 00:00:00 2001 From: Fabricio Henrique Ramos Date: Mon, 4 Oct 2021 23:19:59 -0300 Subject: [PATCH] Add debian packaging for python-osc-lib Add debian packaging structure for python-osc-lib Story: 2009101 Task: 43520 Signed-off-by: Fabricio Henrique Ramos Change-Id: Ibf79b4939a63a8c740331aa738d46c9d9cb0c6fa --- .../python-osc-lib/debian/meta_data.yaml | 10 +++++ ...-keystone-region-name-option-to-open.patch | 44 +++++++++++++++++++ .../python-osc-lib/debian/patches/series | 1 + 3 files changed, 55 insertions(+) create mode 100644 openstack/python-osc-lib/debian/meta_data.yaml create mode 100644 openstack/python-osc-lib/debian/patches/0001-CGTS-7947-add-os-keystone-region-name-option-to-open.patch create mode 100644 openstack/python-osc-lib/debian/patches/series diff --git a/openstack/python-osc-lib/debian/meta_data.yaml b/openstack/python-osc-lib/debian/meta_data.yaml new file mode 100644 index 00000000..f0f8b3fe --- /dev/null +++ b/openstack/python-osc-lib/debian/meta_data.yaml @@ -0,0 +1,10 @@ +--- +debname: python-osc-lib +debver: 2.2.1-2 +dl_path: + name: python-osc-lib-2.2.1-2.tar.gz + url: https://salsa.debian.org/openstack-team/libs/python-osc-lib/-/archive/debian/2.2.1-2/python-osc-lib-debian-2.2.1-2.tar.gz + md5sum: b72d416dd21b369d89c1dc3f8de42705 +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true diff --git a/openstack/python-osc-lib/debian/patches/0001-CGTS-7947-add-os-keystone-region-name-option-to-open.patch b/openstack/python-osc-lib/debian/patches/0001-CGTS-7947-add-os-keystone-region-name-option-to-open.patch new file mode 100644 index 00000000..60eaf89b --- /dev/null +++ b/openstack/python-osc-lib/debian/patches/0001-CGTS-7947-add-os-keystone-region-name-option-to-open.patch @@ -0,0 +1,44 @@ +From 76f568a6d94e798d47d044b2abde8b4a3884657e Mon Sep 17 00:00:00 2001 +From: Fabricio Henrique Ramos +Date: Mon, 4 Oct 2021 23:15:54 -0300 +Subject: [PATCH] CGTS-7947: add --os-keystone-region-name option to openstack + +The new option only apply to identity client. +--- + osc_lib/clientmanager.py | 1 + + osc_lib/shell.py | 7 +++++++ + 2 files changed, 8 insertions(+) + +diff --git a/osc_lib/clientmanager.py b/osc_lib/clientmanager.py +index 2990c27..38d84c1 100644 +--- a/osc_lib/clientmanager.py ++++ b/osc_lib/clientmanager.py +@@ -88,6 +88,7 @@ class ClientManager(object): + self._app_name = app_name + self._app_version = app_version + self.region_name = self._cli_options.region_name ++ self.keystone_region_name = self._cli_options.keystone_region_name + self.interface = self._cli_options.interface + + self.timing = self._cli_options.timing +diff --git a/osc_lib/shell.py b/osc_lib/shell.py +index 27c3a57..c2a504a 100644 +--- a/osc_lib/shell.py ++++ b/osc_lib/shell.py +@@ -205,6 +205,13 @@ class OpenStackShell(app.App): + default=utils.env('OS_REGION_NAME'), + help=_('Authentication region name (Env: OS_REGION_NAME)'), + ) ++ parser.add_argument( ++ '--os-keystone-region-name', ++ metavar='', ++ dest='keystone_region_name', ++ default=utils.env('OS_KEYSTONE_REGION_NAME'), ++ help=_('Keystone Authentication region name (Env: OS_KEYSTONE_REGION_NAME)'), ++ ) + parser.add_argument( + '--os-cacert', + metavar='', +-- +2.17.1 + diff --git a/openstack/python-osc-lib/debian/patches/series b/openstack/python-osc-lib/debian/patches/series new file mode 100644 index 00000000..85a0b5de --- /dev/null +++ b/openstack/python-osc-lib/debian/patches/series @@ -0,0 +1 @@ +0001-CGTS-7947-add-os-keystone-region-name-option-to-open.patch