[pve-devel] The "bug" in pve reflecting ZFSplugin

Michael Rasmussen mir at datanom.net
Thu Aug 22 19:18:37 CEST 2013


On Thu, 22 Aug 2013 09:00:17 +0200 (CEST)
Alexandre DERUMIER <aderumier at odiso.com> wrote:

> 
> This is done using a background task, so I do not really understand why we need to 
> increase a timeout? 
> 
Well, the problem is not creating the image as such. The problem is
when you want to relate this image to a LUN and View since the link
between the LUN and the View is made using the LU_NAME. Creating the
LUN does not return the LU_NAME in which case this needs to be fetch
after the LUN has been created. Since LU_NAME is not returned and
there, AFAIK, is no function for requesting the LU_NAME assigned to an
image the only way to fetch this is by looping over all LUN's and
comparing each LUN's source with the image (path). When a match is
found you are able to retrieve the LU_NAME with which you are able to
create a View. This looping takes time and frequently timeout is raised
before the entire process is finished which causes another image to be
created (the gui considers the request lost and therefore makes a new
request).

The god thing is I might have found another way to fetch the LU_NAME
without the need for the loop consequently going from O(n) to O(1). I
will try implement this new algorithm this evening.

If this succeeds I have overcome every major upstackle and I would
therefore consider the plugin ready for testing among a larger
audience. I have been using it myself for a couple of month now with no
problems what so ever.

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
Your aims are high, and you are capable of much.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20130822/392d457b/attachment.sig>


More information about the pve-devel mailing list