Ironic 'neutron' network driver requires local_link_connection to be
present on ironic port to be able to work with it (plug to specific
network).
This patch ignores ironic ports without local_link_connection when
attaching VIF to node with 'neutron' network driver.
Also make sure that we do not pick such port for provisioning and
cleaning.
Closes-Bug: #1653249
Change-Id: Icb8298b9be0d8ba62192580263feafa0e1708129
This patch updates api-ref documentation with VIF attach/detach
changes that were added in API microversion 1.28.
Closes-Bug: #1582188
Change-Id: I2950a1a356ccb3feb7a4c6335eb95a7a52b3266a
we need to make sure before we bring up vlan interface on
"configure_ironic_provision_network:723" that OVS_PHYSICAL_BRIDGE is up.
otherwise we can fail (RTNETLINK answers: Network is down)
This issue discover on a unique configurations I run different biridges
for external network (PUBLIC_BRIDGE) and internal bridge
(OVS_PHYSICAL_BRIDGE) so devstack don't seem to bring up ovs bridge.
Change-Id: I80f29075cff47c96ac70c13717dcf13475065f83
* Add examples of correct data
* Regroup bullet points into more logical flow
* Use OSC-based commands for Nova
* Add short information on using nova scheduler logs
Based on real world debugging experience.
Change-Id: I0f2441764a1b434fca6a1589c72ec95b083d19ab
The API for this feature will need to be able to calculate the default
interfaces for a given hardware interface. The code was already there to
do it, but just needed a bit of refactoring and a public method. Move
things around as we need them, and add a few tests to test the
default_interface method directly.
Change-Id: I993b76b7a2e6219cacc86558a612ecf0ba10e685
Partial-Bug: #1524745
This will mark the default interface for each hardware type in use.
This is the only piece of information about hardware interfaces that is
not in the database, and so this will allow the API to fetch this
information without an RPC call.
Change-Id: I5b05853a64ebb2744f9dc87855fb31fbe5cefce6
Partial-Bug: #1524745
We already have a check in Inspector.create_if_enabled. This additional
check prevents normal use of Inspector with hardware types, as it's not
enough to add "inspector" to "enabled_inspect_interfaces" to use it.
Change-Id: Iff29785002cd978702317d50ce52bdcebe06d0e3
Partial-Bug: #1524745
This patch replaces hardcoded key 'tenant_vif_port_id' by using constant
TENANT_VIF_KEY from ironic.drivers.modules.network.common module.
Change-Id: I0394adad20b89530f314e3bc6a03b295edb53ac6
With this patch port groups are activated in Ironic.
When attaching a VIF to a node, it is attached to the first
free port group. If there are no free port groups, the first
available port (pxe_enabled has higher priority) is used
instead.
Related-Bug: #1618754
Related-Bug: #1582188
Co-Authored-By: Vladyslav Drok <vdrok@mirantis.com>
Change-Id: I0dca2c2d98184e370c08c3e05aa3edadead869af
This reduces the amount of copy-and-pasting in the tests, making it more
obvious what changes between tests and what each test method is testing.
It also makes it easier to extend the tests to handle UEFI-mode boot
devices (in a followup patch).
Change-Id: Iddb69520ad8f1f1561fd351ad055c12b338c8fb0
This patch is removing a conditional preventing whole disk images from
being deployed in UEFI mode without local boot.
This conditional is an inconsistency because whole disk images being
deployed in non-UEFI mode don't need to explicitly set the boot_option
from "local", also, in Ironic when deploying a whole disk image we
already assume local boot by default.
Change-Id: I678e3547397eac3199d8ff670fe281e20b2cd2c0
Closes-Bug: #1627022
Get node attached vifs via v1/nodes/<node>/vifs when max supported
Ironic API microversion is higher or equal 1.28. Fallback to
port-show otherwise.
Change-Id: I20e889d255c070897ee1cd4bece347cbf44a94d5
This patch enhances ipmitool power driver to support SOFT_REBOOT
and SOFT_POWER_OFF.
Partial-Bug: #1526226
Change-Id: If01721625c22a578b4311b82104cd895139e3a01
This patch introduce new devstack variables to set min and max Ironic
API version to allow skip tempest tests.
TEMPEST_BAREMETAL_MIN_MICROVERSION
TEMPEST_BAREMETAL_MAX_MICROVERSION
Update release documentation.
Related-Bug: #1655888
Change-Id: Id6d36280f622549a2877aab99c11e4008af67fe7
This patch ensures that VIF api tests are not launched on installations
with unsupported Ironic API version < 1.28.
Change-Id: I6f562aed6307915fb5ff158b91bdb595d62f1f6f
Related-Bug: #1655888
This patch updates drivers/modules/network/common tests to use
assertEqual(expected, actual). Fix docstring formatting.
Change-Id: Ia9b75f4db07c1ac264255dddd2371a4353407ae1
Following the requirement. The validation is used within
"OneViewPower.validate". As a result it enforces that a machine
is owned by OneView, thus it cannot be powered on or off by the
Ironic driver. Raising an exception when the node is owned by
Oneview.
Change-Id: Ibf500577b7a3b5976fd49fd217c1be3d3e9c0f46
Closes-Bug: 1627034
Co-Authored-By: Stenio Araujo <steniaraujo@lsd.ufcg.edu.br>
This patch is moving the logic setting the default images from DevStack
into the Ironic tree. A TODO was left inline pointing out we can
refactor the logic there after we get this merged and the devstack code
removed.
Change-Id: Id828b41dc44113ce1cd094ce5fc245989699d4ff
This patch is documenting the new root device hint: HCTL and adding a
release note for it.
Closes-Bug: #1648036
Change-Id: Ie7ef0e25aed50ea5372d7cfe80778575f8560271
This patch adds the REST APIs for the virtual network interface API in
order to abstract the task of assigning logical network interfaces to
physical network interfaces.
Since Newton Ironic provides an interface for pluggable network
implementations. Different network implementations may want to handle
how logical to physical network interface assignment happens. To do this
the new API calls into new functions on the network implementation
loaded for the specified node.
This is part 3 of 3, and adds the node vif subcontroller to expose the
/nodes/<ident>/vifs REST API endpoint. API version is bumped to 1.28.
Co-Authored-By: Vasyl Saienko (vsaienko@mirantis.com)
Change-Id: I70f1166a15a26f392734e21d6bc30a03da4e5486
Partial-Bug: #1582188