Re: [ovirt-users] Network issues with oVirt 4.2 and cloud-init

2018-03-20 Thread Berger, Sandy
Thanks for the suggestion. I was hoping to avoid that but will consider doing 
it as a last resort.

-Original Message-
From: Luca 'remix_tj' Lorenzetto [mailto:lorenzetto.l...@gmail.com]
Sent: Monday, March 19, 2018 10:56 AM
To: Berger, Sandy <sber...@qg.com>
Cc: users@ovirt.org
Subject: Re: [ovirt-users] Network issues with oVirt 4.2 and cloud-init

Hello Sandy,

i had the same issue and the cause was cloud-init running again at
boot even if Run-Once hasn't been selected as boot option. The way i'm
using to solve the problem is to remove cloud-init after the first
run, since we don't need it anymore.

In case also disabling is enoug:

touch /etc/cloud/cloud-init.disabled

Luca

On Mon, Mar 19, 2018 at 2:17 PM, Berger, Sandy <sber...@qg.com> wrote:
> We’re using cloud-init to customize VMs built from a template. We’re using
> static IPV4 settings so we’re specifying an IP address, subnet mask, and
> gateway. There is apparently a bug in the current version of cloud-init
> shipping as part of CentOS 7.4
> (https://bugzilla.redhat.com/show_bug.cgi?id=1492726) that fails to set the
> gateway properly. In the description of the bug, it says it is fixed in RHEL
> 7.5 but also says one can use
> https://people.redhat.com/rmccabe/cloud-init/cloud-init-0.7.9-20.el7.x86_64.rpm
> which is what we’re doing.
>
>
>
> When the new VM first boots, the 3 IPv4 settings are all set correctly.
> Reboots of the VM maintain the settings properly. But, if the VM is shut
> down and started again via the oVirt GUI, all of the IPV4 settings on the
> eth0 virtual NIC are lost and the /etc/sysconfig/network-scripts/ifcfg-eth0
> shows that the NIC is now set up for DHCP.
>
>
>
> Are we doing something incorrectly?
>
>
>
> Sandy Berger
>
> IT – Infrastructure Engineer II
>
>
>
> Quad/Graphics
>
> Performance through Innovation
>
>
>
> Sussex, Wisconsin
>
> 414.566.2123 phone
>
> 414.566.4010/2123 pager/PIN
>
>
>
> sandy.ber...@qg.com
>
> www.QG.com
>
>
>
> Follow Us: Facebook | Twitter | LinkedIn | YouTube
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>



--
"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.l...@gmail.com>
Follow Us: Facebook<http://www.qg.com/social1> | 
Twitter<http://www.qg.com/social2> | LinkedIn<http://www.qg.com/social3> | 
YouTube<http://www.qg.com/social4>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Network issues with oVirt 4.2 and cloud-init

2018-03-20 Thread Berger, Sandy
Yes, I had the checkbox marked when I made the template.

From: Michael Burman [mailto:mbur...@redhat.com]
Sent: Tuesday, March 20, 2018 1:37 AM
To: Berger, Sandy <sber...@qg.com>
Cc: users@ovirt.org; Luca 'remix_tj' Lorenzetto <lorenzetto.l...@gmail.com>
Subject: Re: [ovirt-users] Network issues with oVirt 4.2 and cloud-init

Hi Berger,
Have you sealed the template? if you didn't sealed the template on creation, 
then your new VM has the same ifcfg-eth0 settings as your origin VM.
In order to avoid this, you need to check the 'Seal Template (Linux only)' 
checkbox in the New Template dialog.
Cheers)

On Mon, Mar 19, 2018 at 5:56 PM, Luca 'remix_tj' Lorenzetto 
<lorenzetto.l...@gmail.com<mailto:lorenzetto.l...@gmail.com>> wrote:
Hello Sandy,

i had the same issue and the cause was cloud-init running again at
boot even if Run-Once hasn't been selected as boot option. The way i'm
using to solve the problem is to remove cloud-init after the first
run, since we don't need it anymore.

In case also disabling is enoug:

touch /etc/cloud/cloud-init.disabled

Luca

On Mon, Mar 19, 2018 at 2:17 PM, Berger, Sandy 
<sber...@qg.com<mailto:sber...@qg.com>> wrote:
> We’re using cloud-init to customize VMs built from a template. We’re using
> static IPV4 settings so we’re specifying an IP address, subnet mask, and
> gateway. There is apparently a bug in the current version of cloud-init
> shipping as part of CentOS 7.4
> (https://bugzilla.redhat.com/show_bug.cgi?id=1492726) that fails to set the
> gateway properly. In the description of the bug, it says it is fixed in RHEL
> 7.5 but also says one can use
> https://people.redhat.com/rmccabe/cloud-init/cloud-init-0.7.9-20.el7.x86_64.rpm
> which is what we’re doing.
>
>
>
> When the new VM first boots, the 3 IPv4 settings are all set correctly.
> Reboots of the VM maintain the settings properly. But, if the VM is shut
> down and started again via the oVirt GUI, all of the IPV4 settings on the
> eth0 virtual NIC are lost and the /etc/sysconfig/network-scripts/ifcfg-eth0
> shows that the NIC is now set up for DHCP.
>
>
>
> Are we doing something incorrectly?
>
>
>
> Sandy Berger
>
> IT – Infrastructure Engineer II
>
>
>
> Quad/Graphics
>
> Performance through Innovation
>
>
>
> Sussex, Wisconsin
>
> 414.566.2123 phone
>
> 414.566.4010/2123 pager/PIN
>
>
>
> sandy.ber...@qg.com<mailto:sandy.ber...@qg.com>
>
> www.QG.com<http://www.QG.com>
>
>
>
> Follow Us: Facebook | Twitter | LinkedIn | YouTube
>
> ___
> Users mailing list
> Users@ovirt.org<mailto:Users@ovirt.org>
> http://lists.ovirt.org/mailman/listinfo/users
>



--
"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.l...@gmail.com<mailto:lorenzetto.l...@gmail.com>>
___
Users mailing list
Users@ovirt.org<mailto:Users@ovirt.org>
http://lists.ovirt.org/mailman/listinfo/users



--

Michael Burman

Senior Quality engineer - rhv network - redhat israel

Red Hat

<https://www.redhat.com>

mbur...@redhat.com<mailto:mbur...@redhat.com>M: 0545355725  
   IM: mburman
[https://www.redhat.com/files/brand/email/sig-redhat.png]<https://red.ht/sig>


Follow Us: Facebook<http://www.qg.com/social1> | 
Twitter<http://www.qg.com/social2> | LinkedIn<http://www.qg.com/social3> | 
YouTube<http://www.qg.com/social4>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Network issues with oVirt 4.2 and cloud-init

2018-03-20 Thread Michael Burman
Hi Berger,

Have you sealed the template? if you didn't sealed the template on
creation, then your new VM has the same ifcfg-eth0 settings as your origin
VM.
In order to avoid this, you need to check the 'Seal Template (Linux only)'
checkbox in the New Template dialog.

Cheers)

On Mon, Mar 19, 2018 at 5:56 PM, Luca 'remix_tj' Lorenzetto <
lorenzetto.l...@gmail.com> wrote:

> Hello Sandy,
>
> i had the same issue and the cause was cloud-init running again at
> boot even if Run-Once hasn't been selected as boot option. The way i'm
> using to solve the problem is to remove cloud-init after the first
> run, since we don't need it anymore.
>
> In case also disabling is enoug:
>
> touch /etc/cloud/cloud-init.disabled
>
> Luca
>
> On Mon, Mar 19, 2018 at 2:17 PM, Berger, Sandy  wrote:
> > We’re using cloud-init to customize VMs built from a template. We’re
> using
> > static IPV4 settings so we’re specifying an IP address, subnet mask, and
> > gateway. There is apparently a bug in the current version of cloud-init
> > shipping as part of CentOS 7.4
> > (https://bugzilla.redhat.com/show_bug.cgi?id=1492726) that fails to set
> the
> > gateway properly. In the description of the bug, it says it is fixed in
> RHEL
> > 7.5 but also says one can use
> > https://people.redhat.com/rmccabe/cloud-init/cloud-init-
> 0.7.9-20.el7.x86_64.rpm
> > which is what we’re doing.
> >
> >
> >
> > When the new VM first boots, the 3 IPv4 settings are all set correctly.
> > Reboots of the VM maintain the settings properly. But, if the VM is shut
> > down and started again via the oVirt GUI, all of the IPV4 settings on the
> > eth0 virtual NIC are lost and the /etc/sysconfig/network-
> scripts/ifcfg-eth0
> > shows that the NIC is now set up for DHCP.
> >
> >
> >
> > Are we doing something incorrectly?
> >
> >
> >
> > Sandy Berger
> >
> > IT – Infrastructure Engineer II
> >
> >
> >
> > Quad/Graphics
> >
> > Performance through Innovation
> >
> >
> >
> > Sussex, Wisconsin
> >
> > 414.566.2123 phone
> >
> > 414.566.4010/2123 pager/PIN
> >
> >
> >
> > sandy.ber...@qg.com
> >
> > www.QG.com
> >
> >
> >
> > Follow Us: Facebook | Twitter | LinkedIn | YouTube
> >
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >
>
>
>
> --
> "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.l...@gmail.com>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>



-- 

Michael Burman

Senior Quality engineer - rhv network - redhat israel

Red Hat



mbur...@redhat.comM: 0545355725 IM: mburman

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Network issues with oVirt 4.2 and cloud-init

2018-03-19 Thread Luca 'remix_tj' Lorenzetto
Hello Sandy,

i had the same issue and the cause was cloud-init running again at
boot even if Run-Once hasn't been selected as boot option. The way i'm
using to solve the problem is to remove cloud-init after the first
run, since we don't need it anymore.

In case also disabling is enoug:

touch /etc/cloud/cloud-init.disabled

Luca

On Mon, Mar 19, 2018 at 2:17 PM, Berger, Sandy  wrote:
> We’re using cloud-init to customize VMs built from a template. We’re using
> static IPV4 settings so we’re specifying an IP address, subnet mask, and
> gateway. There is apparently a bug in the current version of cloud-init
> shipping as part of CentOS 7.4
> (https://bugzilla.redhat.com/show_bug.cgi?id=1492726) that fails to set the
> gateway properly. In the description of the bug, it says it is fixed in RHEL
> 7.5 but also says one can use
> https://people.redhat.com/rmccabe/cloud-init/cloud-init-0.7.9-20.el7.x86_64.rpm
> which is what we’re doing.
>
>
>
> When the new VM first boots, the 3 IPv4 settings are all set correctly.
> Reboots of the VM maintain the settings properly. But, if the VM is shut
> down and started again via the oVirt GUI, all of the IPV4 settings on the
> eth0 virtual NIC are lost and the /etc/sysconfig/network-scripts/ifcfg-eth0
> shows that the NIC is now set up for DHCP.
>
>
>
> Are we doing something incorrectly?
>
>
>
> Sandy Berger
>
> IT – Infrastructure Engineer II
>
>
>
> Quad/Graphics
>
> Performance through Innovation
>
>
>
> Sussex, Wisconsin
>
> 414.566.2123 phone
>
> 414.566.4010/2123 pager/PIN
>
>
>
> sandy.ber...@qg.com
>
> www.QG.com
>
>
>
> Follow Us: Facebook | Twitter | LinkedIn | YouTube
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>



-- 
"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 , 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users