[one-users] OpenVswitch and host crash

Daniel Dehennin daniel.dehennin at baby-gnu.org
Mon Oct 13 01:02:31 PDT 2014


Hello,

We had a power failure on a test ONE 4.8, the frontend and the two hosts
crashed.

I can not resume nor boot the powered off VMs, libvirt told me:


    error : virNetDevOpenvswitchRemovePort:187 : Unable to delete port (null) from OVS: Operation not permitted
    error : virCommandWait:2426 : internal error: Child process (ovs-vsctl
        --timeout=5 -- --may-exist add-port inetrnal vnet0 -- set Interface
        vnet0 'external-ids:attached-mac="02:00:c0:a8:00:6e"' -- set
        Interface vnet0
        'external-ids:iface-id="2a9321ad-2b7e-4ca5-9c81-a3f54d04807b"' --
        set Interface vnet0
        'external-ids:vm-id="c486c111-e3fe-4338-99b0-8eed4c043cff"' -- set
        Interface vnet0 external-ids:iface-status=active) unexpected exit
        status 1: ovs-vsctl: "--may-exist add-port internal vnet0" but vnet0
        is actually attached to bridge external


To come back to normal, I had to run the following command:

    for switch in external internal
    do
        for port in $(ovs-vsctl list-ports $switch | grep '^vnet')
        do
            ovs-vsctl del-port $switch $port
        done
    done

Any idea to perform such operation automatically after a recovery?

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 342 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20141013/d39dce8a/attachment.pgp>


More information about the Users mailing list