Skip to content

Conversation

@fitati
Copy link

@fitati fitati commented Apr 17, 2013

the fonction destroy in libvirt dont take flags argument

@Kami
Copy link
Member

Kami commented Apr 21, 2013

Can you please provide a link to some reference documentation which says destroy doesn't take any argument?

Thanks

@fitati
Copy link
Author

fitati commented Apr 21, 2013

this is the libvirt official api reference link for destroy node,
i have tray it and it work very well,
http://libvirt.org/html/libvirt-libvirt.html#virNodeDeviceDestroy
cordially

2013/4/21 Tomaz Muraus notifications@github.com

Can you please provide a link to some reference documentation which says
destroy doesn't take any argument?

Thanks


Reply to this email directly or view it on GitHubhttps://github.com//pull/101#issuecomment-16715923
.

Aymen Fitati
engineering student
at National School of Computer Science
ENSI-TUNISIA
phone: (+216) 53 83 15 11/26 83 40 40
skype: aymen.fitati

@Kami
Copy link
Member

Kami commented Apr 21, 2013

I've merged this patch into trunk - http://svn.apache.org/viewvc?view=revision&revision=r1470327. You can close this pull request now, thanks.

For the EC2 change and future contributions please open a ticket on our issue tracker (https://issues.apache.org/jira/browse/LIBCLOUD) and attach your patch there - thanks.

fitati added 3 commits April 24, 2013 00:31
For start node, in qemu: libvirt driver the stopped node don't have an id this why we cannot start node by ID, we juste start node from her name.Id is affected to the node after start
@fitati
Copy link
Author

fitati commented Apr 25, 2013

Hello,
there is another update for libcloud_driver on git, can you please validate,
for start node, the stopped node haven't an Id, this why we cannot start
node from her id, here is no ID !!
we need to look_up domain for name and start the virtual domaine
cordially

2013/4/21 Tomaz Muraus notifications@github.com

I've merged this patch into trunk -
http://svn.apache.org/viewvc?view=revision&revision=r1470327. You can
close this pull request now, thanks.

For the EC2 change and future contributions please open a ticket on our
issue tracker (https://issues.apache.org/jira/browse/LIBCLOUD) and attach
your patch there - thanks.


Reply to this email directly or view it on GitHubhttps://github.com//pull/101#issuecomment-16738474
.

Aymen Fitati
engineering student
at National School of Computer Science
ENSI-TUNISIA
phone: (+216) 53 83 15 11/26 83 40 40
skype: aymen.fitati

@Kami
Copy link
Member

Kami commented Apr 25, 2013

@fitati Thanks, but I'll need more time to check this one and make sure it actually works and doesn't break anything.

Currently there are no tests for libvirt driver so it's hard to do that. I will try to get some tests to trunk asap, but it would also be great if you can add some tests for this new / updated functionality.

@fitati
Copy link
Author

fitati commented Apr 26, 2013

Hi,
about the test, i found this bug when I am trying to test this feature, but
if you get a look on libvirt api you found:

def lookupByID(self, id):
"""Try to find a domain based on the hypervisor ID number
Note that this won't work for inactive domains which have an ID of
-1,
in that case a lookup based on the Name or UUId need to be done
instead. """
ret = libvirtmod.virDomainLookupByID(self._o, id)
if ret is None:raise libvirtError('virDomainLookupByID() failed',
conn=self)
__tmp = virDomain(self,_obj=ret)
return __tmp
this is the source code and than you cannot get the virtual domaine with
this method and than you cannot start the node,
the solution id to get the virtual by his name
Cordially.

2013/4/25 Tomaz Muraus notifications@github.com

@fitati https://github.com/fitati Thanks, but I'll need more time to
check this one and make sure it actually works and doesn't break anything.

Currently there are no tests for libvirt driver so it's hard to do that. I
will try to get some tests to trunk asap, but it would also be great if you
can add some tests for this new / updated functionality.


Reply to this email directly or view it on GitHubhttps://github.com//pull/101#issuecomment-17039768
.

Aymen Fitati
engineering student
at National School of Computer Science
ENSI-TUNISIA
phone: (+216) 53 83 15 11/26 83 40 40
skype: aymen.fitati

@Kami
Copy link
Member

Kami commented Oct 26, 2013

(just doing some pull request cleanup)

@fitati - Those changes are not relevant anymore, can you please close this pull request?

Thanks!

@asfgit asfgit closed this in 5591e2e Jan 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants