grossmj
ad5548f70b
Convert more that IOU pre 1.3 projects but also other modules on remote servers.
2015-03-09 21:46:23 -06:00
grossmj
95766fa30d
Let the server know about the project name and convert old IOU projects on remote servers.
2015-03-08 19:13:01 -06:00
grossmj
2934232afb
Convert legacy IOU directories on remote servers.
2015-03-08 17:45:29 -06:00
Jeremy
b673b898a8
Fixes problem when trying to convert VirtualBox projects without cloned VMs.
2015-03-02 13:04:30 -07:00
Julien Duponchelle
a9afaa028c
Garbage collect VM when closing a project
2015-03-02 17:17:28 +01:00
Julien Duponchelle
66860655b9
If a VM is already loaded, we return a VM instead of creating it twice
...
Partial fix for #81
2015-03-02 15:35:36 +01:00
grossmj
c48ca212bd
Stop Dynamips hypervisors used by devices before the project is closed.
...
This is to avoid locked files by hypervisors preventing temporary project working directories to be deleted.
2015-03-01 19:20:33 -07:00
grossmj
7223005acd
Restore device IDs and fixes race condition when converting an old project.
2015-03-01 13:05:51 -07:00
grossmj
dfce18a48f
Fixes migration issues for pre-1.3 projects.
2015-02-28 18:55:53 -07:00
grossmj
d762c43314
Include the images directory when converting an old project.
2015-02-28 15:00:00 -07:00
grossmj
708f66b608
Fixes asyncio Lock instantiation issues on Windows.
...
Because the event loop is essentially a global variable, asyncio Lock objects that get instantiated early could grab a reference to the wrong loop (Selector instead of Proactor).
2015-02-27 22:12:43 -07:00
Jeremy
0e8b8fa66f
Update hypervisors working dir when the project is moved.
2015-02-27 16:51:17 -07:00
Jeremy
0eaad579c2
IOU + VirtualBox conversion of old projects.
2015-02-25 18:55:35 -07:00
Jeremy
9dc713f31d
Fixes race condition when deleting empty legacy project files dir.
2015-02-25 17:38:36 -07:00
Jeremy
54fc873be5
Prevent multiple projects with the same ID to be created.
2015-02-25 16:05:57 -07:00
Julien Duponchelle
f12d3f07f7
Drop the old -files in the project
2015-02-25 18:23:41 +01:00
Jeremy
42c07cee1a
Properly release UDP ports when closing a project or deleting a link.
2015-02-23 19:00:34 -07:00
Julien Duponchelle
d65617657c
Fix old project directories renames
2015-02-18 16:13:09 +01:00
grossmj
78ffe313fd
Dynamips VM & device deletion and ghost support.
2015-02-15 22:13:24 -07:00
grossmj
f99e834c37
Dynamips devices support (packet capture to complete).
2015-02-15 12:18:12 -07:00
Julien Duponchelle
1550ca01e6
IOU support nio ethernet
2015-02-13 16:41:18 +01:00
Julien Duponchelle
f99d825346
Support network for IOU
2015-02-12 22:29:34 +01:00
grossmj
0d7d0a05c3
Handle old projects.
2015-02-08 18:10:04 -07:00
grossmj
2a3b37a3bd
VirtualBox packet capture.
2015-02-08 14:44:56 -07:00
Jeremy
8118d7762f
Parallel execution when closing VMs.
2015-02-05 14:24:06 -07:00
Jeremy
291fac7084
Add project_id in all VM calls.
2015-02-04 17:13:35 -07:00
Jeremy
1bea78194c
Explicit ID names, remove {uuid} from URLs and add vms in URLs for VMs.
2015-02-04 13:48:29 -07:00
Jeremy
81f9252554
Fixes nasty bug when close a cloned VirtualBox VM.
2015-02-02 18:56:13 -07:00
Jeremy
66569f26a4
Make sure to wait for the unload coroutine to finish when the server is shutting down.
2015-02-02 17:01:25 -07:00
Jeremy
365af02f37
Packet capture support for VirtualBox.
2015-01-23 18:33:49 -07:00
Jeremy
bc3d63081b
Unload should not delete VMs, just close them.
2015-01-23 16:36:58 -07:00
Jeremy
39e3ca91a9
Fixes module unload & adds host, port and allow-remote-console command line args.
2015-01-23 13:01:23 -07:00
Julien Duponchelle
7bed9f56bc
Avoid crash when closing vms
...
Otherwise the size of dict change and Python raise
an exception.
2015-01-23 17:33:58 +01:00
grossmj
4f2764c0b4
Fixes module unload.
2015-01-23 08:44:00 -07:00
Julien Duponchelle
7bf121c6da
When we remove a VM, the VM is removed from the project.
2015-01-23 14:37:21 +01:00
Julien Duponchelle
f97c2b2cbe
Delete a VM, mark it as destroyable
2015-01-23 11:28:58 +01:00
grossmj
0d503b779e
Explicitly close VM when the server is shutdown.
2015-01-22 23:40:51 -07:00
grossmj
e61e976368
Adapters support for VirtualBox.
2015-01-22 21:31:26 -07:00
Jeremy
d9b02efbfa
Rename destroy to close or unload (more friendly).
2015-01-22 19:06:17 -07:00
Jeremy
2681defe27
Moves NIO creation to the base manager.
2015-01-22 18:04:24 -07:00
Julien Duponchelle
6644c640db
Attribute mac address
2015-01-22 16:12:21 +01:00
Julien Duponchelle
08b2dc6369
Cleanup VMS when leaving
2015-01-22 11:49:22 +01:00
Julien Duponchelle
e12e6044dc
Delete VPCS
2015-01-22 11:34:10 +01:00
Jeremy
f231b06833
No need for start_vm and stop_vm in the manager.
2015-01-21 17:41:35 -07:00
Jeremy
0b1b27db8f
Add module name to base manager.
2015-01-21 15:21:15 -07:00
Jeremy
7a19c9062e
Pass *args to VM_CLASS.
...
Move Config the the base manager.
More checks for projects (UUID, makedirs).
Return error 500 when a VMError exception is raised.
Some more progress to VirtualBox.
2015-01-20 19:02:22 -07:00
Jeremy
17f6223fb1
Try to fix VirtualBox create test.
2015-01-20 15:28:40 -07:00
Julien Duponchelle
fa57485f11
Support script file
2015-01-20 19:56:18 +01:00
Julien Duponchelle
f5ed9fbcf1
PEP 8 clean thanks to auto pep8
2015-01-20 13:24:00 +01:00
Julien Duponchelle
68d0e5f42d
PEP8
2015-01-20 13:04:20 +01:00