Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionMiguel Duarte Barroso
2019-10-11 11:02:20 UTC
Created attachment 1624697[details]
state for setting ipv6 static address in the expanded notation
Description of problem:
nmstate does not accept setting static ipv6 addresses represented on the expanded notation on interfaces.
Version-Release number of selected component (if applicable):
nmstate-0.0.8-15.el8.noarch
How reproducible:
always
Steps to Reproduce:
1. create a veth interface, managed by nm, using the following script:
ip link add veth1 type veth peer name veth2
ip link set veth1 up
ip link set veth2 up
nmcli device set veth1 managed yes
nmcli device set veth2 managed yes
2. use nmstatectl to provision the state provided in the attachment:
$ nmstatectl set ipv6_expanded_notation_on_iface.yml
Actual results:
2019-10-11 12:49:36,463 root DEBUG Checkpoint /org/freedesktop/NetworkManager/Checkpoint/3 rollback executed: dbus.Dictionary({dbus.String('/org/freedesktop/NetworkManager/Devices/1'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/2'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/3'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/33'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/32'): dbus.UInt32(0)}, signature=dbus.Signature('su'))
Traceback (most recent call last):
File "/usr/bin/nmstatectl", line 11, in <module>
load_entry_point('nmstate==0.0.8', 'console_scripts', 'nmstatectl')()
File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 62, in main
return args.func(args)
File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 220, in apply
statedata, args.verify, args.commit, args.timeout
File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 240, in apply_state
checkpoint = libnmstate.apply(state, verify_change, commit, timeout)
File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 66, in apply
state.State(desired_state), verify_change, commit, rollback_timeout
File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 150, in _apply_ifaces_state
_verify_change(desired_state)
File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 196, in _verify_change
desired_state.verify_interfaces(current_state)
File "/usr/lib/python3.6/site-packages/libnmstate/state.py", line 257, in verify_interfaces
self._assert_interfaces_equal(other_state)
File "/usr/lib/python3.6/site-packages/libnmstate/state.py", line 485, in _assert_interfaces_equal
current_state.interfaces[ifname],
libnmstate.error.NmstateVerificationError:
desired
=======
---
name: veth1
type: ethernet
state: up
ipv4:
dhcp: false
enabled: false
ipv6:
address:
- ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7331
prefix-length: 64
autoconf: false
dhcp: false
enabled: true
mac-address: 2E:FC:CA:1D:11:A7
mtu: 1500
current
=======
---
name: veth1
type: ethernet
state: up
ipv4:
dhcp: false
enabled: false
ipv6:
address:
- ip: 2001:db8:85a3::8a2e:370:7331
prefix-length: 64
autoconf: false
dhcp: false
enabled: true
mac-address: 2E:FC:CA:1D:11:A7
mtu: 1500
difference
==========
--- desired
+++ current
@@ -7,7 +7,7 @@
enabled: false
ipv6:
address:
- - ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7331
+ - ip: 2001:db8:85a3::8a2e:370:7331
prefix-length: 64
autoconf: false
dhcp: false
Expected results:
Configuration applied successfully.
Comment 2Miguel Duarte Barroso
2019-10-24 11:32:25 UTC
Gris, I'm assuming you'll take it from here - i.e. handle the release side of things.
Let me know if you need anything from me.
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-2020:0350
Created attachment 1624697 [details] state for setting ipv6 static address in the expanded notation Description of problem: nmstate does not accept setting static ipv6 addresses represented on the expanded notation on interfaces. Version-Release number of selected component (if applicable): nmstate-0.0.8-15.el8.noarch How reproducible: always Steps to Reproduce: 1. create a veth interface, managed by nm, using the following script: ip link add veth1 type veth peer name veth2 ip link set veth1 up ip link set veth2 up nmcli device set veth1 managed yes nmcli device set veth2 managed yes 2. use nmstatectl to provision the state provided in the attachment: $ nmstatectl set ipv6_expanded_notation_on_iface.yml Actual results: 2019-10-11 12:49:36,463 root DEBUG Checkpoint /org/freedesktop/NetworkManager/Checkpoint/3 rollback executed: dbus.Dictionary({dbus.String('/org/freedesktop/NetworkManager/Devices/1'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/2'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/3'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/33'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/32'): dbus.UInt32(0)}, signature=dbus.Signature('su')) Traceback (most recent call last): File "/usr/bin/nmstatectl", line 11, in <module> load_entry_point('nmstate==0.0.8', 'console_scripts', 'nmstatectl')() File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 62, in main return args.func(args) File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 220, in apply statedata, args.verify, args.commit, args.timeout File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 240, in apply_state checkpoint = libnmstate.apply(state, verify_change, commit, timeout) File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 66, in apply state.State(desired_state), verify_change, commit, rollback_timeout File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 150, in _apply_ifaces_state _verify_change(desired_state) File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 196, in _verify_change desired_state.verify_interfaces(current_state) File "/usr/lib/python3.6/site-packages/libnmstate/state.py", line 257, in verify_interfaces self._assert_interfaces_equal(other_state) File "/usr/lib/python3.6/site-packages/libnmstate/state.py", line 485, in _assert_interfaces_equal current_state.interfaces[ifname], libnmstate.error.NmstateVerificationError: desired ======= --- name: veth1 type: ethernet state: up ipv4: dhcp: false enabled: false ipv6: address: - ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7331 prefix-length: 64 autoconf: false dhcp: false enabled: true mac-address: 2E:FC:CA:1D:11:A7 mtu: 1500 current ======= --- name: veth1 type: ethernet state: up ipv4: dhcp: false enabled: false ipv6: address: - ip: 2001:db8:85a3::8a2e:370:7331 prefix-length: 64 autoconf: false dhcp: false enabled: true mac-address: 2E:FC:CA:1D:11:A7 mtu: 1500 difference ========== --- desired +++ current @@ -7,7 +7,7 @@ enabled: false ipv6: address: - - ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7331 + - ip: 2001:db8:85a3::8a2e:370:7331 prefix-length: 64 autoconf: false dhcp: false Expected results: Configuration applied successfully.