Commit Graph

20 Commits (55e74bb8704d61081a419fc1c10df1bde73941d1)

Author SHA1 Message Date
Alex Schultz d5b59cb1ce Rename tripleo-operator-ansible roles
https://docs.ansible.com/ansible/devel/dev_guide/developing_collections.html#roles-directory

Change-Id: I2a7ce46755c535e0aaac69de3f28a45aa40f88dd
Depends-On: https://review.opendev.org/#/c/703419/
2020-01-28 18:36:40 +00:00
Zuul be5c103d45 Merge "Use tripleo-operator-ansible for undercloud install" 2020-01-15 05:28:55 +00:00
Alex Schultz 309d8a9cd7 Use tripleo-operator-ansible for undercloud install
Related-Blueprint: tripleo-operator-ansible
Change-Id: Ifdafd49e430f7898add580a5a9d8b2f70798e285
Depends-On: https://review.opendev.org/#/c/701459/
Depends-On: https://review.opendev.org/#/c/699311/
2020-01-14 17:00:26 +00:00
Sorin Sbarnea 8b2e5653e4 lint: fixed ansible-lint 301 rule
Change-Id: I8ce7e11cd6027b53f1112c5880a5891c778db9d4
2020-01-05 19:37:09 +00:00
Sagi Shnaidman 9d31d8996c Add podman version detection and yum cache
Change-Id: Id9095c67f0a5f3f11c02f932ef432a6046b32b8a
2019-10-27 11:43:34 +02: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
Sorin Sbarnea 04585eb6f4 Use dnf and python3 on platforms where these are default
Roles do not need to make any assumptions about having some facts
already gathered, thus at start they should assure they gather any
missiong facts that are used inside the role.

Change-Id: I49fd1a0c070d96aecb880164acde490c9e7c95ef
Story: https://tree.taiga.io/project/tripleo-ci-board/task/153
Depends-On: https://review.openstack.org/#/c/615489/
2018-11-05 15:58:33 +00:00
Steve Baker b3794ff03a Use the in-built image prepare for undercloud install
This file will write out the heat environment file
containers-prepare-parameter.yaml which will be used to do any
required image preparation during undercloud install.

The role parameter undercloud_container_images_file has been left as
an option for overriding, but is no longer required.

This change also switches the overcloud prepare to consume this file
via the command "openstack tripleo container image prepare"

It is expected that overcloud deploy will use the exact same
containers-prepare-parameter.yaml and the logic will be in place to
skip any unnecessary prepare actions. For this reason, the parameter
undercloud_docker_image_tag has been removed, and docker_image_tag is
used directly.
Since this file (and the variables used to build it) will be common to
undercloud and overcloud, there has been some refactoring to move
variable defaults to extras-common.

Change-Id: I290806b9296773688dfd02bc41f8baea28cf3d6a
Blueprint: container-prepare-workflow
2018-06-15 20:24:20 +00:00
Emilien Macchi 246aa15f7d containerized/undercloud: don't prepare containers by default
By default, we don't need to prepare the containers anymore, since they
are now prepared in tripleoclient since:
I00f72b1cd7ab6a03dd42bc489f3c950ee32dedeb

We also introduce update_containers boolean that will be use in the near
future, so we will prepare containers, update them and use them to
deploy the undercloud and overcloud. This will be pushed later though.

Change-Id: I5b76f80cfa4066845c0ec4c9e765d57d9ec2bfc9
2018-04-13 10:16:56 -07:00
Emilien Macchi 4d4312a136 undercloud-deploy: remove heat-installer package
... it's now deployed by tripleoclient rpm:
https://review.rdoproject.org/r/#/c/12809/

Change-Id: Ia0225e1082c21dd36fe2ae92f2c857c7c0f30815
2018-03-07 23:16:32 +01:00
Sagi Shnaidman 0cfbdb5435 Run undercloud containers only when containerized_undercloud
Don't run undercloud containers when it's not supported or
not configured.
Problem was introduced in I7d056b208d5ac0639e3277f3f4ae453a9ee639e8
Close-Bug: #1749105
Change-Id: If6fcb63da21a4c4b087a72159a2d422b2c58291e
2018-02-13 14:22:29 +02:00
Wes Hayutin fd6505fc77 Updates for containerized undercloud
This patch contains changes to deploy a containerized undercloud by
using: "openstack undercloud install --use-heat" command.

Details of the changes:

- The experimental containerized undercloud deployments driven via
  `undercloud deploy` CLI is not supported anymore for Pike.
- overcloud-prep-containers: fix an jinja2 syntax issue with "is defined"
- overcloud-prep-images: "--http-boot=/var/lib/ironic/httpboot" is
  added to the "openstack overcloud image upload" command.
- undercloud_rpm_dependencies parameter has been created, default to
  undercloud_tripleo_pkg value.
- Remove "undercloud_tripleo_pkg" so we only use
  "undercloud_rpm_dependencies". Note that "undercloud_tripleo_pkg"
  was only used in this repository.
- Remove "undercloud_update_packages" option which was technical debt.
- Add "undercloud_install_cli_options" option which is used to add extra
  options to "openstack undercloud install" command.
- Add "undercloud_container_images_file" which is the environment file
  with default parameters for containers to use with undercloud install CLI.
- Add "undercloud_custom_env_files" which provides custom t-h-t env files
  for the "undercloud install" `undercloud.conf` interface.
- Generate the undercloud prep containers script. This script will
  reproduce what we expect from our users to run with
  "openstack overcloud container image prepare" command, for the
  undercloud.
- Update undercloud-deploy.sh.j2, remove tech debt and update for new
  bits.
- Install heat libraries and other dependencies for containerized UC
  from python-tripleoclient-heat-installer. This should go away
  once python-tripleoclient installs python-tripleoclient-heat-installer
  automatically.
- Update undercloud-install.sh to use undercloud_install_cli_options
  which is empty by default but will be used in the container-undercloud
  featureset to override with the right parameters.

Partially-Implements: bp containerized-undercloud

Co-Authored-By: Bogdan Dobrelya <bdobreli@redhat.com>
Co-Authored-By: Emilien Macchi <emilien@redhat.com>
Co-Authored-By: Ian Main <imain@redhat.com>
Co-Authored-By: Martin André <m.andre@redhat.com>
Co-Authored-By: Wes Hayutin <weshayutin@gmail.com>

Change-Id: I7d056b208d5ac0639e3277f3f4ae453a9ee639e8
2018-02-12 02:31:17 +00:00
Juan Antonio Osorio Robles af11585256 Add undercloud-install tag to novajoin preparation
It was untagged and not being run. Since it's part of the undercloud
installation, I added the relevant tag to it.

Change-Id: Ia480ce15fcd12a904b036e94bc2776614bbdb065
2018-01-03 15:50:17 +02:00
Martin André 5c966baa20 Do not assume default values for undercloud.conf
Stop making assumption about the default values from undercloud.conf.
These can change and break quickstart. This also means the generated
undercloud.conf has broken documentation the day a default value
changes, making it harder to debug failures.

Be more specific and set defaults values for boolean variables.

Change-Id: I9c530e2234e627e9795347d2e5208e8dc965bb45
2017-12-04 14:53:31 +01:00
Michael Chapman 4ab61205d5 Remove enable_vbmc from tripleo-ui check
Currently it is not possible to disable the tripleo ui
using its flag, since it will be enabled automatically
when the vbmc is used.

Change-Id: I0c09f2defa12605e01a64cf72f3e4fa39464af93
2017-06-29 17:40:15 -04:00
Wes Hayutin 8c31b99176 add steps to enable tripleo_ui
The tripleo-ui requires that the javascript configuration
be updated for virt deployments using a ssl tunnel to connect.
It uses by default non-ssl ports and virthost address as the ip.

Depends-On: Id53c5bd7f199c64bc9cb37df7e63f27c4673f415
Change-Id: Ie9d3e7d12c420b9b65c25692435c0457f1233a27
2017-06-15 18:23:02 +00:00
Juan Antonio Osorio Robles b7150ab913 Add undercloud user to docker group
This enables developers to interface easier with docker without having
to use sudo all the time.

Change-Id: I343d9579a5f0f5a9c31f341cfcb93b4ddc533a4d
2017-03-14 16:38:30 +00:00
Gabriele Cerami 4d50e6e36e extras-common: add undercloud_network_cidr as common var
add role var undercloud_network_cidr from undercloud-deploy so it can be
reused by validate-undercloud role for the sanity check script
Removed unnecessary default from other roles.

Change-Id: Id46d7a9e3fdc2028cf345564311c04af323b289f
2017-03-13 17:13:21 +01:00
Juan Antonio Osorio Robles 51237a94b5 Enable novajoin/TLS-everywhere deployment
If a conditional is set, this adds the novajoin and TLS-everywhere
bits needed in the deployment:

* It sets up novajoin in the undercloud and runs the necessary
  pre-configuration bits to work with FreeIPA.

* Modifies the overcloud-full image to use the latest working version of
  cloud-init.

* Adds the necessary environment files to the overcloud deploy command.

Change-Id: I2b8c71a88bf747d57a8fec344313603d9bf4aeb9
2017-02-20 11:28:06 +02:00
Wes Hayutin 62cd851bec move the undercloud deploy role from quickstart to quickstart-extras
In an effort to make more of the tripleo deployment ci more composable
it has been discussed to break out the undercloud deployment into it's
own role.  There are examples where additional configuration is needed
prior to the undercloud installation such as dpdk, and installing in
other ci environments.

Change-Id: I87fec6435f84490b9f9de8d2cc0dd9f186409d4d
2016-12-19 10:37:22 -05:00