From 0e4f52c207a69767a6f0f6fe1f1737ac024d4235 Mon Sep 17 00:00:00 2001 From: Fabricio Henrique Ramos Date: Tue, 2 Nov 2021 17:30:28 -0300 Subject: [PATCH] Add packaging directory for openstack-resource-agents Add packaging directory structure for the package. Renamed the package from openstack-ras(CentOS) to openstack-resource-agents(Debian). Story: 2009101 Task: 43835 Signed-off-by: Fabricio Henrique Ramos Change-Id: If850939ca7c6e01d6bbaa885e32472e4e0a28587 --- .../0001-update-package-dependencies.patch | 26 +++++++++++++++++++ .../openstack-ras/debian/deb_patches/series | 1 + openstack/openstack-ras/debian/meta_data.yaml | 9 +++++++ .../patches/0001-remove-unwanted-files.patch | 24 +++++++++++++++++ openstack/openstack-ras/debian/patches/series | 1 + 5 files changed, 61 insertions(+) create mode 100644 openstack/openstack-ras/debian/deb_patches/0001-update-package-dependencies.patch create mode 100644 openstack/openstack-ras/debian/deb_patches/series create mode 100644 openstack/openstack-ras/debian/meta_data.yaml create mode 100644 openstack/openstack-ras/debian/patches/0001-remove-unwanted-files.patch create mode 100644 openstack/openstack-ras/debian/patches/series diff --git a/openstack/openstack-ras/debian/deb_patches/0001-update-package-dependencies.patch b/openstack/openstack-ras/debian/deb_patches/0001-update-package-dependencies.patch new file mode 100644 index 00000000..39ca6c29 --- /dev/null +++ b/openstack/openstack-ras/debian/deb_patches/0001-update-package-dependencies.patch @@ -0,0 +1,26 @@ +From 254b2348d105c86438bf4057a4d428c67d51ed37 Mon Sep 17 00:00:00 2001 +From: Fabricio Henrique Ramos +Date: Fri, 5 Nov 2021 11:45:54 -0300 +Subject: [PATCH] update package dependencies + +Signed-off-by: Fabricio Henrique Ramos +--- + debian/control | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/debian/control b/debian/control +index 1e4f8c5..ffeb41e 100644 +--- a/debian/control ++++ b/debian/control +@@ -9,7 +9,7 @@ Homepage: http://github.com/madkiss/openstack-resource-agents + + Package: openstack-resource-agents + Architecture: all +-Depends: ${misc:Depends}, netstat, python-keystoneclient, python-glanceclient, python-novaclient, curl ++Depends: ${misc:Depends}, net-tools, python3-keystoneclient, python3-glanceclient, python3-novaclient, curl + Description: pacemaker resource agents for OpenStack + This package contains resource agents to run most of the OpenStack + components inside a pacemaker-controlled high availability cluster. +-- +2.17.1 + diff --git a/openstack/openstack-ras/debian/deb_patches/series b/openstack/openstack-ras/debian/deb_patches/series new file mode 100644 index 00000000..2da03b87 --- /dev/null +++ b/openstack/openstack-ras/debian/deb_patches/series @@ -0,0 +1 @@ +0001-update-package-dependencies.patch diff --git a/openstack/openstack-ras/debian/meta_data.yaml b/openstack/openstack-ras/debian/meta_data.yaml new file mode 100644 index 00000000..d67e6fe8 --- /dev/null +++ b/openstack/openstack-ras/debian/meta_data.yaml @@ -0,0 +1,9 @@ +debver: 2012.2~f3-1 +debname: openstack-resource-agents +dl_path: + name: openstack-resource-agents-2012.2~f3-1.tar.gz + url: https://github.com/starlingx-staging/stx-openstack-ras/tarball/4ba6047db1b70ee2bb3dd43739de7d2fb4e85ebd + md5sum: 58b82fa1d64ea59bad345d01bafb71be +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true diff --git a/openstack/openstack-ras/debian/patches/0001-remove-unwanted-files.patch b/openstack/openstack-ras/debian/patches/0001-remove-unwanted-files.patch new file mode 100644 index 00000000..361deaa0 --- /dev/null +++ b/openstack/openstack-ras/debian/patches/0001-remove-unwanted-files.patch @@ -0,0 +1,24 @@ +From c63d0c06606969ddfb85538706a1665122e69c44 Mon Sep 17 00:00:00 2001 +From: Fabricio Henrique Ramos +Date: Wed, 3 Nov 2021 12:10:34 -0300 +Subject: [PATCH] remove unwanted files + +Signed-off-by: Fabricio Henrique Ramos +--- + Makefile | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/Makefile b/Makefile +index c95c187..08c9fa6 100644 +--- a/Makefile ++++ b/Makefile +@@ -26,3 +26,6 @@ install: + for file in ocf/*; do \ + $(INSTALL) -t $(DESTDIR)/usr/lib/ocf/resource.d/openstack -m 0755 $${file} ; \ + done ++ rm -rf $(DESTDIR)/usr/lib/ocf/resource.d/openstack/ceilometer-agent-central ++ rm -rf $(DESTDIR)/usr/lib/ocf/resource.d/openstack/ceilometer-alarm-evaluator ++ rm -rf $(DESTDIR)/usr/lib/ocf/resource.d/openstack/ceilometer-alarm-notifier +-- +2.17.1 + diff --git a/openstack/openstack-ras/debian/patches/series b/openstack/openstack-ras/debian/patches/series new file mode 100644 index 00000000..964ba69b --- /dev/null +++ b/openstack/openstack-ras/debian/patches/series @@ -0,0 +1 @@ +0001-remove-unwanted-files.patch