From: Adrian Cole <adrian.f.c...@gmail.com>
Date: Tue, 3 Jan 2012 08:20:00 -0800
Subject: Re: Virtualbox implementation
Back at ya > Thanks Adrian for the feedback. Inline my comments: > On Sat, Dec 31, 2011 at 5:46 PM, Adrian Cole <adrian.f.c...@gmail.com> >> Hi, Andrea. >> Good stuff and thanks for pinging jclouds-dev + Thoughts inline. >> On Dec 31, 2011 2:43 AM, "Andrea Turli" <andrea.tu...@gmail.com> wrote: >> > I'm trying to implement the functionality to find all linked clones >> > The idea like in the pipe shell is to compose different small function >> Warning.. Guava advise to follow :) IMachinePredicates.ofSpec(vmspec)); >> > Starting from these 3 operations: >> > List<IMachine> findClonesOfAMachine(VmSpec) >> Iterable<IMachine> clones = Iterables.filter(allMachines, > This is a good proposal but at the moment I'm not sure we can have the Interesting. Care to elaborate? what can be listed? As ComputeService needs to impl listNodes, we need to figure out some strategy for this. >> > VmSpec IMachineToVmSpec(IMachine) >> Iterable<VmSpec> specs = Iterables.transform(clones, > This is implemented and already accepted in jclouds/jclouds. >> > UnregisterMachineIfExistsAndDeleteItsMedia(VmSpec) >> Note this could be ... Functions.compose(unregisterIfExists,deleteMedia) > I completely agree with this. Good idea. >> > we can have something like: >> > findClonesOfAMachine | IMachineToVmSpec >> > to delete all the linked clones of a particular machine. >> > There are some edge cases in this approach, more specifically, this important: first the linked clones than the "master". >> You can add an ordering step before delete. inside "UnregisterMachineIfExistsAndDeleteItsMedia(machine)" to recursively > If I have correctly understood you are suggesting to have also a check find & order all the clones of the given machine. > In fact sometimes you cannot delete a 'master' machine, if it has been is reasonable to delete all the machines "attached to that master" to finally delete the master. > Maybe we need to improve VmSpec domain class with the list of linked By ordering I mean a separate sort step, which orders children first. VmSpec is probably best used for specs to launch and a name like Vm is > Andrea >> > Is it reasonable? What do you think? Any suggestions? >> Yep. Very sensible. >> Sounds like you want to emulate a shell pipeline. Here's some hints: >> Grep = Iterables.filter >> Good job on this! Keep us posted and in the loop. >> -A >> > Thanks, >> > On Thu, Dec 22, 2011 at 3:10 PM, Andrea Turli <andrea.tu...@gmail.com> >> >> Thx Andrew. >> >> On Thu, Dec 22, 2011 at 3:05 PM, Andrew Phillips < >> >>>> If either some other VM refers to some snapshots (linked clone), or >> >>> If I understand your explanation correctly, linked clones. If this is "correct" according to virtualbox I don't think it's something that needs to be fixed immediately, especially if the "cleanup" one needs to do - delete all linked clones - is possible using some kind of "delete loop" in client code. >> >> This seems to be the expected behaviour according to vbox community. >> >>> In that case, I think it would be OK to document the behaviour and necessary. >> >> Actually this is a very good idea: we will add an helper to delete >> >> Andrea >> >>> ap >> >>> -- >> >>> To post to this group, send email to jclouds-dev@googlegroups.com. jclouds-dev+unsubscribe@googlegroups.com. >> >>> To unsubscribe from this group, send email to >> >>> For more options, visit this group at http://groups.google.com/group/jclouds-dev?hl=en. >> > -- >> > To post to this group, send email to jclouds-dev@googlegroups.com. jclouds-dev+unsubscribe@googlegroups.com. >> > To unsubscribe from this group, send email to >> > For more options, visit this group at http://groups.google.com/group/jclouds-dev?hl=en. >> -- >> To post to this group, send email to jclouds-dev@googlegroups.com. jclouds-dev+unsubscribe@googlegroups.com. >> To unsubscribe from this group, send email to >> For more options, visit this group at http://groups.google.com/group/jclouds-dev?hl=en. > -- > To post to this group, send email to jclouds-dev@googlegroups.com. jclouds-dev+unsubscribe@googlegroups.com. > To unsubscribe from this group, send email to > For more options, visit this group at http://groups.google.com/group/jclouds-dev?hl=en. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||