Disable 'pipefile' shell opt in cloud-init's runcmd module 28/101528/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 11 Feb 2020 11:52:44 +0000 (12:52 +0100)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 11 Feb 2020 11:56:16 +0000 (12:56 +0100)
Cloud-init runs runcmd module with default OS shell which
evaluates to dash for Ubuntu and which in turn doesn't support
'pipefile' option. This makes cloud-init fail the module on
Ubuntu OS. In runcmd script there are no pipes so it's safe
to remove it from shell opts.

Change-Id: I0402fbfe13fe528832e64d107c1bc07bb5516fc2
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-1671

tools/cicdansible/heat/config.yaml

index e1f0309..0521d72 100644 (file)
@@ -6,5 +6,5 @@ output: { all: "/dev/console" }
 #Initialization.
 runcmd:
   - |
-    set -efxu -o pipefail
+    set -efxu
     %{NOTIFY_COMMAND} --data-binary '{"status": "SUCCESS", "reason": "instance started successfully"}'