Ensure init containers always fail when the script fails

Registered by Kevin Fox

Init containers block the pod they init if it detects a failure. Our current ones though don't have any logic in it to fail unless the last command fails.

We should change the /bin/sh -c '....' to /bin/sh -ec '....' on all the init containers to ensure they fail if any command fails.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Kevin Fox
Direction:
Needs approval
Assignee:
None
Definition:
Superseded
Series goal:
None
Implementation:
Not started
Milestone target:
None
Completed by
Steven Dake

Related branches

Sprints

Whiteboard

We should be able to distribute this work among the community if needed.

Gerrit topic: https://review.openstack.org/#q,topic:bp/init-container-fail,n,z

Addressed by: https://review.openstack.org/364387
    Fail nova-compute init container always

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.