[rhos-list] Nova-Network problem

Vogel Nicolas nicolas.vogel at heig-vd.ch
Thu Mar 21 07:38:15 UTC 2013


Hello,

I’ve installed Openstack Folsom with Keystone, Nova, Cinder and Glance on a single node with CentOS 6.3. I’m using Nova-network and not Quantum.
My server has 2 NICs, and I used one of them for management (em1: 10.192.75.190/24) and the second for my VM (em2 + br100: 10.192.73.193/26).
All the VM I start get a right IP address but I can’t reach them.
Here is my config:

em1:
DEVICE="em1"
BOOTPROTO="none"
HWADDR="84:2B:2B:xx:xx:xx"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
IPADDR=10.192.75.190
PREFIX=24
GATEWAY=10.192.75.1
DNS1=10.192.48.100
DNS2=10.192.48.101
UUID="f1d642aa-c64c-4696-b849-xxxxxxxxxxxx"

em2:
DEVICE="em2"
#BOOTPROTO="none"
HWADDR="84:2B:2B:6C:FD:10"
BRIDGE=br100
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="014a008d-02cb-45c2-98b4-xxxxxxxxxxxx"

br100:
DEVICE=br100
TYPE=Bridge
ONBOOT=yes
DELAY=0
BOOTPROTO=static
IPADDR=10.192.73.193
NETMASK=255.255.255.192

I created my network with following commands:
nova-manage network create private --multi_host=T --fixed_range_v4=10.192.73.192/26 --bridge=br100 --bridge_interface=em2 --network_size=64

nova.conf:
[DEFAULT]
logdir = /var/log/nova
state_path = /var/lib/nova
lock_path = /var/lib/nova/tmp
volumes_dir = /etc/nova/volumes
dhcpbridge = /usr/bin/nova-dhcpbridge
dhcpbridge_flagfile = /etc/nova/nova.conf
force_dhcp_release = True
injected_network_template = /usr/share/nova/interfaces.template
libvirt_nonblocking = True
libvirt_inject_partition = -1
network_manager = nova.network.manager.FlatDHCPManager
iscsi_helper = tgtadm
sql_connection = mysql://nova:nova@localhost/nova
compute_driver = libvirt.LibvirtDriver
firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver
rpc_backend = nova.openstack.common.rpc.impl_qpid
rootwrap_config = /etc/nova/rootwrap.conf
auth_strategy = keystone
flat_interface = em2
public_interface = em2
volume_api_class = nova.volume.cinder.API
enabled_apis = ec2,osapi_compute,metadata

[keystone_authtoken]
admin_tenant_name = %SERVICE_TENANT_NAME%
admin_user = %SERVICE_USER%
admin_password = %SERVICE_PASSWORD%
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
signing_dirname = /tmp/keystone-signing-nova

and the routing table:
Destination     Passerelle                Genmask                          Indic Metric Ref    Use Iface
10.192.73.192   *                              255.255.255.192               U     0      0        0 br100
10.192.75.0     *                                255.255.255.0                    U     0      0        0 em1
192.168.122.0   *                               255.255.255.0                   U     0      0        0 virbr0
link-local      *                                    255.255.0.0                        U     1002   0        0 em1
link-local      *                                    255.255.0.0                        U     1006   0        0 br100
default         10.192.75.1                0.0.0.0                                  UG    0      0        0 em1

What did I make wrong in my config?

If I want to assign my VM a floating IP (public IP), I have to create a pool. But do I have to use a third NIC which is available on my server and create a br101 interface for that?

I’m also trying to configure a second node. Is the network configuration identical as for the controller (with a br100 = IP 10.192.73.194 in this case) ?

Thanks for all your answers and help,

Cheers,
Nicolas.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhos-list/attachments/20130321/519d8fba/attachment.htm>


More information about the rhos-list mailing list