Commit Graph

48 Commits

Author SHA1 Message Date
Ghanshyam Mann 72ea117f61 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: Ic549bdcc76a5e12a0104143fbe79fd0db2c866b0
2024-02-24 11:44:35 -08:00
rabi e7fcfa1c0c Stop using os_stack module
This redirect does not work or won't work in the future.

Note: This adds ansible-core to test-requirements.txt,
we may need to add requirements.txt and ansible collections
in ansible-collections-requirements.yml in the future.

Change-Id: Iffb41b68283f77050d8073364156cc0aca85559e
2022-10-10 12:10:16 +05:30
Sorin Sbarnea b70cd77203 ansible-lint: resolved 4 skips
Fixed several skips on ansible-lint

Change-Id: I7416332b67593d1cd6b3177333c8bf1055aa3456
2020-01-18 09:50:41 +00:00
Zuul 2e001a3b11 Merge "lint: enabled whitespace fixes" 2020-01-11 21:29:34 +00:00
Sorin Sbarnea 8b2e5653e4 lint: fixed ansible-lint 301 rule
Change-Id: I8ce7e11cd6027b53f1112c5880a5891c778db9d4
2020-01-05 19:37:09 +00:00
Sorin Sbarnea 16649df878 lint: bumping to latest versions
- run `pre-commit autoupdate` and fixed new issues
- adopted newer pre-commit config for ansible-lint 4.2.0+
- fixed some reported broken rules
- temporary disabled few rules, just to contain the size of of review,
  planning to drop/fix them in follow-ups.

Change-Id: I807ba4e919527be56c85ec72d0f4c7148f04e994
2020-01-05 19:36:36 +00:00
Sorin Sbarnea fce23f7646 lint: enabled whitespace fixes
Adds two checks that were used in order repos (liketq)but not on this
one.

Change-Id: I4ccaf3dc78777b4b661fa17382f2feef8eb0d03e
2020-01-05 14:07:37 +00:00
Sorin Sbarnea 1c6b947bf2 ansible-lint: removed skip of 206
- Fixes 206 errors and removed the skip.
- Also replaces revision with latest tag (pushed today)

Bug: https://bugs.launchpad.net/tripleo/+bug/1848512
Change-Id: I69d75ba9de8ab0e91eb45fd4f9febfdb28cdcb3a
2019-10-25 17:15:40 +01:00
OpenDev Sysadmins db85f97e1d 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:42:23 +00:00
Sorin Sbarnea 28b46708ef Corrected openstack-virtual-baremetal repo location
Uses the new location of openstack-virtual-baremetal as it was
imported to openstack organization earlier today.

Change-Id: I6f6904b67052a97d8ebc5e4f3d766efb93fec7a5
2019-01-15 16:01:53 +00:00
Sorin Sbarnea 4b0e51aad0 Switch ovb_repo_version to the new branch stable/1.0
This will allow ovb to develop the new dev-2.0 version as master and
continue supporting the stable.

Once master is no longer use by CI jobs, we can finally migrate the
repository via https://review.openstack.org/#/c/620613/

This setup matches the branch naming pattern used by other openstack
projects.

Change-Id: I8e9199d59d512202842e8fa11d258c1f97549325
Story: https://tree.taiga.io/project/tripleo-ci-board/task/527
2019-01-03 16:22:00 +00:00
Zuul f5f4590dd1 Merge "[Trivial Fix] Correct spelling error of "cloud"" 2019-01-03 05:46:16 +00:00
Sorin Sbarnea 72141b7fab Adopt yamllint strict linting
Upgrades yamllint to latest version and adots use of its strict
checking.

Fix all known problems reported by yamllint so we don't have to do
that while touching these files.

Change-Id: I4bdc520d9e2aff086c4b463718bc1e053261a4f5
Story: https://tree.taiga.io/project/tripleo-ci-board/task/381
2018-11-26 12:37:21 +00:00
Nguyen Hai Truong e00438121e [Trivial Fix] Correct spelling error of "cloud"
Small modification to correct spelling mistake.

Change-Id: I7025f34c852caaecd42b14188e02d1a5e339e63e
2018-11-01 19:44:48 -07:00
Sorin Sbarnea 146d1d1c1c
Fix Ansible Using tests as filters is deprecated
Avoids deprecation warnings like below by adopting recommended syntax.

[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of
using `result|failed` instead use `result is failed`. This feature will
be removed in version 2.9. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.

Change-Id: Ie0e0fbc61090e2b89971252ee60700158acf5fd4
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-07-17 13:05:57 +01:00
Sagi Shnaidman dbf1a2578d Print failed stack info in case of failure
When OVB stack is not created we can't know the reason. So print
all stack info if it's failed, but don't if it's created.

Change-Id: Ic7462f58ef647d91df9f975d46c823c390a7e9ad
2018-07-15 21:42:24 +03:00
Ronelle Landy 1ae2c8c52e Modify OVB stack and resource identifiers to match te-broker
The ovb-manage-stack role creates OVB stacks in a similar way
to te-broker. However the patterns of naming the stacks and the
related resources were different. This review changes the naming
pattern of the ovb-manage-stack role to match that used with
te-broker to allow for a more uniform mangement of stacks
across tenants and host clouds.

Change-Id: I5c764b9eb9d49e75998d8fe39f41ac90ec00df73
2018-03-12 13:22:57 -04:00
Matthias Runge 96d5695ba2 Update openstack-virtual-baremetal
ovb-manage stack recently changed parameter names and calls.
This references the merge to customize the driver for build-nodes-json.
https://github.com/cybertron/openstack-virtual-baremetal/commit/
       a3786bca1604d6048562af80eca3bcad119e5065

Change-Id: Ice7c5caeec185172ae5637d2220aa0871867f12c
Closes-Bug: #1750512
2018-02-21 15:54:33 +01:00
Dmitry Tantsur b37256471e OVB: use "ipmi" driver instead of "pxe_ipmitool" for >= Queens
The classic drivers (pxe_*, agent_* and iscsi_*) are deprecated in
Queens and will be removed in Rocky. This change uses the new
--driver argument to build-nodes-json to specify the driver to use.

Change-Id: If51505c4cd53918200b65c75915e389adaddb200
2018-02-15 18:14:11 +01:00
Attila Darazs 689d759e64 Use cachable facts to allow multiple runs
* add "cachable: true" to set_fact calls when the fact would be used by
  other roles in later runs; the other fact names were checked to make
  sure they are not referred to in other roles
* consolidate the formatting of the set_fact calls, using the proper
  yaml structure instead of `set_fact: foo=bar`

Depends-On: I987d51cc252b7ebc3972d60497234fa676864882
Change-Id: I5dd3084ead618e357b1e7d841ea2ee794bd0569a
2017-12-05 16:56:38 +01:00
John Trowbridge 2945aad133 Make ovb-manage-stack role usable for upstream reproducers
Currently the ovb-manage-stack role does not have any way to
setup a non-root user and no way to dump an inventory file. This
works fine when used with the rest of quickstart, because we have
other code that does these things.

However in order to reproduce tripleo-ci OVB jobs we want to
simply provision an environment like tebroker does in those jobs.
Then we just hand that environment off to the tripleo-ci job
scripts.

This change adds two optional bits (both off by default) that will
add a non-root user and dump an inventory file.

Change-Id: I9ee4402572583d6acb7cfdbde79b4b2e41a53fdf
2017-11-10 14:53:07 +00:00
Ronelle Landy ba1a906df0 Increase 'boot from volume' default baremetal volume size
When deploying with a containerized overcloud, the
overcloud nodes run into issues with a smaller volume
size.
Note that this review only increases the default.
Indiviual cloud users can set a smaller volume size
if required.

Change-Id: Ie312066c114602c271fa0ae8a906d5ea60514cd1
2017-09-18 10:35:39 -04:00
Ronelle Landy 8b0806df16 Default RDO Cloud non-ci settings to use 'boot_from_volume'
Performance with ephemeral storage on RDO Cloud for
the non-ci flavors is slow. This review enables
'boot from volume' when using non-ci flavors and
parameterizes the sizes of the volumes so that users
can modify those values in feature sets.

Change-Id: I92c8f5c190b678fcb3920fc584464b3321ab371e
2017-09-11 16:32:45 -04:00
Ronelle Landy d12fecee4e Add boot from volume option for OVB
For clouds where there standard flavors do not
provide large enough disks, users need the option
to boot from volume.

This review moves the version pin forward for
the Openstack Virtual Baremetal repo as the boot
from volume functionality was added in a later
version.

Change-Id: I3aa00c3dee22beaa0ce8581a6aa5b308b4fd5caa
2017-09-11 09:56:30 -04:00
Jenkins 3c1c011d3f Merge "Add OS_REGION_NAME to clouds.yaml" 2017-09-07 01:07:08 +00:00
Ronelle Landy 899eb4ed31 Add port security option for OVB with no network isolation
For OVB clouds requiring port security, there is a default template
to be added when the overcloud is deployed without
network isolation. This review adds that option.

Change-Id: Id4e0ae571bf4d875a56175320e98f5f427fe6511
2017-08-27 16:40:31 +00:00
Matthias Runge 906d4970a7 Add OS_REGION_NAME to clouds.yaml
RegionOne is not always true for OS_REGION_NAME.

Change-Id: I22c66065570f83cd3b610210fc83c2cd6dcc5ac6
2017-08-21 11:47:51 +02:00
Wes Hayutin 4cf4dfdadf pin the ovb git repo to a working version
Closes-Bug: #1710013
Change-Id: I9fc7e86ffb53727b733af29a1ca4562f10f41afc
2017-08-10 17:02:04 -04:00
Jenkins 39d7227c11 Merge "Add option to pin the version on OVB repo" 2017-07-27 01:18:38 +00:00
Ronelle Landy 929bbc05b7 Add option to pin the version on OVB repo
The Openstack Virtual Baremetal repo can change and
impact gates. This review adds the option to pin
the version of the OVB repo to a known good hash/release.

Change-Id: If3fb38fd1a57fbf994e291ce6b4fc7d7be722724
2017-07-25 18:55:41 +00:00
Ronelle Landy a18e37c772 Use deploy.py script to deploy OVB stack
The deploy.py is updated when changes are made to the
openstack-virtual-baremetal repo. Deploying the OVB stack
with shade does not get these updates.
Upstream is using the deploy.py script so this is another
step in bringing the two workflows closer.

Change-Id: I24591b0fa0163f6f5315936a5493d615dd89adbb
2017-07-25 18:47:18 +00:00
Ronelle Landy 9fbcc48e87 Change default DNS name server
This review changes the list of DNS servers to use RDO Cloud
default dns servers. Also, it single sources the DNS server for the
undercloud.

Change-Id: Ic905c19b136362d0d4db930ad47d3c84ccc18117
2017-06-20 18:28:53 +00:00
Attila Darazs f3d6a778df Explicity use bash for ovb-manage-stack shell block
"set -o pipefail" is a bashism, and it is not within the POSIX
standard. It is possible that the system's default shell (/bin/sh) is
not bash, which can result in errors.

This change only corrects this in ovb-manage-stack which is most likely
to directly run on non-CentOS/Fedora/RHEL systems during the devmode OVB
execution.

Change-Id: I7a98001f125ef903766543102cd0506a243606f3
2017-06-14 09:40:48 +00:00
John Trowbridge 3740fd1a4a Remove unneeded setting of ansible_user
This never actually did anything because we are setting a variable
to itself. However, with ansible2.3 update this actually breaks.

Change-Id: I7ca4a29d0eeeacfe799d7640fcbecc9d88329be0
2017-06-01 17:00:41 -04:00
Ronelle Landy 1fbb66ca9b Add stack deploy status output for failed deploy debugging
If an OVB stack does not deploy successfully, the os_stack module
fails out without returning any reason for failure.
This review ignores the error returned by os_stack and
adds a debug step that prints out the stack status so the
user knows why the deploy failed.

This review deletes the os_stack module stored in
ovb-manage-stack role as it is now included with
Ansible.

Change-Id: I7f0d4ef68d06cddf18101da20877cf49e8415069
2017-05-26 15:43:07 -04:00
Ronelle Landy 4d0f6329df Parameterize OVB stack flavors
Running quickstart with OVB  needs to work with multiple host
clouds where different flavor sets are available.

This review:
* Adds variables to the flavor specifications so that they can be
  overwritten by config files per host cloud environment
* Adds functionality to clean up stacks and keypairs
  from the host cloud environment
* Includes cloning the Openstack Virtual Baremetal repo
  within the ovb-manage-stack role
* Deletes the clouds.yaml file so it is not available,
  with the tenant password exposed for longer than
  necessary to create or delete the stack
* Changes the default key location to use
  the user's default key on the undercloud

Change-Id: I5f0f7327a2509ef889b80a35024478b13df2c2a9
2017-05-16 10:47:20 -04:00
Ronelle Landy 578ba753a5 Add default image for Ocata deploys
OVB workflow installs a vanilla OS image on the undercloud
and then installs repos and images.
This review adds the missing Ocata default image.
The images names will be overwritten per host cloud.

Change-Id: Ic2263d8f6babcf321d70e27d3fd3b342086087a2
2017-03-17 13:20:49 +00:00
Sagi Shnaidman 16a43a1531 Support multinic network isolation
Support multinic network isolation for ipv4 and ipv6 in quickstart
Also updates the roles and configs for network isolation types
used upstream in tripleo-heat-templates.

Change-Id: I5f78b908fe41a1304295fad4e0187d049b16fa80
2017-03-01 00:04:42 +02:00
Jenkins bf9a2424eb Merge "Update build nodes task to use the cloud config" 2017-02-14 14:09:13 +00:00
Gael Chamoulaud 619c512594 Fix and improve flake8 test.
Previously the 'flake8' command was running but didn't seem to
check out something in all cases.

- This patch decouples the 'ansible-lint' and the 'flake8' sections
  into separated 'testenv'.
- And this patch fixes all the 'flake8' issues.

Change-Id: I30169598d086515121175ca322882ee00f05b913
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2017-02-07 12:20:19 +01:00
Ronelle Landy e7c1e4cb21 Update build nodes task to use the cloud config
novaclient 7.0.0 and above requires the 'project_name'
parameter, defined in the cloud.yml config file.

Change-Id: I15928d05ddbad28a8bdb3ef247c6aac85226a4d2
2017-02-02 10:18:24 -05:00
Harry Rybacki ce7982192f Integrate undercloud_user var into oooq-extras
We need to differentiate local_working_dir from working_dir
as well as decouple the stack user from `ansible_user` var.
Both of these are causing issues as we begin to automate
deployments in more environments.

- Cleanup duplicate variables that are consumed via extras-common
  - Note: extras-common depends on the common role in OOOQ
- Cleanup redundant var and superfluous quotes from overcloud-scale
  role
- Cleanup redundant comments in <role>/defaults/main.yml

Closes-bug: 1654574
Change-Id: I9c7a3166ed1fc5042c11e420223134ea912b45c5
2017-01-18 09:32:16 -05:00
Wes Hayutin 19933e5f03 Ensure that each role in extras has a dependency on extras-common
As more ansible variables are shared or reused across roles it is
important to define these variables in a role that is always
executed.  In this case that role is extras-common.

Note: This review is a blocker for https://review.openstack.org/#/c/418998/

Change-Id: I31fd13d7bcb98d73e7f16048c57c027d95faeec5
2017-01-18 09:32:16 -05:00
Ronelle Landy 9d32dabea4 Add settings to enable rhos-8 gates
Add vanilla RHEL image to use, by default, when deploying rhos-8.
This value can be overwritten to test rhos-8 on othe rhel versions.

Change-Id: If62afbe9273c070d8a16f99ac1b25208fe863212
2017-01-16 17:27:17 -05:00
Ronelle Landy df50e75f10 Modify OVB role to work with non-ready undercloud images
The OVB role was written at first to work with ready undercloud
images. This review changes the workflow to use a vanilla
guest image for the undercloud and set up the users, repos
and overcloud images after the OVB stack is deployed.

This streamlines the OVB workflow on different environments.

Change-Id: Ic8f40b5e38fab5aee3dc84d6fb1462b3f0f61ca7
2017-01-05 16:22:43 +00:00
Ronelle Landy 196a418f1f Add generic undercloud setup role
All workflows not using the undercloud ready image
are required to setup the undercloud so that it
contains the elements required for installation and
deploy.

This role should include general undercloud set up
steps but can also include environment specific
steps that are only run under certain conditions.

Steps to get and modify overcloud images are in a
separate role - to be extracted from tripleo-quickstart.
Steps to get and enable repos are in a separate role.

Change-Id: Ibc5af913378ee6b713f94a775ea8ba8b6ffbfd0c
2017-01-05 08:53:40 -05:00
Ronelle Landy c494242b92 Fix typo on undercloud_key defaults
OVB errors with 'undercloud_key' is undefined.
This review fixes the typo in the defaults key.

Change-Id: I76ea4f37accab63e4351de32f7641b3f086f97ac
2016-11-28 12:41:15 -05:00
Ronelle Landy bdada2eca5 Add role to create and delete the OVB stack
For environments where OVB is run on an Openstack
host cloud, this role contains the functionality
to manage the heat stack.
The associated playbooks are included.

Change-Id: I6270000613b1883a4f729faee3d255fd08624c13
2016-11-23 12:17:12 -05:00