Bug 1895851
| Summary: | ignore case of ad_actor_system for warning message | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Mingyu Shi <mshi> |
| Component: | nmstate | Assignee: | Fernando F. Mancera <ferferna> |
| Status: | CLOSED ERRATA | QA Contact: | Mingyu Shi <mshi> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 8.4 | CC: | ferferna, fge, jiji, jishi, network-qe, till |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.4 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | nmstate-1.1.0-0.1.el8 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-09 17:42:37 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Upstream patch: https://github.com/nmstate/nmstate/pull/1584 Patch merged! Pretested with versions:
nmstate-1.1.0-0.20210511.1358git3463c8e.el8.noarch
nispor-1.0.1-4.el8.x86_64
NetworkManager-1.32.0-0.2.el8.x86_64
Linux mshi-rhel-850-20210328d2 4.18.0-301.1.el8.x86_64 #1 SMP Mon Mar 29 15:21:06 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux
# echo "---
> interfaces:
> - name: bond1
> type: bond
> state: up
> link-aggregation:
> mode: 802.3ad
> options:
> ad_actor_system: d4:ee:07:25:42:5a" | nmstatectl set
/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py:325: UserWarning: Using 'set' is deprecated, use 'apply' instead.
warnings.warn("Using 'set' is deprecated, use 'apply' instead.")
2021-05-12 10:50:33,975 root DEBUG Nmstate version: 1.1.0
2021-05-12 10:50:33,975 root DEBUG Applying desire state: {'interfaces': [{'name': 'bond1', 'type': 'bond', 'state': 'up', 'link-aggregation': {'mode': '802.3ad', 'options': {'ad_actor_system': 'd4:ee:07:25:42:5a'}}}]}
2021-05-12 10:50:34,006 root DEBUG NetworkManager version 1.31.3
2021-05-12 10:50:34,016 root DEBUG Async action: Retrieve applied config: ethernet eth0 started
2021-05-12 10:50:34,018 root DEBUG Async action: Retrieve applied config: ethernet eth0 finished
2021-05-12 10:50:34,020 root DEBUG Interface ethernet.eth0 found. Merging the interface information.
2021-05-12 10:50:34,021 root DEBUG Interface ethernet.eth1 found. Merging the interface information.
2021-05-12 10:50:34,044 root DEBUG Interface lo is type unknown and will be ignored during the activation
2021-05-12 10:50:34,045 root DEBUG Async action: Create checkpoint started
2021-05-12 10:50:34,047 root DEBUG Checkpoint /org/freedesktop/NetworkManager/Checkpoint/13 created for all devices
2021-05-12 10:50:34,047 root DEBUG Async action: Create checkpoint finished
2021-05-12 10:50:34,047 root DEBUG Nispor: current network state {'ifaces': {'eth1': {'name': 'eth1', 'iface_type': 'ethernet', 'state': 'up', 'mtu': 1500, 'flags': ['broadcast', 'lower_up', 'multicast', 'running', 'up'], 'mac_address': '52:54:00:50:ca:94'}, 'lo': {'name': 'lo', 'iface_type': 'loopback', 'state': 'unknown', 'mtu': 65536, 'flags': ['loopback', 'lower_up', 'running', 'up'], 'ipv4': {'addresses': [{'address': '127.0.0.1', 'prefix_len': 8, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'ipv6': {'addresses': [{'address': '::1', 'prefix_len': 128, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'mac_address': '00:00:00:00:00:00'}, 'eth0': {'name': 'eth0', 'iface_type': 'ethernet', 'state': 'up', 'mtu': 1500, 'flags': ['broadcast', 'lower_up', 'multicast', 'running', 'up'], 'ipv4': {'addresses': [{'address': '192.168.122.63', 'prefix_len': 24, 'valid_lft': '3353sec', 'preferred_lft': '3353sec'}]}, 'ipv6': {'addresses': [{'address': 'fe80::5054:ff:fe82:ab62', 'prefix_len': 64, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'mac_address': '52:54:00:82:ab:62'}}, 'routes': [{'address_family': 'ipv6', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': '::1/128', 'oif': 'lo', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'fe80::/64', 'oif': 'eth0', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'local', 'flags': 0, 'dst': '::1/128', 'oif': 'lo', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 0, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'local', 'flags': 0, 'dst': 'fe80::5054:ff:fe82:ab62/128', 'oif': 'eth0', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 0, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'boot', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'ff00::/8', 'oif': 'eth0', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'boot', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'ff00::/8', 'oif': 'eth1', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv4', 'tos': 0, 'table': 254, 'protocol': 'dhcp', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'oif': 'eth0', 'gateway': '192.168.122.1', 'metric': 100}, {'address_family': 'ipv4', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'unicast', 'flags': 0, 'dst': '192.168.122.0/24', 'oif': 'eth0', 'prefered_src': '192.168.122.63', 'metric': 100}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '127.0.0.0/32', 'oif': 'lo', 'prefered_src': '127.0.0.1'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'host', 'route_type': 'local', 'flags': 0, 'dst': '127.0.0.0/8', 'oif': 'lo', 'prefered_src': '127.0.0.1'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'host', 'route_type': 'local', 'flags': 0, 'dst': '127.0.0.1/32', 'oif': 'lo', 'prefered_src': '127.0.0.1'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '127.255.255.255/32', 'oif': 'lo', 'prefered_src': '127.0.0.1'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '192.168.122.0/32', 'oif': 'eth0', 'prefered_src': '192.168.122.63'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'host', 'route_type': 'local', 'flags': 0, 'dst': '192.168.122.63/32', 'oif': 'eth0', 'prefered_src': '192.168.122.63'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '192.168.122.255/32', 'oif': 'eth0', 'prefered_src': '192.168.122.63'}], 'rules': [{'action': 'table', 'address_family': 'ipv6', 'flags': 0, 'tos': 0, 'table': 255, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv6', 'flags': 0, 'tos': 0, 'table': 254, 'priority': 32766, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv4', 'flags': 0, 'tos': 0, 'table': 255, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv4', 'flags': 0, 'tos': 0, 'table': 254, 'priority': 32766, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv4', 'flags': 0, 'tos': 0, 'table': 253, 'priority': 32767, 'protocol': 'kernel'}]}
2021-05-12 10:50:34,048 root DEBUG Nispor: desired network state {'name': 'bond1', 'type': 'bond', 'state': 'up', 'link-aggregation': {'mode': '802.3ad', 'options': {'ad_actor_system': 'd4:ee:07:25:42:5a'}}, 'ipv6': {'enabled': False}}
2021-05-12 10:50:34,048 root WARNING IPv6 link local address fe80::5054:ff:fe82:ab62/64 is ignored when applying desired state
2021-05-12 10:50:34,049 root DEBUG Async action: Add profile: 96e7f97b-7454-4ddf-b6da-cf6b29731298, iface:bond1, type:bond started
2021-05-12 10:50:34,052 root DEBUG Async action: Add profile: 96e7f97b-7454-4ddf-b6da-cf6b29731298, iface:bond1, type:bond finished
2021-05-12 10:50:34,052 root DEBUG Async action: Activate profile uuid:96e7f97b-7454-4ddf-b6da-cf6b29731298 iface:bond1 type: bond started
2021-05-12 10:50:34,061 root DEBUG Connection activation initiated: iface=bond1 type=bond con-state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATING of type NM.ActiveConnectionState>
2021-05-12 10:50:34,069 root DEBUG Connection activation succeeded: iface=bond1, type=bond, con_state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATING of type NM.ActiveConnectionState>, dev_state=<enum NM_DEVICE_STATE_IP_CONFIG of type NM.DeviceState>, state_flags=<flags NM_ACTIVATION_STATE_FLAG_IS_MASTER | NM_ACTIVATION_STATE_FLAG_LAYER2_READY of type NM.ActivationStateFlags>
2021-05-12 10:50:34,070 root DEBUG Async action: Activate profile uuid:96e7f97b-7454-4ddf-b6da-cf6b29731298 iface:bond1 type: bond finished
2021-05-12 10:50:34,071 root DEBUG Async action: Retrieve applied config: ethernet eth0 started
2021-05-12 10:50:34,074 root DEBUG Async action: Retrieve applied config: ethernet eth0 finished
2021-05-12 10:50:34,074 root DEBUG Interface bond.bond1 found. Merging the interface information.
2021-05-12 10:50:34,074 root DEBUG Interface ethernet.eth0 found. Merging the interface information.
2021-05-12 10:50:34,075 root DEBUG Interface ethernet.eth1 found. Merging the interface information.
2021-05-12 10:50:34,083 root DEBUG Async action: Destroy checkpoint /org/freedesktop/NetworkManager/Checkpoint/13 started
2021-05-12 10:50:34,130 root DEBUG Checkpoint /org/freedesktop/NetworkManager/Checkpoint/13 destroyed
2021-05-12 10:50:34,131 root DEBUG Async action: Destroy checkpoint /org/freedesktop/NetworkManager/Checkpoint/13 finished
Desired state applied:
---
interfaces:
- name: bond1
type: bond
state: up
link-aggregation:
mode: 802.3ad
options:
ad_actor_system: d4:ee:07:25:42:5a
No the WARNING again.
Verified with versions: nmstate-1.1.0-0.1.el8.noarch nispor-1.1.0-1.el8.x86_64 NetworkManager-1.32.0-0.4.el8.x86_64 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 (nmstate 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-2021:4157 |
Description of problem: Now nmstate raises a warning message when ad_actor_system is lower case Version-Release number of selected component (if applicable): nispor-0.6.1-2.el8.x86_64 nmstate-0.4.1-2.el8.noarch DISTRO=RHEL-8.4.0-20201103.d.0 Linux hp-dl380g10-02.rhts.eng.pek2.redhat.com 4.18.0-241.el8.dt1.x86_64 #1 SMP Mon Nov 2 08:24:31 EST 2020 x86_64 x86_64 x86_64 GNU/Linux How reproducible: 100% Steps to Reproduce: echo "--- interfaces: - name: bond1 type: bond state: up link-aggregation: mode: 802.3ad options: ad_actor_system: d4:ee:07:25:42:5a" | nmstatectl set Actual results: 2020-11-09 17:30:48,647 root WARNING Desire iface bond1 bond option ad_actor_system=d4:ee:07:25:42:5a does not match with kernel value: D4:EE:07:25:42:5A Expected results: Case insensitive Additional info: