Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

nova-network and ip setup

Hello there,

im having problems getting my openstack cloud to work properly.

I got the following setup:

Two server running Ubuntu 14.04 LTS:

  • controller node (keystone, glance, swift, nova) with IP (192.168.0.100)
  • compute node (nova) with IP (192.168.0.101)

They are connected to a router (192.168.0.1). I am using nova-networking with FlatDHCPManager. I configured a demo network (10.0.0.0/24) and i am able to launch instances. If I launch an instance, it usually gets the IP 10.0.0.2, but I am unable to ping or ssh to the VM from the controller node.

What do I have to configure, so that I am able to ssh from controller (192.168.0.100) to the VM (10.0.0.2) which runs on the compute node (192.168.0.101)?

Here are my controller configs:

/etc/nova/nova.conf

[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata

rpc_backend = rabbit
rabbit_host = controller
rabbit_password = ****

my_ip = 192.168.0.100

vncserver_listen = 192.168.0.100
vncserver_proxyclient_address = 192.168.0.100

glance_host = controller

network_api_class = nova.network.api.API
security_group_api = nova

auth_strategy=keystone


[database]
connection = mysql://nova:****@controller/nova

[keystone_authtoken]
auth_uri = http://controller:5000/v2.0
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = ***

/etc/network/interface

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

and here are the config files from compute node:

/etc/nova/nova.conf

[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata

auth_strategy = keystone

rpc_backend = rabbit
rabbit_host = controller
rabbit_password = ***

my_ip = 192.168.0.102
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 192.168.0.102
novncproxy_base_url = http://controller:6080/vnc_auto.html

glance_host = controller

network_api_class = nova.network.api.API
security_group_api = nova
firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver
network_manager = nova.network.manager.FlatDHCPManager
network_size = 254
allow_same_net_traffic = True
multi_host = True
send_arp_for_ha = True
share_dhcp_address = True
force_dhcp_release = True
flat_network_bridge = br100
flat_interface = eth0
public_interface = eth0

[database]
connection=mysql://nova:****@controller/nova

[keystone_authtoken]
auth_uri = http://controller:5000/v2.0
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = ****

I really would appreciaite your help.

Thanks