Commit Graph

25 Commits

Author SHA1 Message Date
Mathieu Bultel
6dee93a9e7 Implement validations-libs framework for ALL validator commands
Implement All command with validations libs framework

Change-Id: I0443da140020540917396cdfe00da8ac29d20297
2020-06-09 19:13:47 +02:00
Zuul
f66b42757b Merge "Switch to newer openstackdocstheme and reno versions" 2020-06-06 00:33:59 +00:00
Emilien Macchi
185d9f8954 Bump tripleo-common
For the Container Image Build command, we need new functionalities from
the BuildahBuilder that were released after 12.4.0 tag.

This patch makes sure tripleo-common >= 12.4.0 is pulled in the Python
jobs.

Change-Id: I7651144cdb7142647b1c6303c4af4ba2ca2e2c58
2020-05-27 13:49:12 -04:00
Andreas Jaeger
f6c366ebaa Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I4af25bbc8d990aa5e70ee63ba7477d2964872b3f
2020-05-22 17:23:28 +00:00
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
Rabi Mishra
6c626e68da Bump python-openstackclient
With https://review.opendev.org/#/c/716277/, we've started using
osc 5.2.0 which is not backward compatible. Let's bump the
requirement.

Change-Id: Ic135ea0296a139496c9f699f5dbc5c8d3d1f0777
2020-04-02 11:48:47 +05:30
Rabi Mishra
14fb60ad68 Use tripleo_common library directly for package_update
Also bumps tripleo-common requirements/lower-constraints.

Change-Id: Ib68c6b23f41fa848d82d30dc1d04201c76b2dc97
2020-03-25 10:13:42 +05:30
Steve Baker
c88da0a632 Refactor image upload command
In preparation for supporting deploys on a glance-less undercloud,
this change refactors the upload command to move all glance
interacting logic into a glance adapter class. This will allow the
adapter abstraction to be used for an 'upload' adapter which only
copies files on the local disk.

This change also does the following:
- moves repeated update-or-upload logic to an adapter method, reducing
  the complexity of take_action
- cleans up the mock usage to consistently use the
  patch decorator - the current approach may be causing unit test
  failures in some environments
- removes the GlanceV1 implementation, since the V1 API was removed in
  Newton(!) this support is just a maintenance burden

Change-Id: Ie28dabaf07ed36adb3e8f07ca8c141f93a9d79cc
Blueprint: nova-less-deploy
2020-01-22 13:08:20 +13:00
Kevin Carter
bcc9c66747
Replace ansible shell with python runner
This change replaces all of the ansible shell commands with the
python library, ansible-runner. This library is supported by
upstream ansible, is approved by the openstack foundation, is
supported in global requirements, and provides a better, more
programatic interface into running ansible playbooks.

All tests that interacted with the old shell commands have been
updated to now test using the library.

Change-Id: I8db50da826e2fbc074f4e7986d6fd00f6d488648
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2019-12-17 07:35:35 -06:00
Alex Schultz
3ca472c24f Switch to use process executor
We switched the tripleo-container-image-prepare script in
tripleo-common, but a user will likely run the 'openstack tripleo
container image prepare' command. Currently it uses the default which is
the threading executor.

Poke tripleo common lower/requirements as well.

Change-Id: Ifc5b46633a1f9fc9378eaa17170f6664d566c3c4
Related-Bug: #1844446
2019-11-21 09:52:08 +01:00
Gael Chamoulaud
fdf79cf4f3 Run Validations with ThreadPoolExecutor
The validations are sequentially executed through ansible-playbook and
could take some time to complete. This patch adds support of running all
the validations in parallel through a ThreadPoolExecutor in order to
save processing time.

Without this patch, it takes almost ~5min to run all the validations but
only ~1min10 with the ThreadPoolExecutor.

- Add --worker/-w argument to give the maximum number of threads that
  can be used to execute the given validations
- Python 2.7: use futures backport instead, ThreadPoolExecutor is default
- Use six in tripleo_validator.py for python 3 compatibility

Change-Id: Ia805a556bc26700a3eb520ed72e90b37546901b8
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2019-08-08 16:31:30 +02:00
apetrich
c880c8fde8 Bump keystone middleware version to 4.18
keystone_authtoken/auth_uri is deprecated. Use www_authenticate_uri
instead.

This is related to this bug https://bugs.launchpad.net/mistral/+bug/1788174

keystonemiddleware in lower constraints should be increased
because www_authenticate_uri was introduced in keystonemiddleware 4.18.0.

Change-Id: I427887467678c11c74382b6805e32d1455641294
2019-06-20 19:23:23 +00:00
Dan Prince
50744f7c22 Wire in convert_docker_params
This converts Docker*Image params into
Container*Image varients when using tripleo deploy.

In the future we can use it for a few other ad-hoc
Docker* variable substitutions as well to make things
more generic.

Change-Id: Ib1dc0c08ce7971a03639acc42b1e738d93a52f98
2019-06-12 15:14:44 +00:00
Emilien Macchi
6aa1902322 doc/requirements: fix sphinx requirement lines
This change is useful to match OpenStack general requirements.

Change-Id: I1e39fa5c220390fcd658147d9f47ae2196eefe56
2019-06-12 10:02:57 -04:00
Quique Llorente
c0747c0a0b Use "push" flag for buildah
The push=False flag with use with kolla-build.conf is not working if we
use buildah, clear example is the
tripleo-build-containers-centos-7-buildah job, it's suppose to work like
docker one but it's pushing too.

Closes-Bug: #1822752

Change-Id: I01788b3c11ac701b2cf8c151f95ccad7046532de
2019-04-05 13:34:20 +02:00
Kamil Sambor
1a09cf7c78 Fix tests for container image prepare
We change behaviour of what is returned by
set_neutron_driver for default network.
So we also need to change this test in tripleoclient

Depends-On: https://review.openstack.org/#/c/643365/
Change-Id: Iea3d6c7591b29f7474be97c939be60f368a04133
Closes-Bug: #1820065
2019-03-15 20:00:34 +00:00
Emilien Macchi
48525b19bc container image build: introduce --use-buildah
Support Buildah instead of Docker by calling:
  $ openstack container image build --use-buildah

And it will build TripleO containers with Buildah and not Docker.

Co-Authored-By: Alex Schultz <aschultz@redhat.com>
Change-Id: I7608136cb213bdca81348a0c3c751b488f48d712
2019-02-25 19:35:10 -05:00
Zuul
866171507a Merge "Switch to stestr" 2019-01-09 17:08:59 +00:00
Steve Baker
5ac404e53e Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I11f742b525d8d7328a9d46f0bd46da112e27ad82
2019-01-04 17:31:21 +00:00
Alex Schultz
678039164d Add excludes to container image build
Sometimes it would be beneficial to not build a specific container that
we might normally build. This change adds an --exclude option that can
be used to skip a container when passing it to kolla-build.

Change-Id: Ia871e0a46078a33270516f98ec0e08c1c3a0b43f
Depends-On: https://review.openstack.org/#/c/624530/
2019-01-03 11:45:32 -07:00
Carlos Camacho
d9616842a3 Updating python-tripleoclient requires to upgrade the containers images repo
Before executing the Undercloud upgrade we need to generate
the containers image like:

openstack overcloud container image prepare \
--namespace
.

In this case we need to have available
the correct images, otherwise we will miss
services and correct versions.

Change-Id: I108180643000ebf349648358c5ced48fce2b3dcb
Resolves: rhbz#1607421
2018-08-27 12:15:19 +02:00
Bogdan Dobrelya
6ef06fbb20 Report ansible errors in json file for standalone
Change-Id: Ia40e2144d23bfa239931180e424e142c0008e6d9
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2018-07-13 09:10:02 +03:00
Tony Breeds
9db478bf0f Introduce trivial helpers to manage image_files and names
This is a trivial re-factor but subsequent patches will increase
complexity of these helpers without clogging up callers with this logic.

Blueprint: multiarch-support
Change-Id: If9b115880e9755f2753a2e53a5869e12a17722a3
2018-07-10 11:16:27 +10:00
Alex Schultz
f6a9761985 Save temporary working data
This change adds a new install artifact that contains the heat temporary
directory, hieradata override file, and the ansible scripts used during
the undercloud install.

This includes a new lower limit of tripleo-common 9.0.1

Depends-On: Ie00f71b12f56262985c47810be0e80402e9e558e
Depends-On: I16f19a121212d989e1184103054eb890ec4b9297
Change-Id: I62d34ea7817d5e62613ddcdbb69f2a7463273ccf
Related-Bug: #1761810
2018-04-27 09:26:08 -06:00
Doug Hellmann
465ce03d8c add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Update the requirement for tripleo-common to reflect reality, and update
the constraint for tenaciy.

Change-Id: Ifdf8dd1c782d6d6ac575d6fd5364dcb083e805a9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-22 23:03:29 +00:00