[Openstack] 1st install - instances not getting VNICs

Ian Pilcher arequipeno at gmail.com
Sat Nov 2 06:49:35 UTC 2013


On 11/01/2013 11:54 PM, Ian Pilcher wrote:
> 
> And the bridge exists on the compute node:
> 
> [root at compute1 ~]# brctl show
> bridge name     bridge id               STP enabled     interfaces
> br100           8000.525400a53b13       no              eth1
> virbr0          8000.525400606d47       yes             virbr0-nic
> 
> (But as you can see, there is no instance VNIC connected to it.)
> 
> Sure enough, it appears that the instance was simply created without a
> VNIC:
> 
> [root at compute1 ~]# ps ax | grep qemu
>  1967 ?        Sl     0:08 /usr/libexec/qemu-kvm -global
> virtio-blk-pci.scsi=off -nodefconfig -nodefaults -nographic -drive
> file=/var/lib/nova/instances/473ae9ed-f5c5-4cd7-8e7c-0fe12c507eb6/disk,cache=none,format=qcow2,if=virtio
> -nodefconfig -machine accel=kvm:tcg -m 500 -no-reboot -device
> virtio-serial -serial stdio -device sga -chardev
> socket,path=/tmp/libguestfsfFBsgn/guestfsd.sock,id=channel0 -device
> virtserialport,chardev=channel0,name=org.libguestfs.channel.0 -kernel
> /var/tmp/.guestfs-162/kernel.1592 -initrd
> /var/tmp/.guestfs-162/initrd.1592 -append panic=1 console=ttyS0
> udevtimeout=300 no_timer_check acpi=off printk.time=1
> cgroup_disable=memory selinux=0  TERM=linux  -drive
> file=/var/tmp/.guestfs-162/root.1592,snapshot=on,if=virtio,cache=unsafe
> 

A few other "fun" facts that I've discovered:

* The only files that exist under /var/lib/nova/instances/INSTANCE_ID/
  are disk and console.log, and the size of console.log is 0.

* Trying to run "virsh qemu-attach PID" on the qemu-kvm process gives
  the following error:

  error: unsupported configuration: No monitor connection for pid 1914

* /var/log/libvirt/libvirtd.log contains a bunch of errors like this:

  error : virNetSocketReadWire:1194 : End of file while reading data:
Input/output error

  (I suspect that there's one for each attempt to start an instance.)

* Finally, realized that the "nova network-create" command in the
  Installation Guide is a bit borked.  ("--bridge-interface=br100"
  doesn't make any sense.)  I've re-created the network:

+---------------------+--------------------------------------+
| Property            | Value                                |
+---------------------+--------------------------------------+
| bridge              | br100                                |
| vpn_public_port     | None                                 |
| dhcp_start          | 172.31.249.2                         |
| bridge_interface    | eth1                                 |
| updated_at          | None                                 |
| id                  | 2bf1a644-ae2a-4b01-a35a-374ba8c8e64d |
| cidr_v6             | None                                 |
| deleted_at          | None                                 |
| gateway             | 172.31.249.254                       |
| rxtx_base           | None                                 |
| label               | vmnet                                |
| priority            | None                                 |
| project_id          | None                                 |
| vpn_private_address | None                                 |
| deleted             | 0                                    |
| vlan                | None                                 |
| broadcast           | 172.31.249.255                       |
| netmask             | 255.255.255.0                        |
| injected            | False                                |
| cidr                | 172.31.249.0/24                      |
| vpn_public_address  | None                                 |
| multi_host          | True                                 |
| dns2                | None                                 |
| created_at          | 2013-11-02T06:05:56.000000           |
| host                | None                                 |
| gateway_v6          | None                                 |
| netmask_v6          | None                                 |
| dns1                | 172.31.249.254                       |
+---------------------+--------------------------------------+

  My instance is still not getting a VNIC, however.

-- 
========================================================================
Ian Pilcher                                         arequipeno at gmail.com
Sometimes there's nothing left to do but crash and burn...or die trying.
========================================================================




More information about the Openstack mailing list