Ask Your Question
0

I can`t get images from glance server

asked 2011-06-18 14:55:25 -0500

revolutionperminutes gravatar image

Hi all~

I have four physical servers and there is nova modules.

First node: nova-api,nova-objectstore,nova-scheduler,glance IP:10.250.0.1 Second node: nova-network IP:10.250.0.2 Third node: nova-compute IP:10.250.0.3 Fourth node: nova-volume IP:10.250.0.4

The problem is when I start run up a new instance, the Third node can`t get images from First node.

In Third node /var/lib/nova/instances/_base, there is only 0 byte file that name is 00000001.

drwxr-xr-x 2 nova nogroup 4096 2011-06-18 23:13 ./ drwxr-xr-x 5 nova root 4096 2011-06-18 23:13 ../

-rw-r--r-- 1 nova nogroup 0 2011-06-18 23:13 00000001

Here is Third node nova-compute.log

2011-06-18 23:13:27,313 DEBUG nova.utils [-] Attempting to grab semaphore "iptables" for method "apply"... from (pid=1620) inner /usr/lib/pymodules/python2.7/nova/utils.py:578 2011-06-18 23:13:27,313 DEBUG nova.utils [-] Attempting to grab file lock "iptables" for method "apply"... from (pid=1620) inner /usr/lib/pymodules/python2.7/nova/utils.py:583 2011-06-18 23:13:27,313 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=1620) execute /usr/lib/pymodules/python2.7/nova/utils.py:141 2011-06-18 23:13:27,319 INFO nova.virt.libvirt_conn [-] Instance instance-00000014 destroyed successfully. 2011-06-18 23:13:27,324 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-restore from (pid=1620) execute /usr/lib/pymodules/python2.7/nova/utils.py:141 2011-06-18 23:13:27,334 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t nat from (pid=1620) execute /usr/lib/pymodules/python2.7/nova/utils.py:141 2011-06-18 23:13:27,347 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-restore from (pid=1620) execute /usr/lib/pymodules/python2.7/nova/utils.py:141 2011-06-18 23:13:27,377 DEBUG nova.virt.libvirt.firewall [-] The nwfilter(nova-instance-instance-00000014-secgroup) for instance-00000014 is not found. from (pid=1620) unfilter_instance /usr/lib/pymodules/python2.7/nova/virt/libvirt/firewall.py:310 2011-06-18 23:13:27,378 INFO nova.virt.libvirt_conn [-] instance instance-00000014: deleting instance files /var/lib/nova/instances/instance-00000014 2011-06-18 23:13:37,440 DEBUG nova.rpc [-] received {u'_context_request_id': u'MUSPYCO5H9ZZNKG-9XPW', u'_context_read_deleted': False, u'args': {u'instance_id': 21, u'request_spec': {u'instance_properties': {u'state_description': u'scheduling', u'availability_zone': None, u'ramdisk_id': u'2', u'instance_type_id': 2, u'user_data': u'', u'vm_mode': None, u'reservation_id': u'r-qqoo8059', u'user_id': u'novaadmin', u'display_description': None, u'key_data': u'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDduHppPsr0FdQXO8immKC2Su5/LfRHEgfjbJd1Nw03TkZ+gMymGOw2eyXFLjLsHiXk3/fimicRu0fY1HcnAO0p8fjgMP13EDm/77qkzwbVe6WqxSxYHeT6HzBbNk/AfNMKIAayWAk5KQe9sVjWGYLN+rA0euRCRUGX7Z6W+LC48Q== nova@ubuntu-api001\n', u'state': 0, u'project_id': u'novaproject', u'metadata': {}, u'kernel_id': u'1', u'key_name': u'park', u'display_name': None, u'local_gb': 0, u'locked': False, u'launch_time': u'2011-06-18T14:13:36Z', u'memory_mb': 512, u'vcpus': 1, u'image_ref': 3, u'os_type': None}, u'instance_type': {u'rxtx_quota': 0, u'deleted_at': None, u'name': u'm1.tiny', u'deleted': False, u'created_at': None, u'updated_at': None, u'memory_mb': 512, u'vcpus': 1, u'rxtx_cap': 0, u'swap': 0, u'flavorid ... (more)

edit retag flag offensive close merge delete

13 answers

Sort by ยป oldest newest most voted
0

answered 2011-06-21 01:17:53 -0500

Yes. It is a pretty painless process. There's some helpful documentation here: http://glance.openstack.org/installing.html (http://glance.openstack.org/installin...)

edit flag offensive delete link more
0

answered 2011-06-21 01:33:04 -0500

yzt356 gravatar image

Yeah, I installed glance and start the glance server with command "glance-control api start", then I can see the port 9292 is used.

Thanks.

edit flag offensive delete link more
0

answered 2011-06-21 01:03:30 -0500

The LocalImageService has been removed from Nova in favor of GlanceImageService with a local backend. Glance is a dependency and must actually be running at the ip/port defined in your config.

edit flag offensive delete link more
0

answered 2011-06-21 01:11:20 -0500

yzt356 gravatar image

So, does that means I should explicitly install and configure glance server?

edit flag offensive delete link more
0

answered 2011-06-19 01:34:09 -0500

revolutionperminutes gravatar image

Thanks Brian Waldon, that solved my question.

edit flag offensive delete link more
0

answered 2011-06-19 01:36:46 -0500

revolutionperminutes gravatar image

You solved my problem. But I don`t know why I failed first time. I start up instance now, just 8 hours after.

Thank you Brian.

edit flag offensive delete link more
0

answered 2011-06-20 11:25:49 -0500

yzt356 gravatar image

I have met the same question too. I have upgrade my openstack recently and it failed for the same reason. But I do the same before upgrade while it works.

my configuration file is :

--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 --verbose

--s3_host=10.0.0.44 --rabbit_host=10.0.0.44 --cc_host=10.0.0.44 --ec2_url=http://10.0.0.44:8773/service/Cloud --fixed_range=192.168.0.0/16 --network_size=60000 --FAKE_subdomain=ec2 --routing_source_ip=10.0.0.44 --sql_connection=mysql://root:sqlpasswd@10.0.0.44/nova --glance_api_servers=10.0.0.44:9292 --daemonize=1

and the error message is the same as above.

edit flag offensive delete link more
0

answered 2011-06-20 19:09:50 -0500

Can you double-check that you restarted nova-api with that config file and that the ip/port are reachable?

edit flag offensive delete link more
0

answered 2011-06-18 15:13:25 -0500

If you are using trunk rev 1169 or newer, you need to change your two glance flags. They were consolidated into a single flag of <host[:port]&gt; strings<="" p="">

--glance_host=10.250.0.1 --glance_port=9292

Would become:

--glance_api_servers=10.250.0.1:9292

edit flag offensive delete link more
0

answered 2011-06-21 00:56:53 -0500

yzt356 gravatar image

I have restarted all the service of nova- and the ip/port are reachable. I can run the command "euca-describe-instance", but all the commands related to images fail. I wonder if glance server is a must for openstack? In the old version glance server is not necessary to run nova. Just with the same configuration, nova can run correctly before nova's last update, how could this happen?

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: 2011-06-18 14:55:25 -0500

Seen: 125 times

Last updated: Jun 21 '11