Ask Your Question
0

CirrOS without default ipv4

asked 2015-04-14 12:44:38 -0500

tjiagoM gravatar image

updated 2015-04-15 05:25:44 -0500

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

edit retag flag offensive close merge delete

Comments

1

Does tenant's subnet eef2f2d6-377c-4b38-9cd0-b45c986a6584 have DHCP enabled ?
If "YES" then is daemon dnsmasq associated with this sunbnet running ?

$ ps -ef | grep dnsmasq
dbaxps gravatar imagedbaxps ( 2015-04-14 13:20:54 -0500 )edit

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.

tjiagoM gravatar imagetjiagoM ( 2015-04-15 04:39:01 -0500 )edit
1

Please, activate dnsmasq.log

Add to dhcp_agent.ini line  dnsmasq_config_file = /etc/neutron/dnsmasq.conf
Create /etc/neutron/dnsmasq.conf :-
log-facility = /var/log/neutron/dnsmasq.log
log-dhcp

Restart neutron-dhcp-agent service.

dbaxps gravatar imagedbaxps ( 2015-04-15 04:53:59 -0500 )edit

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...

tjiagoM gravatar imagetjiagoM ( 2015-04-15 05:26:25 -0500 )edit

Looks like image corruption. It is completely unrelated with neutron services.

dbaxps gravatar imagedbaxps ( 2015-04-15 05:35:25 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-15 16:49:10 -0500

tjiagoM gravatar image

@ dbaxps, thanks, you were right, the image was corrupted, maybe I the instance I had was from an unofficial source (I cannot remember).

So, I had again a Cirros image as described http://docs.openstack.org/juno/install-guide/install/apt/content/glance-verify.html (here) and now the instance has the IP as supposed without any other configuration, thanks!

However, I still have a problem connecting to an external network. That question is already https://ask.openstack.org/en/question/65162/instance-cannot-connect-to-external-network/ (here).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-04-14 12:44:38 -0500

Seen: 1,398 times

Last updated: Apr 15 '15