Commit Graph

16 Commits

Author SHA1 Message Date
Lucian Petrut 64ff00727e Drop lower constraints
Maintaining project lower constraints has become an increasingly
difficult task, especially considering the new pip resolver.

That being considered, the TC has stated that it's up to project
maintainers to decide if they want to continue using lower constraints.
The Cinder project has already dropped the lower constraints job [2].

In order to reduce the burden, we dropped indirect dependencies from
the lower constraints file. This is now causing the lower constraints
job to time out:

   This is taking longer than usual. You might need to provide the
   dependency resolver with stricter constraints to reduce runtime.
   See https://pip.pypa.io/warnings/backtracking for guidance.
   If you want to abort this run, press Ctrl + C.

Since we don't really want to go back to maintaining a huge list of
lower constraints, it's time for us to remove the job.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-March/021204.html
[2] https://review.opendev.org/c/openstack/cinder/+/789077

Change-Id: I08de76202f9c37332e599b2becd21ca5ca87df19
2022-01-27 10:45:16 +02:00
Lucian Petrut b85e6a2c90 Bump requirements
The lower constraints job is failing as Nova has bumped the
oslo.config minimum requirement. We'll do the same.

The nova conf fixture has been moved so we'll have to pick that up
as well.

Change-Id: I1907982ca8ffc81b2529af22a9a6fd4a55aecafb
2021-05-25 11:28:41 +03:00
Lucian Petrut 8e85d7004b Bump minimum requirements to match Nova
Nova bumped a few minimum requirements, which is why our lower
constraints job is currently failing.

We'll have to pick up those changes as well.

Change-Id: Icb31aff7309c008c141fea3a0de5745cd96bd8bc
2021-04-02 11:53:19 +03:00
Lucian Petrut 07c0f8b3c0 Bump eventlet requirement
Nova has raised the eventlet minimum requirement to 0.26.1, which
breaks our lower constraints job.

We're going to use the same constraint.

Change-Id: I9e5f202bc66eae39dcb7c6b3247012b584a8a618
2021-02-05 09:32:25 +02:00
Lucian Petrut f32ea3f0bd Use a separate doc requirements file
As per the OpenStack TC decision [1], the doc requirements should
be listed separately.

This also simplifies the requirements handling. At them moment,
we're facing some issues due to conflicting doc related lower
constraints.

While at it, we're bumping the lower constraints based on Nova's
requirements, dropping indirect dependencies which are very difficult
to maintain.

[1] https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ifa2d545d1be6615bca1a85c471322c7e9a3da3b3
2020-12-10 10:45:02 +02:00
Claudiu Belu 32a46037e9 hyperv: Configures chassis asset tags for VMs.
The Msvm_VirtualSystemSettingData object associated with a VM has a
field named "ChassisAssetTag". The value set in this field is reflected
in Linux VMs in /sys/class/dmi/id/chassis-asset-tag. This value is
checked by cloud-init in order to figure out if it is currently running
inside an OpenStack VM.

The verification above has been introduced in cloud-init [1] in order to
avoid costly metadata probes that aren't needed in non-OpenStack VMs.

Setting the ChassisAssetTag will allow us to pass these checks. The
value we are setting is similar to what libvirt is setting in the
LibvirtConfigGuestSysinfo.

[1] 1efa8a0a03

Partially-Fixes: #1895976

Change-Id: Ib9f605f68c79ff41d3959c7a1662a9e644fde946
Depends-On: 33e6c07dab4b46442bf0fbb838d59516112899b9
2020-10-26 13:20:06 +02:00
Lucian Petrut 359fe0bc3b Pick up 'unrescue' driver method signature change
A recent patch[1] updated the 'unrescue' signature, adding a context
and dropping the 'network_info' parameter.

We'll need to pick up this change.

At the same time, we're re-adding the mock dependency. We're re-using
some of Nova's fixtures and other test helpers, which still use the
3rd party mock lib: [2].

[1] Id5e4b0f26d5a2a93db6a7d96555a2cff29d9a2cfre
[2] http://paste.openstack.org/raw/796530/

Change-Id: I0d46c4df4982e62ff81285a141c8b71bf06bcf15
2020-08-03 11:57:46 +03:00
Andreas Jaeger 47fa4f9e41 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.

Disable openstackdocs_auto_name to use 'project' variable as name.

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.

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.

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

Change-Id: I614c930776145ab69a1b08d8affce43cae01f092
2020-06-01 16:21:12 +02:00
Sean McGinnis b64cf50d07
Remove monotonic usage
The monotonic package was needed for monotonic time operations when
running under Python runtimes older than 3.3. Since we now only support
versions higher than this, this third party package requirement can now
be removed.

Change-Id: I0cb0339c5e681b63783828cfde9921dfd6727f50
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-04 17:16:38 -05:00
Zuul 375a1632f2 Merge "Cleanup py27 support" 2020-04-13 14:21:34 +00:00
Andreas Jaeger f235cbca64 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
- Update classifiers
- Update requirements, no need for python_version anymore
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Move basepython into testenv

Change-Id: I96fe17a0a01b8bcca4dad16889def88305857d37
2020-04-13 13:41:13 +02:00
Zuul f327d0549c Merge "Update hacking for Python3" 2020-04-13 10:32:19 +00:00
Sean McGinnis 0d329025c2 Use unittest.mock instead of third party mock
We can now use the standard library mock library instead of the third
party one previously needed for py27 compatibility.

Change-Id: I51f48421ac90209302de43b70ef9176195be0743
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-13 12:47:26 +03:00
Andreas Jaeger 176559452e Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Remove local vi check, hacking test H106 covers this now.

Remove hacking and friends from lower-constraints, they are not needed
to be installed at run-time.

Change-Id: Id87f8b2d81583a7a67ee1a81c78d3ae40c579c70
2020-04-02 09:24:00 +00:00
Lucian Petrut 91476d7417 Add distributed lock helpers
This change imports the "coordination" module, which is shared by
Cinder, Manila and a few other projects. At some point, it should
probably be submitted to oslo.

It uses tooz, an OpenStack library, in order to provide distributed
locks. Tooz supports various backends, such as etcd, mysql, file
locks, redis, zookeeper, etc.

The lock backend can be selected using the CONF.coordination.backend_url
config option.

A subsequent change will use distributed locks for the cluster driver,
preventing race conditions when handling failovers.

Related-Bug: #1796673

Change-Id: I5a7d79fe1cf6ce13ff9d20d7618886add6221300
2018-10-29 13:55:00 +02:00
Doug Hellmann 74ea9d7166 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.

Change-Id: I90c548df545990a4575628d918f2bce72071c9ca
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-08-02 07:31:06 -07:00