Commit Graph

59 Commits

Author SHA1 Message Date
Takashi Natsume 9601b8942a Change minversion of tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace whitelist_externals with allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Change-Id: I663c05734cfc86a3c2bbc068c3990bab037bbe22
2022-06-24 13:47:41 +00:00
Zuul 71c89f0079 Merge "setup: Replace dashes with underscores, add links" 2022-06-24 10:02:29 +00:00
Zuul 182d8a378c Merge "setup: Update Python testing classifiers" 2022-06-24 10:02:05 +00:00
Zuul 561e2b6741 Merge "Update CI to use unversioned jobs template" 2022-06-24 10:00:25 +00:00
Zuul 5d0738254a Merge "Remove unnecessary unicode prefixes" 2022-04-20 16:05:00 +00:00
songwenping 6884124914 Update python testing classifier
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I3e476822b0e7b3b0197e1016e517cb87b09b8a62
2022-04-19 16:09:30 +08:00
songwenping 3778b1a608 Remove unnecessary unicode prefixes
Change-Id: Ic62cdbfb3f40ecaa2f20345951c8c34e20e6fd23
2022-04-19 16:01:38 +08:00
Stephen Finucane b3c227d1c7 setup: Replace dashes with underscores, add links
This resolves a warning in recent versions of pip.

Change-Id: I13314917c3f21d7752bdbc3cb869f3e022daa25f
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-03-22 10:16:55 +00:00
Stephen Finucane 2292607a2e setup: Update Python testing classifiers
Change-Id: I51b1cac726c5a84941fd8c25e3db533dc4c625c7
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-03-22 10:13:22 +00:00
Stephen Finucane 25f3936ebc Update CI to use unversioned jobs template
As part of the migration of this project to the independent release
model, we failed to notice that the job template was still tied to a
specific release. We've now introduced a new unversioned job template,
'openstack-python3-jobs' [1], which was can and should use. Do this.

Note that this is effectively a revert of change
Ic93f1c77230d859713ea9bc86065880efa91de7c which attempted to resolve the
same problem in a different way.

[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/

Change-Id: Ibf1238bc7c09b4ae9824be81a06f22decfb40873
Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-03-21 19:02:37 +00:00
Ghanshyam Mann e532b71313 Test all supported python version
As os-resource-classes is branchless which means same
master code is run on stable branches too, let's test it
with all the python version supported in those stable branches.

For that, we need to explicitly add the pythn jobs instead of using
the release specific job template. This way, we will explicitly know
that we are testing all supported python versions and do not remove the
older py version testing when the new release template bumps the min python
version like done in Yoga.

In Yoga testing, we are making py3.9 job to run as voting, so
adding py3.9 job as voting.

Change-Id: Ic93f1c77230d859713ea9bc86065880efa91de7c
2021-11-24 18:16:27 -06:00
Zuul 357bd404d8 Merge "Add packet rate related resource classes" 2021-07-14 09:34:18 +00:00
Balazs Gibizer 4324d42889 Add packet rate related resource classes
Added:
* NET_PACKET_RATE_KILOPACKET_PER_SEC
* NET_PACKET_RATE_EGR_KILOPACKET_PER_SEC
* NET_PACKET_RATE_IGR_KILOPACKET_PER_SEC

blueprint: qos-minimum-guaranteed-packet-rate
Change-Id: I1c035cf73cf73ad3fe0535d7ba5f1243fb816bea
2021-06-16 08:55:03 +02:00
Balazs Gibizer 62568cb662 [doc] Redirect people to #openstack-nova
Change-Id: Ic3b13194b0236e7c69dc81863a941b410a22facb
2021-05-31 19:20:13 +02:00
Balazs Gibizer 3aead5dd24 Update doc after freenode -> OFTC move
Change-Id: I784915cc4b709ae6b8bb3cb939f0b4e4a8181f7d
2021-05-31 14:22:38 +02:00
Zuul 145ed791d0 Merge "Fix hacking min version to 3.0.1" 2021-03-10 22:20:54 +00:00
Andreas Jaeger 364f85e71d 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.

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.

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: Iab669aaf569600fa87da8404663bbbbde0be14d6
2020-05-28 14:36:07 +02:00
Ghanshyam Mann 7779f6b02b Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Ib4a8e8e1525433f96a61344c4e1ecea6ef5314dc
2020-05-12 20:21:30 -05:00
Andreas Jaeger b91da1c60f 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
- Update requirements, no need for python_version anymore
- Use newer openstackdocstheme version
- Use hacking 3.0

Change-Id: Idefb3435a6b2b0765781fb6458c2def5a5e38a1d
2020-04-12 18:55:00 +02:00
Stephen Finucane 3dd3506d09 Switch to hacking 2.x
This supports Python 3 goodness. Some additional tox tweaks are included
while we're here.

Change-Id: Idba284defad550f7f90cccb4b288c00b77bc25de
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-02-27 15:58:46 +00:00
Stephen Finucane b99ab3336c setup.cfg: Configure 'python-requires'
This will prevent setuptools accidentally installing os-traits in a
Python 2 environment.

Change-Id: I9401637f4f3fe59abaaa05ecc72c6247826323ad
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-01-28 11:12:12 +00:00
Eric Fried 50b4160695 Stop testing with py2
We were pretty close on this already.

Change-Id: I8ad1f5bee7a532c3401fd59550cee7cdec67c8c3
2019-10-25 09:46:50 -05:00
pengyuesheng 19b341190b Switch to Ussuri jobs
Change-Id: I0844a801da359543af7a6933fc588da900955cae
2019-10-24 14:45:03 +08:00
pengyuesheng aaccfd9ce8 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I37a1af868c189c30cc9aa9ee4ca78786ad82d547
2019-10-12 15:14:06 +08:00
Zuul fcd1be5427 Merge "Build pdf docs" 2019-09-24 15:02:24 +00:00
Zuul 432563f6fe Merge "Update bug link in docs to point to storyboard" 2019-09-24 14:56:01 +00:00
pengyuesheng 718adcce28 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ic6c7403b18f9d7d69c41000146042f3d547c4df1
2019-09-23 16:25:56 +08:00
Chris Dent 65b74ff0f8 Build pdf docs
This follows the instructions [1] in an attempt to build pdf docs.

This creates workable results, but there is room for improvement.

[1] https://etherpad.openstack.org/p/train-pdf-support-goal

Change-Id: Icf7c22bf9d1de6fb2a74a756c370930d4c00b0b9
Story: 2006110
Task: 35395
2019-09-11 13:25:41 +00:00
Chris Dent 040e9c199d Update bug link in docs to point to storyboard
It had been nova, but we're past that now.

Change-Id: Ief1321f9ca7b03fd679cfdb567c2634389c26b43
2019-09-11 13:51:32 +01:00
Zuul 367698e489 Merge "Update api-ref link to canonical location" 2019-09-10 17:21:17 +00:00
Chris Dent d616e55bfa Update api-ref link to canonical location
The old location still works, but, as part of auditing package
READMEs, may as well.

Change-Id: Ia9e3d781d28917e33648951c5aecd8f9fe552f37
2019-09-10 13:05:51 +01:00
pengyuesheng 8866073511 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: I7410ad173a84b30562a1cdad743553dbd432f729
2019-08-02 10:58:53 +08:00
Andreas Jaeger 4387894de2 Update api-ref location
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that redirects will be set up as well but let's point now to the
new location.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

Change-Id: I9386b30e3bb2b5b734f5136374fdafbcc29f5137
2019-07-30 19:59:22 +02:00
Zuul 0dd643be96 Merge "Propose FPGA and PGPU resource classes" 2019-07-15 16:03:35 +00:00
Eric Fried c547287d75 Propose FPGA and PGPU resource classes
These will usually be inventoried by Cyborg.

Change-Id: Ic6603aa62ed17c3e916cf7c98016cabb3c01b1f6
blueprint: nova-cyborg-interaction
2019-07-11 20:56:08 +00:00
Corey Bryant 0fceade481 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Id58e363458d4b641d9674cdb43dec33d9df58aee
Story: #2005924
Task: #34236
2019-07-05 15:43:46 -04:00
Zuul cda818464e Merge "Dropping the py35 testing" 2019-05-20 11:40:07 +00:00
gujin 594330538b Replace git.openstack.org URLs with opendev.org URLs
1. Replace git.openstack.org URLs with opendev.org URLs
2. Remove the unnecessary "=" from some files

Change-Id: I86ad7f5d51d2b82b39aa8bebb34dfffc54df6939
2019-05-11 12:01:11 +08:00
Zuul e9798a1842 Merge "Add MEM_ENCRYPTION_CONTEXT resource class" 2019-05-08 14:47:36 +00:00
Zuul c80ef0fc47 Merge "Use py3 for all* tox targets" 2019-05-08 14:41:34 +00:00
Adam Spiers 3c8a66a1c9 Add MEM_ENCRYPTION_CONTEXT resource class
Add a resource class representing the number of guests a compute node
can host concurrently with memory encrypted at the hardware level.

Initially this is required because on AMD SEV-capable hardware, the
memory controller has a fixed number of slots for holding encryption
keys, one per guest.  Typical hardware only has 15 slots, thereby
limiting the number of SEV guests which can be run concurrently to 15.
nova needs to track how many slots are available and used in order to
avoid attempting to exceeding that limit in the hardware.

In the future support may be added for equivalent functionality from
other vendors, such as Intel MKTME; however it is not yet known
whether MKTME would have a similar limit.

See

  http://specs.openstack.org/openstack/nova-specs/specs/train/approved/amd-sev-libvirt-support.html

for more details, and

  http://eavesdrop.openstack.org/irclogs/%23openstack-nova/%23openstack-nova.2019-04-23.log.html#t2019-04-23T20:35:19
  https://review.opendev.org/#/c/641994/

for the bike-shedding discussion over the name.

Change-Id: I97a015d4070db947e4b96fb35021da01d61016cc
blueprint: amd-sev-libvirt-support
2019-05-08 14:26:40 +00:00
Adam Spiers 6a49f2a003 Add missing upper-constraints.txt to deps in docs testenv
The docs testenv in tox.ini was missing usage of upper-constraints.txt
from the global requirements project.  This meant that in some
circumstances, such as the openstack-tox-docs CI job, Python 2.7.x
would be used but Sphinx 2.x would get installed which is not
compatible with Python 2.7.x, causing tox failures like this:

  2019-05-08 12:45:48.060953 | TASK [tox : Run tox without tests]
  2019-05-08 12:45:48.759277 | ubuntu-bionic | docs create: /home/zuul/src/opendev.org/openstack/os-resource-classes/.tox/docs
  2019-05-08 12:45:52.775007 | ubuntu-bionic | docs installdeps: -r/home/zuul/src/opendev.org/openstack/os-resource-classes/doc/requirements.txt
  2019-05-08 12:45:53.838450 | ubuntu-bionic | ERROR: invocation failed (exit code 1), logfile: /home/zuul/src/opendev.org/openstack/os-resource-classes/.tox/docs/log/docs-1.log
  2019-05-08 12:45:53.838669 | ubuntu-bionic | ================================== log start ===================================
  2019-05-08 12:45:53.838995 | ubuntu-bionic | DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
  2019-05-08 12:45:53.839207 | ubuntu-bionic | Looking in indexes: http://mirror.iad.rax.openstack.org/pypi/simple, http://mirror.iad.rax.openstack.org/wheel/ubuntu-18.04-x86_64
  2019-05-08 12:45:53.839421 | ubuntu-bionic | Collecting sphinx!=1.6.6,!=1.6.7,>=1.6.2 (from -r /home/zuul/src/opendev.org/openstack/os-resource-classes/doc/requirements.txt (line 1))
  2019-05-08 12:45:53.839619 | ubuntu-bionic |   Downloading http://mirror.iad.rax.openstack.org/wheel/ubuntu-18.04-x86_64/sphinx/Sphinx-2.0.1-py2.py3-none-any.whl (3.2MB)
  2019-05-08 12:45:53.839749 | ubuntu-bionic | ERROR: Sphinx requires Python '>=3.5' but the running Python is 2.7.15
  2019-05-08 12:45:53.839778 | ubuntu-bionic |
  2019-05-08 12:45:53.839912 | ubuntu-bionic | =================================== log end ====================================
  2019-05-08 12:45:53.840347 | ubuntu-bionic | ERROR: could not install deps [-r/home/zuul/src/opendev.org/openstack/os-resource-classes/doc/requirements.txt]; v = InvocationError(u'/home/zuul/src/opendev.org/openstack/os-resource-classes/.tox/docs/bin/pip install -r/home/zuul/src/opendev.org/openstack/os-resource-classes/doc/requirements.txt', 1)

So introduce usage of upper-constraints.txt, as is already done in os-traits.

Of course we should also switch to Python 3, but even with that change
we still need to use upper-constraints.txt to prevent similar
categories of failure in the future.

Change-Id: I8f4e72bd4b34cfd177c35469e0bc7d83bee705c7
2019-05-08 15:11:56 +01:00
Eric Fried 610afeb9c2 Use py3 for all* tox targets
*except py27.

Change-Id: I05bb59e256505960f965c05527bfa22357ac2979
2019-05-08 08:37:53 -05:00
Ghanshyam Mann 7c6ac2b2ef Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I081ce6385d8f04f2a8f64d6e906a07ede3e91436
2019-04-22 23:16:37 +00:00
OpenDev Sysadmins 63b10398a9 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:31:06 +00:00
OpenStack Release Bot 930e199037 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: Ieca25193d4a9ec7c53596eea04a8780301a9f0f7
Sem-Ver: feature
2019-03-18 14:42:22 +00:00
Chris Dent f88664e588 Update bug links for storyboard
Update the README and CONTRIBUTING .rst docs to reflect new location
for bugs.

Change-Id: I119cb391270470c8e22bc8ac3358691319d5b1ec
Story: 2005131
Task: 29815
2019-03-11 17:51:03 +00:00
Eric Fried 2d4672e5f3 Add normalize_name utility
The normalize_name utility provides consumers of os-resource-classes
with a way of generating a known-good name for a custom resource class.
This is equivalent to the os-traits utility of the same name [1].

[1] 9eab06df2f/os_traits/__init__.py (L113)

Change-Id: Id5557d65f11ed4dee10c8df2a42a4c485bfd65d1
2019-02-01 08:41:58 -06:00
bhagyashris b0c27a7d62 Add PCPU standard resource class
This patch adds a new standard resource class: PCPU

Partially Implements: blueprint cpu-resources
Change-Id: I7bf9ffaea7653870b3926a36d07771fc5016d74d
2019-01-21 10:11:31 +09:00
Takashi NATSUME bffafeab58 Update author-email in setup.cfg
The openstack-dev mailing list has been replaced with
the openstack-discuss mailing list (*).
So replace the openstack-dev mailing list with
the openstack-discuss mailing list in setup.cfg.

In addition, update the home page URL in setup.cfg.

*: http://lists.openstack.org/pipermail/openstack-dev/2018-September/134911.html

Change-Id: If8dba8c7aee5e8161ac52dd2eeb0a7b2d82ca933
2019-01-07 00:14:34 +00:00