Commit Graph

13 Commits

Author SHA1 Message Date
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
tonybrad a7da22155b Update to opendev
Change-Id: Iac5e266899b01cd84a15f7a5016961472d039240
2019-06-11 01:21:41 +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
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
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
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 06277f2de9 createDB.py should live under utils
Change-Id: I4aebcf46cb620833749952d9ac516b7d0c3147c7
2016-11-27 15:43:34 -06: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 b7b4678183 Add Continuous Integration (CI) example
Add an example of how to use Molten Iron inside of a
Continuous Integration environment.

Change-Id: If4e2bc50ae475bf77d7fd933ae253e1439cb758d
2016-10-13 10:28:40 -05:00