CirrOS without default ipv4
Hello,
I have Openstack Juno in a Ubuntu Server 14.04. I'm trying to follow this tutorial: http://docs.openstack.org/juno/install-guide/install/apt/content/launch-instance-neutron.html (http://docs.openstack.org/juno/instal...)
However, when I launch an instance with this:
nova boot --flavor m1.tiny --image Cirros --nic net-id=eef2f2d6-377c-4b38-9cd0-b45c986a6584 --security-group default --key-name demo-key demo-instance1
And try to ping the router in the console:
ping -c 4 192.168.1.1
I cannot ping. To do so, I have to specifically determine the IP with:
ifconfig eth0 192.168.1.2
However, I only know this IP because I looked in the Network Topology of the Horizon dashboard. Shouldn't this be automatic? If in the dashboard I see the IP shouldn't the Cirros image also know its IP?
The output of the command #ps -ef | grep dnsmasq
is:
libvirt+ 3242 1 0 Apr09 ? 00:01:34 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf
nobody 10230 1 0 Apr14 ? 00:00:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=tap950d8019-fa --except-interface=lo --pid-file=/var/lib/neutron/dhcp/eef2f2d6-377c-4b38-9cd0-b45c986a6584/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/eef2f2d6-377c-4b38-9cd0-b45c986a6584/host --addn-hosts=/var/lib/neutron/dhcp/eef2f2d6-377c-4b38-9cd0-b45c986a6584/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/eef2f2d6-377c-4b38-9cd0-b45c986a6584/opts --leasefile-ro --dhcp-range=set:tag0,192.168.1.0,static,86400s --dhcp-lease-max=256 --conf-file= --domain=openstacklocal
root 17161 14965 0 10:37 pts/5 00:00:00 grep dnsmasq
------ UPDATE: ------
I edited the file /etc/neutron/dhcp_agent.ini to be like this:
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
use_namespaces = True
dnsmasq_config_file = /etc/neutron/dnsmasq.conf
And nano /etc/neutron/dnsmasq.conf to be like this:
log-facility = /var/log/neutron/dnsmasq.log
log-dhcp
Then:
service neutron-dhcp-agent restart
I terminated the other instance and launch a new one with the same characteristics. In network topology it has a new IP (.1.4). However, accessing the console of the new instance it is stopped in here: http://imgur.com/KlQ7sNj
Does tenant's subnet eef2f2d6-377c-4b38-9cd0-b45c986a6584 have DHCP enabled ?
If "YES" then is daemon dnsmasq associated with this sunbnet running ?
In the subnet details the option of "Enable DHCP" is checked. I am sorry but I don't know how to answer your question. I edited my question with the output of the command you asked.
Please, activate dnsmasq.log
Restart neutron-dhcp-agent service.
I updated my question with the actions you told me and the results. Basically, now the CirrOS just doesn't let me login in it...
Looks like image corruption. It is completely unrelated with neutron services.