[ovirt-users] Reassign ovirtmgmt to a new bond with ansible

Luca 'remix_tj' Lorenzetto lorenzetto.luca at gmail.com
Wed Dec 13 10:52:38 UTC 2017


Hello,

I'm trying to create a playbook for deployment of a new node in my
ovirt deployment. I'm using the role ovirt-infra from
ovirt-infra-roles 1.1.1.

I'm creating a new bond and assigning ovirtmgmt to that bond:

This is the value of the variable host_networks printed out by ansible:

TASK [host_networks]
*********************************************************************************************************************************
ok: [localhost] => {
    "host_networks": [
        {
            "bond": {
                "interfaces": [
                    "enp2s0f0",
                    "enp2s0f1"
                ],
                "mode": 1,
                "name": "bond0"
            },
            "check": true,
            "name": "ovirt01.intranet.company.it",
            "networks": [
                {
                    "address": "10.5.40.197",
                    "boot_protocol": "static",
                    "gateway": "10.5.43.254",
                    "name": "ovirtmgmt",
                    "prefix": "255.255.252.0"
                }
            ],
            "save": true
        },
        {
            "bond": {
                "interfaces": [
                    "enp2s0f2",
                    "enp2s0f3"
                ],
                "mode": 1,
                "name": "bond1"
            },
            "check": true,
            "name": "ovirt01.intranet.company.it",
            "networks": [
                {
                    "address": "10.5.160.47",
                    "boot_protocol": "static",
                    "name": "NFS",
                    "netmask": "255.255.252.0"
                }
            ],
            "save": true
        }
    ]
}



When running the playbook i get:

Error: Fault reason is "Operation Failed". Fault detail is "[Cannot
setup Networks. Network ovirtmgmt is already attached via attachment
3315148d-f669-48b0-9c16-601faaea9ce5. A new attachment cannot be used
for the same network, please reuse the existing one.]"

How do i reuse the existing attachment?

The other network (NFS) has been attached without issues.



-- 
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <lorenzetto.luca at gmail.com>


More information about the Users mailing list