10 Commits

Author SHA1 Message Date
Julie Pichon
bc1ac191a6 Return proper exit code on plan deletion failure
Exceptions were swallowed, leading to the exit code always being 0.

Change-Id: I49ef76aca828ab9eab2c4d134edcb190a89bca69
Closes-Bug: #1649588
2016-12-19 10:53:43 +00:00
Alex Schultz
1082fdb518 Fix plan delete
As part of the overcloud delete implementation, we refactored the plan
delete to be a shared function. Unforunately the wrong inputs were being
passed to the workflow so it would return an Invalid input error. This
change fixes the input so that the container is properly passed to the
workflow as an input.

Change-Id: I33032c9e6f4a8cf002e65ebab60752c44fb5fdb2
Closes-Bug: #1647747
2016-12-13 16:24:08 +00:00
Alex Schultz
7dd16b1da2 Implement overcloud delete command
This change adds an overcloud delete that will delete the stack and
issue a plan delete for the overcloud in a single command.

Change-Id: I97a2b5606f47deb929972c06c869cd1eda0dc9a6
Closes-Bug: #1632271
2016-11-28 13:26:11 -07:00
Dougal Matthews
841082f486 Update the Mistral action names
These were renamed in a previous commit, once the usages here
have been updated they can be removed.

Partial-Bug: #1625641
Depends-On: I247747c7d641a70f320faf109c15745d00d62ff3
Change-Id: I3f5f63751503ece0db9d703f28e9720011e81a1b
2016-09-20 14:54:55 +01:00
Dougal Matthews
c689fc03da Pass the timeout to the deploy workflow
Change-Id: I2a99c4804ffeaa2bd02d8d4098f4268bc86081a3
Closes-Bug: #1623546
2016-09-19 09:38:27 +01:00
Dougal Matthews
d1866edc83 Add openstack overcloud plan deploy
This command will start an overcloud deploy of the plan with
Mistral and wait for it to finish.

Closes-Bug: #1616015
Change-Id: Ie990bfb29dd245a1c83891495aa3f4ec7a0051e8
2016-09-14 08:26:52 +01:00
Dougal Matthews
133e8cf91a Migrate to using osc-lib
This new library provides the common logic used by openstack
clients. Replacing the imports from openstackclient and cliff.

Depends-On-External: https://review.rdoproject.org/r/#/c/2088/
Depends-On: I095209c241876c6ab48595962e07144fc5cc34a6
Closes-Bug: #1620964
Change-Id: I103a13ff6c0af94b82f5e48652380adfbf331d34
2016-09-13 22:35:01 +00:00
Dougal Matthews
2c0fecf69c Add 'openstack overcloud plan create' command
This uses the new Mistral actions and workflows to create a
plan with the tripleo heat templates. Templates can either
be provided by the user or the default templates on the
undercloud can be used.

Closes-Bug: #1616014
Change-Id: I4f82fda01215b9a45669862ef26c69421fdaad59
2016-09-01 14:13:16 +01:00
Julie Pichon
3866bd16cd Add 'openstack overcloud plan delete' command
Change-Id: Iba2a936e904027277643c012102afa7be14b81b8
Implements: blueprint tripleo-ui-mistral-refactoring
Depends-On: I601aa2072271e072201be0c7d7237e0108494fb5
2016-08-18 14:48:16 +01:00
Julie Pichon
8d303e43ca Add 'openstack overcloud plan list' command
Change-Id: I29bb9854985fce0d7b3da195d8971a9d7c0def6c
Implements: blueprint tripleo-ui-mistral-refactoring
Depends-On: Ie2d1109d4ca6c04a5e06246e753006a7331041ea
2016-08-18 14:48:16 +01:00