Ask Your Question
0

I can`t get images from glance server

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

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-18 15:13:25 -0600

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-18 16:35:47 -0600

revolutionperminutes gravatar image

Hi, Brian Thanks for you answer.

I changed the two flugs as you said.

before

--glance_host=10.250.0.1

--glance_port=9292

after

--glance_api_servers=10.250.0.1:9292

and then I start run up a new instance, but I facing error too.

The result of the start instance operation in First node.

root@ubuntu-api001:/var/tmp# euca-run-instances ami-00000003 -k park -t m1.tiny

UnknownError: An unknown error has occurred. Please try your request again.

Here is First node nova-api.log

2011-06-19 01:24:35,299 DEBUG nova.auth.manager [-] Looking up user: u'c10fe9ba-b35f-4f47-9b30-648ee4eb0ace' from (pid=868) authenticate /usr/lib/pymodules/python2.7/nova/auth/manager.py:277 2011-06-19 01:24:35,301 DEBUG nova.auth.manager [-] user: User('novaadmin', 'novaadmin', 'c10fe9ba-b35f-4f47-9b30-648ee4eb0ace', 'b7c9438a-9524-438e-97c7-50248ca517f4', True) from (pid=868) authenticate /usr/lib/pymodules/python2.7/nova/auth/manager.py:279 2011-06-19 01:24:35,306 DEBUG nova.signer [-] using _calc_signature_2 from (pid=868) _calc_signature_2 /usr/lib/pymodules/python2.7/nova/auth/signer.py:126 2011-06-19 01:24:35,307 DEBUG nova.signer [-] query string: AWSAccessKeyId=c10fe9ba-b35f-4f47-9b30-648ee4eb0ace%3Anovaproject&Action=RunInstances&ImageId=ami-00000003&InstanceType=m1.tiny&KeyName=park&MaxCount=1&MinCount=1&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-18T16%3A24%3A35&Version=2009-11-30 from (pid=868) _calc_signature_2 /usr/lib/pymodules/python2.7/nova/auth/signer.py:142 2011-06-19 01:24:35,307 DEBUG nova.signer [-] string_to_sign: POST 10.250.0.1:8773 /services/Cloud/ AWSAccessKeyId=c10fe9ba-b35f-4f47-9b30-648ee4eb0ace%3Anovaproject&Action=RunInstances&ImageId=ami-00000003&InstanceType=m1.tiny&KeyName=park&MaxCount=1&MinCount=1&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-18T16%3A24%3A35&Version=2009-11-30 from (pid=868) _calc_signature_2 /usr/lib/pymodules/python2.7/nova/auth/signer.py:144 2011-06-19 01:24:35,307 DEBUG nova.signer [-] len(b64)=44 from (pid=868) _calc_signature_2 /usr/lib/pymodules/python2.7/nova/auth/signer.py:147 2011-06-19 01:24:35,307 DEBUG nova.signer [-] base64 encoded digest: sOdnzA5ZgqUrKGcvz6/YrwtQDpc/qa6sgbLkxVMJMV8= from (pid=868) _calc_signature_2 /usr/lib/pymodules/python2.7/nova/auth/signer.py:148 2011-06-19 01:24:35,307 DEBUG nova.auth.manager [-] user.secret: b7c9438a-9524-438e-97c7-50248ca517f4 from (pid=868) authenticate /usr/lib/pymodules/python2.7/nova/auth/manager.py:322 2011-06-19 01:24:35,307 DEBUG nova.auth.manager [-] expected_signature: sOdnzA5ZgqUrKGcvz6/YrwtQDpc/qa6sgbLkxVMJMV8= from (pid=868) authenticate /usr/lib/pymodules/python2.7/nova/auth/manager.py:323 2011-06-19 01:24:35,307 DEBUG nova.auth.manager [-] signature: sOdnzA5ZgqUrKGcvz6/YrwtQDpc/qa6sgbLkxVMJMV8= from (pid=868) authenticate /usr/lib/pymodules/python2.7/nova/auth/manager.py:324 2011-06-19 01:24:35,308 AUDIT nova.api [PU14LA9S46Z5V06OWVH2 novaadmin novaproject] Authenticated Request For novaadmin:novaproject) 2011-06-19 01:24:35,308 DEBUG nova.api [-] action: RunInstances from (pid=868) __call__ /usr/lib/pymodules/python2.7/nova/api/ec2/__init__.py:214 2011-06-19 01:24:35,308 DEBUG nova.api [-] arg: ImageId val: ami-00000003 from (pid=868) __call__ /usr/lib/pymodules/python2.7/nova/api/ec2/__init__.py:216 2011-06-19 01:24:35,308 DEBUG nova.api [-] arg: KeyName val: park from (pid=868) __call__ /usr/lib/pymodules/python2.7/nova/api/ec2/__init__.py:216 2011-06-19 01 ... (more)

edit flag offensive delete link more
0

answered 2011-06-18 16:43:20 -0600

revolutionperminutes gravatar image

My version of nova and glance

nova-api 2011.3~d2~20110617.1197-0ubuntu0ppa1~natty1 OpenStack Compute - API frontend nova-common 2011.3~d2~20110617.1197-0ubuntu0ppa1~natty1 OpenStack Compute - common files nova-objectstore 2011.3~d2~20110617.1197-0ubuntu0ppa1~natty1 OpenStack Compute - object store nova-scheduler 2011.3~d2~20110617.1197-0ubuntu0ppa1~natty1 OpenStack Compute - virtual machine scheduler nova-network 2011.3~d2~20110617.1197-0ubuntu0ppa1~natty1 OpenStack Compute - Network manager nova-compute 2011.3~d2~20110617.1197-0ubuntu0ppa1~natty1 OpenStack Compute - compute node

glance 2011.3~d1~20110531.139-0ubuntu0ppa1~natty1 OpenStack Image Registry and Delivery Service - Daemons python-glance 2011.3~d1~20110531.139-0ubuntu0ppa1~natty1 OpenStack Image Registry and Delivery Service - python library

edit flag offensive delete link more
0

answered 2011-06-18 16:50:02 -0600

So it's pretty obvious from the log that the glance client is having trouble connecting to your glance server. Did you restart nova-api after making those configuration changes? Make sure you can access that ip/port from the API server, as well.

edit flag offensive delete link more
0

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

revolutionperminutes gravatar image

Thanks Brian Waldon, that solved my question.

edit flag offensive delete link more
0

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

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

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

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-21 00:56:53 -0600

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
0

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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-06-18 14:55:25 -0600

Seen: 227 times

Last updated: Jun 21 '11