fuel-main: Restart sshd service instead of reload 41/26041/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 15 Dec 2016 18:04:32 +0000 (19:04 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 15 Dec 2016 18:06:01 +0000 (19:06 +0100)
Backported from [1] until we switch to Newton and sync again
with Fuel@OPNFV master.

[1] https://gerrit.opnfv.org/gerrit/#/c/25867/

Change-Id: I0972218eaf7aeb9cb435f6408e140b502fc1c0ed
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
patches/opnfv-fuel/upstream-backports/0006-Restart-sshd-service-instead-of-reload.patch [new file with mode: 0644]

diff --git a/patches/opnfv-fuel/upstream-backports/0006-Restart-sshd-service-instead-of-reload.patch b/patches/opnfv-fuel/upstream-backports/0006-Restart-sshd-service-instead-of-reload.patch
new file mode 100644 (file)
index 0000000..6e876e8
--- /dev/null
@@ -0,0 +1,26 @@
+From: Michael Polenchuk <mpolenchuk@mirantis.com>
+Date: Tue, 13 Dec 2016 17:42:23 +0400
+Subject: [PATCH] Restart sshd service instead of reload
+
+In the middle of fuel master node bootstrap the reload of sshd service
+accidentally is losing main process pid, so restart it.
+
+JIRA: FUEL-237
+Change-Id: I89023177e71cb6da4b9d6beff5083d345cf66db8
+Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
+---
+ build/f_repos/patch/fuel-main/0001-Patches-for-OPNFV.patch | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/build/f_repos/patch/fuel-main/0001-Patches-for-OPNFV.patch b/build/f_repos/patch/fuel-main/0001-Patches-for-OPNFV.patch
+index 820e387..d01ce8b 100644
+--- a/build/f_repos/patch/fuel-main/0001-OPNFV-Additions-to-bootstrap_admin_node.sh.patch
++++ b/build/f_repos/patch/fuel-main/0001-OPNFV-Additions-to-bootstrap_admin_node.sh.patch
+@@ -41,6 +41,6 @@ index dbcac5f..1826390 100755
+ -systemctl enable sshd
+ -systemctl start sshd
+-+systemctl reload sshd
+++systemctl restart sshd
+  # Enable iptables
+  systemctl enable iptables.service