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 1880420 - Activation got error nm-manager-error-quark: Authorization request cancelled
Summary: Activation got error nm-manager-error-quark: Authorization request cancelled
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: NetworkManager
Version: 8.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: 8.4
Assignee: NetworkManager Development Team
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: nmstate-nm
TreeView+ depends on / blocked
 
Reported: 2020-09-18 13:32 UTC by Gris Ge
Modified: 2021-03-03 05:04 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-03 05:04:52 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)
System logs with NM trace enabled (979.95 KB, text/plain)
2020-09-18 13:40 UTC, Gris Ge
no flags Details

Description Gris Ge 2020-09-18 13:32:55 UTC
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:

Comment 1 Gris Ge 2020-09-18 13:40:49 UTC
Created attachment 1715372 [details]
System logs with NM trace enabled

Comment 4 Antonio Cardace 2020-10-07 09:35:15 UTC
Gris can you reproduce this on RHEL (using podman)?

Comment 5 Gris Ge 2020-11-03 13:37:58 UTC
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

Comment 7 Gris Ge 2021-03-03 05:04:52 UTC
Nmstate is not using retry on activation failures which does not facing any issue on this.

Closing


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