When Shipyard fails to execute some of the steps, the status
of the action is always "Complete", determine the success
of the execution based not only on action status, but
also on the status of every step within the action.
Change-Id: If7f71b55c2aed0322edef9c811ed1906400b0913
This enables passing any combination of actions and parameters to this
script. This also makes it easier to add scripts for additional actions
by not having to modify execute_shipyard_action.
Updated redeploy_server to pass in servers as a param.
Change-Id: I590183c28e8c66997ab85470902dbe9576c5c5f6
Before if condition was looking for non-existence of ${server}. `server`
is never defined, so this condition is always true.
Now if condition is looking for existence of ${servers}, which is
sometimes defined.
Change-Id: I31cd4a2765705176a9d5239a01b04ff341b36540
Adds the functionality to redeploy a server in an unguarded fashion,
meaning that the server will not be pre-validated to be in a state that
workloads have been removed.
This is the first targeted action for Shipyard, so a refactoring of the
validators to support more flexibility has been done.
Also adds RBAC controls for specific actions being created, rather than
a binary create action privilege.
Change-Id: I39e3dab6595c5187affb9f2b6edadd0f5f925b0c
The CI/CD team has pointed out that they are experiencing
problems in the pipeline while running the script as the
wrong position was queried for the action_lifecycle.
This has happened due to recent updates to the Shipyard API/CLI.
This p.s. will update the script, i.e. change from position
29 to 8.
Change-Id: Icd30fb43791e071207220f150886ae6201ed9e02
We will move away from installation of shipyard CLI/client
binaries and will make use of the shipyard docker container
instead for our CI/CD integration environment.
Change-Id: I253cbc1e2f9310b9c11195e1c68b97ee8d0efead
Tested the scripts in the Atlanta Lab and ran into issues
with 'max_shipyard_count' and 'shipyard_query_time' variables
as we will need to export them as environment variables as well.
This patch set is meant to correct the problem.
Change-Id: I0ae407adac3df6a0cbe027a70940ee65904a7854
We will make use of common functions across the deploy_site,
update_site and redeploy_server script.
This will help to reduce common and repetitive codes across
the scripts.
Note that the Shipyard CLI needs to be installed before we
can use these scripts.
Change-Id: I31e5c8723346666a592951f59856008ccb64128b