Increase maximum shell command timeout to 2h 09/13809/3
authorStanislaw Kardach <stanislaw.kardach@caviumnetworks.com>
Tue, 10 May 2016 01:59:00 +0000 (18:59 -0700)
committerStanislaw Kardach <stanislaw.kardach@caviumnetworks.com>
Tue, 10 May 2016 15:08:39 +0000 (08:08 -0700)
Since `execute_shell_command` mcagent is used for building the target
image and the timeout provided in the astute task is just respected on
the Astute level (on mcollective level this timeout is actually a
minumum between value provided and ddl value) we need to increase it
for Armband operation.

Because Armband builds the target image via `qemu-debootstrap`, it can
take more than 1 hour to finish the building. Therefore aside of
increasing the timeout in the Astute task, the maximum timeout value
for mcagent has to be increased.

Change-Id: Iab94e794e36bb7e887e8f334daa46e82fe0c6f94
Signed-off-by: Stanislaw Kardach <stanislaw.kardach@caviumnetworks.com>
.gitmodules
Makefile
patches/fuel-astute/0001-Increase-maximum-shell-command-timeout.patch [new file with mode: 0644]
upstream/fuel-astute [new submodule]

index 5124f69..1d729b0 100644 (file)
@@ -30,3 +30,7 @@
        path = upstream/fuel-nailgun-agent
        url = https://github.com/openstack/fuel-nailgun-agent
        branch = stable/8.0
+[submodule "fuel-astute"]
+       path = upstream/fuel-astute
+       url = https://github.com/openstack/fuel-astute.git
+       branch = stable/8.0
index 1e123a8..619d0b7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -61,6 +61,7 @@ build:
                        UBUNTU_ARCH="amd64 arm64" \
                        FUELLIB_REPO=${root}/upstream/fuel-library \
                        NAILGUN_REPO=${root}/upstream/fuel-web \
+                       ASTUTE_REPO=${root}/upstream/fuel-astute \
                        FUEL_AGENT_REPO=${root}/upstream/fuel-agent \
                        FUEL_NAILGUN_AGENT_REPO=${root}/upstream/fuel-nailgun-agent \
                        FUEL_MIRROR_REPO=${root}/upstream/fuel-mirror \
@@ -68,6 +69,7 @@ build:
                        ODL_CHANGE= \
                        FUELLIB_COMMIT=HEAD \
                        NAILGUN_COMMIT=HEAD \
+                       ASTUTE_COMMIT=HEAD \
                        FUEL_AGENT_COMMIT=HEAD \
                        FUEL_NAILGUN_AGENT_COMMIT=HEAD \
                        FUEL_MIRROR_COMMIT=HEAD \
diff --git a/patches/fuel-astute/0001-Increase-maximum-shell-command-timeout.patch b/patches/fuel-astute/0001-Increase-maximum-shell-command-timeout.patch
new file mode 100644 (file)
index 0000000..d704895
--- /dev/null
@@ -0,0 +1,33 @@
+From: Stanislaw Kardach <stanislaw.kardach@caviumnetworks.com>
+Date: Mon, 9 May 2016 18:54:33 -0700
+Subject: [PATCH] Increase maximum shell command timeout to 2h
+
+Since `execute_shell_command` mcagent is used for building the target
+image and the timeout provided in the astute task is just respected on
+the Astute level (on mcollective level this timeout is actually a
+minumum between value provided and ddl value) we need to increase it
+for Armband operation.
+
+Because Armband builds the target image via `qemu-debootstrap`, it can
+take more than 1 hour to finish the building. Therefore aside of
+increasing the timeout in the Astute task, the maximum timeout value
+for mcagent has to be increased.
+
+Signed-off-by: Stanislaw Kardach <stanislaw.kardach@caviumnetworks.com>
+---
+ mcagents/execute_shell_command.ddl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mcagents/execute_shell_command.ddl b/mcagents/execute_shell_command.ddl
+index 0480be7..ad58046 100644
+--- a/mcagents/execute_shell_command.ddl
++++ b/mcagents/execute_shell_command.ddl
+@@ -4,7 +4,7 @@ metadata    :name        => "Execute shell command",
+             :license     => "Apache License 2.0",
+             :version     => "8.0.0",
+             :url         => "http://mirantis.com",
+-            :timeout     => 3600
++            :timeout     => 7200
+ action "execute", :description => "Execute shell command" do
diff --git a/upstream/fuel-astute b/upstream/fuel-astute
new file mode 160000 (submodule)
index 0000000..b81577a
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit b81577a5b7857c4be8748492bae1dec2fa89b446