Commit Graph

99 Commits

Author SHA1 Message Date
Ghanshyam Mann 120bd48006 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: I2fcd63ee46cf8e3651fb997e414a1a556f2b2455
2024-02-24 11:43:05 -08:00
Takashi Kajinami b3718ffba1 Remove unused ironic-inspector-client
The ironic-inspector-client library was used by a few mistral actions
but these were all removed.

Change-Id: I11511db1097b7a9eee6373d0cb15fcc7835d4783
2022-07-22 02:22:04 +09:00
Takashi Kajinami 2ed0a337a9 Remove unused oslo.rootwrap
This library was added by [1] to fix a problem with the mistral action
but we already removed Mistral from our software stack.

[1] 2e54cff0db

Related-Bug: #1826281
Change-Id: I610cbae7dabaedb1129202a178cf4f1ca5cadb1e
2022-07-15 00:25:06 +09:00
Takashi Kajinami 468a448c7a Move actual requirements from test-requirements.txt
PyYAML is used by the actual code, not only by test code so should be
listed in the requirements, not in test requirements.

Change-Id: I9fb221f283d40b00b8a13e9635b204d0b60ef34e
2022-05-27 12:58:17 +09:00
Takashi Kajinami 486deab3f2 Remove unused libraries from requirements
- python-glanceclient and python-novaclinent are no longer used since
  Glance and Nova were removed from Undercloud.

- python-keystoneclient and keystoneauth were used by Mistral actions
  which were all replaced by tripleo-ansible.

- netifaces, netaddr and jsonschema were used by baremetal actions in
  Mistral, which were replaced by tripleo-ansible.

Change-Id: Id85fbb39453f7d601258ed0b5ca60489bd264ec6
2022-05-27 12:58:17 +09:00
Takashi Kajinami e939a0e481 Remove additional patching to use gitpython with eventlet
... because eventlet is no longer involved since Mistral was removed.

Depends-on: https://review.opendev.org/821784
Change-Id: I5312652b5229d66fa4a5981c590a2aecb79dd14c
2021-12-15 09:38:11 +09:00
Brendan Shephard d86b063547 Remove six library
The six library was used to bridge the py2 > py3
gap. This library is longer required on branches
that do not support Python2.

Change-Id: Ibebe1ac80342774d47f80f6f5855cd4d064742b6
2021-10-06 08:53:45 +00:00
Alex Schultz 0c8a529489 Remove zaqar
Removal of zaqar container build items.

Change-Id: I4872a188f800af3b875d065d829b4be15d3c60df
Depends-On: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/809463/
2021-09-16 15:16:47 -06:00
Ade Lee 6d6a2fd612 Remove paramiko for FIPS
paramiko is not approved for FIPS, but we only use it here to
generate ssh keys.  We can do the same with OpenSSL and cryptography.
Doing this allows a FIPS enrollment on the undercloud to continue.

Change-Id: Iaee1b95f1537b937591e269f9bdb22a955a854be
2021-08-03 16:21:59 -04:00
ramishra 35c509602e Remove all mistral actions from tripleo-common
This removes dependency with msitral-lib.

Depends-On: https://review.opendev.org/c/openstack/tripleo-ansible/+/778018
Depends-On: https://review.opendev.org/c/openstack/python-tripleoclient/+/777950
Change-Id: I3c94845b2aa484ac7b4e8f444509ceac40fa289d
2021-03-01 21:27:08 +05:30
Rafael Folco 37793c3c87 Fix lower-constraints errors
Change requirements to make it py3.8 compatible.

https://bugs.launchpad.net/nova/+bug/1886298

Change-Id: Ie71a572275e005350701bc35e40114e8102f460c
Partial-Bug: #1886298
2020-09-10 10:46:24 -03:00
wu.chunyang 44af8bc9eb 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: I3b80e94e22e64d5b7d98be7a3e3c0979785d04f4
2020-07-22 19:09:08 +08:00
Hervé Beraud 9caed1b8be Add support for python 3.8
Introduce support of python 3.8 [1] and move tox and jobs to py38.

jsonschema 3.2.0 [2] support python 3.8

[1] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria
[2] https://github.com/Julian/jsonschema/pull/627

Change-Id: I34a47d6fe90da33215c4551a868644e5d6c8906c
2020-05-26 14:13:00 +02:00
Andreas Jaeger 3cfa46f1d2 Cleanup py27 support
This repo is now testing only with Python 3, so let's 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
- Update classifiers
- Update requirements, no need for python_version anymore
- Use newer openstackdocstheme version

Change-Id: Ic7696a6ba0fc213b59edf87cf9ef2a804ebca94f
2020-04-13 20:01:42 +02:00
Wes Hayutin a05d173fee pin ironicclient under 4.0.0 for py27
Depends-On: https://review.opendev.org/#/c/707062
Depends-On: https://review.opendev.org/707204

Closes-Bug: #1862674
Change-Id: I50b9acad43095577dafc665f80300f3a7dc38ee7
2020-02-12 11:13:20 +05:30
Dmitry Tantsur 9b40aa8a4c nova-less-deploy: update to metalsmith 0.13
InstanceConfig was deprecated in favour of GenericConfig and CloudInitConfig
to make it clear which format is used. We use the latter.

Implements: blueprint nova-less-deploy
Change-Id: I8b6671d9b0813e04fbe5fb3c9a3009117b82064c
2019-07-26 13:58:52 +02:00
Dmitry Tantsur 928c6771cc Update GitPython requirement from global-requirements
Change-Id: Ib838ca57c2501bdb552b8df0dd663e61307117c0
2019-07-26 13:58:07 +02:00
Michele Baldessari 2e54cff0db Use oslo_rootwrap subprocess module in order to gain proper eventlet awareness
Via 31cfdbd407
oslo.rootwrap gained support eventlet when using subprocess. By moving
to oslo_rootwrap.subprocess we make sure that with python3 the
subprocess calls use eventlet.green.subprocess if eventlet is used.
This worked on python2 because (from above commit):
"""
On Python 2, it "works" to use directly subprocess: subprocess.Popen
calls os.pipe() and os.fdopen(fd) which are both monkey-patched. On
Python 3, it doesn't work because subprocess uses os.pipe() and
io.open(fd), and the io module is *not* monkey-patched at all.
"""

By applying this change what happens is that the heartbeat thread is
able to be scheduled every 15seconds by default. Without this patch
what we have been observing with python3 is that while running ansible
mistral would constantly log error messages like the following:
2019-05-02 19:14:36.702 8 WARNING oslo.messaging._drivers.impl_rabbit [-] Unexpected error during heartbeart thread processing, retrying...: amqp.exceptions.ConnectionForced: Too many heartbeats missed

With this change we could not reproduce this issue during a deployment
and no missed heartbeat messages were observed during the deploy.

Co-Authored-By: Damien Ciabrini <dciabrin@redhat.com>
Co-Authored-By: Hervé Beraud <hberaud@redhat.com>

Closes-Bug: #1826281

Change-Id: Id22b1465d6d2424d90781983b970aba4545feb8a
2019-05-03 18:13:53 +00:00
Tony Breeds 876ef274f3 Uncap jsonschema
We have jsonschema capped at a fairly old version. Other than some
specific releases, it looks like keeping it below 3.0 was added in
I943fd68b9fab3bce1764305a5058df5339470757 without really any explanation
why.

In order to update to a 3.x release we need to:
1. Remove the cap from global-requirements.txt (see Depends-On), leaving
   upper-constraints.txt at a 2.x release
2. Remove the cap from all consumers (this change)
3. Release a new version of consumers that are published to pypi
4. Update upper-constraints.txt with those new releases
5. Update jsonschema in upper-constraints.txt to a 3.X release
   (See: https://review.openstack.org/649789)
6. Test consumers with the change from 5.
7. [Optional] fix issues in consumers that arise from 6.
8. Merge the change from 5.

Change-Id: Ic782c3085fb85634d2ae2b7d5538ae2948d2f9b8
Co-Authored-by: Sean McGinnis <sean.mcginnis@gmail.com>
Depends-On: https://review.openstack.org/649669
2019-04-04 14:01:34 +11:00
Doug Hellmann edf9b852d7 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.

Also adjusted a warning check in the utils.config test due to python3

Also updated requests to 2.18.0 so that the python uploader can use
requests as a context manager which was not added until v2.18.0. See
4847f5b8cd

Change-Id: I78bffdf69113988192afc466d4ce04b3b97e796a
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
2019-03-26 09:52:39 -06:00
apetrich 1af49b1966 Fix interaction between gitpython and eventlet
The mistral executor uses eventlet patching, but gitpython's subprocess
module is not being properly patched. Patching it manually fix the issues

Change-Id: I49d041b48d9939844bcc3a571819887772caf491
Closes-bug: #1818757
2019-03-07 15:37:52 +01:00
Steve Baker 8b4dbd7c2e Expunge the docker uploader
The docker based image uploader can no longer be used because the
docker service has been removed from the undercloud.

This change removes the DockerImageUploader class, relieving us of the
burden of maintaining unused code.

Change-Id: I7be5915a0aee561250c16487c1fee7afd28b9036
Blueprint: podman-support
2019-02-27 10:02:16 +13:00
Dmitry Tantsur 0f1102b3fd nova-less-deploy: updates for metalsmith >= 0.9.0
* Replace image detection with the call from metalsmith
* Validate image parameters early to detect trivial errors
* Add support for specifying subnets in NICs
* Use more specific exceptions when checking for existing instances
* Drop compatibility code for nodes in < 0.9.0

Change-Id: I719082c0845b517172c309838e37a5e38a04c04c
Implements: blueprint nova-less-deploy
2019-01-28 11:51:40 +01:00
Dmitry Tantsur 1ca666b2df nova-less-deploy: deploy_instances and undeploy_instances workflows
This change adds a workflow to provision bare metal machines using
Ironic API without Nova (through the metalsmith library for convenience).
A simple workflow to unprovision nodes is included as well.

This is the first step towards supporting deployment without Nova.

Change-Id: I7c7aeb83691865d37ebed4d6cad7524339fdb799
Implements: blueprint nova-less-deploy
2019-01-16 12:41:42 +01:00
James Slagle 26b4459b06 Revert "TLS by default for the overcloud"
This is needed to land I2c5b511df50f29c63aa613899c2bebb506360bf4,
see the reasoning on that patch.

This reverts commit 6fa7a0974a.

Partial-Bug: #1771627
Change-Id: Ia86842b0b1f42512f25390d6bdb695e0f8133c6d
2018-05-16 17:45:02 -04:00
Juan Antonio Osorio Robles 6fa7a0974a TLS by default for the overcloud
This gets a TLS certificate for the overcloud when necessary:

* If no incoming cert/key is provided and we don't expect the
  overcloud's certmonger instances to request the certificates,
  we request one to the undercloud's certmonger local CA.

* If a certificate was provided, we verify if it's user-provided
  or if it was autogenerated.

  - If it was user-provided we pass through that certificate

  - If it was autogenerated, we request or resubmit the request
    if it's needed.

* We also accept the EnableTLS flag, which the deployer can
  explicitly turn off if they decide not to use TLS.

Depends-On: Ic70dd323b33596eaa3fc18bdc69a7c011ccd7fa1
Change-Id: I3d3cad0eb1396e7bee146794b29badad302efdf3
2018-05-08 10:45:29 +00:00
Steve Baker f76ae7f854 Switch to concurrent.futures for container prepare/upload
Using process based concurrency doesn't work with mistral's threading
model. Switching to concurrent.futures allows the threading executor
to be used instead.

Change-Id: I2c7a1a7cb8d8e195e041b5b185c1ceba3a6d0e86
2018-04-05 21:04:06 +00:00
OpenStack Proposal Bot d6d694ad61 Updated from global requirements
Change-Id: Id568703d7627c3a308b8556dfebebdbfde2d92e8
2018-03-26 08:29:47 +00:00
OpenStack Proposal Bot a2f465f0ab Updated from global requirements
Change-Id: Ibc7413bf7c1478aaea0dda3fbd05ff749992a1e9
2018-03-15 09:37:43 +00:00
OpenStack Proposal Bot 21c5de2262 Updated from global requirements
Change-Id: I604f3288d28526f0de17e04c40936d757cf6d335
2018-03-06 13:13:48 +00:00
Steve Baker 13678cb045 Use tenacity for image upload retries
This change replaces the custom image pull/push retry loop with a
tenacity annotation.

The docker client uses requests, so this fixes an issue where requests
can raise a vendored urllib3 exception if the registry doesn't respond
at all. This will now be caught by tenacity and treated as a retry
condition.

Change-Id: Ifa08f21ccbc1bf04732462d28449546cf146c53a
Closes-Bug: #1749663
2018-03-01 10:50:40 +00:00
OpenStack Proposal Bot f485b13f0b Updated from global requirements
Change-Id: Ie4d33437eddf77b762e5b8a7ec42f841fcebf8d1
2018-02-17 10:27:46 +00:00
Julie Pichon 4625b93066 Fix baremetal introspection client creation
We were using deprecated arguments to create the client, which have
been removed in I9df8296ddc1b41cde22ff8b0f26d73c4408741ce.

Also make explicit the keystoneauth1 requirement - the library is
already used in other parts of the code but wasn't explicitly
referenced.

Change-Id: I2314020a6414f90d964f7be474668658913e61b9
Closes-Bug: #1747057
2018-02-07 10:56:16 +00:00
James Slagle 1c760d570a Add keystoneclient to requirements.txt
At some point on 2018-02-02, all tripleo-common tox python jobs started
failing with:

2018-02-02 15:05:50.952672 | ubuntu-xenial | ImportError: No module
named keystoneclient

We did't have python-keystoneclient in requirements.txt, though we
probably should. We must have been implicitly getting it from somewhere
else previously and something must have changed to where it's now
explicitly required.

Change-Id: I272292f2f411d1195e5986f0f6a24b379fbf2b6e
Closes-Bug: #1747160
2018-02-03 11:18:12 -05:00
Zuul 3757a44a30 Merge "Remove unused gitdb dependency" 2018-01-30 20:15:18 +00:00
OpenStack Proposal Bot 6dacac9e5e Updated from global requirements
Change-Id: I3fd92c8c4440523b868de5dde4d681f0f424e405
2018-01-29 00:41:14 +00:00
Dirk Mueller ea885042bb Remove unused gitdb dependency
Newer versions of gitdb are conflicting with the dependencies of newer
versions of GitPython, so they can not be properly coinstalled

This dep was introduced in If069ebb33ee4cb7f81308c68849ba9f969752d25
but not actually used back then. drop it.

Change-Id: Idc30b635dcba04aec47a3537cb9cc490eb255da9
2018-01-27 12:28:04 +01:00
OpenStack Proposal Bot eb7dc11fd2 Updated from global requirements
Change-Id: Icf408bd96d29e42eaced1491dd178507eeb8ec56
2018-01-16 12:55:56 +00:00
OpenStack Proposal Bot 5e426c20ee Updated from global requirements
Change-Id: I63db9899c6269100041b51e020a240660b3c3b12
2018-01-16 04:37:12 +00:00
OpenStack Proposal Bot 1123709e8b Updated from global requirements
Change-Id: Ib3aa1c96e07b105088f9b1f67acff98e7dbbd014
2017-12-19 01:51:18 +00:00
OpenStack Proposal Bot 6981a2aaea Updated from global requirements
Change-Id: I501e2dd12ed156a0bc09c1393a49757ed27a2f22
2017-11-29 09:24:51 +00:00
Lukas Bezdicka e862155531 Add zaqarclient to TripleOAction
In order to allow sending messages to zaqar queue we need to
provide Zaqar client in TripleOAction.

Change-Id: I2378e3626a415fd0cdf085735a4ed890e6aa61f4
2017-11-17 10:37:20 +00:00
OpenStack Proposal Bot 787cfa0481 Updated from global requirements
Change-Id: I295dcb88fc76dbe1a103eb510858e610faf8f156
2017-11-12 04:03:35 +00:00
OpenStack Proposal Bot b46a35a40e Updated from global requirements
Change-Id: Ibdd8a4f86e6437e6845853f58dfb389a32c85858
2017-09-12 17:45:34 +00:00
OpenStack Proposal Bot 67c8d99d1c Updated from global requirements
Change-Id: Ic1e67f37eadba32455e345f355f0dda370c04960
2017-08-26 11:44:52 +00:00
Dmitry Tantsur be69f375b4 Add workflow for IPMI nodes discovery
New workflow discover_nodes works by trying to log into given IP addresses
with given set of credentials.

New workflow discover_and_enroll_nodes uses results of the previous workflow
to create new nodes and optionally move them to manageable.

Implements blueprint node-discovery-by-range

Change-Id: I158f0b8f5251d9d94e7e57b3fe24362316d26599
2017-07-19 09:38:48 +02:00
OpenStack Proposal Bot 05562bbd1c Updated from global requirements
Change-Id: I02f7d95d3cc1a80ec7c807928a9fa75e93b4206b
2017-07-14 05:10:17 +00:00
Jenkins 27c2bec74e Merge "Updated from global requirements" 2017-07-05 19:43:40 +00:00
Jenkins 732cad3be5 Merge "Upgrade from docker-py to docker" 2017-07-05 19:43:10 +00:00
OpenStack Proposal Bot 63b21c666c Updated from global requirements
Change-Id: I2a4e6b30f7f621fa996e26ad72ef684900303a5a
2017-07-04 19:15:54 +00:00