Commit Graph

64 Commits

Author SHA1 Message Date
Ghanshyam Mann 3481386034 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I7d734cb7ea9bea06a7065645e6d7028f6cbdff00
2022-04-30 18:03:30 -05:00
Riccardo Pittau 9db968b590 Re-add python 3.6/3.7 in classifier
We have updated the yoga testing runtime to keep the
py36 testing.

- https://review.opendev.org/c/openstack/governance/+/820195

Unit tests job template is also updated to keep python
3.6 as a voting job. So with the py3.6 and py3.9 testing as voting
job template, we are keeping python 3.6, 3.7, 3.8, and 3.9 as
tested versions in the Yoga cycle.

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

This commit re-add the python 3.6/3.7 versions in setup.cfg classifier.

Change-Id: I31a3b83d4624664ec923c61ca3a64f7a2a54c887
2021-12-14 09:28:07 +01:00
Ghanshyam Mann 019be80b60 Updating yoga tested python versions in classifier
Yoga testing runtime has been updated with py38 and py39
as voting and removed the py36 testing. Unit tests update are
handled by the job template change in openstack-zuul-job and you
can see the updated jobs running in gate.

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

this commit updates the tested py versions in setup.cfg classifier.

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

Change-Id: I86431c76958eed83bb148edf7d3cafbdb5810507
2021-11-24 20:07:19 -06:00
erbarr 0e2f2a987b Return 404 if not enough ready in pool
This changes the behavior to prevent locking a node that does not match
the requested pool. Currently using a pool locks a node in that pool if
there is one ready, as expected. If there is not one ready from the
pool but there is any other node ready, it will lock a node outside the
pool, not expected and breaking behavior. Also update to handle PyYAML 6.0.0

Change-Id: I285256037e16f94c79cc7d813235460b4032393d
2021-10-25 17:08:14 -05:00
Riccardo Pittau 5cf167d567 Update molteniron tests and requirements
Make things as pretty as possible while moving to current openstack
Y cycle tests.

Change-Id: I22777cf34888171daf69c44705d8ecc7339f8278
2021-10-06 18:12:20 +02:00
Hervé Beraud 524d1f1c7d Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Iaf6e2c9b16d053a8c279a48a25979c941b1c00da
2020-06-02 20:23:59 +02:00
Andreas Jaeger 8c4ff32c15 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Use modern sphinx-build command.

Change-Id: I8b6d7f69bb465150115cfc18a047e5775f1ff567
2020-02-04 22:30:52 +01:00
Zuul ab580cd737 Merge "Add Python 3 Train unit tests" 2019-07-17 10:38:12 +00:00
Riccardo Pittau 44a7d765a0 add local bindep.txt
Global bindep-fallback.txt was removed [1] and now projects need
to have a local bindep.txt to be able to install binary
dependencies for testing.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html

Change-Id: Ie339ed36392a1835991cd147b0b54f4ceed69d7f
2019-07-01 12:47:28 +02:00
Corey Bryant 071900f5a5 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: Icdda5342d417866bf32bf891d7541e058e81ce23
Story: #2005924
Task: #34213
2019-06-25 03:10:12 +00:00
tonybrad a7da22155b Update to opendev
Change-Id: Iac5e266899b01cd84a15f7a5016961472d039240
2019-06-11 01:21:41 +00:00
OpenDev Sysadmins d839698f74 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:35:26 +00:00
Ian Wienand 1fa7608ed8 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Iac99db0de5003bb52c1a10f991c0f9b468af221e
2019-03-24 20:34:13 +00:00
Zuul 3aab0d2d72 Merge "fix tox python3 overrides" 2019-03-11 14:10:45 +00:00
Doug Hellmann 6dfe31d599 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Iaf4ae89bb1fa86549e4aff9ee80bca327fe92096
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:54:48 -04:00
Doug Hellmann 796e694f8d add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I085b7983460e3616a9df8d29505271f94ea5b846
Story: #2002586
Task: #24302
2018-08-16 09:44:55 -04:00
Doug Hellmann 28e9321cd4 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ibd5e462c444367336a40b4ae0d7ac007b09bf792
Story: #2002586
Task: #24302
2018-08-16 09:43:31 -04:00
Ilya Etingof 094276cda7 rearrange existing documentation to follow the new layout
Change-Id: I50774641757af1a608ebf739a7f171725bd4f9ec
2017-07-26 15:58:54 +02:00
kesper 6eb00df34c Adding node_pool as a optional argument
This commit add node_pool options which allow user to create
different pools of hardware depends of their type.

Change-Id: If35158e35c405afcc1158e7f4015dea6048ce59f
2017-05-12 04:32:27 +00:00
Jenkins 7402de62eb Merge "Add ansible playbook example for a molteniron server" 2017-02-28 23:35:48 +00:00
Mark Hamzy a271f09ef1 Add ansible playbook example for a molteniron server
Change-Id: Ie0d6d1184976bd17adc8816aad586d7acac463f8
2017-02-28 15:21:57 -06:00
Jenkins daed944018 Merge "Return complete reservation id" 2017-02-28 14:01:33 +00:00
Mark Hamzy f9f122da4a Return complete reservation id
Changed the length of the provisioned field for the
molteniron status command.  Also added the missing
ipmi_ip field for the blob_status aggregate.

Change-Id: I97c4a82a2467297223b929a29b73e6a8d41f019d
Closes-Bug: 1650332
2017-02-24 20:19:51 -06:00
Mark Hamzy b3b6dda18d Support both Ubuntu and CentOS
CentOS installs molteniron into /usr/etc/molteniron instead of
/usr/local/etc/molteniron/ so we have moved the conf.yaml file
into the molteniron Python directory and started using
pkg_resources.resource_filename to find our data file.

Change-Id: I75330d51475051a04bb2dff903f54727b9be9b6e
2017-02-21 15:12:30 -06:00
Andreas Jaeger 4c4609e10c Prepare for using standard python tests
Add simple script to setup mysql and postgresql databases, this script
can be run by users during testing and will be run by CI systems for
specific setup before running unit tests. This is exactly what is
currently done by OpenStack CI in project-config.

This allows to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.

See also
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html

Needed-By: Ibe74829db04aef9c159a02ac95c1f3889adf75ff
Change-Id: I0a92230fb96fdae7a71e565aa78fdcbb20efe70b
2017-02-03 21:33:19 +01:00
Jenkins ee86a2519e Merge "Start testing the example usage for CI: test_hook_mi_ipmiblob.py" 2017-01-04 17:29:19 +00:00
Mark Hamzy 57160823d4 Start testing the example usage for CI: test_hook_mi_ipmiblob.py
test_hook_mi_ipmiblob.py is the provided sample for a CI team to
use to allocate a MoltenIron instance before running tests.

Change-Id: I217b8e3ba14cb3c4358d71be40ad9ca80aca32e1
2016-12-16 10:48:22 -06:00
Mark Hamzy 814a2a1da5 Add openstack/ironic-specs molteniron spec proposal
Change-Id: Ie580c62cd69a9b6840b91626450e4bf7ca26f8b1
2016-12-06 18:03:34 -06:00
Mark Hamzy 6ac505d94c Separate out the class MoltenIron
Putting MoltenIron as a public class in the library allows
clients to programatically call the server and perform
operations.

Change-Id: I9fb03ee5de56c9196d6aaf983dfe22135f29c568
2016-11-30 13:09:14 -06:00
Mark Hamzy 06277f2de9 createDB.py should live under utils
Change-Id: I4aebcf46cb620833749952d9ac516b7d0c3147c7
2016-11-27 15:43:34 -06:00
Jenkins e6c743573b Merge "Add some more debugging to Database:__init__" 2016-11-14 16:57:35 +00:00
Jenkins 3bb1283829 Merge "Fix clean installation README.rst documentation" 2016-11-14 14:07:39 +00:00
Mark Hamzy c17149fa65 Provide a script to setup MoltenIron on a clean Ubuntu 16.04
Change-Id: I262a1ba2d8b854b4a52cd8f182f0a05cc5ce904a
2016-11-13 16:39:45 -06:00
Mark Hamzy ffb2c3380f Add some more debugging to Database:__init__
Preserve some history as to why this code is like what it is.

Change-Id: I49e023348996a1ebdf46aeda030511e92efc6223
2016-11-09 16:26:34 -06:00
Mark Hamzy 354018451a Fix clean installation README.rst documentation
Change-Id: I23ecc9f7ac8beeeb80ced2e006975252744ec266
2016-11-09 14:35:03 -06:00
Mark Hamzy 5f009133dd Fix Python3's sending bytes versus strings
Change-Id: Ie2557766ad110c1a3fb4721e902a41aa88cd7272
2016-11-08 13:21:55 -06:00
Tony Breeds caa3cb7710 [WiP] Switch to PyMySQL
I couldn't get the tests to run locally so wasting gate resources

Change-Id: I983a2d3788fade3fef67feaa94c29b02dfbdf8c0
2016-11-08 12:53:35 -06:00
Mark Hamzy 952d4b133f Switch to using a blob of JSON encoded data
- ipmi_user VARCHAR(50),
- ipmi_password VARCHAR(50),
- port_hwaddr VARCHAR(50),
- cpu_arch VARCHAR(50),
- cpus INTEGER,
- ram_mb INTEGER,
- disk_gb INTEGER,
+ blob VARCHAR(2000),

Change-Id: I7a329d8137f877f111213af4332f50b1d8ff7295
2016-11-03 12:08:12 -05:00
Mark Hamzy 24bf07c892 Fix --output=json so that it prints out JSON
The program was actually printing out a Python map variable
instead.

Change-Id: I6802bdac30a915f9643164fe6bbb5136844900e7
2016-11-01 14:00:34 -05:00
Mark Hamzy dfe2cf5496 Add help text to the subcommands
Change-Id: I87957673436c2249fa7523aa89796d32aa5eb3ce
2016-10-30 14:28:30 -05:00
Mark Hamzy 9952754ce4 Add result parameter which will only printout the result contents
Change-Id: Ia033695472de42a1808bbecd2183ef790e6548f6
2016-10-30 13:44:05 -05:00
Mark Hamzy f6be130863 Add type parameter for the status command
Where type can be human (the default) or csv

Change-Id: I35f8944bced8ba85972a66a31ac98d04bd3aa984
2016-10-30 13:18:38 -05:00
Mark Hamzy fd5aec447c Update documentation for how to configure your machine for a clean install
Change-Id: I6e19c8cce8a28ffe2445f6e4fcf1857a994922b3
2016-10-29 19:35:15 -05:00
Mark Hamzy 7d7dc9bda1 Update CI usage sample to use the new repo and changes
Change-Id: If955a01d57ddbbaf14a9130fec1d88f2b2e83721
2016-10-28 16:04:51 -05:00
Mark Hamzy 538cc1d5d8 Don't use letter and ) in table
It turns into a list

Change-Id: Ia58e96e788b520baf2925b99a778f524cbda8eb1
2016-10-28 10:30:51 -05:00
Mark Hamzy 93f275a7a6 Fix up the tables and one example
Change-Id: Icda00a84c8c10f24615616fedcb63c96c1e10be1
2016-10-28 10:18:09 -05:00
Mark Hamzy c6e60848aa Use RST document coding conventions
Change-Id: I98f8b006a614b827129d41ae808efb6ccced716b
2016-10-28 09:53:32 -05:00
Mark Hamzy 512fa17501 Enable testcases
Change-Id: I6db9f7ee5e0f2d65c96974d52f887302b4727bc3
2016-10-28 07:44:13 -05:00
Mark Hamzy 7efb4ae83a Even more pep8 fixes that the gate is catching
Change-Id: I825621d82bdc4e30a024b639f34e8be0d8593c17
2016-10-27 12:08:57 -05:00
Mark Hamzy 0b641d436e Support both Python 2.x and Python 3.x
Change-Id: If2b02553859345a4322e0a2fd56ce1f7436c08ca
2016-10-27 10:45:29 -05:00