Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1498513 - OSP 10 Heat Engine does not support vnic_type "direct-physical"
OSP 10 Heat Engine does not support vnic_type "direct-physical"
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-heat (Show other bugs)
10.0 (Newton)
All Linux
medium Severity medium
: z6
: 10.0 (Newton)
Assigned To: Rabi Mishra
Ronnie Rasouli
: RFE, Triaged, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-10-04 09:36 EDT by Mike McClure
Modified: 2017-11-15 08:44 EST (History)
10 users (show)

See Also:
Fixed In Version: openstack-heat-7.0.5-4.el7ost
Doc Type: Enhancement
Doc Text:
With this update, the `OS::Neutron::Port` resource now supports the 'baremetal' and 'direct-physical' (passthrough) vnic_type.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-11-15 08:44:01 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:3232 normal SHIPPED_LIVE openstack-heat bug fix advisory 2017-11-15 13:36:22 EST

  None (edit)
Description Mike McClure 2017-10-04 09:36:23 EDT
Description of problem:

OSP 10 supports SRIOV PF passthrough vnic_type "direct-physical" but OSP 10 (Newton based) heat engine does not support this vnic_type. This issue is seen in https://review.openstack.org/#/c/404494/

Version-Release number of selected component (if applicable):


How reproducible:

Customer is able to reproduce it and they have had to create a patch for the heat engine code.


Steps to Reproduce:
1. Part of normal process using heat
2.
3.

Actual results:

Heat engine does not support vnic_type "direct-physical"

Expected results:

As this vnic_type is supported in OSP10, heat engine should support it


Additional info:
Patch given by customer as work around:

<===
On Controller, check if the new vnic_type "direct-physical" is supported by heat-engine, if not add it and restart heat-engine service
 
# grep direct-physical /usr/lib/python2.7/site-packages/heat/engine/resources/openstack/neutron/port.py
#
# sed -i -e "s/'direct', 'macvtap'/'direct', 'direct-physical', 'macvtap'/g" /usr/lib/python2.7/site-packages/heat/engine/resources/openstack/neutron/port.py
# grep direct-physical /usr/lib/python2.7/site-packages/heat/engine/resources/openstack/neutron/port.py
                constraints.AllowedValues(['normal', 'direct', 'direct-physical', 'macvtap']),
# systemctl restart heat-engine
===>
Comment 6 Ronnie Rasouli 2017-11-06 03:57:30 EST
neutron port-create --vnic-type direct-physical public
Created a new port:
+-----------------------+--------------------------------------------------------------------+
| Field                 | Value                                                              |
+-----------------------+--------------------------------------------------------------------+
| admin_state_up        | True                                                               |
| allowed_address_pairs |                                                                    |
| binding:host_id       |                                                                    |
| binding:profile       | {}                                                                 |
| binding:vif_details   | {}                                                                 |
| binding:vif_type      | unbound                                                            |
| binding:vnic_type     | direct-physical                                                    |
| created_at            | 2017-11-06T08:57:08Z                                               |
| description           |                                                                    |
| device_id             |                                                                    |
| device_owner          |                                                                    |
| extra_dhcp_opts       |                                                                    |
| fixed_ips             | {"subnet_id": "7d73c0e6-b2fd-46fa-a2ba-5f08ccb046bc",              |
|                       | "ip_address": "10.0.0.212"}                                        |
| id                    | 7e64b9b0-2f56-49f5-a3b2-04d01df275ec                               |
| mac_address           | fa:16:3e:fb:51:04                                                  |
| name                  |                                                                    |
| network_id            | 577c2043-a929-4624-8f94-f3551c80dc55                               |
| port_security_enabled | True                                                               |
| project_id            | 912e382417194f7b90b32d01fb1d2131                                   |
| qos_policy_id         |                                                                    |
| revision_number       | 6                                                                  |
| security_groups       | 73f87cfc-42d5-47ca-ad27-5f951409c0c5                               |
| status                | DOWN                                                               |
| tenant_id             | 912e382417194f7b90b32d01fb1d2131                                   |
| updated_at            | 2017-11-06T08:57:08Z                                               |
+-----------------------+--------------------------------------------------------------------+
Comment 8 errata-xmlrpc 2017-11-15 08:44:01 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:3232

Note You need to log in before you can comment on or make changes to this bug.