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.
Description of problem:
Nmstate CI test reported failure on `test_bond_mac_restriction_in_desire_mac_in_current` test case:
failed: error=nm-manager-error-quark: Authorization request cancelled
Version-Release number of selected component (if applicable):
NetworkManager-1.26.0-2.el8.x86_64
How reproducible:
50%
Steps to Reproduce:
1. This can only be reproduced on Ubuntu using docker.
2. Install a Ubuntu 20.04 LTS with docker installed.
3. Run these commands:
CONTAINER_ID=`
sudo docker run --privileged -d \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
nmstate/centos8-nmstate-dev`
sudo docker exec -i $CONTAINER_ID \
/bin/bash -c \
'while ! systemctl is-active dbus; do sleep 1; done'
sudo docker exec -i $CONTAINER_ID \
/bin/bash -c \
'systemctl start systemd-udevd;
while ! systemctl is-active systemd-udevd; do sleep 1; done'
sudo docker exec -i $CONTAINER_ID \
/bin/bash -c \
'systemctl restart NetworkManager;
while ! systemctl is-active NetworkManager; do sleep 1; done'
sudo docker exec -it $CONTAINER_ID /bin/bash
4. Run these commands in side of container:
cd /root
git clone https://github.com/nmstate/nmstate.git
export PYTHONPATH=/root/nmstate
cd nmstate
sed -i -e 's/nmdev:/nmdev and not nm_profile.nmdev.get_managed():/' \
libnmstate/nm/device.py
cd tests/integration/
ip netns add tmp
ip link add eth1 type veth peer name eth1peer
ip link add eth2 type veth peer name eth2peer
ip link set eth1 up
ip link set eth2 up
ip link set eth1peer netns tmp
ip link set eth2peer netns tmp
ip netns exec tmp ip link set eth1peer up
ip netns exec tmp ip link set eth2peer up
nmcli device set eth1 managed yes
nmcli device set eth2 managed yes
pytest -k test_bond_mac_restriction_in_desire_mac_in_current
Actual results:
E libnmstate.error.NmstateLibnmError: Activate profile uuid:5492f824-85ae-4344-b915-fe9e2b98a7ba id:bond99 failed: error=nm-manager-error-quark: Authorization request cancelled (1)
../../libnmstate/nm/context.py:216: NmstateLibnmError
Expected results:
No failure.
Additional info:
Hi Antonio,
I have reproduced this issue __without__ using any container with 50% chance.
Upstream of nmstate is changing a lot recently.
Will provide a simpler reproducer
Description of problem: Nmstate CI test reported failure on `test_bond_mac_restriction_in_desire_mac_in_current` test case: failed: error=nm-manager-error-quark: Authorization request cancelled Version-Release number of selected component (if applicable): NetworkManager-1.26.0-2.el8.x86_64 How reproducible: 50% Steps to Reproduce: 1. This can only be reproduced on Ubuntu using docker. 2. Install a Ubuntu 20.04 LTS with docker installed. 3. Run these commands: CONTAINER_ID=` sudo docker run --privileged -d \ -v /sys/fs/cgroup:/sys/fs/cgroup:ro \ nmstate/centos8-nmstate-dev` sudo docker exec -i $CONTAINER_ID \ /bin/bash -c \ 'while ! systemctl is-active dbus; do sleep 1; done' sudo docker exec -i $CONTAINER_ID \ /bin/bash -c \ 'systemctl start systemd-udevd; while ! systemctl is-active systemd-udevd; do sleep 1; done' sudo docker exec -i $CONTAINER_ID \ /bin/bash -c \ 'systemctl restart NetworkManager; while ! systemctl is-active NetworkManager; do sleep 1; done' sudo docker exec -it $CONTAINER_ID /bin/bash 4. Run these commands in side of container: cd /root git clone https://github.com/nmstate/nmstate.git export PYTHONPATH=/root/nmstate cd nmstate sed -i -e 's/nmdev:/nmdev and not nm_profile.nmdev.get_managed():/' \ libnmstate/nm/device.py cd tests/integration/ ip netns add tmp ip link add eth1 type veth peer name eth1peer ip link add eth2 type veth peer name eth2peer ip link set eth1 up ip link set eth2 up ip link set eth1peer netns tmp ip link set eth2peer netns tmp ip netns exec tmp ip link set eth1peer up ip netns exec tmp ip link set eth2peer up nmcli device set eth1 managed yes nmcli device set eth2 managed yes pytest -k test_bond_mac_restriction_in_desire_mac_in_current Actual results: E libnmstate.error.NmstateLibnmError: Activate profile uuid:5492f824-85ae-4344-b915-fe9e2b98a7ba id:bond99 failed: error=nm-manager-error-quark: Authorization request cancelled (1) ../../libnmstate/nm/context.py:216: NmstateLibnmError Expected results: No failure. Additional info: