Skip to content

nm-client-error-quark: Active connection removed before it was initialized + Segmentation fault #62

@tyll

Description

@tyll

While testing #60 I sometimes got this error:

nmstatectl set /tmp/nmstate_linkagg_debug-1535467463-FlJO5z
2018-08-28 10:47:41,979 root         DEBUG    Checkpoint /org/freedesktop/NetworkManager/Checkpoint/13 created for all devices: 60
2018-08-28 10:47:42,005 root         DEBUG    Connection update succeeded: dev=web-bond
2018-08-28 10:47:42,014 root         DEBUG    Connection update succeeded: dev=eth1
2018-08-28 10:47:42,074 root         DEBUG    Connection activation succeeded: dev=web-bond
2018-08-28 10:47:42,116 root         ERROR    NM main-loop aborted: Connection activation failed: error=nm-client-error-quark: Active connection removed before it was initialized (2)
2018-08-28 10:47:42,117 root         DEBUG    Connection activation canceled: error=g-io-error-quark: Operation was cancelled (19)
/usr/lib64/python2.7/site-packages/gi/overrides/GLib.py:574: Warning: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
  super(MainLoop, self).run()
Segmentation fault

Statefile:

{
    "interfaces": [
        {
            "link-aggregation": {
                "mode": "802.3ad", 
                "slaves": [
                    "eth1"
                ], 
                "options": {}
            }, 
            "state": "up", 
            "type": "bond", 
            "name": "web-bond"
        }
    ]
}

Initial state:

nmstatectl show
{
    "interfaces": [
        {
            "ipv4": {
                "enabled": false
            },
            "name": "lo",
            "state": "down",
            "type": "unknown"
        },
        {
            "ipv4": {
                "addresses": [
                    {
                        "ip": "192.168.122.193",
                        "prefix-length": 24
                    }
                ],
                "enabled": true
            },
            "name": "eth0",
            "state": "up",
            "type": "ethernet"
        },
        {
            "ipv4": {
                "enabled": false
            },
            "name": "eth1",
            "state": "down",
            "type": "ethernet"
        },
        {
            "ipv4": {
                "enabled": false
            },
            "name": "web-bond",
            "state": "down",
            "type": "bond"
        }
    ]
}

The error sometimes happen when I do this multiple times:

nmstatectl set <<EOF
{
    "interfaces": [
        {
            "link-aggregation": {
                "mode": "802.3ad", 
                "slaves": [
                    "eth1"
                ], 
                "options": {}
            }, 
            "state": "up", 
            "type": "bond", 
            "name": "web-bond"
        }
    ]
}
EOF

From my observation, this must succeed at least once (see #63) to show the error mentioned here, i.e. the profiles need to exist already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions