[one-users] Context networking script broken for Ubuntu Precise
Jaime Melis
jmelis at opennebula.org
Wed Mar 12 10:35:16 PDT 2014
Hi Stefan,
thanks a lot for the contribution!
I think we need to rewrite a small thing in the patch. As far as I can
tell, the $DEV variable is not defined in that function so it's only
executing the service network-interface restart once. If you have multiple
ifaces, it will only restart one.
I'm happy to rewrite it, but it would be cool if you could send a pull
request from Github, so the patch is authored by you.
Cheers,
Jaime
On Wed, Mar 12, 2014 at 6:20 PM, Stefan Kooman <stefan at bit.nl> wrote:
> Hi,
>
> For those of you using Ubuntu Precise, contextualized images and
> contextualized networking: the networking script is not working because
> of a bug in Ubuntu. The "service networking $action" does not work :(. The
> network interfaces file is created succesfully, so after a reboot of the
> vm, networking will be set up correctly. To fix this you might apply the
> following patch:
>
> --- /root/00-network 2014-03-12 15:06:21.852446011 +0100
> +++ /etc/one-context.d/00-network 2014-03-12 18:15:03.797977027 +0100
> @@ -167,9 +167,15 @@
> {
> gen_network_configuration > /etc/network/interfaces
>
> - service networking stop
> - sleep 1
> - service networking start
> + if
> + [[ `lsb_release -c | awk '{print($2)}'` = precise ]]
> + then
> + service network-interface restart INTERFACE=$DEV
> + else
> + service networking stop
> + sleep 1
> + service networking start
> + fi
>
> sleep 2
> }
>
> Gr. Stefan
>
> [1]: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/663352
>
> --
> | BIT BV http://www.bit.nl/ Kamer van Koophandel 09090351
> | GPG: 0xD14839C6 +31 318 648 688 / info at bit.nl
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
--
Jaime Melis
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140312/ed2a2a3f/attachment-0002.htm>
More information about the Users
mailing list