Hi, all!

I'm trying to set up a VM installation using an ISO, but I am not able
to boot a VM with a cdrom and a disk. Basically, what I want to do is
outlines here https://wiki.openstack.org/wiki/BootFromISO .

Since I'm running on XenServer I made sure that an SR with the
appropriate flags exists (type:iso , i18n-key: local-storage-iso), like
shown here :
http://docs.openstack.org/juno/config-reference/content/introduction-to-xen.html#xenapi-boot-from-iso


This is what happens when I'm trying to boot an instance:

glance image-list

+--------------------------------------+-------------------+-----------
--+------------------+------------+--------+
| ID                                   | Name              | Disk Format
| Container Format | Size       | Status |
+--------------------------------------+-------------------+-------------
+------------------+------------+--------+
| c9bb3ca9-b0e3-437d-a64f-6015265ed382 | CentOS-6-boot-iso | iso
 | bare             | 232783872  | active |


nova boot --flavor m1.small --image CentOS-6-boot-iso --nic
net-id=ebaa400e-bb8a-4318-aedb-778b46c78a88 --security-group default
--key-name demo-key centos6-iso-instance

See attached compute.log for the error

It seems like it's trying to delete a VBD but fails because it's still
plugged into the nova-compute node. I verified it and I found it created
and plugged just as the error suggested.

I came across an similar earlier bug report regarding plugging and
unplugging VBDs which looks like it's fixed, or is it?

Any ideas?



2014-11-20 15:24:52.113 575 DEBUG nova.virt.xenapi.vm_utils [req-7bef4afd-0e97-41c6-a694-73357b6e005a 37f83c252e9c421dacd081e18ae08be0 3dbfad962b3a4fabb7de7354a4b4d2bf] Creating disk-type VBD for VM OpaqueRef:fe63f41a-8f03-6fee-75e2-f0ef21416735, VDI OpaqueRef:f7343c03-04d6-9756-3fdb-003fd39c3116 ...  create_vbd /usr/lib/python2.6/site-packages/nova/virt/xenapi/vm_utils.py:482
2014-11-20 15:24:52.201 575 DEBUG nova.virt.xenapi.vm_utils [req-7bef4afd-0e97-41c6-a694-73357b6e005a 37f83c252e9c421dacd081e18ae08be0 3dbfad962b3a4fabb7de7354a4b4d2bf] Created VBD OpaqueRef:6ee8dcd4-53bf-6c69-bafc-e5e0e59efdc3 for VM OpaqueRef:fe63f41a-8f03-6fee-75e2-f0ef21416735, VDI OpaqueRef:f7343c03-04d6-9756-3fdb-003fd39c3116. create_vbd /usr/lib/python2.6/site-packages/nova/virt/xenapi/vm_utils.py:486
2014-11-20 15:24:52.202 575 DEBUG nova.virt.xenapi.vm_utils [req-7bef4afd-0e97-41c6-a694-73357b6e005a 37f83c252e9c421dacd081e18ae08be0 3dbfad962b3a4fabb7de7354a4b4d2bf] Plugging VBD OpaqueRef:6ee8dcd4-53bf-6c69-bafc-e5e0e59efdc3 ...  vdi_attached_here /usr/lib/python2.6/site-packages/nova/virt/xenapi/vm_utils.py:2191
2014-11-20 15:24:52.202 575 DEBUG nova.openstack.common.lockutils [req-7bef4afd-0e97-41c6-a694-73357b6e005a 37f83c252e9c421dacd081e18ae08be0 3dbfad962b3a4fabb7de7354a4b4d2bf] Got semaphore "xenapi-vbd-OpaqueRef:fe63f41a-8f03-6fee-75e2-f0ef21416735" lock /usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py:168
2014-11-20 15:24:52.203 575 DEBUG nova.openstack.common.lockutils [req-7bef4afd-0e97-41c6-a694-73357b6e005a 37f83c252e9c421dacd081e18ae08be0 3dbfad962b3a4fabb7de7354a4b4d2bf] Got semaphore / lock "synchronized_plug" inner /usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py:248
2014-11-20 15:24:53.049 575 DEBUG nova.openstack.common.lockutils [req-7bef4afd-0e97-41c6-a694-73357b6e005a 37f83c252e9c421dacd081e18ae08be0 3dbfad962b3a4fabb7de7354a4b4d2bf] Semaphore / lock released "synchronized_plug" inner /usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py:252
2014-11-20 15:24:53.122 575 ERROR nova.virt.xenapi.vm_utils [req-7bef4afd-0e97-41c6-a694-73357b6e005a 37f83c252e9c421dacd081e18ae08be0 3dbfad962b3a4fabb7de7354a4b4d2bf] ['OPERATION_NOT_ALLOWED', "VBD '5492242a-503f-5ff4-f7da-bc0b0359e8ec' still attached to '72839fa2-601b-7221-0ed5-228d39a39944'"]
2014-11-20 15:24:53.122 575 TRACE nova.virt.xenapi.vm_utils Traceback (most recent call last):
2014-11-20 15:24:53.122 575 TRACE nova.virt.xenapi.vm_utils   File "/usr/lib/python2.6/site-packages/nova/virt/xenapi/vm_utils.py", line 454, in destroy_vbd
2014-11-20 15:24:53.122 575 TRACE nova.virt.xenapi.vm_utils     session.call_xenapi('VBD.destroy', vbd_ref)
2014-11-20 15:24:53.122 575 TRACE nova.virt.xenapi.vm_utils   File "/usr/lib/python2.6/site-packages/nova/virt/xenapi/client/session.py", line 189, in call_xenapi
2014-11-20 15:24:53.122 575 TRACE nova.virt.xenapi.vm_utils     return session.xenapi_request(method, args)
2014-11-20 15:24:53.122 575 TRACE nova.virt.xenapi.vm_utils   File "/usr/lib/python2.6/site-packages/XenAPI.py", line 133, in xenapi_request
2014-11-20 15:24:53.122 575 TRACE nova.virt.xenapi.vm_utils     result = _parse_result(getattr(self, methodname)(*full_params))
2014-11-20 15:24:53.122 575 TRACE nova.virt.xenapi.vm_utils   File "/usr/lib/python2.6/site-packages/XenAPI.py", line 203, in _parse_result
2014-11-20 15:24:53.122 575 TRACE nova.virt.xenapi.vm_utils     raise Failure(result['ErrorDescription'])
2014-11-20 15:24:53.122 575 TRACE nova.virt.xenapi.vm_utils Failure: ['OPERATION_NOT_ALLOWED', "VBD '5492242a-503f-5ff4-f7da-bc0b0359e8ec' still attached to '72839fa2-601b-7221-0ed5-228d39a39944'"]
2014-11-20 15:24:53.122 575 TRACE nova.virt.xenapi.vm_utils
2014-11-20 15:24:53.131 575 DEBUG nova.virt.xenapi.vm_utils [req-7bef4afd-0e97-41c6-a694-73357b6e005a 37f83c252e9c421dacd081e18ae08be0 3dbfad962b3a4fabb7de7354a4b4d2bf] Destroying VBD for VDI OpaqueRef:f7343c03-04d6-9756-3fdb-003fd39c3116 done. vdi_attached_here /usr/lib/python2.6/site-packages/nova/virt/xenapi/vm_utils.py:2215
2014-11-20 15:24:53.131 575 ERROR nova.virt.xenapi.vm_utils [req-7bef4afd-0e97-41c6-a694-73357b6e005a 37f83c252e9c421dacd081e18ae08be0 3dbfad962b3a4fabb7de7354a4b4d2bf] [instance: 46f6a6ae-dc84-41ae-9451-e7658431fece] Failed to fetch glance image

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to