Commit Graph

53 Commits

Author SHA1 Message Date
Ghanshyam Mann 7350bf7eb8 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: Ic84ac5786ecc68729827ff35ad7ee3ef21a6652f
2024-02-24 11:40:51 -08:00
Zuul 2ab288f14e Merge "setup.cfg: Replace dashes with underscores" 2021-09-14 15:16:38 +00:00
Jeremy Stanley 55889cb0df Correct the tox option for skipping sdist generation
The tox option to skip source distribution building is skipsdist,
but this seems to be often misspelled skipdist instead, which gets
silently ignored and so does not take effect. Correct it
everywhere, in hopes that new projects will finally stop copying
this mistake around.

See https://tox.readthedocs.io/en/latest/config.html#conf-skipsdist
and https://github.com/tox-dev/tox/issues/1388 for details.

Change-Id: Ie0667de615e02284cb6302d9df7165651a16f988
2021-06-25 15:48:47 +00:00
Alex Schultz 657df296ac Fix ci
* bump hacking
* ignore E402 module level import not at top of file

Change-Id: I3a45be5250446d4f7cb51b9d53d09d362f4c1a45
2021-06-25 09:48:30 -06:00
jiangzhilin 57748b96e5 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: I09b11ddd1b022b9e86d6671c90186d3312469153
2021-05-04 08:04:45 +00:00
Hervé Beraud 3937ea4e7e Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is deprecated and TOX_CONSTRAINTS_FILE is
the new environment variable name that replaces it [1].

This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
[2] https://review.opendev.org/#/c/722814/

Change-Id: I4fdd57d6db4c6e092274ef9d5c34a7e5a2bf8222
2020-11-09 16:34:26 +00:00
Alex Schultz 0ccfeadc25 Bump pyflakes and pin ansible-lint
We need a python 3.9 compatible version of pyflakes and we need to
pin ansible-lint to an ansible 2.7 compatible version.

Related PyCQA/pyflakes #367

Change-Id: Iedc76eb82d831cad8dfc569477eece827aca750c
2020-11-09 09:33:54 -07:00
Marc Methot 274739ee5b Fixing the README RST formatting
This resolves the links, the subtitles and the markup literals

Change-Id: I2ff8eb4733c8707fd5a4647a202d521f7933b892
Closes-Bug: #1859860
2020-01-15 13:36:46 -05:00
pengyuesheng 29cc537e99 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I81696d63e6d7bdac21905e938116803ffdd837ed
2019-09-26 14:11:07 +08:00
inspurericzhang ddccab0906 Mailing lists change openstack-dev to openstack-discuss
Change-Id: Ib4c4abaff35776c6b4e254ca16fda43b44de7072
2019-07-01 18:56:08 +08:00
melissaml b5debeead3 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I0ac8c9840e44af61388762cb7b5075f00cb2377a
2019-05-10 19:06:50 +08:00
OpenDev Sysadmins e5d28233b7 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:36:14 +00:00
Alex Schultz 09e0e81b09 Switch readme to rst
In order to release we need to fix some linting issues in the readme for
pypi. Let's switch it to rst to be consistent with the new standard.

Change-Id: Id8d4d7eea6ae65983b3c00e4db010088ac13cb66
2019-04-02 10:28:47 -06:00
Zuul ed26a548c9 Merge "Redis backup, restore, and validation tasks" 2019-03-26 15:37:25 +00:00
Juan Badia Payno 0909e697a8 Avoid showing password on backup and restore tasks
Change-Id: I100cbc6dd7e82229a747a357d3c56adc0d541069
2019-03-25 11:37:55 +01:00
Dan Macpherson 229b138357 Redis backup, restore, and validation tasks
This adds task files for the backup, restore, and validation
for Redis. It also incorporates some of the foundational changes
from https://review.openstack.org/#/c/635506/

Change-Id: Idd50a6b53a22bc6b23df776cff9537e3c47618f3
2019-03-21 16:33:21 +00:00
Zuul 98def321e5 Merge "Fix temp. inventory on the backup host" 2019-03-15 10:51:50 +00:00
Zuul d9049b4869 Merge "Switch script to shell" 2019-03-15 10:49:35 +00:00
Juan Badia Payno b9c9cad6e0 Switch script to shell
Running the task from the undercloud I had no errors, however when I tried to
run the task from my laptop to do a backup of the undercloud the following error
showed up:
TASK [ansible-role-openstack-operations : Get the database root password]
Fatal: [undercloud-0]:
         FAILED! => {"changed": false,
                     "msg": "Could not find or access /bin/hiera"}
  to retry, use: --limit @/home/jbadiapa/tools/infrared/backup-and\
                 -restore-ffwd/undercloud-backup-openstack-operations.retry

This patch fix that error

Change-Id: Ibecbc53203376489110819c431c9f8ba884aa409
2019-03-05 17:58:57 +01:00
Juan Badia Payno f3ed94413d Added filesystem backup
Added filesystem backup task, Its documentation and an example
of how to use it.

Change-Id: I59d48d4f6450373ff416e86b1e911017f02603eb
2019-03-05 09:45:17 +01:00
Martin Magr 655d4ea9fe Pacemaker backup task
This patch add task for backing up pacemaker configuration and makes
existing mysql backup task a bit more configurable.

Change-Id: I67b1991daf617093ec59efea5062157d59106bd4
2019-02-26 09:16:11 +00:00
Juan Badia Payno 80d973f0bb Fix the gate
ansible-pacemaker (ansible module) installed as a module
   some minors fix at restore_galera.yml

Change-Id: I4d6be70a4e31f66a1cdbb725c72c553c294e2c2e
2019-02-25 08:56:53 +01:00
Juan Badia Payno fb411a2756 Fix temp. inventory on the backup host
On the mysql backup task, there is a problem when the backup file is
trying to copied to the backup server. This patch fix that using
the IP instead of the hostname

Change-Id: If6fa0f337d5aa5a51bea7c6823b20c21b134b576
2019-02-19 08:28:36 +01:00
Zuul 784a2cd80a Merge "Update min tox version to 2.0" 2019-01-03 21:25:41 +00:00
Zuul 0868b36e57 Merge "Adding Backup and Restore Operations" 2018-11-15 17:17:55 +00:00
huang.zhiping 8a194491b8 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: If63490c6af8292dd86ba0c76c69a6d295b5d042d
2018-10-20 12:14:36 +00:00
Dan Macpherson da38af7d2d Adding Backup and Restore Operations
These are a set of tasks to help facilitate backup and restore operations.
This includes preparing an external backup host, configuring SSH for
rsync, and some initial tasks for backing up and restoring a containerized
galera cluster. This should lay the foundation for further backup and
restore tasks.

Change-Id: If5c11956291205cd04a6ef9bdb3d221fcd970f24
2018-10-16 15:20:44 +10:00
Zuul c8fb55c7be Merge "Handle missing keys in service_names" 2018-10-03 19:07:25 +00:00
Jill Rouleau d230e9f563 Handle missing keys in service_names
Fixes a bug where a service map entry had to have both a systemd_unit and a
container_name defined for any service. Both are possible to provide support
for baremetal and containerized clouds, but should not be required.

Change-Id: I1f48290ed04444c5e829272d965951c209a9fe58
2018-10-02 16:00:55 -07:00
Doug Hellmann ad26eb1146 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I744550166d70d33b612faacb3ca6d19d92222b1a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 19:01:50 -04:00
Sam Doran 4fab777295 Make role support multiple container runtimes
- add variable to be used for container runtime
- correct Docker container removal task  based on new output from docker_facts.py
- add validation for supported container runtimes
- update README

Change-Id: If9f8488192d0cc04783f9069dc43113da204ca57
2018-09-07 16:20:41 -04:00
Zuul fb5f4ce14d Merge "Complete missing service_map vars data" 2018-08-09 01:25:56 +00:00
Jill Rouleau 01934cfd5e Complete missing service_map vars data
Complete TODOs and fill in some missing services in vars/main.yml

Change-Id: I999a45b8102c6a238524ab9a486edc2651039d92
2018-08-08 12:57:12 -07:00
Zuul f169f02227 Merge "Add missing license file" 2018-07-27 18:10:47 +00:00
Zuul 32bbdc447c Merge "Correct variable names in module and tasks file" 2018-07-27 16:48:01 +00:00
Jill Rouleau d1c29f9124 Add missing license file
Add LICENSE file to repo and add license text to service_map lib

Change-Id: I21dbd3dec9a439c37a805ffae24ede9377edd075
2018-07-27 16:42:23 +00:00
Sam Doran f4323aad3d Refactor docker_facts.py
Use Docker python library and leverage AnsibleDockerClient class for error
handling and Docker connection.

Change-Id: I4c947dcdcad7344d70089a51658bc52362da40b3
2018-07-26 18:30:31 +00:00
Sam Doran 50cd84431e Correct variable names in module and tasks file
Change-Id: Ibfb112aa4dcd2dc1c545c4f900607052d1d8a7a0
2018-07-24 22:56:20 +00:00
Emilien Macchi 353c9dbfe4 Add basic jobs in Zuul Layout and .gitreview
Based on other TripleO Ansible roles.

Also add in basic plumbing required to enable the jobs and fix for
various linting issues.

Co-Authored-By: Alex Schultz <aschultz@redhat.com>
Change-Id: Ia42b6f736605bdff46030706b19363143b04a7c0
2018-07-24 16:54:47 -06:00
Sam Doran c76cb5a371 Update README
Document how serivce restart works
2018-06-21 15:13:57 -04:00
Sam Doran 73d9b549c9 Change variable names for service_map_facts and update README 2018-06-11 15:41:58 -04:00
Sam Doran 311dab0336 Change service_mgmt_facts module name and variables
Simplfy parameter names.
Change output variable names to clearly describe what they contain as well as avoid name collisions with other facts.
2018-06-11 15:27:58 -04:00
Sam Doran 33207181b6 Move service mapping to a variable inside vars/main.yml 2018-06-11 15:26:03 -04:00
Sam Doran d52395cc39 Remove playbooks since they are now in a project directory 2018-06-11 15:25:13 -04:00
Jill R c41f797608 Add fact module, tasks, example playbook, and service mapping file (#1)
* Add fact module, tasks, example playbook, and service mapping file for supporting service restarts

* Improve service restart tasks and module

Support user-defined custom service maps, processing of service lists,
improved exception handling in get_docker_containers.  Moved default
service map to vars.

* Cleanup variables

Move mapping file to a variable, condense extraneous steps to combine default
and user maps into an in-task step, some better var naming
2018-06-11 15:08:02 -04:00
Sam Doran bea9ec05dd Improve docker_facts.py
Change containers to returning a list of dicts containing name, ID, and state.
2018-06-05 10:37:41 -04:00
Sam Doran b7c5af9803 Add docs to docker_facts.py 2018-05-01 16:05:56 -04:00
Sam Doran da623d778b Add better documentation and examples
Update READEME with detailed description of tasks files within role
Create example playbooks
Set better role defaults
2018-05-01 15:27:24 -04:00
Sam Doran a9cc0b3673 Use new variable name in tasks 2018-04-27 17:11:10 -04:00
Sam Doran 123cd4a3e3 Improve docker_facts plugin 2018-04-27 17:06:03 -04:00