xenapi: bad error when trying to attach a volume to a non-pv guest

Bug #1199475 reported by John Garbutt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Wishlist
Unassigned

Bug Description

We get the following error from XenAPI when trying to do "VBD.plug" on a volume on a system without PV tools:
VM_MISSING_PV_DRIVERS

Really we need a way for these users to find out about this issue, and be able to attach the volume somehow.

Tags: xenserver
Revision history for this message
Bob Ball (bob-ball) wrote :

It's probably better to clarify here - without the PV _drivers_ a hotplug is not possible; the user would have to reboot their instance to attach the volume.

XAPI can only check for the presence of PV _tools_ which report version information etc to XenStore. Some instances (e.g. HVM Linux, PV Linux without tools installed or with them removed) would be able to hotplug if XAPI permitted the attempt.

Perhaps we want a way for XAPI to try hotplugging on instances that it detects have PV drivers enabled?

Revision history for this message
John Garbutt (johngarbutt) wrote :

Good clarification.

If XenAPI gets better at deciding when it really will not work or work, that is cool.

The big issue is there is no way to attach the volume to the VM right now. You could power off, but then connect fails (different bug), and not all providers expose power off anyway.

I am still thinking through the options and which I like, but my current thinking is:
* at least raise an error back to the user about not having PV tools installed

Then we either have:
* a force_attach, where VM is shutdown, volume added, then started
OR we have:
* a don't hotplug flag, and the user is free to reboot when they next want the volume

Revision history for this message
John Garbutt (johngarbutt) wrote :

Probably need the wait for the task API to fix this in a nice way.

Revision history for this message
Sean Dague (sdague) wrote :

This really isn't addressable in current API, need new APIs to address this.

Changed in nova:
status: Triaged → Opinion
importance: Low → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.