Whamcloud - gitweb
LU-11071 build: create lustre resource package for Ubuntu 52/33152/4
authorJames Simmons <uja.ornl@yahoo.com>
Thu, 13 Sep 2018 22:55:07 +0000 (18:55 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 1 Oct 2018 14:00:55 +0000 (14:00 +0000)
The new Ubuntu server support is missing on last package that RHEL
currently supports. Enable Debian/Ubuntu packaging for the resource
agent package.

Test-Parameters: trivial

Change-Id: I872ae6b1b02782155db14c5cc971607ca3e93d56
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/33152
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Nathaniel Clark <nclark@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
12 files changed:
autoMakefile.am
debian/changelog
debian/control
debian/control.main
debian/lustre-resource-agents.dirs [new file with mode: 0644]
debian/lustre-resource-agents.install [new file with mode: 0644]
debian/rules
lustre.spec.in
lustre/conf/Lustre [moved from contrib/scripts/pacemaker/Lustre with 100% similarity]
lustre/conf/Makefile.am
lustre/conf/healthLNET [moved from contrib/scripts/pacemaker/healthLNET with 100% similarity]
lustre/conf/healthLUSTRE [moved from contrib/scripts/pacemaker/healthLUSTRE with 100% similarity]

index d35d6e5..8460b6b 100644 (file)
@@ -294,10 +294,13 @@ debs: undef.h
        m-a build $${KSRC:+-k $$KSRC} $${KVERS:+-l $$KVERS} -i -u $$(pwd) lustre && \
        popd && \
        VER=$$(sed -ne '1s/^lustre (\(.*-[0-9][0-9]*\)).*$$/\1/p' debian/changelog) && \
+       if test "x@ENABLE_SERVER@" = "xyes"; then \
+               DEB_SERVER_PKG="../lustre-resource-agents_$${VER}_*.deb"; \
+       fi; \
        mkdir -p debs && \
        mv ../lustre-dev_$${VER}_*.deb ../lustre-source_$${VER}_all.deb \
           ../lustre-iokit_$${VER}_*.deb ../lustre-tests_$${VER}_*.deb \
-          ../lustre-*-utils_$${VER}_*.deb \
+          ../lustre-*-utils_$${VER}_*.deb $${DEB_SERVER_PKG} \
           ../lustre_$${VER}.dsc ../lustre_$${VER}_*.changes \
           ../lustre_$${VER}.tar.gz ../lustre-*-modules-$${KVERS}_$${VER}_*.deb \
           debs/
index 5a39ecc..31b2584 100644 (file)
@@ -1,3 +1,9 @@
+lustre (2.11.55-dirty-1) unstable; urgency=low
+
+  * Automated changelog entry update
+
+ -- Brian J. Murrell <brian@interlinx.bc.ca>  Thu, 13 Sep 2018 12:42:24 -0600
+
 lustre (2.11.52-108-g258f0cf-dirty-1) unstable; urgency=low
 
   * Automated changelog entry update
index 00e6c5f..6e7593e 100644 (file)
@@ -54,6 +54,20 @@ Description: Userspace utilities for the Lustre filesystem (server)
  If you only need to access the LFS cluster, install lustre-client-utils
  instead.
 
+Package: lustre-resource-agents
+Section: ha
+Architecture: i386 powerpc ppc64el amd64 ia64 arm64
+Priority: optional
+Depends: lustre-server-utils (= ${binary:Version}), resource-agents
+Description: HA Resuable Cluster Resource Scripts for Lustre
+ Lustre is a scalable, secure, robust, highly-available cluster file system.
+ This release is maintained by Whamcloud and available from
+ https://wiki.whamcloud.com/
+ .
+ This package provides a set of scripts to operate Lustre
+ resources in a High Availablity environment for both Pacemaker
+ and rgmanager.
+
 Package: lustre-iokit
 Section: utils
 Architecture: i386 powerpc ppc64el amd64 ia64 arm64
index 00e6c5f..6e7593e 100644 (file)
@@ -54,6 +54,20 @@ Description: Userspace utilities for the Lustre filesystem (server)
  If you only need to access the LFS cluster, install lustre-client-utils
  instead.
 
+Package: lustre-resource-agents
+Section: ha
+Architecture: i386 powerpc ppc64el amd64 ia64 arm64
+Priority: optional
+Depends: lustre-server-utils (= ${binary:Version}), resource-agents
+Description: HA Resuable Cluster Resource Scripts for Lustre
+ Lustre is a scalable, secure, robust, highly-available cluster file system.
+ This release is maintained by Whamcloud and available from
+ https://wiki.whamcloud.com/
+ .
+ This package provides a set of scripts to operate Lustre
+ resources in a High Availablity environment for both Pacemaker
+ and rgmanager.
+
 Package: lustre-iokit
 Section: utils
 Architecture: i386 powerpc ppc64el amd64 ia64 arm64
diff --git a/debian/lustre-resource-agents.dirs b/debian/lustre-resource-agents.dirs
new file mode 100644 (file)
index 0000000..afa8760
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/ocf/resource.d/lustre
diff --git a/debian/lustre-resource-agents.install b/debian/lustre-resource-agents.install
new file mode 100644 (file)
index 0000000..c227d56
--- /dev/null
@@ -0,0 +1 @@
+debian/tmp/usr/lib/ocf/resource.d/lustre/*             usr/lib.ocf/resource.d/lustre
index 6565c48..eeb32e0 100755 (executable)
@@ -81,10 +81,14 @@ SOURCE_PKG=lustre-source
 ifneq (,$(findstring server,$(DEB_BUILD_PROFILES)))
        UTILS_PKG=lustre-server-utils
        MODS_PKG=lustre-server-modules
+       RESOURCE_PKG=lustre-resource-agents
+       RESOURCE_TARGET=binary-$(RESOURCE_PKG)
        DKMS_PKG=
 else
        UTILS_PKG=lustre-client-utils
        MODS_PKG=lustre-client-modules
+       RESOURCE_TARGET=
+       RESOURCE_PKG=
        DKMS_PKG=lustre-client-modules-dkms
 endif
 
@@ -202,7 +206,8 @@ build-stamp: patch-stamp configure-stamp
 # binary-arch: binary-$(UTILS_PKG) binary-$(TESTS_PKG) binary-$(DEV_PKG) \
 # binary-$(MODS_PKG) binary-kern-mods
 binary-arch: binary-$(UTILS_PKG) binary-$(DEV_PKG) \
-            binary-$(IOKIT_PKG) binary-$(TESTS_PKG)
+            binary-$(IOKIT_PKG) binary-$(TESTS_PKG) \
+            $(RESOURCE_TARGET)
 
 binary-indep: binary-$(SOURCE_PKG) $(DKMS_TARGET)
 
@@ -232,6 +237,24 @@ binary-$(UTILS_PKG): build-stamp
        dh_md5sums -p $(UTILS_PKG)
        dh_builddeb -p $(UTILS_PKG)
 
+binary-$(RESOURCE_PKG): build-stamp
+       dh_testdir
+       dh_testroot
+       dh_installdirs -p $(RESOURCE_PKG)
+       dh_installdocs -p  $(RESOURCE_PKG)
+       dh_installman -p $(RESOURCE_PKG)
+       dh_install -p $(RESOURCE_PKG)
+       dh_makeshlibs -p $(RESOURCE_PKG)
+       dh_installexamples -p $(RESOURCE_PKG)
+       dh_installchangelogs -p $(RESOURCE_PKG) lustre/ChangeLog
+       dh_compress -p $(RESOURCE_PKG)
+       dh_strip -p $(RESOURCE_PKG)
+       dh_installdeb -p $(RESOURCE_PKG)
+       dh_fixperms -p $(RESOURCE_PKG)
+       dh_gencontrol -p $(RESOURCE_PKG)
+       dh_md5sums -p $(RESOURCE_PKG)
+       dh_builddeb -p $(RESOURCE_PKG)
+
 binary-$(IOKIT_PKG): build-stamp
        dh_testdir
        dh_testroot
index fdd1026..f4f4acc 100644 (file)
@@ -393,11 +393,6 @@ echo '%{_sysconfdir}/init.d/lnet' >>lustre.files
 %endif
 %endif
 
-%if %{with servers}
-mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/lustre/
-install -m 0755 contrib/scripts/pacemaker/* $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/lustre/
-%endif
-
 # fc18 needs 'x' permission for library files
 find $RPM_BUILD_ROOT -name \*.so -type f -exec chmod +x {} \;
 
index a150daf..8f1927c 100644 (file)
@@ -34,6 +34,7 @@
 
 EXTRA_DIST = lustre.dtd lustre2ldif.xsl top.ldif \
              99-lustre.rules lustre ldev.conf ko2iblnd.conf lsvcgss \
+            Lustre healthLNET healthLUSTRE \
              lnet_routes.conf lnet.conf lgssc.conf
 
 sysconf_DATA = lnet.conf
@@ -47,6 +48,8 @@ udevrulesdir = $(sysconfdir)/udev/rules.d
 udevrules_DATA = 99-lustre.rules
 
 if SERVER
+pacemakerdir = $(prefix)/lib/ocf/resource.d/lustre
+pacemaker_DATA = healthLNET healthLUSTRE Lustre
 if ZFS_ENABLED
 sysconf_DATA += ldev.conf
 endif