Ask Your Question
0

nova-compute on cloud controller??

asked 2012-05-23 20:05:51 -0500

juanfra-rc gravatar image

Hi:

I have installed all services nova-* on cloud controller. However, is really necessary to install nova-compute on cloud controler if only I want to launch instances on worker nodes? is there any dependency in nova-compute service between controller and worker nodes?

thanks!

Regards.

edit retag flag offensive close merge delete

11 answers

Sort by ยป oldest newest most voted
0

answered 2012-05-25 09:48:02 -0500

juanfra-rc gravatar image

Ok.

So, did you add any iptables rule to fetch instance meta-data? or you are using multi-host option (nova-network in each node)?

edit flag offensive delete link more
0

answered 2012-05-24 07:11:08 -0500

mx-chilly gravatar image

No, you don't need to install nova-compute on the controller node in such a setup.

edit flag offensive delete link more
0

answered 2012-05-24 08:52:29 -0500

juanfra-rc gravatar image

Ok. Thanks Max.

I'll try this configuration.

Regards!

edit flag offensive delete link more
0

answered 2012-05-24 18:23:18 -0500

juanfra-rc gravatar image

Hi Max:

I've launched one instance in the following scenario:

- cloud controller (all services except nova-compute)
- nova-compute 1 (only nova-compute service)
- nova-compute 2 (only nova-compute service)
- nova-compute 3 (only nova-compute service)

I asked if nova-compute was necessary on cloud controller because of my instance is not deployed correctly when nova-compute service is not installer on cloud controller. The instance log is:

cloud-init start running: Thu, 24 May 2012 18:16:21 +0000. up 9.85 seconds

2012-05-24 18:17:47,705 - util.py[WARNING]: 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [6/120s]: url error [[Errno 113] No route to host]

2012-05-24 18:17:50,704 - util.py[WARNING]: 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [9/120s]: url error [[Errno 113] No route to host]

2012-05-24 18:17:53,704 - util.py[WARNING]: 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [12/120s]: url error [[Errno 113] No route to host]

2012-05-24 18:19:44,782 - DataSourceEc2.py[CRITICAL]: giving up on md after 123 seconds

no instance data found in start

Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd

  • Starting AppArmor profiles [80G [74G[ OK ]

landscape-client is not configured, please run landscape-config.

acpid: starting up with proc fs

  • Stopping System V initialisation compatibility[74G[ OK ]

acpid: 1 rule loaded

acpid: waiting for events: event logging is off

  • Starting System V runlevel compatibility[74G[ OK ]

  • Starting ACPI daemon[74G[ OK ]

  • Starting save kernel messages[74G[ OK ]

  • Starting automatic crash report generation[74G[ OK ]

  • Starting regular background program processing daemon[74G[ OK ]

  • Starting deferred execution scheduler[74G[ OK ]

  • Starting CPU interrupts balancing daemon[74G[ OK ]

  • Stopping save kernel messages[74G[ OK ]

  • Starting crash report submission daemon[74G[ OK ]

  • Stopping System V runlevel compatibility[74G[ OK ]

edit flag offensive delete link more
0

answered 2012-05-24 20:59:32 -0500

mx-chilly gravatar image

Hi Juan,

first things first: I've got the same setup up and running, which is why I said that you don't need nova-compute on the cloud controller.

I suppose you checked "nova-manage service list" and you have smileys on your compute services?

There was an issue when images need to fetch meta data, so you might have a look here: https://answers.launchpad.net/nova/+question/159317 (https://answers.launchpad.net/nova/+q...)

edit flag offensive delete link more
0

answered 2012-05-24 21:44:45 -0500

juanfra-rc gravatar image

Hi Max,

Yes, of course. All services have smiles. What kind of instances have you launched? http://uec-images.ubuntu.com or customized ones?

Anyway, I'll try to launch a customized instance and I'll report about anything.

Thanks!

PD: I had already issued 'iptables -t nat -A PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination $CONTROLLER:8773' in all of compute nodes.

edit flag offensive delete link more
0

answered 2012-05-25 06:11:10 -0500

mx-chilly gravatar image

Actually I've got both types running, uec-images and customized CentOs images.

edit flag offensive delete link more
0

answered 2012-05-26 17:32:56 -0500

mx-chilly gravatar image

I'm not using the multi-host option for nova-network. The controller node is the only one having nova-network running.

Though I had really a hard time getting the instances to be able to connect to the outside world, incoming with floating ips and outgoing from the instances themselves, I never ran into trouble with the meta-data. But I worked most of the time with the custom built images and added the use-images later on.

edit flag offensive delete link more
0

answered 2012-05-27 19:42:16 -0500

juanfra-rc gravatar image

Hi again:

How many network interfaces do you have in each node? could you paste your nova.conf file, please?

I don't know what can be wrong...

Thanks Max.

edit flag offensive delete link more
0

answered 2012-05-30 08:39:40 -0500

mx-chilly gravatar image

I only have eth0, but it's trunked so i've got 3 eth0.X and a bridge for each of it.

--root_helper=sudo nova-rootwrap --auth_strategy=keystone --allow_admin_api=true ############

nova.flags

--api_paste_config=/etc/nova/api-paste.ini --connection_type=libvirt --ec2_host=10.0.2.21 --glance_api_servers=10.0.2.21:9292 --image_service=nova.image.glance.GlanceImageService --lock_path=/var/lock/nova #--log-config=<none> --logdir=/var/log/nova --my_ip=10.0.2.21 --rabbit_host=10.0.2.21 --rabbit_password=guest --resume_guests_state_on_host_boot=true --s3_host=10.0.2.21 --start_guests_on_host_boot=true --state_path=/var/lib/nova --zombie_instance_updated_at_window=172800 ############

nova.log

publish_errors=True

############

nova.network.linux_net

--dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --routing_source_ip=10.0.2.21 --network_manager=nova.network.manager.FlatDHCPManager --network_host=10.0.2.21 --flat_network_dhcp_start=192.168.2.2 --flat_network_bridge=br232 --flat_interface=eth0.232 --flat_injected=false --force_dhcp_release --public_interface=eth0.235 --floating_range=10.0.5.128/25 --fixed_range=192.168.2.0/24 --network_size=255 ############

nova.service

osapi_compute_listen="0.0.0.0"

osapi_compute_listen_port=8774

osapi_volume_listen="0.0.0.0"

osapi_volume_listen_port=8776

############

nova.test

--use_deprecated_auth=false ############

nova.api.ec2

--keystone_ec2_url=http://10.0.2.21:5000/v2.0/ec2tokens ############

nova.vnc

--vnc_enabled=true --vncserver_proxyclient_address=10.0.2.22 --novncproxy_base_url=http://10.0.2.21:6080/vnc_auto.html --vncserver_listen=10.0.2.22 ###########

nova.virt.libvirt.connection

--libvirt_type=kvm --libvirt_use_virtio_for_bridges=true ###########

nova.scheduler.manager

--scheduler_driver=nova.scheduler.simple.SimpleScheduler --sql_connection=mysql://nova:nova@10.0.2.21/nova

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: 2012-05-23 20:05:51 -0500

Seen: 86 times

Last updated: May 31 '12