Commit Graph

293 Commits (5a8255b44cb70dbced813e9997f0700c66096e96)

Author SHA1 Message Date
Zuul 90ef9f277b Merge "Add call to cleanup_ipa.yml playbook when doing a stack delete" 2020-05-02 20:12:27 +00:00
Ade Lee 244f14c03c Add call to cleanup_ipa.yml playbook when doing a stack delete
When doing a stack delete, we need to make sure that any IPA entries are
cleaned up. We have added a call to the cli-cleanup-ipa.yml playbook
to ensure that this is done.

This commit also introduces a new option called ``--skip-ipa-cleanup``
so that callers can bypass this playbook. The default is False, meaning
the intended behavior is to cleanup FreeIPA by default during overcloud
delete operations.

Change-Id: I131ff1977005d0f90afa567e5c4e2e9c3b5d3af2
2020-04-30 14:33:53 +00:00
Kevin Carter 93952566d6
Add release note for undercloud.conf parsing
This change adds a release note to cover the strict parsing of the `undercloud.conf`.

Closes-Bug: #1874410
Change-Id: Ic3aa73b28f46694a5ce43f8435a64e195df1328f
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-04-23 09:51:02 -05:00
Rabi Mishra 7cef22cc68 Remove openstack overcloud failures command
This was added to fetch the ansible errors via mistral api. We had
long removed the json_error.py callback plugin that used to write
ansible-errors.json, when moving ansible code to tripleo-ansible
repo and the command is useless now. Also, users won't need it as
they can get the errors from ansible.log.

Change-Id: Iceb4c282f3ae9fcb2c3836263ba66f5792e42334
2020-04-16 11:41:57 +05:30
Rabi Mishra 3ac5df3f0b Add releasenote for removal of overcloud remote execute command
Missed in https://review.opendev.org/716851

Change-Id: I583adc66b45a759a75ed97e55064401af6fe9702
2020-04-08 10:37:01 +05:30
Bogdan Dobrelya 9c602da452 Fix misused deployment vs connection timeouts
Fix misused ansible connection timeout and deployment timeout passed in
config download and ansible runner utility.

Allow ansible runner utility to be given a job_timeout as well.

Also fix the misuse of timeout parameters in related worklows. Add
--overcloud-ssh-port-timeout and use it to configure ansible connection
timeout for the DeleteNode interace of the involved
workflows. Then use the timeout parameter as real timeout instead of
mistakingly passing it as a connection timeout.

Add new unit test for ansible timeout in config_download. Add missing
coverage for the existing timeout-related params in other unit tests.

Closes-Bug: #1868063
Co-authored-by: Kevin Carter <kevin@cloudnull.com>
Change-Id: I2a4d151bcb83074af5bcf7d1b8c68d81d3c0400d
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2020-04-07 09:12:37 +02:00
Zuul 1b38e856e0 Merge "Add new interface to run arbitrary playbooks from a plan" 2020-03-31 04:00:37 +00:00
Alex Schultz 74a6c6eb68 Switch default images to py3
We should be building the centos8/python3 images by default now. This
change updates the default yaml when --config-file is not specified to
`openstack overcloud image build`.  You can still build the centos7
images for older versions by specifying a centos7 based yaml set.

Change-Id: If9b1699a307d1d10eae113708a32b5841ee3e17f
2020-03-24 17:06:47 -06:00
Kevin Carter 0464bdc17f Add new interface to run arbitrary playbooks from a plan
This change is the first step to providing a path to remove the mistral
"derived_params" workflows. Deployers will now be able to execute playbooks
from within a given plan by passing in the `playbook_parameters` key which
contains a dictionary of playbook file paths, and all options applied to a
given playbook.

Story: 2007419
Task: 39118

Change-Id: I26ea1c01e17513d001e311d68fd239d3ba8c8a0d
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-03-23 14:55:06 +00:00
Harald Jensås af4721b7fa Add option to control ironic network interfaces
When deploying on IPv6 stateful ironic must use the
neutron network interface driver. This because we need
to configure neutron service ports (provisioning, cleaning
etc.) with multiple ip addresses for certain UEFI firmware
and chainloading combinations (iPXE -> Ironic IPA) to work.

Closes-Bug: #1864491
Change-Id: I5a9890ccb95a21b95f488cd7a5b5fd1a6cdff38b
2020-03-09 07:50:29 +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 5416e6bb86 Merge "Convert the support deployment and workflow to ansible" 2020-02-25 21:12:18 +00: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 c87fef0346 Merge "Disable Paunch by default on the Undercloud" 2020-02-04 00:26:50 +00:00
Emilien Macchi dafacfcbf7 Disable Paunch by default on the Undercloud
Disabling Paunch on the Undercloud has proven to be stable enough over
the last weeks, we can safely make it the default to move forward.

Depends-On: I707b2f66eb947d64ef6a21238dc26c81575be2c7
Change-Id: I8822b3515046a4263242d5e1249bb9bac8d80d91
2020-01-28 13:51:37 -05:00
apetrich 8bc80382d3 Move undercloud backup from mistral to ansible
This playbook reflects the same behaviour as the mistral workbook
of the same name and adds functionality discussed on this external
bug: https://bugzilla.redhat.com/show_bug.cgi?id=1659888

This also adds a --save-swift parameter (default false)
that makes the backup be saved on swift otherwise it will
be saved on the filesystem.

Depends-On: I309d52eb424a73bd04af167a2a7411ba3bf35674
Change-Id: I054a805e820087a30bd8d27a0b460b6e519849ac
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-01-27 17:12:33 +00:00
James Slagle 085e6fc55e Add tripleo launch heat command
Adds a new command under the tripleo namespace for launching the all in
one heat-all process in the foreground. The new command reuses the code
from heat_launcher.py already in place for the tripleo deploy commands.

Launching the heat-all process separately from tripleo deploy allows for
easily spinning up a heat-all environment for stack creation and
generating the config-download ansible content for development and test.

Change-Id: I16d23faca6d8c2d0abf13dbdf91b810717ac585e
2020-01-10 09:06:22 -05:00
Alex Schultz 188acfbc40 Add additional ssh timeout options
Added `--overcloud-ssh-enable-timeout` and
`--overcloud-ssh-port-timeout` to the openstack overcloud deploy command
to allow users the ability to tune these values.  The ssh port timeout
might need to be tuned if the hardware being deployed is slow to post
and takes longer than 5 minutes to become ready.

These options have been added to:

 * openstack overcloud deploy
 * openstack overcloud admin
 * openstack overcloud ffu upgrade
 * openstack overcloud upgrade

Change-Id: I56f6001b5efeed7ccb3918a5c2622c3eca613c07
Closes-Bug: #1858222
2020-01-03 16:13:36 -07:00
Zuul 4f5ad27499 Merge "Revert "Added for support for generating overcloud clouds.yaml"" 2019-12-24 21:30:31 +00:00
Zuul b6bcdefbdc Merge "Handle config-download in progress in tripleoclient" 2019-12-21 02:42:59 +00:00
Emilien Macchi ba95604678 Revert "Added for support for generating overcloud clouds.yaml"
This has been replaced by Ansible.
This reverts commit 0a8fc376cd.

Change-Id: I286c71edf120e11d8e51c792e6078dc60147f026
2019-12-20 03:41:24 +00:00
Gael Chamoulaud 29b00170b3
TripleO Validator CLI Refactor
This patch hardly refactors the TripleO Validator CLI. The 'List'
subcommand has been split in different new subcommands which does "one
thing and only one thing". It also adds the support for the TripleO
history file and integrates better the CLI with the openstack client
library, which simplifies it a lot.

The subcommands are:

- To display the full list of validations or by group(s):
  ```
  $ openstack tripleo validator list
  ```

- To display full details about one validation:
  ```
  $ openstack tripleo validator show
  ```

- To display the available parameters for one or multiple validations,
  export them in a JSON or YAML file:
  ```
  $ openstack tripleo validator show parameter
  ```

- To display full details about the groups used by the validations:
  ```
  $ openstack tripleo validator group info
  ```

- To run one or several validations by names or by groups:
  ```
  $ openstack tripleo validator run
  ```

Depends-On: I56b9d39c113cfb30695fe8cf2740ae147b0dd3e4
Change-Id: I09e2cba484d3a91915fb9294bc351b5d7f3aca0f
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2019-12-13 15:06:34 +01:00
James Slagle 72f5762e45 Handle config-download in progress in tripleoclient
This patch adds handling and checking of any instances of the workflow
tripleo.deployment.v1.config_download_deploy already in progress for the
current stack. It will prevent duplicate instances of the same workflow
being started and running at the same time.

It will allow for multiple instances of the workflow running at the same
time as long as they are for different stacks.

Change-Id: Ic8dbf28b5796ff998165b6b73b941f21c65f1dfa
Closes-Bug: #1852314
2019-12-10 16:23:11 -05:00
Harald Jensås 69eec5ce08 Fix inspector ip range for dhcpv6-stateless
When using dhcpv6-stateless a range should not be
used. According to dnsmasq manual page:

  A static-only subnet with address all zeros may be
  used as a "catch-all" address to enable replies to
  all Information-request packets on a subnet which
  is provided with stateless DHCPv6, ie
  --dhcp-range=::,static

Closes-Bug: #1853334
Change-Id: I6627da48bc170f7ecccaf84c0fccda9e2edd5af3
2019-11-20 20:31:38 +01:00
James Slagle 975f771702 Add openstack overcloud export
Add a new command to export the data from a control plane stack for
multi-stack. The created export file can be used as input into a compute
stack for the multi-stack feature.

Also refactors the overcloud cell export command to use the same common
code.

Closes-Bug: #1850636
Change-Id: I6e145d7a54dcd306c4633ebd4d7471a19a967a86
2019-11-11 16:33:49 -05:00
Gael Chamoulaud c6616f8d96
Drop Mistral support for the Validations CLI
This patch removes the possibility to run the validations through the
CLI with Mistral. Ansible is now the only way to run the validations.

Change-Id: I8bd9f4c4512279a291963d0b6df62316e7410f2b
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2019-11-08 13:38:45 +01:00
Gael Chamoulaud 746b97f19a
Get rid of Mistral for listing validations
Until now, we were using Mistral to get all the validations available on
the Undercloud. This patch drops the Mistral support for the validations
listing through the CLI and will parse them directly on the filesystem
instead of parsing from the *tripleo-validations* Swift container.

This change makes the CLI faster:
- ~6s with Mistral
- ~1.3s w/o Mistral

Change-Id: I5730fb2e23775f1d666276b6b4d46bcb550fc928
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2019-11-08 13:38:41 +01:00
OpenStack Release Bot f75f41e968 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: I2dc2420cdf73f47a2a38398235d7297c2f99a8ce
Sem-Ver: feature
2019-10-15 16:19:04 +00:00
Harald Jensås d5e3726999 Add option to control IPv6 address mode
Add option ipv6_address_mode in undercloud.conf to control
the address mode, dhcpv6-steteful or dhcpv6-steteless, for
IPv6 provisioning network.

Related-Bug: #1847606
Change-Id: I7de5f5487065d20068229e0d34102be6119fbeef
2019-10-10 16:43:36 +02:00
Harald Jensås ff31fe18ec Set option:mtu in inspector dnsmasq
Set the mtu for all subnets in inspector dnsmasq
config to value of 'local_mtu' in undercloud.conf.

Closes-Bug: #1845487
Depends-On: Ic95dbf1867fb5397f1b6d8f23466910a97051cb6
Change-Id: Iafe3156ca0678f3ab3c5e688e712a9fb6b408e7b
2019-09-26 15:01:11 +02:00
Zuul 284b7116ae Merge "Deprecate overcloud image prepare" 2019-09-19 19:09:36 +00:00
Emilien Macchi 89be0d17c5 Disable inflight validations by default
The inflight validations caused timeouts in the TripleO CI.
They should not be enabled by default. New features should not be
enabled by default in general, they should be optional.

So this patch changes the option to be --inflight-validations,
and make sure the inflights are disabled by default everywhere it's
called.

Change-Id: I082628a9480686d6a7801056c3b4bf332b4e3d95
Related-Bug: #1844446
2019-09-18 14:19:28 +00:00
Alex Schultz 33130b75a8 Deprecate overcloud image prepare
We have replaced this function with the `openstack tripleo container
image prepare` command which is more flexible.

Change-Id: Ib4403d5040d2965575a87adbc2e2ca59aa286467
2019-09-17 01:57:23 +00:00
Gael Chamoulaud 2241528f4f Remove panko
This patch removes panko which has been deprecated in Train

Change-Id: I8849fda5c6a209913be79b668cbdb5e11dce1514
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2019-09-16 09:57:12 +02:00
Zuul 68b56c694b Merge "New command "openstack overcloud node unprovision"" 2019-09-06 06:31:41 +00:00
Zuul 892b999457 Merge "Implement tripleo container image push command" 2019-09-05 00:35:30 +00:00
Zuul f2fd802796 Merge "Some release notes were in the wrong place, moved them." 2019-08-30 07:01:57 +00:00
apetrich 5d45c19d58 Some release notes were in the wrong place, moved them.
Change-Id: Id57a7718305e953937c8d8badb3fb450cb1198b0
2019-08-29 16:00:15 +02:00
Steve Baker 2a0266dae1 New command "openstack overcloud node unprovision"
This is a companion command to "openstack overcloud node provision"
which is required for scale-down and should be run after "openstack
overcloud deploy".

It will undeploy any instance which has provisioned=False in the
supplied roles yaml, see this change[1] for the provisioned format.

[1] https://review.opendev.org/#/c/672605/

Change-Id: Ic7705c290220df7c55656fa080ff74315fb2030f
Blueprint: nova-less-deploy
Depends-On: https://review.opendev.org/#/c/672848/
2019-08-27 04:06:35 +00:00
David J Peacock bdfd3bfb1b Implement tripleo container image push command
This patch implements the tripleo container image push command.

Change-Id: Ifc2588e9e62582530f19c852715dea3ff68d9fa4
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
2019-08-23 15:22:34 -06:00
Cédric Jeanneret bf48dbc844 Adds new "--no-inflight-validations" option to deploy CLI
This provides an independant way to activate or not the in-flight
validations within a deploy.
The default is to have them running, and this option allows to
deactivate the in-flight ones.

Change-Id: I81e934e2978cad4e2713d54e19a57c84a6ac0b52
2019-08-15 11:44:32 +02:00
Zuul 04143827e4 Merge "Bump the openstackdocstheme extension to 1.20" 2019-08-13 00:41:49 +00:00
Zuul c1534b28da Merge "Remove support for Cisco hardware types" 2019-08-12 12:44:14 +00:00
pengyuesheng 7de33c1340 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Ibd6b3a191c6bee5b094de94680bab6df07616deb
2019-08-01 09:49:37 +08:00
Alex Schultz 1be46111e6 Remove rhsm cli options
The code behind these options has been removed in tripleo-heat-templates
so we no longer need these cli options. Additionally we do not want
folks using them since they do nothing.

https://review.opendev.org/#/c/669951/

Change-Id: Ib1444f8b21d90a00dd1d775f5eac633c43f39741
2019-07-31 09:24:23 -06:00
Zuul c3fb3cb662 Merge "Add --parameters and --create-vars-file arguments to the list subcommand" 2019-07-31 05:21:56 +00:00
Zuul 4357e85653 Merge "Allow running validations with custom extra variables" 2019-07-31 03:43:35 +00:00
Zuul 7dc07529d4 Merge "Add overcloud cell export command" 2019-07-29 10:08:05 +00:00
Dmitry Tantsur 719267e4db Remove support for Cisco hardware types
Removed from ironic in https://review.opendev.org/#/c/653282/

Change-Id: I6e6a587333e93eb117afe8e6bad1c65962db6cb2
2019-07-25 12:36:49 +02:00