Commit Graph

9 Commits

Author SHA1 Message Date
Evgeny L 4a065c3270 Return error if execution of the step fails
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
2019-04-16 21:48:07 +00:00
Dustin Specker c234b72abd tools: generalize execute_shipyard_action
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
2019-02-28 15:16:06 -06:00
Dustin Specker f4f57a1bbf tools: fix execute_shipyard_action if condition
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
2019-02-28 00:11:32 +00:00
Bryan Strassner f3749ca3f9 Add redeploy_server processing
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
2018-08-21 09:42:40 -05:00
Bryan Strassner 70eb1cef10 Add udpate_software action to Shipyard
Provides an action that can be invoked by a user to deploy only the
software portion of a design.

Change-Id: I880bdc245064364dfdd6a482a3cf2d2a293f6c0d
2018-07-06 16:57:42 -05:00
Anthony Lin b944ba666f Update execute_shipyard_action Script
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
2018-04-26 16:09:00 +00:00
Anthony Lin 8db6e6e7b5 Use Shipyard Docker Container for Tools Scripts
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
2018-03-20 23:35:18 -05:00
Anthony Lin 5ca2b349a2 Bug Fix - set_env file
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
2018-02-06 09:58:40 +00:00
Anthony Lin 47e49b3b3b Add update_site script
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
2018-02-05 05:43:33 +00:00