How do I create nova networks for Folsom on Ubuntu 12.04?

Asked by David Butler

I have followed the instructions for the install and deploys of Openstack Folsom on Ubuntu 12.04 at:
http://docs.openstack.org/trunk/openstack-compute/install/apt/content/

All my services show as OK, but I cannot create a useable vm network.

I have tried the method in the main text with briding and the method in Appendix B (single node install, with vlan), but either get an error woth the create command or create a network that cannot be used when creating instances in the dashbaord, e.g.

For vlan network with briding, set in /etc/nova/nova.conf

# Network settings
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
network_manager=nova.network.manager.VlanManager
public_interface=eth0
vlan_interface=eth1
fixed_range=192.168.30.0/24
routing_source_ip=192.168.30.205
floating_range=192.168.40.224/27
network_size=32
force_dhcp_release=True
iscsi_helper=ietadm
iscsi_ip_address=192.168.40.205
rootwrap_config=/etc/nova/rootwrap.conf

# The primary network interface
auto eth0
iface eth0 inet static
 address 192.168.40.205
 netmask 255.255.255.0
 network 192.168.40.0
 broadcast 192.168.40.255
 gateway 192.168.40.1
 # dns-* options are implemented by the resolvconf package, if installed
 dns-nameservers 192.168.1.1
 dns-search mnil.bc.co.uk

auto eth1
iface eth1 inet static
        address 192.168.30.205
        netmask 255.255.255.0
        network 192.168.30.0
        broadcast 192.168.30.255
        gateway 192.168.30.254
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
        dns-search mnil.bc.co.uk

$ sudo nova-manage db sync

$ nova-manage network create private --fixed_range_v4=192.168.30.0/24 --num_networks=1 --bridge=br100 --bridge_interface=eth1 --network_size=256
Command failed, please check log for more info
2012-10-25 10:54:06 CRITICAL nova [req-d30f31cc-0c73-4ec5-85df-52963d4f6c5c None None] 'vlan_start'

$ nova-manage network create --fixed_range_v4=192.168.20.0/24 --num_networks=1 --network_size=256 --label=private1 --vlan=100
Command failed, please check log for more info
2012-10-26 11:53:11 CRITICAL nova [req-1c993005-6db7-471e-b957-2535acfb21ea None None] bridge_interface is required to create a network.

For a flat network with briding, set in /etc/nova/nova.conf

# NETWORK
network_manager=nova.network.manager.FlatDHCPManager
force_dhcp_release=True
dhcpbridge_flagfile=/etc/nova/nova.conf
firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
# Change my_ip to match each host
my_ip=192.168.40.205
public_interface=br100
vlan_interface=eth0
flat_network_bridge=br100
flat_interface=eth0
fixed_range=192.168.30.0/24
iscsi_helper=ietadm
iscsi_ip_address=192.168.40.205
rootwrap_config=/etc/nova/rootwrap.conf

network interfaces in /etc/network/interfaces configured as
# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.40.205
        netmask 255.255.255.0
        network 192.168.40.0
        broadcast 192.168.40.255
        gateway 192.168.40.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
        dns-search mnil.bc.co.uk

# Bridge network interface for VM networks
auto br100
        iface br100 inet static
        address 192.168.30.1
        netmask 255.255.255.0
        bridge_stp off
        bridge_fd 0

$ sudo apt-get install bridge-utils
$ sudo brctl addbr br100
$ sudo nova-manage db sync
$ nova-manage network create private --fixed_range_v4=192.168.30.0/24 --num_networks=1 --bridge=br100 --bridge_interface=eth0 --network_size=255
Command failed, please check log for more info
2012-10-26 12:12:05 CRITICAL nova [req-de52b8e8-d350-4ff9-9272-c78ecc5aea5e None None] 'vlan_start'

How do I configure the network?

Is quantum needed?

Launchpad lsit the following bugs, related to this

https://bugs.launchpad.net/nova/+bug/1046778
https://bugs.launchpad.net/nova/+bug/1070560
https://bugs.launchpad.net/nova/+bug/1053814
https://bugs.launchpad.net/nova/+bug/877046

Is there a working method to create the nova compute network for Folsom on Ubuntu 12.04?

Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
koolhead17 (koolhead17) said :
#1
Revision history for this message
David Butler (david-butler) said :
#2

http://docs.openstack.org/trunk/openstack-compute/install/apt/content/ap_installingfolsomubuntuprecise.html is Appendix B from the instructions at http://docs.openstack.org/trunk/openstack-compute/install/apt/content/.

These were the first set of instructions I followed.

When I try and create a network, I get the following error

$ nova-manage network create private --fixed_range_v4=192.168.30.0/24 --num_networks=1 --bridge=br100 --bridge_interface=eth0 --network_size=256
Command failed, please check log for more info
2012-11-06 11:06:18 CRITICAL nova [req-0b1d73c6-2a28-4c17-b159-cc311660cfcd None None] 'vlan_start'

Or

$ nova-manage network create private --fixed_range_v4=192.168.30.0/27 --num_networks=1 --bridge=br100 --bridge_interface=eth0 --network_size=32
Command failed, please check log for more info
2012-11-06 11:07:35 CRITICAL nova [req-f9248fd7-0932-4206-bd0a-e06f46f7fea9 None None] 'vlan_start'

I have working Diablo and Essex compute installs, which use nova.network.manager.FlatDHCPManager when using a bridge.

The nova.conf in these instructions uses network_manager=nova.network.manager.VlanManager

Also br100 was not setup in the install instructions and is not set in the nova.conf

I cannot create a network using the Folsom Ubuntu install instructions, but I don know openstack engough to understand why.

The problem seems very simialr to the bugs I listed in my original question.

I have included my nova.conf and network config for reference:

$ more /etc/network/interfaces
# 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 static
 address 192.168.40.205
 netmask 255.255.255.0
 network 192.168.40.0
 broadcast 192.168.40.255
 gateway 192.168.40.1
 # dns-* options are implemented by the resolvconf package, if installed
 dns-nameservers 192.168.1.1
 dns-search mnil.bbc.co.uk

auto eth1
iface eth1 inet static
        address 192.168.30.205
        netmask 255.255.255.0
        network 192.168.30.0
        broadcast 192.168.30.255
        gateway 192.168.30.254
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
        dns-search mnil.bbc.co.uk

$ sudo more /etc/nova/nova.conf
[DEFAULT]
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/run/lock/nova
verbose=True
api_paste_config=/etc/nova/api-paste.ini
scheduler_driver=nova.scheduler.simple.SimpleScheduler
s3_host=192.168.40.205
ec2_host=192.168.40.205
ec2_dmz_host=192.168.40.205
rabbit_host=192.168.40.205
cc_host=192.168.40.205
nova_url=http://192.168.40.205:8774/v1.1/
sql_connection=mysql://nova:openstack@192.168.40.205/nova
ec2_url=http://192.168.40.205:8773/services/Cloud

# Auth
use_deprecated_auth=false
auth_strategy=keystone
keystone_ec2_url=http://192.168.40.205:5000/v2.0/ec2tokens
# Imaging service
glance_api_servers=192.168.40.205:9292
image_service=nova.image.glance.GlanceImageService

# Virt driver
connection_type=libvirt
#libvirt_type=qemu
libvirt_type=kvm
libvirt_use_virtio_for_bridges=true
start_guests_on_host_boot=false
resume_guests_state_on_host_boot=false

# Vnc configuration
novnc_enabled=true
novncproxy_base_url=http://192.168.40.205:6080/vnc_auto.html
novncproxy_port=6080
vncserver_proxyclient_address=127.0.0.1
vncserver_listen=0.0.0.0

# Network settings
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
network_manager=nova.network.manager.VlanManager
public_interface=eth0
vlan_interface=eth1
fixed_range=192.168.30.0/24
routing_source_ip=192.168.40.205
network_size=256
force_dhcp_release=True
iscsi_helper=ietadm
iscsi_ip_address=192.168.30.205
rootwrap_config=/etc/nova/rootwrap.conf

# Cinder
volume_api_class=nova.volume.cinder.API
osapi_volume_listen_port=5900

Revision history for this message
Vignesh sankaran (viki-infotech01) said :
#3

hi,
i do have a same problem pls inform me if u find the solution for this pls i need it..

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
David Butler (david-butler) said :
#5

I still think there is a bug or a problem with the instructions.

I have not solved this problem.

Revision history for this message
koolhead17 (koolhead17) said :
#6
Revision history for this message
David Butler (david-butler) said :
#7

Koolhead17,

I followed tha Appendix B, almost all of it worked without problems, except when I try and create a network using

$ nova-manage network create private --fixed_range_v4=192.168.30.0/24 --num_networks=1 --bridge=br100 --bridge_interface=eth1 --network_size=256
Command failed, please check log for more info
2012-10-25 10:54:06 CRITICAL nova [req-d30f31cc-0c73-4ec5-85df-52963d4f6c5c None None] 'vlan_start'

This means I cannot create a network and run a VM.

Dave.

Revision history for this message
Vignesh sankaran (viki-infotech01) said :
#8

Hi,

i'm also using the same manual but i user FlatDhcp Manager instaed of vlan manager it works for me may be u can try with that..

regards,
Vignesh

Revision history for this message
David Butler (david-butler) said :
#9

Vignesh,

Thanks for the advice. Writing a paper at moment, but will try.

Did you need to manually configure a bridge interface (br100) in /etc/network/interfaces ?

Did you need to change any other nova.conf network settings from Appendix B beside the network_manage?
e.g. public_interface, vlan_interface, flat_network_bridge, flat_interface

Which of the nova-manage network create private commands did you use?

Thanks in advance.

Dave.

Revision history for this message
Vignesh sankaran (viki-infotech01) said :
#10

Hi Dave,

http://www.hastexo.com/resources/docs/installing-openstack-essex-4-ubuntu-1204-precise-pangolin/step-5-install-and-configur

This is the link which has configuaration regarding dhcpmanager. Try it if u have any problem please let me know....

regards,
Vignesh

Revision history for this message
Rajesh kannan (rajeshkannan007) said :
#11

Hi David,

Its seems like nothing is wrong with your nova.conf

try the following command

$ sudo nova-manage network create private --fixed_range_v4=192.168.30.0/24 --num_networks=1 --bridge=br100 --bridge_interface=eth0 --network_size=256

i changed the value of this command as per your configuration file, try this...

DON'T FORGET TO INCLUDE SUDO IN THE BEGINNING OF THE COMMAND

let me know its working or not..

Regards,
Rajesh kannan

Can you help with this problem?

Provide an answer of your own, or ask David Butler for more information if necessary.

To post a message you must log in.