1669 Commits

Author SHA1 Message Date
Riccardo Pittau
4eefb42550 Finalize ironicclient removal
Completely remove dependency from ironicclient in favor of
openstacksdk.

Change-Id: I9b98ddb05fe867a0d3884f736a2edd7b4d61b00c
2020-03-25 10:08:38 +01:00
Riccardo Pittau
3accdfbbc6 Use openstacksdk for ironic module
This patches removes the ironic-client dependency from the
ironic module in favor of openstacksdk.

Increase minimum required version of openstacksdk to use
recent added features.

Change-Id: I31964179835ad454e8205a59f483b419de4fb62d
2020-03-23 14:28:09 +01:00
Kaifeng Wang
e6ece052ec Add words for mutiarch configuration
Adds some words on the PXE configuration for multi-arch environments.

Change-Id: I10cf510630f50d68e463476b922f40932418f4b3
2020-03-17 18:27:28 +08:00
Riccardo Pittau
351347ad14 Explicitly set ramdisk type
The ironic-inspector-base job is based on ironic-base job which
will default to dib.
To prevent breaking the ironic-inspector CI we set the ramdisk
type to tinyipa for now and we'll convert the jobs here later.

Change-Id: If2be23d4e59f4c4821005b037a6002428b2e7eb4
2020-03-13 12:23:55 +01:00
Zuul
3785ba144b Merge "Change CoreOS to Centos for IPA" 2020-02-20 21:14:11 +00:00
Julia Kreger
0ce61c253b Change CoreOS to Centos for IPA
Swaps the URLs so we can eventually feel safe in removing
the CoreOS IPA images from tarballs.openstack.org.

Change-Id: I99425ab20d34019b327ac8887b382cfea74f779c
2020-02-18 13:17:18 -08:00
Dmitry Tantsur
3d473dc2ea Replace references to the deprecated ironic-agent element
Change-Id: I0f473a0d59de50261880c4e1331c1861e8c745df
2020-02-11 17:30:13 +01:00
Riccardo Pittau
ba8ecd3cf5 Stop supporting Flask < 1.0
Latest version of Werkzeug (1.0.0 at the moment) broke
compatibility with older Flask, actually causing issues when
running lower-constraints tests, since Flask will install
highest version of Werkzueg after 0.7.
With this patch we require Flask to be at least version 1.0
to re-establish compatibility.

See failed test https://review.opendev.org/706701 or run
lower-constraints test locally for confirmation.

Change-Id: Id05b4a205379fdf1b26cb239757bd370f3fe88e3
2020-02-10 10:59:43 +01:00
junyiwan-gtc
e964b18b99 Update ironic inspector document for dropping py2.x
Support for python2 was dropped during the Ussuri development
cycle.

Change-Id: Ibe7514b0fbd7619f24a75cf3f0230f652a6243cf
2020-02-03 22:41:51 +08:00
Zuul
2c2193a1b7 Merge "link introspection API docs to client docs" 2020-01-27 16:53:30 +00:00
Doug Hellmann
f4fe4307be link introspection API docs to client docs
The introspection API documentation does not include any detail at all
about the payload returned. That information is in the
ironic-python-agent documentation instead. Add a link to that location
to make it easier for someone trying to find out what introspection
data is returned to do so.

Change-Id: I972803ac700f25823ac6715d21dda09ebe40e307
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2020-01-23 16:14:50 -05:00
Riccardo Pittau
fbc773f460 Use bionic job for bifrost integration
The bifrost bionic job is alive again so we can change it here.

Change-Id: I3976e520b46a8eb21041a1f8810d6b7aa84c7ddf
2020-01-21 19:46:10 +01:00
Dmitry Tantsur
f8e26aa088 Respect driver_info.force_persistent_boot_device
This option has been created to work around flacky hardware that
does not work correctly with temporary boot. However, ironic-inspector
unconditionally uses persistent=False. This change fixes it.

Story: #2007093
Task: #38126
Change-Id: Ie21e5beeec6188e3b979c28167e575e1c37087ee
2020-01-15 15:26:20 +01:00
Zuul
4ea3385031 Merge "Update ironic-inspector usage document" 2020-01-09 17:21:26 +00:00
Wang Jerry
31faf7f08c Update ironic-inspector usage document
1. Add inspect command at "Node States" section
2. Add rule import command at "Introspection Rules" section

Change-Id: Ie8eb650f1258933bee0d74eddd77a74a73078f96
2020-01-09 08:53:21 +00:00
Zuul
af43de3b23 Merge "Enforce running tox with correct python version based on env" 2019-12-26 15:32:06 +00:00
Madhuri Kumari
51e791e954 Add librsvg2* to bindep and bindep env
76cbd2dbbb131224e73a4b7c4019c378d2bbaf20 added the docs
build requirement on sphinxcontrib-svg2pdfconverter which
needs the native rsvg-convert command. This change adds
the native package that provides that command to bindep.txt.
Also adds bindep env in tox.ini.

Change-Id: I72aa8695c058989b4a1aa62cbb5d5fda2ce348ad
2019-12-24 13:03:35 +05:30
OpenStack Proposal Bot
aff01c6685 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib977e850de2cfc88b161d9f276c1c8df6699bb45
2019-12-22 07:22:45 +00:00
Riccardo Pittau
917d2e44eb Enforce running tox with correct python version based on env
Since removing support for Python 2, we changed the basepython
value to 3.
This means that all the tox tests run with the default python
version available in the system.
This is not quite correct when running on environment such as
py36, py37 or py38, since they imply running with different
Python versions based on the environment.
To enforce the correct version we need to add the option
ignore_basepython_conflict available since tox 3.1.0 [0].

[0] https://tox.readthedocs.io/en/latest/config.html#conf-ignore_basepython_conflict

Change-Id: Ia14bc6397a88f200277abc5485cab02eb3724e1b
2019-12-20 16:24:13 +01:00
Riccardo Pittau
9b1450398c Stop using six library
Since we've dropped support for Python 2.7, it's time to look at
the bright future that Python 3.x will bring and stop forcing
compatibility with older versions.
This patch removes the six library from requirements, not
looking back.

Change-Id: Ic443c7e4d5a5a849c4dc220207f8957e4c90bf53
2019-12-17 09:23:01 +01:00
Zuul
b2c0c52a95 Merge "docs: use openstackdocstheme extlink extension" 2019-12-17 00:04:18 +00:00
Zuul
7179489366 Merge "Limit lower-constraints.txt to only direct dependencies" 2019-12-17 00:04:16 +00:00
Zuul
a2c2b70d97 Merge "Update docs on aarch64 PXE" 2019-12-05 02:18:20 +00:00
Zuul
6ad813153f Merge "Do not update/delete ports upon inspection of active nodes" 2019-12-04 13:35:47 +00:00
Zuul
9d99da70bd Merge "Get details when listing ports upon inspection of active nodes" 2019-12-04 13:14:54 +00:00
Kaifeng Wang
b22c3347d3 Update docs on aarch64 PXE
Adds a subsection to note PXE configuration for aarch64 machines.

Change-Id: I5a450da256057ac1a997c08f7c3b580feb490377
2019-12-04 10:46:54 +08:00
Serena Ziviani
78dbcf603a Do not update/delete ports upon inspection of active nodes
Short-circuit the port update logic for active nodes to allow only
for the addition of new ports.

Story: #2006956
Task: #37645

Change-Id: Ifd870a8465b6643578299dc86e2eae023db6ae43
2019-12-03 15:30:00 +01:00
Zuul
2da963519d Merge "Create a job with boot and networking managed by ironic" 2019-12-03 13:07:40 +00:00
Dmitry Tantsur
d1ab0a6b71 Create a job with boot and networking managed by ironic
The devstack plugin is updated to skip configuring PXE environment
if managed mode is requested, so that only ironic's PXE environment
is usable.

Change-Id: Ib7b83210a02b727d94dfa15bde43e7fee2e51531
Story: #1528920
Task: #37254
2019-12-02 12:08:19 +01:00
Arne Wiebalck
dc606b7132 Get details when listing ports upon inspection of active nodes
Add detail=True to make sure the inspector gets the node_uuid
from the port list when inspecting active nodes,

Change-Id: I1378a1a4d2a35ba8f182138877b5151f25d4c56d
Story: #2006950
2019-11-28 10:50:32 +01:00
Riccardo Pittau
aa75bfa8f0 docs: use openstackdocstheme extlink extension
The extlink extension [1] ensures the urls have version-specific
references to other projects.

[1] https://docs.openstack.org/openstackdocstheme/latest/#external-link-helper

Change-Id: I59ae4e28a02ee2683d35cf46857386e3f458ec2c
Story: 2006621
Task: 36917
2019-11-22 12:31:21 +01:00
Riccardo Pittau
96c5e6516c Limit lower-constraints.txt to only direct dependencies
Also increasing lower version of keystoneauth1 to a recommended
version for openstacksdk >= 0.30.0

Change-Id: Ifb9bbb8d091f28a8d65444caaeba301e2f707a14
2019-11-22 12:30:36 +01:00
Kaifeng Wang
0e3cd671da Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ironic-inspector is ready with python 3 and ok to drop the
python 2.7 support.

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://review.opendev.org/#/c/691178/

Change-Id: Ifae00adf782b6a7d71c4dc45a69a9638b8514d30
2019-11-22 11:17:34 +08:00
Iury Gregory Melo Ferreira
391877a084 Switch legacy job to Py3
Our legacy job is running on py2.7, let's switch to py3 before dropping py2.7

Change-Id: I8c415be1b7d3bc4042da5fbdafbea722bdd5509b
2019-11-13 14:42:55 +01:00
Zuul
a583260861 Merge "Make the bifrost job non-voting" 2019-10-29 10:41:14 +00:00
Zuul
9281b327be Merge "Add IPv6 support to dnsmasq example" 2019-10-28 14:32:01 +00:00
Dmitry Tantsur
96387de2f4 Make the bifrost job non-voting
It's not voting on ironic, so probably shouldn't vote here.

Change-Id: Ib6f59129b1c2a95e77d4bb153decb29755806059
2019-10-28 11:13:00 +01:00
Iury Gregory Melo Ferreira
f462237d81 Switch Integration Jobs to Python3
- Switching the `ironic-inspector-base` to be Python3 default.

- Removing `ironic-inspector-tempest-python3` since
`ironic-inspector-tempest` will become python3.

Depends-On: https://review.opendev.org/#/c/687521
Change-Id: Id32f041c7fe35ab686b8a1f81d1f9d355baff4be
2019-10-25 13:45:11 +02:00
Zuul
c0a471fadc Merge "Switch to Ussri job" 2019-10-23 14:35:02 +00:00
Bob Fournier
29dce28b13 Add IPv6 support to dnsmasq example
This adds IPv6 support to the documented dnsmasq example.
For DHCPv6 PXE boot, the Client Architecture option uses code 61,
(see https://tools.ietf.org/html/rfc5970#section-3.3). For both
DHCP and DHCPv6, support for UEFI client arch type 11 (EFI aarch64)
is documented.

Change-Id: I4018d99b9723527ed0cbb2c6825b0062d82c85b1
2019-10-22 14:03:09 -04:00
Zuul
c505e82f13 Merge "Silence amqp DEBUG messages in logs" 2019-10-22 17:25:47 +00:00
Zuul
2e14f0e9b4 Merge "Stop trying to power off nodes if manage_boot is False" 2019-10-21 22:33:22 +00:00
Dmitry Tantsur
48a9fea661 Silence amqp DEBUG messages in logs
Change-Id: I8c060f7cb88697bb378e5e3cff98d2ae75db9766
2019-10-21 16:48:53 +02:00
Iury Gregory Melo Ferreira
9568b7c132 Switch to Ussri job
Change-Id: If88f534a1ed5960cdbd9ee6cea3dc928dc5c73c9
2019-10-21 16:25:43 +02:00
Zuul
2ba7b6bd75 Merge "Stop logging the iptables command line" 2019-10-19 05:41:05 +00:00
Dmitry Tantsur
85267e881c Stop trying to power off nodes if manage_boot is False
When manage_boot is False, we do not power on the machines on starting
introspection, nor do we power them off on aborting. We should not
power off on finishing introspection either, let's leave it up to ironic.

Change-Id: If8115f8d592e1b24b07ef52bcd703d10763c1f00
Story: #1528920
2019-10-18 13:53:17 +02:00
Dmitry Tantsur
6023270c93 Stop logging the iptables command line
It's already done by processutils (with stdout and stderr as well),
so it only leads to duplicate log records.

Change-Id: Ie9a06c577523cd3dd4c7b74a33642790eb89a8fb
2019-10-18 12:13:54 +02:00
zhangboye
a380fe330f update source link in readme
Change-Id: If954bc5e1b89a968bb8281ab6e2e12e8da6939ca
2019-10-15 19:08:28 +08:00
Zuul
4d569fa720 Merge "Remove unused import statement." 2019-10-14 06:49:11 +00:00
Zuul
77bdc0c4a1 Merge "Raising minimum version of oslo.db" 2019-10-09 14:24:47 +00:00