← Back to team overview

openstack team mailing list archive

Re: ifconfig in VM not showing IP address of eth0 port

 

Nice you figured out. Check the switch vlan tagging configuration. You need
to use the trunk mode in your switch.
Regards,
Razique
Le vendredi 30 novembre 2012, Ahmed Al-Mehdi a écrit :

> I resolved this issue.  The problem was the switch was dropping the DHCP
> request packet sent by the VM.  I verified using "tcpdump" that the packet
> was going out the physical ethernet port of the compute node.  However, the
> packet did not show up at the ethernet port of the controller node.  I
> verified the two ports are on the same (physical switch) VLAN. I then setup
> direct connect, bypassing the switch, and the VM was able to get a response
> to the DHCP request, etc.  Time permitting I will investigate why the
> switch was dropping the packet.
>
> Thanks to all who responded.
>
> Regards,
> Ahmed.
>
>
>
> On Wed, Nov 28, 2012 at 4:13 PM, Ahmed Al-Mehdi <ahmedalmehdi@xxxxxxxxx>wrote:
>
> Hi Razique,
>
> Thank you helping out.  Yes, I see an IP addr assigned to the instance.
>  And yes, I am using libvirt.
>
> root@novato:~/ahmed# nova list
>
> +--------------------------------------+-------+--------+-------------------------+
> | ID                                   | Name  | Status | Networks
>        |
>
> +--------------------------------------+-------+--------+-------------------------+
> | 26188c69-e67d-41b8-a066-6103b191fbea | myvm1 | ACTIVE |
> net_proj_one=10.10.10.3 |
>
> +--------------------------------------+-------+--------+-------------------------+
> root@novato:~/ahmed#
>
> I do not have the external network setup.  Is that necessary to get an IP
> address from the private network to which eth0 of the VM network is
> attached.
>
>
> From cirros log, it seem dhcp is enabled and started, but fails to get an
> IP addr:
>
> Starting network...
> udhcpc (v1.18.5) started
> Sending discover...
> Sending discover...
> Sending discover...
> No lease, failing
> WARN: /etc/rc3.d/S40-network failed
> cloud-setup: checking
> http://169.254.169.254/2009-04-04/meta-data/instance-id
> wget: can't connect to remote host (169.254.169.254): Network is
> unreachable
> cloud-setup: failed 1/30: up 10.00. request failed
> wget: can't connect to remote host (169.254.169.254): Network is
> unreachable
> cloud-setup: failed 2/30: up 11.02. request failed
> ...........
> wget: can't connect to remote host (169.254.169.254): Network is
> unreachable
> cloud-setup: failed 30/30: up 39.15. request failed
> cloud-setup: after 30 fails, debugging
> cloud-setup: running debug (30 tries reached)
> ############ debug start ##############
> ### /etc/rc.d/init.d/sshd start
> /etc/rc3.d/S45-cloud-setup: line 66: /etc/rc.d/init.d/sshd: not found
> route: fscanf
> ### ifconfig -a
> eth0      Link encap:Ethernet  HWaddr FA:16:3E:D9:8E:97
>           inet6 addr: fe80::f816:3eff:fed9:8e97/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:17 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:2062 (2.0 KiB)  TX bytes:1134 (1.1 KiB)
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
> ### route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> route: fscanf
> ### cat /etc/resolv.conf
> cat: can't open '/etc/resolv.conf': No such file or directory
> ### gateway not found
> /etc/rc3.d/S45-cloud-setup: line 66: can't open /etc/resolv.conf: no such
> file
> ### pinging nameservers
> ### uname -a
> Linux cirros 3.0.0-12-virtual #20-Ubuntu SMP Fri Oct 7 18:19:02 UTC 2011
> x86_64 GNU/Linux
> ### lsmod
> Module                  Size  Used by    Not tainted
> vfat                   17585  0
> fat                    61475  1 vfat
> isofs                  40253  0
> ip_tables              27473  0
> x_tables               29846  1 ip_tables
> pcnet32                42078  0
> 8139cp                 27412  0
> ne2k_pci               13691  0
> 8390                   18856  1 ne2k_pci
> e1000                 108573  0
> acpiphp                24080  0
> .....
>
>
>
> On Wed, Nov 28, 2012 at 3:44 PM, Razique Mahroua <razique.mahroua@gmail.
>
>

-- 
*Nuage & Co - Razique Mahroua*
razique.mahroua@xxxxxxxxx

JPEG image


References