Ask Your Question
1

Problems in creating network with FlatDHCPManager

asked 2014-03-13 07:37:33 -0500

affo gravatar image

updated 2014-03-18 12:37:53 -0500

I'm getting frustrated in trying to create a network with the command:

nova --debug network-create vmnet --fixed-range-v4=10.0.0.0/24 --bridge=br100 --multi-host=T

I'm following the official tutorial by OpenStack to install Icehouse on Ubuntu 12.04 and i'm getting stuck into the networking section.

I'm __not__ using neutron.

My setup is the following one:
- i'm using Oracle Virtual Box.
- I created 2 istances: the Control node and the Compute node.
- I created 2 host-only network cards one with 192.168.0.1 ip and the other 10.0.0.1.
As suggested the 192.168.0.0 net is used as internal net for openstack services and the other should be used at this point of the installation.
- I also use another NATted network card to access the internet from my Virtual Box VMs.

I paste here Controller node /etc/network/interfaces configuration:

\# The loopback network interface  
auto lo  
iface lo inet loopback  
\# Internal Network  
auto eth0  
iface eth0 inet static  
    address 192.168.0.10  
    netmask 255.255.255.0  
\# External Network  
auto eth1  
iface eth1 inet static  
    address 10.0.0.10  
    netmask 255.255.255.0  
\# NATted Network  
auto eth2  
iface eth2 inet dhcp

Everything went well until i installed and configured nova-network and nova-api-metadata. From that point on the interface virbr0 was created and, at boot, ubuntu fails to configure the network.
I tried to fix the problem as you will se in the /etc/network/interfaces file of the compute node.
At least anyone can ping everyone on any IP address.

Given this, once I run the command nova network-create ... on the __Controller node__, I wait several seconds and the output is (among others):

ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500)

Up to now I tried many configurations and read as much as I could.
So, now, my questions are:
- What should I do?
- What should the /etc/network/interfaces file on the Compute Node should look like?

I apologize for my lack of linux-sysadmin skills in advance.

Addings: I add here my nova.conf files (no problem in showing you my passwords :) ):

Control Node:

[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=nova.rpc.impl_kombu  
rabbit_host=controller  
rabbit_password=rabbit  
my_ip=192.168.0.10  
vncserver_listen=192.168.0.10  
vncserver_proxyclient_address=192.168.0.10  
auth_strategy=keystone  
\#  
[database]  
connection=mysql://nova:nova@controller/nova  
\#  
[keystone_authtoken]  
auth_host=controller  
auth_port=35357  
auth_protocol=http  
admin_tenant_name=service  
admin_user=nova  
admin_password=nova

Compute Node:

[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 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-03-19 07:36:36 -0500

affo gravatar image

__SOLVED__.
After a week of crawling and frustration I discovered that the problem was in daemons versions.
I don't know why, but everything that was on the controller was 2014.1-b2 and everything on the compute node was 2014.1-b3...

So I did (on the controller node):
sudo apt-get update
sudo apt-get -u upgrade
sudo keystone-manage db_sync
sudo glance-manage db_sync
sudo nova-manage db sync

Restarted both nodes and everything went well.
Thank you

edit flag offensive delete link more
0

answered 2014-07-26 01:32:45 -0500

Vanathu chinnappan gravatar image

same issues , yet not able to find the location ... its controller or network or compute ..

http://paste.openstack.org/show/88323/

root@controller:~# nova boot --flavor Tiny --image cirros-0.3.2-x86_64 --nic net-id=40f14095-40b5-4c76-93bf-74e36d89249d --security-group default --key-name demo-key demo-instance1 ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-afede8c1-3745-47b3-896b-665e44ea49bd) root@controller:~#

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

[hide preview]

Get to know Ask OpenStack

Resources for moderators

Question Tools

Follow
1 follower

Stats

Asked: 2014-03-13 07:37:33 -0500

Seen: 635 times

Last updated: Jul 26 '14