Skip to content

Stacktrace failure: Configure etcd.[localhost] os_firewall : Add firewalld allow rules #13739

Closed

Description

@stevekuznetsov

Seen here and here


TASK [os_firewall : Wait for polkit action to have been created] ***************
task path: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml:44
FAILED - RETRYING: TASK: os_firewall : Wait for polkit action to have been created (6 retries left).
FAILED - RETRYING: TASK: os_firewall : Wait for polkit action to have been created (5 retries left).
FAILED - RETRYING: TASK: os_firewall : Wait for polkit action to have been created (4 retries left).
FAILED - RETRYING: TASK: os_firewall : Wait for polkit action to have been created (3 retries left).
FAILED - RETRYING: TASK: os_firewall : Wait for polkit action to have been created (2 retries left).
FAILED - RETRYING: TASK: os_firewall : Wait for polkit action to have been created (1 retries left).
fatal: [localhost]: FAILED! => {
    "attempts": 6, 
    "changed": false, 
    "cmd": [
        "pkaction", 
        "--action-id=org.fedoraproject.FirewallD1.config.info"
    ], 
    "delta": "0:00:00.009270", 
    "end": "2017-04-11 23:33:59.642729", 
    "failed": true, 
    "rc": 1, 
    "start": "2017-04-11 23:33:59.633459", 
    "stderr": [
        "No action with action id org.fedoraproject.FirewallD1.config.info"
    ], 
    "stdout": [], 
    "warnings": []
}
...ignoring

TASK [os_firewall : Add firewalld allow rules] *********************************
task path: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml:53
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: dbus.exceptions.DBusException: org.freedesktop.PolicyKit1.Error.Failed: Action org.fedoraproject.FirewallD1.config.info is not registered
failed: [localhost] (item={u'port': u'2379/tcp', u'service': u'etcd'}) => {
    "failed": true, 
    "item": {
        "port": "2379/tcp", 
        "service": "etcd"
    }, 
    "module_stderr": [
        "Traceback (most recent call last):", 
        "  File \"/tmp/ansible_K3Lcbi/ansible_module_firewalld.py\", line 641, in <module>", 
        "    main()", 
        "  File \"/tmp/ansible_K3Lcbi/ansible_module_firewalld.py\", line 489, in main", 
        "    is_enabled = get_port_enabled(zone, [port,protocol])", 
        "  File \"/tmp/ansible_K3Lcbi/ansible_module_firewalld.py\", line 155, in get_port_enabled", 
        "    if port_proto in fw.getPorts(zone):", 
        "  File \"<string>\", line 2, in getPorts", 
        "  File \"/usr/lib/python2.7/site-packages/slip/dbus/polkit.py\", line 103, in _enable_proxy", 
        "    return func(*p, **k)", 
        "  File \"<string>\", line 2, in getPorts", 
        "  File \"/usr/lib/python2.7/site-packages/firewall/client.py\", line 53, in handle_exceptions", 
        "    return func(*args, **kwargs)", 
        "  File \"/usr/lib/python2.7/site-packages/firewall/client.py\", line 2754, in getPorts", 
        "    return dbus_to_python(self.fw_zone.getPorts(zone))", 
        "  File \"/usr/lib/python2.7/site-packages/slip/dbus/proxies.py\", line 50, in __call__", 
        "    return dbus.proxies._ProxyMethod.__call__(self, *args, **kwargs)", 
        "  File \"/usr/lib64/python2.7/site-packages/dbus/proxies.py\", line 145, in __call__", 
        "    **keywords)", 
        "  File \"/usr/lib64/python2.7/site-packages/dbus/connection.py\", line 651, in call_blocking", 
        "    message, timeout)", 
        "dbus.exceptions.DBusException: org.freedesktop.PolicyKit1.Error.Failed: Action org.fedoraproject.FirewallD1.config.info is not registered"
    ], 
    "module_stdout": [], 
    "msg": "MODULE FAILURE"
}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: dbus.exceptions.DBusException: org.freedesktop.PolicyKit1.Error.Failed: Action org.fedoraproject.FirewallD1.config.info is not registered
failed: [localhost] (item={u'port': u'2380/tcp', u'service': u'etcd peering'}) => {
    "failed": true, 
    "item": {
        "port": "2380/tcp", 
        "service": "etcd peering"
    }, 
    "module_stderr": [
        "Traceback (most recent call last):", 
        "  File \"/tmp/ansible_arTVbY/ansible_module_firewalld.py\", line 641, in <module>", 
        "    main()", 
        "  File \"/tmp/ansible_arTVbY/ansible_module_firewalld.py\", line 489, in main", 
        "    is_enabled = get_port_enabled(zone, [port,protocol])", 
        "  File \"/tmp/ansible_arTVbY/ansible_module_firewalld.py\", line 155, in get_port_enabled", 
        "    if port_proto in fw.getPorts(zone):", 
        "  File \"<string>\", line 2, in getPorts", 
        "  File \"/usr/lib/python2.7/site-packages/slip/dbus/polkit.py\", line 103, in _enable_proxy", 
        "    return func(*p, **k)", 
        "  File \"<string>\", line 2, in getPorts", 
        "  File \"/usr/lib/python2.7/site-packages/firewall/client.py\", line 53, in handle_exceptions", 
        "    return func(*args, **kwargs)", 
        "  File \"/usr/lib/python2.7/site-packages/firewall/client.py\", line 2754, in getPorts", 
        "    return dbus_to_python(self.fw_zone.getPorts(zone))", 
        "  File \"/usr/lib/python2.7/site-packages/slip/dbus/proxies.py\", line 50, in __call__", 
        "    return dbus.proxies._ProxyMethod.__call__(self, *args, **kwargs)", 
        "  File \"/usr/lib64/python2.7/site-packages/dbus/proxies.py\", line 145, in __call__", 
        "    **keywords)", 
        "  File \"/usr/lib64/python2.7/site-packages/dbus/connection.py\", line 651, in call_blocking", 
        "    message, timeout)", 
        "dbus.exceptions.DBusException: org.freedesktop.PolicyKit1.Error.Failed: Action org.fedoraproject.FirewallD1.config.info is not registered"
    ], 
    "module_stdout": [], 
    "msg": "MODULE FAILURE"
}

@sdodson can you triage/assign please

Activity

  1. added
    kind/test-flake
    on Apr 12, 2017
  2. stevekuznetsov commented on Apr 13, 2017

    @stevekuznetsov
    ContributorAuthor

    Well, maybe not, it started fine:

    Apr 11 23:32:47 ip-172-18-15-14.ec2.internal systemd[1]: Starting firewalld - dynamic firewall daemon...
    Apr 11 23:32:48 ip-172-18-15-14.ec2.internal systemd[1]: Started firewalld - dynamic firewall daemon.
    
  3. sdodson commented on Apr 13, 2017

    @sdodson
    Member
  4. sdodson commented on Apr 17, 2017

    @sdodson
    Member

    https://bugzilla.redhat.com/show_bug.cgi?id=1442840 filed, i'll try some more to reproduce this and see if i can come up with a more complete workaround.

  5. stevekuznetsov commented on Apr 17, 2017

    @stevekuznetsov
    ContributorAuthor

    Do you need more artifacts to better debug this? Which ones? Let's add them to the test run

  6. sdodson commented on Jun 2, 2017

    @sdodson
    Member

    Closing, this doesn't happen frequently and RHEL teams are working to fix the issue in the previously mentioned bug. There should be some relief when RHEL7.4 ships.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

component/installkind/test-flakepriority/P1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions