Ewan, thanks for the reply first, <br><br>What if im using NFS, i have to set that key to the nfs SR ? <br><br><div># xe sr-list</div><div><br><div>uuid ( RO) : f6c3ee92-1ee8-9250-6288-bfd82b18eaa2</div><div>
name-label ( RW): NFS virtual disk storage</div><div> name-description ( RW): </div><div> host ( RO): <shared></div><div> type ( RO): nfs</div><div> content-type ( RO): user</div>
<div><br></div><div>Regards !</div><div><br></div><br><div class="gmail_quote">On Fri, May 13, 2011 at 11:26 AM, Ewan Mellor <span dir="ltr"><<a href="mailto:Ewan.Mellor@eu.citrix.com">Ewan.Mellor@eu.citrix.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The first error message of note is "StorageRepositoryNotFound: Cannot find SR to read/write VDI."<br>
<br>
This is looking for the "Local storage" SR to put the VDI into. We use an other-config key i18n-key= local-storage to identify this, so I expect that your SR is missing that. This is the standard configuration when set up on XenServer (and I thought, Xen Cloud Platform too) but if you've configured this in some other way, then that would explain it.<br>
<br>
The second error is "UnboundLocalError: local variable 'instance_obj' referenced before assignment", which looks like a bug on the error reporting path. Please report this on Launchpad.<br>
<br>
Thanks,<br>
<font color="#888888"><br>
Ewan.<br>
</font><div><div></div><div class="h5"><br>
> ---------- Forwarded message ----------<br>
> From: Leandro Reox <<a href="mailto:leandro.reox@gmail.com">leandro.reox@gmail.com</a>><br>
> Date: Thu, May 12, 2011 at 10:28 AM<br>
> Subject: [Openstack-operators] nova-compute and xen SR - error trace<br>
> To: <a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a><br>
><br>
><br>
> I manage to get everything working, but it seems that nova is not<br>
> locating the xen SR, when i start an instance it keeps on SHUTDOWN<br>
> state, trace below :<br>
><br>
> 2011-05-12 09:53:52,814 DEBUG nova.rpc [-] received<br>
> {u'_context_request_id': u'ZCACXBRLE67UDK7ZOC4R',<br>
> u'_context_read_deleted': False, u'args': {u'instance_id': 12,<br>
> u'injected_files': None, u'availability_zone': None},<br>
> u'_context_is_admin': True, u'_context_timestamp':<br>
> u'2011-05-12T13:53:43Z', u'_context_user': u'admin', u'method':<br>
> u'run_instance', u'_context_project': u'melicloud',<br>
> u'_context_remote_address': u'172.16.133.241'} from (pid=4250)<br>
> _receive /usr/lib/pymodules/python2.6/nova/rpc.py:177<br>
> 2011-05-12 09:53:52,814 DEBUG nova.rpc [-] unpacked context:<br>
> {'timestamp': u'2011-05-12T13:53:43Z', 'remote_address':<br>
> u'172.16.133.241', 'project': u'melicloud', 'is_admin': True, 'user':<br>
> u'admin', 'request_id': u'ZCACXBRLE67UDK7ZOC4R', 'read_deleted':<br>
> False} from (pid=4250) _unpack_context<br>
> /usr/lib/pymodules/python2.6/nova/rpc.py:350<br>
> 2011-05-12 09:53:55,530 AUDIT nova.compute.manager<br>
> [ZCACXBRLE67UDK7ZOC4R admin melicloud] instance 12: starting...<br>
> 2011-05-12 09:53:55,660 DEBUG nova.rpc [-] Making asynchronous call on<br>
> network.novacontroller ... from (pid=4250) call<br>
> /usr/lib/pymodules/python2.6/nova/rpc.py:370<br>
> 2011-05-12 09:53:55,661 DEBUG nova.rpc [-] MSG_ID is<br>
> c03c04ff49f04d8d9d80b9f5e55d161c from (pid=4250) call<br>
> /usr/lib/pymodules/python2.6/nova/rpc.py:373<br>
> 2011-05-12 09:53:56,191 DEBUG nova.virt.xenapi.vm_utils [-] Detected<br>
> DISK_RAW format for image 4, instance 12 from (pid=4250)<br>
> log_disk_format<br>
> /usr/lib/pymodules/python2.6/nova/virt/xenapi/vm_utils.py:494<br>
> 2011-05-12 09:53:56,804 ERROR nova.compute.manager<br>
> [ZCACXBRLE67UDK7ZOC4R admin melicloud] Instance '12' failed to spawn.<br>
> Is virtualization enabled in the BIOS?<br>
> (nova.compute.manager): TRACE: Traceback (most recent call last):<br>
> (nova.compute.manager): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 240, in<br>
> run_instance<br>
> (nova.compute.manager): TRACE: self.driver.spawn(instance_ref)<br>
> (nova.compute.manager): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/virt/xenapi_conn.py", line 188, in<br>
> spawn<br>
> (nova.compute.manager): TRACE: self._vmops.spawn(instance)<br>
> (nova.compute.manager): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vmops.py", line 117, in<br>
> spawn<br>
> (nova.compute.manager): TRACE: vdi_uuid =<br>
> self._create_disk(instance)<br>
> (nova.compute.manager): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vmops.py", line 113, in<br>
> _create_disk<br>
> (nova.compute.manager): TRACE: instance.image_id, user, project,<br>
> disk_image_type)<br>
> (nova.compute.manager): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vm_utils.py", line 382,<br>
> in fetch_image<br>
> (nova.compute.manager): TRACE: access, image_type)<br>
> (nova.compute.manager): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vm_utils.py", line 535,<br>
> in _fetch_image_glance<br>
> (nova.compute.manager): TRACE: session, instance_id, image,<br>
> access, image_type)<br>
> (nova.compute.manager): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vm_utils.py", line 436,<br>
> in _fetch_image_glance_disk<br>
> (nova.compute.manager): TRACE: sr_ref = safe_find_sr(session)<br>
> (nova.compute.manager): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vm_utils.py", line 853,<br>
> in safe_find_sr<br>
> (nova.compute.manager): TRACE: raise<br>
> exception.StorageRepositoryNotFound()<br>
> (nova.compute.manager): TRACE: StorageRepositoryNotFound: Cannot find<br>
> SR to read/write VDI.<br>
> (nova.compute.manager): TRACE:<br>
> 2011-05-12 09:53:57,076 ERROR nova.exception [-] Uncaught exception<br>
> (nova.exception): TRACE: Traceback (most recent call last):<br>
> (nova.exception): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/exception.py", line 79, in _wrap<br>
> (nova.exception): TRACE: return f(*args, **kw)<br>
> (nova.exception): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 265, in<br>
> run_instance<br>
> (nova.exception): TRACE: self._update_state(context, instance_id)<br>
> (nova.exception): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 145, in<br>
> _update_state<br>
> (nova.exception): TRACE: info =<br>
> self.driver.get_info(instance_ref['name'])<br>
> (nova.exception): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/virt/xenapi_conn.py", line 263, in<br>
> get_info<br>
> (nova.exception): TRACE: return self._vmops.get_info(instance_id)<br>
> (nova.exception): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vmops.py", line 771, in<br>
> get_info<br>
> (nova.exception): TRACE: vm_ref = self._get_vm_opaque_ref(instance)<br>
> (nova.exception): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vmops.py", line 262, in<br>
> _get_vm_opaque_ref<br>
> (nova.exception): TRACE: raise<br>
> exception.InstanceNotFound(instance_id=<a href="http://instance_obj.id" target="_blank">instance_obj.id</a>)<br>
> (nova.exception): TRACE: UnboundLocalError: local variable<br>
> 'instance_obj' referenced before assignment<br>
> (nova.exception): TRACE:<br>
> 2011-05-12 09:53:57,111 ERROR nova [-] Exception during message<br>
> handling<br>
> (nova): TRACE: Traceback (most recent call last):<br>
> (nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/rpc.py", line<br>
> 198, in _receive<br>
> (nova): TRACE: rval = node_func(context=ctxt, **node_args)<br>
> (nova): TRACE: File<br>
> "/usr/lib/pymodules/python2.6/nova/exception.py", line 85, in _wrap<br>
> (nova): TRACE: raise Error(str(e))<br>
> (nova): TRACE: Error: local variable 'instance_obj' referenced before<br>
> assignment<br>
> (nova): TRACE:<br>
> 2011-05-12 09:54:50,664 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenserver vm state -> |Running|<br>
> 2011-05-12 09:54:50,665 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenapi power_state -> |1|<br>
> 2011-05-12 09:54:51,060 INFO nova.compute.manager [-] Found instance<br>
> 'instance-0000000c' in DB but no VM. State=4, so setting state to<br>
> shutoff.<br>
> 2011-05-12 09:54:51,060 INFO nova.compute.manager [-] DB/VM state<br>
> mismatch. Changing state from '4' to '5'<br>
> 2011-05-12 09:55:53,429 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenserver vm state -> |Running|<br>
> 2011-05-12 09:55:53,429 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenapi power_state -> |1|<br>
> 2011-05-12 09:55:53,802 INFO nova.compute.manager [-] Found instance<br>
> 'instance-0000000c' in DB but no VM. State=5, so setting state to<br>
> shutoff.<br>
> 2011-05-12 09:56:56,132 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenserver vm state -> |Running|<br>
> 2011-05-12 09:56:56,132 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenapi power_state -> |1|<br>
> 2011-05-12 09:56:56,503 INFO nova.compute.manager [-] Found instance<br>
> 'instance-0000000c' in DB but no VM. State=5, so setting state to<br>
> shutoff.<br>
> 2011-05-12 09:57:58,846 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenserver vm state -> |Running|<br>
> 2011-05-12 09:57:58,846 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenapi power_state -> |1|<br>
> 2011-05-12 09:57:59,216 INFO nova.compute.manager [-] Found instance<br>
> 'instance-0000000c' in DB but no VM. State=5, so setting state to<br>
> shutoff.<br>
> 2011-05-12 09:59:01,539 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenserver vm state -> |Running|<br>
> 2011-05-12 09:59:01,539 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenapi power_state -> |1|<br>
> 2011-05-12 09:59:01,911 INFO nova.compute.manager [-] Found instance<br>
> 'instance-0000000c' in DB but no VM. State=5, so setting state to<br>
> shutoff.<br>
> 2011-05-12 10:00:04,233 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenserver vm state -> |Running|<br>
> 2011-05-12 10:00:04,233 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenapi power_state -> |1|<br>
> 2011-05-12 10:00:04,605 INFO nova.compute.manager [-] Found instance<br>
> 'instance-0000000c' in DB but no VM. State=5, so setting state to<br>
> shutoff.<br>
> 2011-05-12 10:01:06,936 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenserver vm state -> |Running|<br>
> 2011-05-12 10:01:06,936 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenapi power_state -> |1|<br>
> 2011-05-12 10:01:07,308 INFO nova.compute.manager [-] Found instance<br>
> 'instance-0000000c' in DB but no VM. State=5, so setting state to<br>
> shutoff.<br>
> 2011-05-12 10:02:09,650 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenserver vm state -> |Running|<br>
> 2011-05-12 10:02:09,651 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenapi power_state -> |1|<br>
> 2011-05-12 10:02:10,022 INFO nova.compute.manager [-] Found instance<br>
> 'instance-0000000c' in DB but no VM. State=5, so setting state to<br>
> shutoff.<br>
> 2011-05-12 10:03:12,344 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenserver vm state -> |Running|<br>
> 2011-05-12 10:03:12,344 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenapi power_state -> |1|<br>
> 2011-05-12 10:03:12,715 INFO nova.compute.manager [-] Found instance<br>
> 'instance-0000000c' in DB but no VM. State=5, so setting state to<br>
> shutoff.<br>
> 2011-05-12 10:04:15,031 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenserver vm state -> |Running|<br>
> 2011-05-12 10:04:15,031 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenapi power_state -> |1|<br>
> 2011-05-12 10:04:15,410 INFO nova.compute.manager [-] Found instance<br>
> 'instance-0000000c' in DB but no VM. State=5, so setting state to<br>
> shutoff.<br>
> 2011-05-12 10:05:17,731 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenserver vm state -> |Running|<br>
> 2011-05-12 10:05:17,731 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS)<br>
> xenapi power_state -> |1|<br>
> 2011-05-12 10:05:18,138 INFO nova.compute.manager [-] Found instance<br>
> 'instance-0000000c' in DB but no VM. State=5, so setting state to<br>
> shutoff.<br>
><br>
> _______________________________________________<br>
> Openstack-operators mailing list<br>
> <a href="mailto:Openstack-operators@lists.openstack.org">Openstack-operators@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Todd Deshane<br>
> <a href="http://www.linkedin.com/in/deshantm" target="_blank">http://www.linkedin.com/in/deshantm</a><br>
> <a href="http://www.xen.org/products/cloudxen.html" target="_blank">http://www.xen.org/products/cloudxen.html</a><br>
> <a href="http://runningxen.com/" target="_blank">http://runningxen.com/</a><br>
</div></div></blockquote></div><br></div>