Commit Graph

6 Commits

Author SHA1 Message Date
Takashi Kajinami a40c18d64e Bump hacking
hacking 3.0.x is too old. This also removes the note about old behavior
of pip which has been changed in recent versions.

Change-Id: I5a8dc51a94c8284c9c869728981dcb19de63d941
2024-01-17 01:41:54 +09:00
songwenping 1f2fdddd9c Remove usage of six
Remove six-library Replace the following items with Python 3 style code.
- six.raise_from
- six.StringIO
- six.moves
- requirement.txt

Change-Id: If3d810a1dbe7d506aa55cc07717babec8393b8c5
2021-10-25 07:26:36 +00:00
melanie witt f08cb39813 Add --aggregate option to 'resource provider inventory set'
This adds a new '--aggregate' option which can set resource provider
inventory for all resource providers that are members of the specified
aggregate.

The main motivation for this option is to give operators a tool to
make setting overcommit allocation ratios on a per-aggregate basis
easier, after the functionality from the old
Aggregate[Core|Ram|Disk]Filter scheduler filters was removed back in
Ocata [1].

[1]
http://lists.openstack.org/pipermail/openstack-dev/2018-January/126283.html

Story: 2006318
Task: 36189

Change-Id: Ib0cbb58d0adbbcfe83ee48d2ff6c9af1a516a7ae
2019-08-28 21:03:39 +00:00
Chris Dent fc563d37bc Update tox and tests to work with modern setups
While trying to make some changes I discovered that the tox
configuration for osc-placement was rather out of date and
functional tests were not working for python3. With this
change we bring tox.ini into a style that is more in keeping
with modern standards, use stestr, and update some functional
tests so they work with python3.

The functional tests changes are either:

* to fix the decoding of response
* to adapt argparse error response checking between python
  version.

These changes cascade some required change into how the gate-side
functional testing is performed. We make it explicit that in the
python2 job, the 'functional' tox job is run. When the python3
job is run, 'functional-py3' is run. Also stestr replaces
testr in the post-test hook.

When the functional-py3 test had been run in the past it
was actually running a python2 osc-placement against a
python3 devstack. We change that here to be python3 and
python3. Once that was happening, additional failures
were revealed, now fixed.

One particular issue was that while the json module
for python 3.6 and greater will decode strings or bytes,
the version of 3.5 will only do strings. We switch
to using simplejson throughout which smooths things over.
This is added as a new requirement but it isn't really:
simplejson is required by osc-lib.

Finally, some requirements need to be tuned to pass the
gate requirements job.

Change-Id: I999a3103dd85c0a437785766eef533875fca31fc
2019-03-01 04:12:18 +00:00
Matt Riedemann 1fac79d183 Add missing runtime requirements
keystoneauth1 and six are both used in osc_placement.http.

Change-Id: I65b9e9b49f75fa62975d02c1503b7d4f96669939
2018-01-23 10:49:36 -05:00
Roman Podoliaka 2c538f3ea0 Initial commit
- import coockiecutter template
- set up basic testing
- implement interface of an OSC plugin
2017-03-22 11:58:28 +02:00