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.

Bug 2143587

Summary: DbusConnectionError: org.freedesktop.NetworkManager.PermissionDenied: Authorization request cancelled
Product: Red Hat Enterprise Linux 9 Reporter: Gris Ge <fge>
Component: NetworkManagerAssignee: NetworkManager Development Team <nm-team>
Status: CLOSED MIGRATED QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 9.1CC: bgalvani, lrintel, rkhan, sfaye, sukulkar, till
Target Milestone: rcKeywords: MigratedToJIRA, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-17 12:24:10 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:
Attachments:
Description Flags
NetworkManager trace log none

Description Gris Ge 2022-11-17 10:14:46 UTC
Created attachment 1924955 [details]
NetworkManager trace log

Description of problem:

Got DbusConnectionError: org.freedesktop.NetworkManager.PermissionDenied: Authorization request cancelled

for OVS action.


Version-Release number of selected component (if applicable):
NetworkManager-1.41.4-31395.copr.3b2eb689f3.el9.x86_64

How reproducible:
10% ~ 50%

Steps to Reproduce:

sudo dnf copr enable packit/nmstate-nmstate-2107 -y
sudo dnf install nmstate python3-libnmstate python3-pytest -y
sudo ip netns add tmp
sudo ip link add eth2 type veth peer name eth2peer
sudo ip link add eth1 type veth peer name eth1peer
sudo ip link set eth1 up
sudo ip link set eth2 up
sudo ip link set eth1peer up
sudo ip link set eth2peer up
sudo ip link set eth1peer netns tmp
sudo ip link set eth2peer netns tmp
sudo ip netns exec tmp ip link set eth1peer up
sudo ip netns exec tmp ip link set eth2peer up

sudo nmcli device set eth1 managed yes
sudo nmcli device set eth2 managed yes

git clone https://github.com/nmstate/nmstate.git
cd nmstate/tests/integration
for x in `seq 1 100`; do 
    sudo pytest -vvv -k test_remove_ovs_bridge_ignored_port_keeps_it || break;
done

Actual results:

E           libnmstate.error.NmstateInternalError: DbusConnectionError: org.freedesktop.NetworkManager.PermissionDenied: Authorization request cancelled

Expected results:

No failure

Additional info:

Comment 1 Gris Ge 2022-11-17 10:19:05 UTC
Besides above OVS error. We also see constant failure on veth:

E           libnmstate.error.NmstateInternalError: DbusConnectionError: org.freedesktop.NetworkManager.UnknownDevice: No suitable device found for this connection (device eth0 not available because profile is not compatible with device (mismatching interface name)).


You may try it via `cd cd nmstate/tests/integration; sudo pytest -vvvvv -k veth`

This is low priority, as nmstate will retry on NM failures.