RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1786937 - Cannot get mac address of ovs-interface or ovs-bridge
Summary: Cannot get mac address of ovs-interface or ovs-bridge
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: NetworkManager
Version: 8.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Antonio Cardace
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: nmstate-nm
TreeView+ depends on / blocked
 
Reported: 2019-12-29 17:20 UTC by omergi
Modified: 2020-11-04 01:49 UTC (History)
11 users (show)

Fixed In Version: NetworkManager-1.25.1-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:49:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1786935 0 medium CLOSED Cannot get/set mac address of ovs-interface 2023-04-11 15:32:39 UTC
Red Hat Product Errata RHBA-2020:4499 0 None None None 2020-11-04 01:49:28 UTC
freedesktop.org Gitlab NetworkManager NetworkManager merge_requests 430 0 None None None 2020-03-06 11:26:15 UTC

Internal Links: 1786935

Description omergi 2019-12-29 17:20:24 UTC
Description of problem:
When trying to get the mac address of an ovs-interface or ovs-bridge with NetworkManager it is shown as (unknown).

Version-Release number of selected component (if applicable):
NetworkManager-1.18.0-5.el7_7.1.1.bz1740557.x86_64
NetworkManager-1.20.8-1.fc31.x86_64
NetworkManager-1:1.14.0-14.el8.x86_64

How reproducible:
Create ovs-bridge, ovs-port and ovs-interface.
Get interface and bridge mac address with nmcli

Steps to Reproduce:
nmcli conn add type ovs-bridge \
    connection.id mybr \
    connection.interface-name mybr
nmcli conn add type ovs-port \
    connection.interface-name mybr-port0 \
    master mybr
nmcli connection add type ovs-interface \
    connection.id mybr1 \
    connection.interface-name mybr1 \
    master mybr-port0 


Actual results:
ip a:
mybr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether ba:16:4c:dc:18:f4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.9/24 brd 192.168.122.255 scope global dynamic noprefixroute mybr1
       valid_lft 3518sec preferred_lft 3518sec

nmcli device show mybr:
GENERAL.DEVICE:                         mybr
GENERAL.TYPE:                           ovs-bridge
GENERAL.HWADDR:                         (unknown)
GENERAL.MTU:                            0
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     mybr
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/983

nmcli device show mybr1:
GENERAL.DEVICE:                         mybr1
GENERAL.TYPE:                           ovs-interface
GENERAL.HWADDR:                         (unknown)
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     mybr1
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/994
IP4.ADDRESS[1]:                         192.168.122.9/24
IP4.GATEWAY:                            192.168.122.1
IP4.ROUTE[1]:                           dst = 0.0.0.0/0, nh = 192.168.122.1, mt = 801
IP4.ROUTE[2]:                           dst = 192.168.122.0/24, nh = 0.0.0.0, mt = 801
IP4.DNS[1]:                             192.168.122.1
IP6.ADDRESS[1]:                         fe80::bf26:dc6d:e890:f4b5/64
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 801
IP6.ROUTE[2]:                           dst = ff00::/8, nh = ::, mt = 256, table=255


Expected results:
GENERAL.DEVICE:                         mybr1
GENERAL.TYPE:                           ovs-interface
GENERAL.HWADDR:                         ba:16:4c:dc:18:f4
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     mybr1
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/994
IP4.ADDRESS[1]:                         192.168.122.9/24
IP4.GATEWAY:                            192.168.122.1
IP4.ROUTE[1]:                           dst = 0.0.0.0/0, nh = 192.168.122.1, mt = 801
IP4.ROUTE[2]:                           dst = 192.168.122.0/24, nh = 0.0.0.0, mt = 801
IP4.DNS[1]:                             192.168.122.1
IP6.ADDRESS[1]:                         fe80::bf26:dc6d:e890:f4b5/64
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 801
IP6.ROUTE[2]:                           dst = ff00::/8, nh = ::, mt = 256, table=255


Additional info:

Comment 1 Till Maas 2020-01-07 09:24:29 UTC
This is needed for Nmstate, too. See: https://github.com/nmstate/nmstate/pull/664

Comment 2 Antonio Cardace 2020-03-06 11:24:34 UTC
Working on this on https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/430.

Comment 3 Antonio Cardace 2020-03-13 09:26:22 UTC
Fixed upstream on master with commit:067a3d6c08.

Comment 6 Vladimir Benes 2020-07-03 09:46:01 UTC
we can see iface0 MAC addr. now in CI test:
https://gitlab.freedesktop.org/NetworkManager/NetworkManager-ci/-/merge_requests/594

Comment 9 errata-xmlrpc 2020-11-04 01:49:00 UTC
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 (NetworkManager bug fix and enhancement update), 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-2020:4499


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