Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Still can't run an instance. I have reinstalled nova from zero and I am using this nova.conf: --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --logdir=/var/log/nova --state_path=/var/lib/nova --verbose --sql_connection=mysql://root:nova@192.168.1.194/nova --s3_host=192.168.1.194 --rabbit_host=192.168.1.194 --ec2_host=192.168.1.194 --ec2_url=http://192.168.1.194:8773/services/Cloud --network_manager=nova.network.manager.FlatDHCPManager --fixed_range=10.0.0.0/24 --flat_network_dhcp_start=10.0.0.2 --flat_network_dns=209.18.47.61 --flat_injected=False --fixed_ip_disassociate_timeout=60 --network_size=16 --dns_server=209.18.47.61

and when I run an instance I get this:

2011-03-01 20:53:28,561 DEBUG nova.rpc [-] Initing the Adapter Consumer for compute from (pid=8161) __init__ /usr/lib/pymodules/python2.6/nova/rpc.py:160 2011-03-01 20:53:28,607 DEBUG nova.rpc [-] Initing the Adapter Consumer for compute.ubuntu-svr1 from (pid=8161) __init__ /usr/lib/pymodules/python2.6/nova/rpc.py:160 2011-03-01 21:09:47,520 DEBUG nova.rpc [-] received {u'_context_request_id': u'Y2LX5RC-4MKBFUPRCGU7', u'_context_read_deleted': False, u'args': {u'instance_id': 1, u'onset_files': None, u'availability_zone': None}, u'_context_is_admin': True, u'_context_timestamp': u'2011-03-02T02:09:46Z', u'_context_user': u'admin', u'method': u'run_instance', u'_context_project': u'simple_cloud', u'_context_remote_address': u'192.168.1.194'} from (pid=8161) _receive /usr/lib/pymodules/python2.6/nova/rpc.py:179 2011-03-01 21:09:47,521 DEBUG nova.rpc [-] unpacked context: {'timestamp': u'2011-03-02T02:09:46Z', 'remote_address': u'192.168.1.194', 'project': u'simple_cloud', 'is_admin': True, 'user': u'admin', 'request_id': u'Y2LX5RC-4MKBFUPRCGU7', 'read_deleted': False} from (pid=8161) _unpack_context /usr/lib/pymodules/python2.6/nova/rpc.py:295 2011-03-01 21:09:47,581 DEBUG nova.virt.libvirt_conn [-] Connecting to libvirt: qemu:///system from (pid=8161) _get_connection /usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py:183 2011-03-01 21:09:47,770 AUDIT nova.compute.manager [Y2LX5RC-4MKBFUPRCGU7 admin simple_cloud] instance 1: starting... 2011-03-01 21:09:47,900 DEBUG nova.rpc [-] Making asynchronous call... from (pid=8161) call /usr/lib/pymodules/python2.6/nova/rpc.py:314 2011-03-01 21:09:47,900 DEBUG nova.rpc [-] MSG_ID is 6324edb1992c48c6a04dc70c1784b372 from (pid=8161) call /usr/lib/pymodules/python2.6/nova/rpc.py:317 2011-03-01 21:09:49,440 DEBUG nova.rpc [-] Making asynchronous call... from (pid=8161) call /usr/lib/pymodules/python2.6/nova/rpc.py:314 2011-03-01 21:09:49,441 DEBUG nova.rpc [-] MSG_ID is 310a43e781c643878c2dbaa90df86c82 from (pid=8161) call /usr/lib/pymodules/python2.6/nova/rpc.py:317 2011-03-01 21:09:49,944 DEBUG nova.utils [-] Running cmd (subprocess): ip link show dev br100 from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:49,971 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables --delete FORWARD --in-interface br100 -j ACCEPT from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:49,982 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables -I FORWARD --in-interface br100 -j ACCEPT from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:49,997 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables --delete FORWARD --out-interface br100 -j ACCEPT from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:50,009 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables -I FORWARD --out-interface br100 -j ACCEPT from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:50,020 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables -N nova-local from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:50,030 DEBUG nova.utils [-] Result was 1 from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:145 2011-03-01 21:09:50,036 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables --delete FORWARD -j nova-local from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:50,046 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables -I FORWARD -j nova-local from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:50,120 DEBUG nova.virt.libvirt_conn [-] instance instance-00000001: starting toXML method from (pid=8161) to_xml /usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py:665 2011-03-01 21:09:50,262 DEBUG nova.virt.libvirt_conn [-] instance instance-00000001: finished toXML method from (pid=8161) to_xml /usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py:733 2011-03-01 21:09:50,318 INFO nova [-] called setup_basic_filtering in nwfilter 2011-03-01 21:09:50,318 INFO nova [-] ensuring static filters 2011-03-01 21:09:50,342 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:50,506 INFO nova [-] <nova.db.sqlalchemy.models.securitygroupingressrule object="" at="" 0x3e77450=""> 2011-03-01 21:09:50,506 INFO nova [-] <nova.db.sqlalchemy.models.securitygroupingressrule object="" at="" 0x3e77a90=""> 2011-03-01 21:09:50,506 INFO nova [-] <nova.db.sqlalchemy.models.securitygroupingressrule object="" at="" 0x3e77550=""> 2011-03-01 21:09:50,507 INFO nova [-] <nova.db.sqlalchemy.models.securitygroupingressrule object="" at="" 0x3e77590=""> 2011-03-01 21:09:50,507 INFO nova [-] new_filter: # Generated by iptables-save v1.4.4 on Tue Mar 1 21:09:50 2011 *filter :INPUT ACCEPT [204991:205122195] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [203774:202929089] :nova-fallback - [0:0] :nova-local - [0:0] :nova-inst-1 - [0:0] :nova-sg-1 - [0:0] -A nova-fallback -j DROP -A FORWARD -j nova-local -A OUTPUT -j nova-local -A nova-local -d 10.0.0.2 -j nova-inst-1 -A nova-inst-1 -m state --state INVALID -j DROP -A nova-inst-1 -m state --state ESTABLISHED,RELATED -j ACCEPT -A nova-inst-1 -j nova-sg-1 -A nova-inst-1 -s 10.0.0.1 -p udp --sport 67 --dport 68 -j ACCEPT -A nova-inst-1 -s 10.0.0.0/28 -j ACCEPT -A nova-inst-1 -j nova-fallback -A nova-sg-1 -p icmp -s 0.0.0.0/0 -j ACCEPT -A nova-sg-1 -p tcp -s 0.0.0.0/0 --dport 22 -j ACCEPT -A nova-sg-1 -p tcp -s 0.0.0.0/0 --dport 80 -j ACCEPT -A nova-sg-1 -p tcp -s 0.0.0.0/0 --dport 8080 -j ACCEPT -A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT -A INPUT -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT -A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT -A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT -A FORWARD -o br100 -j ACCEPT -A FORWARD -i br100 -j ACCEPT -A FORWARD -d 192.168.122.0/24 -o virbr0 -m state --state RELATED,ESTABLISHED -j ACCEPT -A FORWARD -s 192.168.122.0/24 -i virbr0 -j ACCEPT -A FORWARD -i virbr0 -o virbr0 -j ACCEPT -A FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable -A FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable COMMIT

Completed on Tue Mar 1 21:09:50 2011

2011-03-01 21:09:50,507 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-restore from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:50,529 DEBUG nova.utils [-] Running cmd (subprocess): mkdir -p /var/lib/nova/instances/instance-00000001/ from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:50,556 INFO nova.virt.libvirt_conn [-] instance instance-00000001: Creating image 2011-03-01 21:09:50,631 DEBUG nova.utils [-] Running cmd (subprocess): /usr/bin/curl --fail --silent http://192.168.1.194:3333/_images/ami-vn7lvhfv/image -H 'Date: Wed, 02 Mar 2011 02:09:50 GMT' -H 'Authorization: AWS 41575ff3-7a24-4f10-b542-1e3bbbd37447:simple_cloud:/NF+EeA2G4fh3Pt/E8T+OKE6xso=' -o /var/lib/nova/instances/_base/ami-vn7lvhfv from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:50,903 DEBUG nova.utils [-] Running cmd (subprocess): cp /var/lib/nova/instances/_base/ami-vn7lvhfv /var/lib/nova/instances/instance-00000001/kernel from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:09:51,110 DEBUG nova.utils [-] Running cmd (subprocess): /usr/bin/curl --fail --silent http://192.168.1.194:3333/_images/ami-z21or64q/image -H 'Date: Wed, 02 Mar 2011 02:09:51 GMT' -H 'Authorization: AWS 41575ff3-7a24-4f10-b542-1e3bbbd37447:simple_cloud:fgHqRF4QU7vgVa3RwpMfdxiFHVc=' -o /var/lib/nova/instances/_base/ami-z21or64q_sm from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:10:12,024 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img create -f qcow2 -o cluster_size=2M,backing_file=/var/lib/nova/instances/_base/ami-z21or64q_sm /var/lib/nova/instances/instance-00000001/disk from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:10:13,424 INFO nova.virt.libvirt_conn [-] instance instance-00000001: injecting key into image ami-z21or64q 2011-03-01 21:10:16,727 DEBUG nova.utils [-] Running cmd (subprocess): sudo qemu-nbd -c /dev/nbd15 /var/lib/nova/instances/instance-00000001/disk from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:10:17,993 DEBUG nova.utils [-] Running cmd (subprocess): sudo tune2fs -c 0 -i 0 /dev/nbd15 from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:10:19,391 DEBUG nova.utils [-] Running cmd (subprocess): sudo mount /dev/nbd15 /tmp/tmpJwN7gO from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:10:19,485 DEBUG nova.utils [-] Running cmd (subprocess): sudo mkdir -p /tmp/tmpJwN7gO/root/.ssh from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:10:19,507 DEBUG nova.utils [-] Running cmd (subprocess): sudo chown root /tmp/tmpJwN7gO/root/.ssh from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:10:19,566 DEBUG nova.utils [-] Running cmd (subprocess): sudo chmod 700 /tmp/tmpJwN7gO/root/.ssh from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:10:19,584 DEBUG nova.utils [-] Running cmd (subprocess): sudo tee -a /tmp/tmpJwN7gO/root/.ssh/authorized_keys from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:10:19,638 DEBUG nova.utils [-] Running cmd (subprocess): sudo umount /dev/nbd15 from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:10:21,006 DEBUG nova.utils [-] Running cmd (subprocess): rmdir /tmp/tmpJwN7gO from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:10:21,042 DEBUG nova.utils [-] Running cmd (subprocess): sudo qemu-nbd -d /dev/nbd15 from (pid=8161) execute /usr/lib/pymodules/python2.6/nova/utils.py:132 2011-03-01 21:10:22,755 ERROR nova.exception [-] Uncaught exception (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 116, in _wrap (nova.exception): TRACE: return f(args, *kw) (nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 410, in spawn (nova.exception): TRACE: self._conn.createXML(xml, 0) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/libvirt.py", line 1358, in createXML (nova.exception): TRACE: if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self) (nova.exception): TRACE: libvirtError: internal error Process exited while reading console log output: chardev: opening backend "file" failed (nova.exception): TRACE: (nova.exception): TRACE: 2011-03-01 21:10:22,798 ERROR nova.compute.manager [Y2LX5RC-4MKBFUPRCGU7 admin simple_cloud] instance 1: Failed to spawn (nova.compute.manager): TRACE: Traceback (most recent call last): (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 213, in run_instance (nova.compute.manager): TRACE: self.driver.spawn(instance_ref) (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 122, in _wrap (nova.compute.manager): TRACE: raise Error(str(e)) (nova.compute.manager): TRACE: Error: internal error Process exited while reading console log output: chardev: opening backend "file" failed (nova.compute.manager): TRACE:

(nova.compute.manager): TRACE:

and the instance state is: euca-describe-instances RESERVATION r-m5a06is3 simple_cloud default

INSTANCE i-00000001 ami-z21or64q 10.0.0.2 10.0.0.2 failed to spawn mykey (simple_cloud, ubuntu-svr1) 0 m1.tiny 2011-03-02T02:09:47Z nova

I am using this image: ubuntu1010-UEC-localuser-image.tar.gz for launching vms.

Thanks!