Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ok

euca-run-instances

root@cncc:~# euca-run-instances ami-go2j7row -k mykey

RESERVATION r-azq71hlq Federation INSTANCE i-xu5w8p ami-go2j7row 10.0.0.8 10.0.0.8 scheduling mykey (Federation, None) 0m1.small 2010-12-08 13:14:42

RESERVATION r-azq71hlq Federation INSTANCE i-xu5w8p ami-go2j7row 10.0.0.8 10.0.0.8 launching mykey (Federation, cnnc) 0m1.small 2010-12-08 13:14:42

euca-describe-instances

root@cncc:~# euca-describe-instances RESERVATION r-azq71hlq Federation INSTANCE i-xu5w8p ami-go2j7row 10.0.0.8 10.0.0.8 pending mykey (Federation, cnnc) 0 m1.small 2010-12-08 13:14:42

The output of /var/log/nova/nova-compute.log

2010-12-08 18:44:46+0530 [-] (root): DEBUG instance 75: starting... 2010-12-08 18:44:46+0530 [-] (root): DEBUG instance instance-2046047353: starting toXML method 2010-12-08 18:44:46+0530 [-] (root): DEBUG instance instance-2046047353: finished toXML method 2010-12-08 18:44:50+0530 [-] (root): INFO rule.protocol: 'icmp', rule.from_port: -1L, rule.to_port: -1L 2010-12-08 18:44:50+0530 [-] (root): DEBUG Running cmd: mkdir -p /var/lib/nova/instances/instance-2046047353/ 2010-12-08 18:44:50+0530 [-] (root): DEBUG Running cmd: chmod 0777 /var/lib/nova/instances/instance-2046047353/ 2010-12-08 18:44:50+0530 [-] (root): INFO instance instance-2046047353: Creating image 2010-12-08 18:44:50+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://192.168.1.2:3333/_images/ami-go2j7row/image -H Date: Wed, 08 Dec 2010 13:14:50 GMT -H Authorization: AWS 5198208d-1ce4-4542-982c-f3edd71da074:Federation:n+B83yoAjNAmqKQqAkj5BGF2QcY= -o /var/lib/nova/instances/instance-2046047353/disk-raw 2010-12-08 18:49:44+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://192.168.1.2:3333/_images/ami-d2lilpdj/image -H Date: Wed, 08 Dec 2010 13:19:44 GMT -H Authorization: AWS 5198208d-1ce4-4542-982c-f3edd71da074:Federation:lmiND4sOl/4eungBlG/Jwk3G/kc= -o /var/lib/nova/instances/instance-2046047353/kernel 2010-12-08 18:49:45+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://192.168.1.2:3333/_images/ami-pz1klmwb/image -H Date: Wed, 08 Dec 2010 13:19:45 GMT -H Authorization: AWS 5198208d-1ce4-4542-982c-f3edd71da074:Federation:o8R3YNMVj2Vw7FPBWomRrKY7CLA= -o /var/lib/nova/instances/instance-2046047353/ramdisk 2010-12-08 18:49:46+0530 [-] (root): INFO instance instance-2046047353: injecting key into image ami-go2j7row 2010-12-08 18:49:46+0530 [-] (root): INFO instance instance-2046047353: injecting net into image ami-go2j7row 2010-12-08 18:49:46+0530 [-] (root): DEBUG Running cmd: sudo losetup -f --show /var/lib/nova/instances/instance-2046047353/disk-raw 2010-12-08 18:49:47+0530 [-] (root): DEBUG Running cmd: sudo tune2fs -c 0 -i 0 /dev/loop0 2010-12-08 18:49:47+0530 [-] (root): DEBUG Running cmd: sudo losetup -d /dev/loop0 2010-12-08 18:49:47+0530 [-] (root): ERROR instance instance-2046047353: Failed to spawn 2010-12-08 18:49:47+0530 [-] Traceback (most recent call last): 2010-12-08 18:49:47+0530 [-] File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 108, in run_instance 2010-12-08 18:49:47+0530 [-] yield self.driver.spawn(instance_ref) 2010-12-08 18:49:47+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks 2010-12-08 18:49:47+0530 [-] result = result.throwExceptionIntoGenerator(g) 2010-12-08 18:49:47+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator 2010-12-08 18:49:47+0530 [-] return g.throw(self.type, self.value, self.tb) 2010-12-08 18:49:47+0530 [-] File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 349, in spawn 2010-12-08 18:49:47+0530 [-] yield self._create_image(instance, xml) 2010-12-08 18:49:47+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks 2010-12-08 18:49:47+0530 [-] result = result.throwExceptionIntoGenerator(g) 2010-12-08 18:49:47+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator 2010-12-08 18:49:47+0530 [-] return g.throw(self.type, self.value, self.tb) 2010-12-08 18:49:47+0530 [-] File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 486, in _create_image 2010-12-08 18:49:47+0530 [-] execute=execute) 2010-12-08 18:49:47+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 893, in _inlineCallbacks 2010-12-08 18:49:47+0530 [-] result = g.send(result) 2010-12-08 18:49:47+0530 [-] File "/usr/lib/pymodules/python2.6/nova/compute/disk.py", line 136, in inject_data 2010-12-08 18:49:47+0530 [-] out, err = yield execute('sudo tune2fs -c 0 -i 0 %s' % mapped_device) 2010-12-08 18:49:47+0530 [-] ProcessExecutionError: Unexpected error while running command. 2010-12-08 18:49:47+0530 [-] Command: sudo tune2fs -c 0 -i 0 /dev/loop0 2010-12-08 18:49:47+0530 [-] Exit code: 1 2010-12-08 18:49:47+0530 [-] Stdout: 'tune2fs 1.41.12 (17-May-2010)\n' 2010-12-08 18:49:47+0530 [-] Stderr: "tune2fs: Bad magic number in super-block while trying to open /dev/loop0\nCouldn't find valid filesystem superblock.\n"