云INIT-九重

我有问题,有人在论坛指出。 但我看到每个人都有VM机器的这个问题。 在我的情况下是裸机:

当我启动机器时,我看到cloud-init-nonet等待网络。

-------------------------------- cloud-init-nonet[164.54]: gave up waiting for a network device. Cloud-init v. 0.7.5 running 'init' at Sat, 11 Oct 2014 22:23:38 +0000. Up 164.77 seconds. ci-info: +++++++++++++++++++++++Net device info+++++++++++++++++++++++ ci-info: +--------+------+-----------+-----------+-------------------+ ci-info: | Device | Up | Address | Mask | Hw-Address | ci-info: +--------+------+-----------+-----------+-------------------+ ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . | ci-info: | eth1 | True | . | . | 68:XX:ca:YY:09:50 | ci-info: | eth0 | True | . | . | 00:XX:8c:YY:c7:00 | ci-info: +--------+------+-----------+-----------+-------------------+ ci-info: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Route info failed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2014-10-12 00:25:44,469 - DataSourceMAAS.py[CRITICAL]: Giving up on md from ['http://172.16.0.40/MAAS/metadata//2012-03-01/meta-data/instance-id'] after 126 seconds 2014-10-12 00:25:44,469 - util.py[WARNING]: No instance datasource found! Likely bad things to come! -------------------------------- 

几乎与此处看到的相同:

https://ask.openstack.org/en/question/28297/cloud-init-nonet-waiting-and-fails/

我也试着解释这个bug:

https://bugs.launchpad.net/cloud-init/+bug/1345433

正如我在bug中所说的那样,在我看来openvswitch没有按顺序启动。 但我不知道。 也许只是我的网络配置在openvswitch db上进行中继。

我的配置相当简单/ etc / network / interfaces:

 ### This does nothing, but left here for future reference. It should work. It's supposed to be openvswitch support on startup allow-ovs br-ext iface br-ext inet manual ovs_type OVSBridge ovs_ports eth0 # The primary network interface auto eth0 iface eth0 inet manual up ifconfig $IFACE 0.0.0.0 up up ip link set $IFACE promisc on down ip link set $IFACE promisc off down ifconfig $IFACE down auto eth1 iface eth1 inet manual up ifconfig $IFACE 0.0.0.0 up down ifconfig $IFACE down #This also does nothing as br-int is not created when this script is executed auto br-int iface br-int inet dhcp 

有关如何解决这个问题的任何帮助? 这真的让我的创业很糟糕,以至于我正在考虑删除MAAS并在没有cloud-init的情况下重新安装。

这对我有用:

  1. 登录:gui登录/传递:vagrant / vagrant
  2. 修改/etc/rc.local文件,在exit 0之前包含sh /etc/init.d/networking restart
  3. 禁用:gui
  4. 流浪汉或流浪汉重新加载

https://github.com/mitchellh/vagrant/issues/391#issuecomment-2078383