Commit Graph

2663 Commits

Author SHA1 Message Date
Zuul
735acf94e3 Merge "Get validation groups info from groups.yaml file" 2020-02-29 02:41:37 +00:00
Zuul
88986bd7d3 Merge "TripleO Validations Logging CLI Introduction" 2020-02-29 02:41:36 +00:00
Zuul
72bb7fbaa9 Merge "Fix default image registry address lookup" 2020-02-28 05:24:21 +00:00
Zuul
320d232e80 Merge "Fix create_container regression" 2020-02-28 05:24:18 +00:00
Gael Chamoulaud (Strider)
afb9887a40 Get validation groups info from groups.yaml file
This patch makes the VALIDATION_GROUPS list constants dynamic by getting
them from the 'groups.yaml' file. This file comes from
tripleo-validations and is present on the Undercloud at the location [1].

[1] => /usr/share/openstack-tripleo-validations

Change-Id: Ide8cba32a0ea14086714094291f1a8866b669491
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2020-02-27 09:26:03 +00:00
Zuul
e4e11d6905 Merge "Migrate the openstack overcloud delete command to use Ansible" 2020-02-27 04:29:42 +00:00
Rabi Mishra
0eb3573c21 Fix create_container regression
This is a regression from https://review.opendev.org/#/c/708279/

Change-Id: I3819008275f6a5288ec074c860ff2746f589193e
Closes-Bug: #1864862
2020-02-27 07:43:02 +05:30
Zuul
04f6da1400 Merge "Increase ssh port timeout" 2020-02-26 22:30:06 +00:00
Zuul
4fc6009f37 Merge "Add handler for exception raising" 2020-02-26 22:12:06 +00:00
Zuul
8a0f1cacd5 Merge "Add source auth to image push" 2020-02-26 18:45:21 +00:00
Gael Chamoulaud
4fbd5ffe4f
TripleO Validations Logging CLI Introduction
This patch adds logging support for validations. It introduces two new
Tripleo Validator commands to allow the user to get the executions
history and get the details of them.

Change-Id: Ie80318a7fa684adb7c3bf7c99d526b0de64b0904
Depends-On: I502c38d3f27db3c6f62a47190136dd03627956bc
Depends-On: I0cb2743d1d4d118320a799c6820d48f9b917498f
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2020-02-26 14:34:41 +01:00
Zuul
d6e526a9de Merge "Don't use the delete_deployment_plan workflow, call the action directly" 2020-02-26 08:18:21 +00:00
Zuul
cdc32888a4 Merge "Local file based image uploader" 2020-02-26 07:57:45 +00:00
Zuul
fbfd70c7e4 Merge "Revert "Default to zero verbosity when using Ansible."" 2020-02-26 02:45:00 +00:00
Zuul
58c0c2fb76 Merge "Remove mistral from the generate_fencing_parameters deploy workflow" 2020-02-26 01:02:41 +00:00
Alex Schultz
1458e27509 Increase ssh port timeout
It's been reported that we still failing too quickly for some
environments with a mix of vms and physical hardware. Let's increase the
default ssh port timeout to 600 seconds to work around this.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=1805429
Related-Bug: #1805725

Change-Id: I95ddc0b7cb6342c367772b0cf296ee372dbb92dd
2020-02-25 14:47:14 -07:00
Zuul
5416e6bb86 Merge "Convert the support deployment and workflow to ansible" 2020-02-25 21:12:18 +00:00
Alex Schultz
8526ad0d3f Add source auth to image push
Add source username and password cli parameters to the `openstack
tripleo container image push` command.

Change-Id: Idb6b97167b00aee24f173926a1e1822ccb0b92bd
Closes-Bug: #1864700
2020-02-25 12:21:54 -07:00
Zuul
d4f14f21d3 Merge "Remove the unused backup method" 2020-02-25 19:10:16 +00:00
Zuul
fa4ec7930f Merge "Remove three unused exceptions" 2020-02-25 19:10:14 +00:00
Kevin Carter
dbe5169d97 Remove mistral from the generate_fencing_parameters deploy workflow
This change removes all of mistral from the generate_fencing_parameters function
by calling the required functions directly.

Story: 2007212
Task: 38425

Change-Id: Iadcfb34e296144d82fde1d32acfffa1e01c5c997
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-02-24 13:11:06 -06:00
Emilien Macchi
7aeba8f51a Add --work-dir option to container image build command
Add --work-dir to openstack overcloud container image build command and
every run will create a unique workspace which where will be stored Kolla
configs and build logs. Default directory will be in
/tmp/container-builds. UUIDs are used to identify each time we run the
command and will be the directory name in the work dir.

Depends-On: https://review.opendev.org/#/c/709389/
Related-Bug: #1864108
Change-Id: Id3e52ba920c54c98529ecb5f723ba452362a0b32
2020-02-24 05:52:39 +00:00
Kevin Carter
2c028c4a52 Convert the support deployment and workflow to ansible
This change converts the support deployment and workflow process to use an ansible
playbook instead of a mistral workflow. The overcloud_support module has been
updated and moved to the V2 client and all tests in support of this new process
have been updated.

Story: 2007212
Task: 38431
Task: 38432
Depends-On: I606f1ee3bc323e5c83d09ca9bc8f7e4033e81e70
Change-Id: If47e1e64e251e72d5bc8d0eb253d931257fd2ca8
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-02-23 01:21:55 +00:00
Zuul
c923a4de9b Merge "Remove mistral from the expand_roles deploy workflow" 2020-02-22 01:07:06 +00:00
Zuul
32f144f05e Merge "Remove mistral from the get_deployment_failures deploy workflow" 2020-02-22 01:07:02 +00:00
Dougal Matthews
c94f64ef9a Migrate the openstack overcloud delete command to use Ansible
The overcloud delete command will now use the ansible playbook found
within the tripleo-ansible project to process the stack delete workflow.

story: 2007212
task: 2007212
Depends-On: Ic0bd173ad34d1c01a58a66d9a754acd3093a972c
Change-Id: I9f461803ecf3abdf46c0b2b629e6e6708f3160cb
2020-02-21 13:09:26 -06:00
Kevin Carter
9902d7469a Add handler for exception raising
This change adds a switch that will enable or disable raising an 
exception when a playbook executes. This will allow some methods to 
return the RC and status information when a playbook is run, even when 
there's a failure. The default behaviour is to raise an exception on 
failure, but when fail_on_rc is set to False the run_ansible_playbook
method will return the status and rc information regardless of any 
failures.

To ensure we're not raising an exception from the ansible runner library
its been changed to RuntimeError.

Change-Id: I3af652615b5227144256074c05170d148f19bc1d
Closes-Bug: #1859182
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-02-21 16:14:10 +00:00
Zuul
c7d49c3079 Merge "Improve the way of handling inventory for ansible_runner" 2020-02-21 16:13:38 +00:00
Zuul
da4c8b0acc Merge "Remove capabilities-map.yaml related functionality" 2020-02-21 13:35:06 +00:00
Mathieu Bultel
77db88b7b3 Improve the way of handling inventory for ansible_runner
In TripleO we have different ways to provide inventory for ansible
depending on the features:
update/upgrade gives a yaml dump, validation and undercloud
gives a str with the hostnames, the standalone gives a file.

This small private function aims to handle all that case in
order to provide the same way to ansible runner: an ansible
artifact written under artifacts temp directory

Change-Id: I454aa483aa069806ba6b149997804df8a507a4d0
2020-02-21 10:01:51 +00:00
Zuul
1ba4c660e6 Merge "Remove mistral from the deploy_on_servers workflow" 2020-02-21 09:21:39 +00:00
Kevin Carter
af749d1a6a
Use correct default key file and normalize the usage
The provision command was defaulting to id_rsa.pub, however the deploy
command uses id_rsa_tripleo for initial setup.

When using the deploy command for provision as well, use the public
key, not the private id_rsa_tripleo.

This option was being processed in several different ways, this change
normalize it by creating a single function in the Command class, which
all inheriting methods will consume. Tests have been updated to
accomodate this change.

Related-Bug: #1863920
Change-Id: I221480f3cfc77545a8fcbef777829239c3bad0a0
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-02-20 08:52:09 -06:00
Zuul
475ace8f60 Merge "Remove mistral from the create_container deploy workflow" 2020-02-20 01:01:07 +00:00
Zuul
739c7a39cb Merge "Remove mistral from the list_available_roles deploy workflow" 2020-02-20 01:01:03 +00:00
Alex Schultz
8d2e15164f Revert "Default to zero verbosity when using Ansible."
This reverts commit 90eee3abc1.

I'm reverting this because it's a regression.

I'm open to not reverting this one if we want to fix it. If the
intention is to backport then we should revert this and correct it
before backporting.  We shouldn't touch the verbosity for anything
except ansible items.  I'm uncertain if this silenced the heat output
for the upgrade tasks but it impacted the deployment output.

Change-Id: I1bc27ca55a86d8d51960750d36ba825e5197b75f
Closes-Bug: #1863633
2020-02-19 09:49:33 -07:00
Zuul
dedbf0a3d0 Merge "Migrate the CLI introspection from Mistral to Ansible" 2020-02-19 15:09:29 +00:00
Dougal Matthews
abe56405be Remove three unused exceptions
These are never raised or extended.

Change-Id: Ia742bef6915b5ff6edd28bf4eb83c5f67b95eed1
2020-02-19 12:52:37 +00:00
Dougal Matthews
2f1afe62e7 Remove the unused backup method
This Mistral workflow is no longer used

Change-Id: Id0ba76f5ae2da51d06d86d3fd3ea47df0462763a
2020-02-19 12:50:39 +00:00
Zuul
9bb806ad74 Merge "Remove mistral from the package_update_* workflows" 2020-02-19 00:27:00 +00:00
Zuul
3d9e02b9b9 Merge "Remove left over mistral layers of abstration" 2020-02-18 23:43:32 +00:00
Zuul
050d0e3c60 Merge "Remove extra whitespaces from getent." 2020-02-18 12:29:19 +00:00
Rabi Mishra
53986c2f73 Remove capabilities-map.yaml related functionality
Change-Id: I590e6f34da0e225df889cc6a2b906be94d30fc6d
Depends-On: https://review.opendev.org/708307
2020-02-18 14:08:47 +05:30
Steve Baker
5304c34324 Local file based image uploader
This change modifies the "openstack overcloud image upload" to add a
--local argument which will copy the files to /var/lib/ironic/images
instead of uploading them to glance. /var/lib/ironic is chosen as it
is bind-mounted into the ironic containers on the undercloud.

The on-disk layout is prefixed by the architecture (and optionally the
platform) for example:
/var/lib/ironic/images/x86_64/overcloud-full.qcow2
/var/lib/ironic/images/x86_64/overcloud-full.initrd
/var/lib/ironic/images/x86_64/overcloud-full.vmlinuz
/var/lib/ironic/images/power9-ppc64le/overcloud-full.qcow2

When glance is switched off this will become the default way of
preparing image files for deployment.

Blueprint: nova-less-deploy

Change-Id: I4e1b8a7effca21b5aa054a78ddeaae7338ca9d2c
2020-02-18 02:40:42 +00:00
Zuul
4c4e6aacd2 Merge "Refactor image upload command" 2020-02-18 00:53:58 +00:00
Kevin Carter
eee13397c2
Remove mistral from the expand_roles deploy workflow
This change removes all of mistral from the expand_roles function
by calling the required functions directly.

Story: 2007212
Task: 38782

Change-Id: I07c1249571e1fe989d57427412c1aaa6ea1ff165
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-02-17 18:52:54 -06:00
Kevin Carter
a14e145ff1 Remove mistral from the get_deployment_failures deploy workflow
This change removes all of mistral from the get_deployment_failures function
by calling the required functions directly.

Story: 2007212
Task: 38781

Change-Id: I9d6779ff8b85132154541dd11697467aab164f93
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-02-17 18:36:25 -06:00
Kevin Carter
aefda7f205 Remove mistral from the create_container deploy workflow
This change removes all of mistral from the create_container function
by calling the required functions directly.

Story: 2007212
Task: 38780

Change-Id: Icdcd4589f413fb510ee56d6a27c110e3cc065ddf
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-02-18 00:36:08 +00:00
Kevin Carter
b49610cea2
Remove mistral from the list_available_roles deploy workflow
This change removes all of mistral from the list_available_roles function
by calling the required functions directly.

Story: 2007212
Task: 38433

Change-Id: I78030ffc75398f520d40ac56061cf1d6c35d3332
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-02-17 17:41:56 -06:00
Alex Schultz
7d3f274a3c Fix default image registry address lookup
By using a function as the default for the registry url variables, the
function is actually executed on every invocation of openstack client
which is less than ideal.  This change moves the default registry lookup
to only occur if the option is not passed in by the user. This limits
the lookup of the local registry to only occur when the correct
openstack tripleo container iamge commands are run.

Change-Id: Iace7be9dbdcf681c5f2f25f5810aa11e9da1853c
Closes-Bug: #1863679
2020-02-17 15:44:07 -07:00
Dougal Matthews
73dfcd1b96 Migrate the CLI introspection from Mistral to Ansible
The baremetal introspection command has been implemented in v2 using
an ansible playbook instead of a mistral workflow.

Story: 2007212
Task: 38444
Task: 38445
Change-Id: I61a4d1ae241bd3877abbc77bf4bad226d2502379
2020-02-17 20:36:03 +00:00