Setting node to the error status with error message
if reapply fails to get introspection data from swift.
Change-Id: Idccb68847d14d5050c735facf3da7b3ec108adbe
Closes-Bug: #1618833
Oslotest base class should be used as the base for unit test classes.
In addtion the oslotest BaseTestCase inherits from testtools.testCase,
according to fixtures docs "testtools has it’s own implementation of
useFixture so there is no need to use fixtures.TestWithFixtures with
testtools.TestCase."
Co-Authored-By: moshe levi <moshele@mellanox.com>
Change-Id: I7296d59ee30230ec2de6d55649c9f57a33534435
Adds a new plugin to distinguish PCI devices returned by Ironic
Python Agent. Recognized PCI devices are then registered in node
capabilities and later can be used by nova flavors.
Change-Id: I6565b8c4aa76de240a6c4d795635300ff2d0c30b
Partial-Bug: #1580893
This patch replaces assertTrue(isinstance(a, b))
by native assert function assertIsInstance/assertNotIsInstance.
Change-Id: Ia3e34167a1c454fde1b28079c1742b99e1d40ff1
Following OpenStack Style Guidelines [1], I changed:
assertFalse(sth in sth) to assertNotIn(sth, sth).
After this change, a more specific message is shown on error.
[1]: http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises
Change-Id: I929900eb5dc48eb04b541e387b70d69c4865ca03
Openstack infra now supports upper constraints for
all jobs. Updated tox.ini to use upper constraints
for all jobs.
Change-Id: Ibb49105fea5f119d181e7fd6f78ca6cf72ada33f
Closes-Bug: #1614361
It's hard to tell what logging relates to which test, so increase
verbosity to make Python print test case names.
Change-Id: Ia7a532aac4e41d2a6689285425755253a2d1c852
Some tests used incorrect order assertEqual(observed, expected).
The correct order expected by testtools is
assertEqual(expected, observed).
Change-Id: I71bc48340042617e0aa90905a4f92ecd62d9e61e
Using double quotes for strings does not conform to the ANSI standard.
While MySQL accepts it, PostgreSQL raises an error.
This patch fixes crash when used with PostgreSQL.
Closes-Bug: #1606534
Change-Id: Id979043b1573bf2ea473e772c7ea7417c733d753
Increase ironic_sync_timeout to 80 sec. Ironic default status check period
is 60 sec. But calling Ironic API to get node status takes some time, and
races appear, as result tempest job periodically fails. 80 sec would
be more than enough to make one more check.
Change-Id: I5fe0198b2ce2f1f0078c1d14aa1c367a71178097
Before https://review.openstack.org/#/c/337043/,
stevedore.NamedExtensionManager returned KeyError
when calling with non-existing names and name_order=True.
After the mentioned change this is not longer true,
so we used the just added on_missing_entrypoints_callback option
to customize the behavior in this cases and make it raise
a custom exception MissingHookError.
Change-Id: I1f1edc0b7a82a16bf9be4113db61ee1cd0080db4
Closes-Bug: #1600141
AttributeError: 'int' object has no attribute 'format' will be raised
if we pass an integer value, so we should check whether the value is
a string or not.
Change-Id: I14ed4d404a9be1233493083bef49218cf0f45867
Closes-Bug: #1608393
The default python-requests error message does not contain response body,
so it's not possible to figure out the actual cause of the failure.
Change it to a custom exception including the cause.
Change-Id: I83ea035ab2b3ace4dbdf5b17cd5d632c4c704003
For Ironic multi-tenant networking support, we need to be able to
discover the nodes local connectivity. To do this IPA can try to pull
LLDP packets for every NIC.
This patch adds a processing hook to handle the data from these packets
in ironic-inspector so that we can populate the correct fields fields in
Ironic. The generic lldp hook only handles the mandatory fields port id
and chassis id, set on port_id and switch_id in local_link_connection.
Further LLDP fields should be handled by additional vendor specific LLDP
processing hooks, that populate the switch_info field in a non-generic
way.
Change-Id: I884eaaa9cc54cd08c21147da438b1dabc10d3a40
Related-Bug: #1526403
Depends-On: Ie655fd59b06de7b84fba3b438d5e4c2ecd8075c3
Depends-On: Idae9b1ede1797029da1bd521501b121957ca1f1a
This test only runs introspection on one node, nothing else.
Also make sure tempest gets our and ironic plugin.
Depends-On: Ia2a5b9cc535c7c46728eee6284a36340745e9043
Change-Id: Id12b6cc75977c32f0a9e1ada8ff954b8f4bc2e41
This commit I4fe31ecae3393abc2779a5e80e348899f9113f1b broke inspector
tempest tests, it changes boot_instance and terminate_instance
signature.
This change redefine action methods
Change-Id: If6a9b300bd22e7b62b7e53763cb0328ad30f11c7
Currently, firewall.update_filters() is called before introspection
finished, which has no effect as it white-lists MAC addresses that
are under introspection.
Change-Id: I789e39a86dc72470b80167e53f1755b506ca6f44
Closes-Bug: #1548806
This adds configuration option 'processing.power_off'
defaulting to True, which will prevent powering off the
node after introspection
Change-Id: I16eb6b73fd57e84175bbce81c79e432ed8d1d3fa
Closes-Bug: #1488534