[ovirt-users] Reassign ovirtmgmt to a new bond with ansible
Ondra Machacek
omachace at redhat.com
Thu Dec 14 09:10:59 UTC 2017
Hi,
On 12/13/2017 11:52 AM, Luca 'remix_tj' Lorenzetto wrote:
> 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.
This is unfortunately a bug, David(CCed) yesterday reported same issue
to me. He will (or did) open an issue on github. I will fix it for 2.5,
release and hopefully also for 2.4.3.
>
>
>
More information about the Users
mailing list