Commit Graph

206 Commits

Author SHA1 Message Date
Ghanshyam Mann 120ef346df Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: I73e76d203878ef213816bf886b8172a0cff3bf28
2024-02-24 11:42:34 -08:00
Brendan Shephard df5e61589f Remove overcloud config download command
The config download command no longer works with
ephemeral Heat. We can already achieve the same
functionality using overcloud deploy with the
--stack-only flag.

As such, this change is removing the no longer functional
config download command.

Change-Id: Ieb52658aaf9ebff95cec1dd80eaf2556e75eef8c
2022-06-17 12:57:08 +10:00
Zuul b7d1c36469 Merge "Remove upgrade converge" 2022-06-07 06:47:26 +00:00
Zuul da971fb02a Merge "Enable snapshots on the CLI" 2022-06-03 12:17:34 +00:00
Juan Larriba 80290ad9b8 Enable snapshots on the CLI
There is a new feature for Backup and Restore that replaces the ReaR
operations with a simple and fast LVM snapshot. This change enables the
operator to take snapshots using the openstack overcloud backup
snapshot command.

Change-Id: I975dada7dc559f708f4b9b0cba6328c87befb5bd
2022-05-26 11:42:42 +02:00
Takashi Kajinami 7e380a525b Use python job template for Zed
... because the current master should be compatible with the Zed
release of the other projects. This effectively removes testing on
Python 3.6 and only Python 3.8 and 3.9 will be tested.

Python 3.6 and 3.7 are removed form classifiers because these are no
longer supported.

Related-Bug: #1974244
Change-Id: Ibafdb84e5573d74c02874dc0531a6645195a8b5f
2022-05-20 08:10:46 +00:00
Brendan Shephard 8511e8e2ea Remove upgrade converge
With Emphemeral Heat, there is no Heat stack
to update in the converge step. This change
removes upgrade converge in-line with changes
that have also been made to update converge.

Change-Id: I01a2f577a0e4dd32a898d3d459a950aef2d54f2f
2022-04-26 23:45:47 +00:00
Takashi Kajinami 6698a170f2 Mark Python 3.9 as supported runtime
Python 3.9 is part of tested runtime for Yoga and used in unit tests.
Also, it is the default Python version in CentOS 9 and we are not aware
of any compatibility issue.

Change-Id: Ie71c0a4c376755ff18f6e868a261a0f914ff4542
2022-02-16 10:40:05 +09:00
Takashi Kajinami 28b4248da6 Add Python 3.8 to supported runtime
We have been running unit tests in Python 3.8 , so it'd be safe to
states we support it. Functional tests will be covered mostly by
CentOS 9 jobs but so far we haven't seen any direct breakage caused by
python versions.

Change-Id: I77c729512113106db45cfdac6f87884fc29ad965
2022-02-08 23:31:43 +09:00
Zuul 2e2dea300a Merge "Introduce "openstack overcloud ceph spec"" 2022-02-02 01:44:11 +00:00
John Fulton 3701f2ac31 Introduce "openstack overcloud ceph spec"
This command may be used to create a cephadm spec file as
a function of the output of metalsmith and a TripleO roles
file.

Calls cli-deployed-ceph.yaml with ceph_spec tag so users
may create the Ceph spec in a separate step from the Ceph
Deployment. The Ceph spec file may be then be passed to
"openstack overcloud ceph deploy".

Also, supports a --standalone feature which directly calls
the ceph_spec library in tripleo-common in the depends-on
chain. As Ansible is used less the tripleo-pythonclient can
use the ceph_spec library directly for more than just the
--standalone feature.

Depends-On: Id771a6075b626f6ec853be17384d3bdd7c327c53
Change-Id: Icd18de08ebc818441e45ff7ce9f348fbc5813253
2022-01-19 13:27:29 +00:00
apetrich 4ce46dcae1 Exposes the community validation init command
[downstream-only]
This patch exposes the community validation init command to
the openstack cli.

Change-Id: I1c3396bb166424724ceb2745295dafe81c65e50a
2022-01-14 08:11:30 +00:00
Zuul d63f84c6d9 Merge "Removed overcloud container commands" 2022-01-06 18:20:04 +00:00
John Fulton 8ab4cc19b3 Add the ability to enable/disable cephadm SSH user
Add `openstack overcloud ceph user enable | disable`
command line option. As requested by those who wish to
disable cephadm and the user which supports it after
deployment. The SSH user and cephadm may be re-enabled
when it is necessary to administer the Ceph cluster.

This also allows the cephadm SSH user to be created
in a separate step.

Add --skip-user-create to 'openstack overcloud ceph deploy'
in case 'openstack overcloud ceph user enable' was used to
handle that step earlier.

Depends-On: I648cdf8c8920c120049f05f13f8b7b73513899f1
Change-Id: Ibd4513183f59ebb94d841a847ecfab0425ba8f5a
2021-12-15 18:30:13 +00:00
Alex Schultz f321bb4688 Removed overcloud container commands
The following commands have been removed:

  overcloud container image upload
  overcloud container image build
  overcloud container image prepare
  overcloud container image tag discover

They were replaced by the tripleo container based commands and no longer
function.

Change-Id: Ic1f4d76c9e7bf3579b7e47d87b0ee2c86251c0d6
2021-11-17 14:58:03 -07:00
Zuul cfc642646b Merge "Integrating restoration process to client" 2021-11-05 15:04:46 +00:00
Juan Pablo Lopez b670a784c4 Integrating restoration process to client
- Adding a new command overcloud backup restore for running the
  the restoration process. This command includes a required
  argument for specifying the node "--node-name".

- tests/v1/overcloud_restore/test_backup.py added for
  unit testing the command

Change-Id: Id78443453718f8174bf95ad9209e7163b6afef64
2021-10-28 12:48:25 +02:00
Brendan Shephard 19672ed3fa Remove update converge
Update converge is largely unnecessary now with
ephemeral Heat. There is no Heat stack to update,
so we are doing nothing more than executing a
standard deployment using Ansible. Removing
the requirement for update converge will simplify
the process and improve user experience by reducing
the time it takes to perform minor updates.

Depends-On: https://review.opendev.org/c/openstack/tripleo-upgrade/+/810134
Change-Id: I750a733b722353d1ea0c6f904bafc769d7ddb9ff
2021-10-13 00:59:27 +00:00
Alex Schultz 4dbb45315b Drop minion
This is no longer valid with the switch to ephemeral heat for
deployments.

Depends-On: https://review.rdoproject.org/r/c/openstack/tripleoclient-distgit/+/35907
Change-Id: Id3e21879c0fb831583ec41804e99da8cffcb9d86
2021-10-01 14:03:39 +00:00
John Fulton 61e4f4c788 Introduce "openstack overcloud ceph deploy"
The new "openstack overcloud ceph deploy" is used to deploy
Ceph after the hardware has been provisioned with networking
and before the overcloud is deployed. The command takes the
output of "openstack overcloud node provision" as input and
returns a Heat enviornment file, e.g. deployed_ceph.yaml,
as output. The deployed_ceph.yaml file may then be passed
to the "openstack overcloud deploy" command as input.

Change-Id: Ie0032190f0c07fd47a36a1915c02f0ba1a9ae2a4
2021-08-24 11:46:52 +00:00
Zuul 6bd803168e Merge "Unprovision composable networks command" 2021-07-01 03:47:25 +00:00
Sandeep Yadav e768090971 Unprovision composable networks command
Command to unprovision composable networks which are previously
created by provision command.

Depends-On: https://review.opendev.org/c/openstack/tripleo-ansible/+/773021
Change-Id: I3c72b623590d1f7902648e303ff975077e737d28
2021-06-25 09:24:12 +05:30
YuehuiLei 9ecb87589a setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ic09b4713ad38a93b7ff0abda7b6a81c2f64c1f40
2021-05-08 16:57:50 +08:00
Zuul fd01851257 Merge "Add commands to extract|provision net vips" 2021-04-22 19:40:56 +00:00
matbu eb6d660efc Revert the move of tripleo_validator in tripleo-validation
This revert is done due to several reasons:
* The move of the CLI wont be backported in the stable branches so
  we will have to maintain one CLI in tripleo-validations for Master
  and tripleoclient for the older branches
* We plan to form tripleo-validations as an Ansible collection so
  having the dedicated tripleo validations CLI outside now make sense
* We are creating a core CLI in the framework itself in order to converge
  all the logics in one uniq place. The tripleoclient implementation will
  be only caller on top of this, without almost no logic in the code, just
  a specific tripleo layer

Change-Id: Iac8601399a835e55b53c4820e280e255f624ceec
2021-03-25 11:24:18 +01:00
Harald Jensås d24b41c62b Add commands to extract|provision net vips
Add command to extract Virtual IPs information from
a deployed overcloud. This writes a 'vip_data' file
that should be used when managing neutron Virtual IP
resources "outside" the overcloud Heat stack.

Add command to provision Virtual IPs using 'vip_data'
file as input. This command will output a
'vip_environment' file with the resource_registry and
paramters to replace the neutron resources in the
overcloud Heat stack.

Depends-On: https://review.opendev.org/774857
Partial-Implements: blueprint network-data-v2-ports
Change-Id: Id9b5c621c25158bb72559c3d3c52a62c840b3a6a
2021-03-16 20:36:30 +00:00
James Slagle 0f9fbfa58d Add HeatPodLauncher
Add a new subclass, HeatPodLauncher to launching an emphemeral Heat
within a podman pod. The pod contains separate processes for Heat API
and engine, allowing for multiple engine workers (defaults to cpu
logical core count / 2).

The pod makes use of the undercloud's already installed database and
message bus.

Change-Id: Ie8b4a5ca83284f66dceae32c6f2fc99cdc8c9ffb
Signed-off-by: James Slagle <jslagle@redhat.com>
2021-03-09 11:06:36 -05:00
ramishra 9fce6e1cb9 Remove overcloud set parameter command
Now that the plan is gone, you can just use an environment
file with the new parameters. This was mostly useful with
tripleo-ui which leveraged the plan.

Change-Id: I998cc9631e15677939e2b8f7a112ccba5606662d
2021-02-11 11:29:02 +05:30
ramishra 1603ed45db Remove plan/plan-role management commands
This removes all the plan related commands as we
won't have a plan.

Change-Id: I77d4fa6e0fa88f3e0429e7dea9115f0460a16c5c
2021-02-01 10:52:38 +05:30
Zuul 5fcef39f3f Merge "Run flake8 using pre-commit" 2021-01-12 00:50:02 +00:00
Sorin Sbarnea 276bacfb92 Run flake8 using pre-commit
- fixes two issues identified by newer flake8
- upgrades flake8 and keeps it pinned
- removes hacking as this is no longer needed, as pre-commit does
  its own pinning.
- enables us to easily add other linters, pylint would come in
  follow-up

Change-Id: If26234fad0cd982bd7d3dc23c42021b357c6bde9
Related-Bug: #1910543
2021-01-08 13:28:45 +00:00
Mathieu Bultel 4b1440bd00 Remove tripleo_validator from tripleoclient
This patch remove tripleo validator from tripleoclient to
tripleo-validations repository.
The change is related to the effort to make the validation
act as a plugin/component on top of tripleo and not being
part of the core of tripleo.

Change-Id: I1e08eb07ce1f0d138f9c5101b9fe770c5da9b3f9
2021-01-07 17:07:50 +01:00
Harald Jensås a5314b1e9a Provision composable networks command
Command to provision (create/update) composabale networks,
segments and subnets.

Depends-On: https://review.opendev.org/751739
Change-Id: I9736143d33c9390f764bb6eb0c92004daeb114be
2020-11-20 14:01:04 +01:00
Harald Jensås 006b125637 Extract provisioned networks from stack
Extract networks provisioned in stack and dump
output to valid network_data.yaml format.

Depends-On: https://review.opendev.org/750671
Change-Id: Ibae7e2f46eb2c1c20fc9c5aed95284e3a24c66ae
2020-11-04 14:24:50 +01:00
John Fulton ac0dfb5e1e Add openstack overcloud export ceph
Add a new command to export Ceph information from one or
more Heat stacks to be used as input of another stack.
Creates a valid YAML file with the CephExternalMultiConfig
parameter populated.

Also have export's export_password use yaml.safe_load in
place of the deprecated yaml.load.

Closes-Bug: #1895034
Change-Id: Ibdf9115e92c6b476b99d6df785b0c7e9f23991de
2020-09-23 00:25:20 +00:00
Zuul 35e74219f3 Merge "Remove translation sections from setup.cfg" 2020-07-21 07:06:50 +00:00
Zuul e1b8bda709 Merge "Add backup functionality to Openstack client for undercloud and overcloud." 2020-07-18 01:40:11 +00:00
Zuul 2c6dc2f26a Merge "Rename UpgradeConvergeOvercloud into UpgradeConverge." 2020-07-13 22:04:07 +00:00
Jose Luis Franco Arza 8e7331098e Remove ffwd-upgrade commands from tripleoclient.
Now that the FFU process relies on the openstack overcloud upgrade
commands there is no need to keep the old ffwd-upgrade command
available.

This patch removes the three ffwd-upgrade (run, prepare and converge)
as well as their tests, utils functions and constants.

Change-Id: If0c0ed9a44a51cf367fd060c77e10055f367694c
2020-07-06 10:43:46 +02:00
Jose Luis Franco Arza cf195c4b0b Rename UpgradeConvergeOvercloud into UpgradeConverge.
To keep consistency between class names for the upgrade
library, this patch renames the UpgradeConvergeOvercloud
into UpgradeConverge.

Change-Id: Ib73a803bf24af876c00583b3793e828fb528a26d
2020-07-02 12:45:08 +02:00
wu.chunyang 064ce9c8fd Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Remove babel.cfg as well, this is the default role and not needed
anymore.

also remove Babel from requirements[1]
[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html

Change-Id: I8a5b7c3fc87a27c774deb368b877a9697ba320f3
2020-06-15 00:15:39 +08:00
Toure 846836a196 Add backup functionality to Openstack client for undercloud and overcloud.
This will allow administrators to perform a backup of the undercloud or
overcloud from the existing backup and restore role which is included
in the tripleo-anisble project.

Depends-on: https://review.opendev.org/720087

Change-Id: If25b71ae4d12208875d0fbcd9e16188a6f018f99
2020-06-09 11:23:54 -04:00
Kevin Carter 4967f4f6ee Add tripleo container image hotfix command
This change adds a CLI command to invoke hotfixes via the TripleO modify
image role. This CLI command will ensure a uniform experience for operators
when needing to apply a hotfixes to containers.

Change-Id: I364fb42a41b4cb4ae076f07704c72c6ea442a198
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-06-04 16:55:59 +00:00
Emilien Macchi 1c09e83744 Add openstack tripleo container image build
This change adds a v2 entry point to allow us to build images within the
native tripleoclient. Images will leverage the new
`tripleo_container_image_build` role which will produce simplified
container files and and an image structure inline with the simple
container generation spec.

Depends-On: https://review.opendev.org/722486

Change-Id: I279e95722fe7a10148d36c99c7179c33a3a767a0
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-06-04 03:23:13 +00:00
Steve Baker 51b0cc4c13 New command "overcloud node extract provisioned"
As a first step to upgrade to a nova-less undercloud, the baremetal
deployment yaml which represents the current overcloud needs to be
built.

This command builds the yaml for an existing overcloud using the
heat stack output AnsibleHostVarsMap and a list of all baremetal
nodes. When the generated yaml is used to run "openstack overcloud
node provision" no changes will be made to any nodes.

Blueprint: nova-less-deploy
Change-Id: I47c885697bf36b999fd0ad9bd99a23990440ed62
2020-05-06 20:29:30 +00:00
Zuul a8d2ba9fbe Merge "Cleanup py27 support" 2020-04-28 18:49:01 +00: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
Andreas Jaeger 655e0178a1 Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I45b5b8582b67b39823a6e21221c491842b390b96
2020-04-04 17:19:56 +02:00
Zuul f88603ed1a Merge "Remove overcloud remote execute command" 2020-04-04 00:26:58 +00:00
Rabi Mishra bbf504006c Remove overcloud remote execute command
This inteface is probably not used and does not work by default as
we've disabled os-collect-config on overcloud nodes since rocky.

This uses heat software deployments and swift temp url based signaling
which does not go with config-download and ansible based roadmap without
mistral and swift.

If required users/operators can write custom playbooks to do additional
configuration required on nodes.

Change-Id: I931bae6953b00290c006a02cc24c6c9718d5d6ac
2020-04-02 11:53:19 +05:30