Commit Graph

714 Commits (ffe64485344bc0df44ad61f69efc33df74248100)

Author SHA1 Message Date
Julien Duponchelle 87f15eafe0
Shutdown on controller
8 years ago
Julien Duponchelle ae687346f1
Export the list of volumes to a env variable accessible in the container
8 years ago
Julien Duponchelle d3436756b2
Fix permissions and ownership when stopping container
8 years ago
Julien Duponchelle 4c291f5051
Remove /config/reload
8 years ago
Julien Duponchelle 7a80dd6cb3
Merge branch '1.5' into 2.0
8 years ago
Julien Duponchelle 94a709cb42
Fix tests around Qemu mac address
8 years ago
Julien Duponchelle df654b40ff
Add a test
8 years ago
Julien Duponchelle 314a7cd8fb
Generate an uuid for compute node if None is provided
8 years ago
Julien Duponchelle 6162d7e431
Generated compute name include the username when it's exists
8 years ago
Julien Duponchelle dbda3fc8fc
Add method to delete and update computes
8 years ago
Julien Duponchelle 2c72452c91
Drop useless test
8 years ago
Julien Duponchelle a797038aeb
Drop code for temporary projects
8 years ago
Julien Duponchelle df73f80bf5
Auto create the local compute node
8 years ago
Julien Duponchelle 0aa81b5fa5
Send event when adding compute node or modify it (for server sumary)
8 years ago
Julien Duponchelle f6a3899603
Return a compute name it could be different of compute id
8 years ago
Julien Duponchelle 3e6aec016b
Fix test for idlepc
8 years ago
Julien Duponchelle 672a617102
Compute IDLE PC via controller
8 years ago
Julien Duponchelle 00f80f54e8
Merge branch '1.5' into 2.0
8 years ago
Julien Duponchelle a741662636
Force tag latest for docker image if no tag is specified
8 years ago
Julien Duponchelle b00a09efaa
Test link.updated event
8 years ago
Julien Duponchelle 54747ee618
Support for link event, fix link not correctly deleted
8 years ago
Julien Duponchelle fa0af7f4a2
Correctly process node.updated event on controller
8 years ago
Julien Duponchelle 694e1a2e68
Extract the notification part of controller to a dedicated class
8 years ago
Julien Duponchelle d86cefaaeb
Support node without console
8 years ago
Julien Duponchelle d5895c3a47
Merge branch '1.5' into 2.0
8 years ago
Julien Duponchelle 871fea33e0
Cleanup unbreakable space
8 years ago
Julien Duponchelle f052299eb1
Return status in all cases
8 years ago
Julien Duponchelle b07dcf552c
Add an endpoint for listing the links of a project
8 years ago
Julien Duponchelle ce0d715895
Fix Deleted node are still return by the API
8 years ago
Julien Duponchelle a496aaab9e
Send node.updated event and tests are green
8 years ago
Julien Duponchelle cb70cfecd7
Fix docker test
8 years ago
Julien Duponchelle a9b95eb242
If the compute node is remote do not send project path
8 years ago
Julien Duponchelle 26c7aedba6
Fix docker test about vm suspended
8 years ago
Julien Duponchelle ac24922300
Node deleted event
8 years ago
grossmj 51738e19c3 Some spring cleanup for Docker VM.
8 years ago
grossmj f1bc2f22c3 Start, stop, suspend and reload endpoints for all nodes belonging to a project. Fixes #1212.
8 years ago
grossmj 6cea6c9162 Some more (spring) cleaning.
8 years ago
grossmj f81d35cc29 Handlers: cleanup and fixes.
8 years ago
Julien Duponchelle 885d93be02
Delete a node work
8 years ago
Julien Duponchelle 2857d9a070
Send a field status in the node object
8 years ago
Julien Duponchelle d43e78a1d7
Support all characters for compute ID
8 years ago
Julien Duponchelle b46a0ff4ae
Endpoint for getting information about a compute node
8 years ago
Julien Duponchelle 5280644327
Return command_line and node_directory via the controller
8 years ago
Julien Duponchelle 885a870ae8
Rebuild documentation
8 years ago
Julien Duponchelle e457df1777
Test are OK
8 years ago
grossmj ef7b4ef020 Fixes tests and some PEP8.
8 years ago
grossmj 483431438a Merge remote-tracking branch 'origin/2.0' into 2.0
8 years ago
grossmj 5a76f81271 Refactoring to use a common node class for all VMs and other (future) objects.
8 years ago
Julien Duponchelle 9ccb55206d
Cleanup code for getting the default project directory
8 years ago
Julien Duponchelle a0344576ba
Show version for debug
8 years ago
Julien Duponchelle c2da568543
Protect controller and compute about path outside project directory
8 years ago
Julien Duponchelle 390401000f
A client could not erase the local compute node config in the controller
8 years ago
Julien Duponchelle 4342b4346e
Fix tests
8 years ago
Julien Duponchelle cd836f146e
Create the project on compute only when needed
8 years ago
Julien Duponchelle 9dca7dfe4a
Merge branch '1.5' into 2.0
8 years ago
Jeremy Grossmann c7d58eb3b3 Merge pull request #518 from GNS3/detect_eth
8 years ago
Julien Duponchelle 2cdfd6c0d7
Wait for all interfaces available in container
8 years ago
Julien Duponchelle 57cf57b408
Improve parse_version
8 years ago
Julien Duponchelle 5fd385159c
HTTP support for docker
8 years ago
Julien Duponchelle e9fb7f4981
Make sure an image is not partially uploaded
8 years ago
Julien Duponchelle d952718f30
Fix RuntimeWarning: You have iterated over the result of
8 years ago
Julien Duponchelle a3b243c501
Merge branch '1.5' into 2.0
8 years ago
Julien Duponchelle 978ec1b5be
Fix test
8 years ago
Julien Duponchelle 98b32cd9e2
Merge branch '1.5' into 2.0
8 years ago
Julien Duponchelle 936faaba5a
gns3z => gns3project
8 years ago
Julien Duponchelle 92d1594afd
Return link object when start capturing
8 years ago
Julien Duponchelle 76b2ca2bc0
Return the full path to the capture
8 years ago
Julien Duponchelle 264254e657
Captures written in the captures directory on the controller
8 years ago
Julien Duponchelle 9a1eeb57e9
Controll of the project directory in the controller
8 years ago
Julien Duponchelle 7390d833ba
Merge branch 'master' into 2.0
8 years ago
Julien Duponchelle 1d08d4a5fa
Merge branch 'master' into 1.5
8 years ago
Julien Duponchelle 6d6e8196d2
Allow only .pcap to be downloaded from remote stream API
8 years ago
Julien Duponchelle 75196b8a55
Fix incrementation of qemu mac address
8 years ago
Julien Duponchelle 1ce576c020
Stream pcap from compute to controller to client
8 years ago
Julien Duponchelle 48e71617d6
Store capture in a temporary directory on compute node
8 years ago
Julien Duponchelle 1a22fb9250
Expose the capture status in controller link API
8 years ago
Julien Duponchelle 549a6280c0
Data link type is on the capture not on the link
8 years ago
Julien Duponchelle 04a1b2df3b
Method for start / stop capture on a link
8 years ago
Julien Duponchelle f6593663b5
APi for listing VM in controller
8 years ago
Julien Duponchelle c8c61f2ae8
Add endpoint to list the compute nodes
8 years ago
Julien Duponchelle f5e5cf5059
Save the list of compute node
8 years ago
Julien Duponchelle ce5461aee8
Raise error if we try to controll a non controller server
8 years ago
Julien Duponchelle 6b9e46950c
Update VPCS and delete VPCS via controller
8 years ago
Julien Duponchelle d7ed37ce02
Update and delete VM on controller
8 years ago
Julien Duponchelle 6c11ad5fa6
Reload VM
8 years ago
Julien Duponchelle 58d4a529d4
Rename hypervisor to compute
8 years ago
Julien Duponchelle 2055cdea5e
/start /stop and /suspend API for VM via container
8 years ago
Julien Duponchelle ad7ca86f32
Fix 1.5 merge
8 years ago
Julien Duponchelle 6b61811f9d
Merge branch '1.5' into 2.0
8 years ago
Julien Duponchelle b7a859fa30
Import / Export with images
8 years ago
Julien Duponchelle cd393491d5
At export use only relative image path
8 years ago
Julien Duponchelle f6d0971f15
Fix tests
8 years ago
Julien Duponchelle 9e8fcab65c
Merge branch '1.5' into 2.0
8 years ago
Julien Duponchelle 2109fd4f4d
Test docker resolution
8 years ago
Julien Duponchelle 977ccabf98
Server support for VNC console resolution
8 years ago
Jeremy Grossmann 6bc54b17c7 Merge pull request #481 from GNS3/import_linux
8 years ago
Jeremy Grossmann bb63f51f80 Merge pull request #478 from GNS3/qcow2_rebase
8 years ago
Julien Duponchelle 9b9eddb30c
Fix VNC broke after container update
8 years ago
Julien Duponchelle e564c84529
Flatten the project at export and support import for Linux
8 years ago
Julien Duponchelle 9ed15e55af
Move more import code to the server
8 years ago
Julien Duponchelle 2651a48102
Fix the docker aux port is lost after an update
8 years ago
Julien Duponchelle 57394dfebf
Rebase the qcow2 when starting the VM if needed
8 years ago
Julien Duponchelle 7422b31b2c
Refactor code for avoid duplicate in disk management for Qemu
8 years ago
Julien Duponchelle 06b9e46cd2
Create Qcow2 class for reading Qcow2 and rebase it
8 years ago
Julien Duponchelle 3b04f556b3
In the export rename the .gns3 to project.gns3
8 years ago
Julien Duponchelle bd71f0cf4c
Import API
8 years ago
Julien Duponchelle 879591eaf5
Export API
8 years ago
Julien Duponchelle f39af9deb7
Fix tests
8 years ago
Julien Duponchelle c563dbba8a
Change default port to 3080
8 years ago
Julien Duponchelle 2a20333877 Merge pull request #461 from GNS3/ehlers-docker-init
8 years ago
Julien Duponchelle 23c48f5e3d
Add to project an API to write a file
8 years ago
Julien Duponchelle e6ddce86b3
Docker init supports /etc/network/interfaces
8 years ago
Julien Duponchelle 40f496c7e9
Merge branch '1.5' into 2.0
8 years ago
Julien Duponchelle d2c32bb570
Merge branch 'master' into 1.5
8 years ago
Julien Duponchelle dcc4ddf11b
Add a test for \r\n
8 years ago
Julien Duponchelle bc14d5d78e
Notif forwarded from hypervisor to controller
8 years ago
Julien Duponchelle de61ed316c
The controller has a streaming API
8 years ago
Julien Duponchelle 76a0120d3e
PEP8
8 years ago
Julien Duponchelle b55969d381
Notification feed for the hypervisor
8 years ago
Julien Duponchelle dd2fdcc574
Merge branch '1.5' into networkv2
8 years ago
Julien Duponchelle 174e7cccea
Merge branch 'master' into 1.5
8 years ago
Julien Duponchelle 75212cda3f
Improve tests on Travis
8 years ago
Julien Duponchelle aa6c44a470
Fix crash when a n hypervisor return no body
8 years ago
Julien Duponchelle 757ee34dac
Support auth for network V2 hypervisors
8 years ago
Julien Duponchelle c0e452133d
Web interface for debbuging controller
8 years ago
Julien Duponchelle 7a095478fe
Success to add a dynamips with apiv2
8 years ago
Julien Duponchelle 8fed1d9b9f
API for deleting a link
8 years ago
Julien Duponchelle ed291da566
Rebuild doc
8 years ago
Julien Duponchelle 9062490be3
API for deleting a list
8 years ago
Julien Duponchelle 9771b33b68
Create link using UDP work
8 years ago
Julien Duponchelle 65099b9364
Link API should work now need to implement the client
8 years ago
Julien Duponchelle 6a19e4d822
Rebuild link sample
8 years ago
Julien Duponchelle 8c1560332e
Remove /controller from the api endpoint
8 years ago
Julien Duponchelle e3580d52c3
Dummy link api documentation
8 years ago
Julien Duponchelle abdda4d3b3
Link API (do nothing for the moment)
8 years ago
Julien Duponchelle 6fad82c61d
Rebuild documentation
8 years ago
Julien Duponchelle 7d0b780dcc
Documentation
8 years ago
Julien Duponchelle be4aa41dda
Create VPCS VM on controller
8 years ago
Julien Duponchelle 4326d412f9
API for creating a VM
8 years ago
Julien Duponchelle 58f1abff35
Close, commit and delete supported for projects in controller
8 years ago
Julien Duponchelle 3296b97f59
Rename modules => hypervisor
8 years ago
Julien Duponchelle 6fa2491255
Rename /controller/servers to /controller/hypervisors
8 years ago
Julien Duponchelle 8114c1d4be
Return just version number for API /v1/version for compatibility
8 years ago
Julien Duponchelle b2ce7ee8d7
API V2
8 years ago
Julien Duponchelle 664cec97ba
Create /hypervisor and /controller namespace
8 years ago
Julien Duponchelle e4b12f49d1
Build doc support controller
8 years ago
Julien Duponchelle 0921df520c
Return controller version as server version (temporary)
8 years ago
Julien Duponchelle 0532b4de8a
Fix logging issues with the controller
8 years ago
Julien Duponchelle 4d77b2918e
Raise an error if server flagged as local but should not
8 years ago
Julien Duponchelle ee4b094160
Fix tests on @ehlers Docker init patch
8 years ago
Julien Duponchelle aad69e9650
Create a /server API for register servers
8 years ago
Julien Duponchelle 84eb8356e8
Create a container class and a flag for enable it from command line
8 years ago
Julien Duponchelle eae6f33e29
Inject an init script
8 years ago
Julien Duponchelle 59c1e125d3
Change the name of veth to avoid bugs :(
8 years ago
Julien Duponchelle dab1b26569
Aux console for Docker
8 years ago
Julien Duponchelle 03ffce0a75
Docker VNC support
8 years ago
Julien Duponchelle 9d28f4c0c3
Refactor aux port allocation
8 years ago
Julien Duponchelle c333e9451f
Fix pull of images
8 years ago
Julien Duponchelle 2d42f32d71
Restart the container if running and you change the hostname
8 years ago
Julien Duponchelle 057b637961
Set the hostname for docker containers
8 years ago
Julien Duponchelle f35c742b07
Avoid consuming 100% of CPU when stopping docker container
8 years ago
Julien Duponchelle f4f9e6eba6
Fix Docker has returned an error: 500 b'No command specified'
8 years ago
Julien Duponchelle 7aedfc92fa
Fix test
8 years ago
Julien Duponchelle 01e2fcf225
Fix docker console port lost during update
9 years ago
Julien Duponchelle 1532b3ed9b
Support for mounting volumes
9 years ago
Julien Duponchelle 9b0088728f
Catch docker namespace error
9 years ago
Julien Duponchelle 5a8408cdb9
Fix a crash in Travis tests
9 years ago
Julien Duponchelle a7ec224b6d
Docker capture and refactor common capture code
9 years ago
Julien Duponchelle 89e86b7778
Create veth for docker even if link is not connected
9 years ago
Julien Duponchelle f6fb0623be
Merge branch 'master' into 1.5
9 years ago
Julien Duponchelle 373113545f
Code cleanup
9 years ago
Julien Duponchelle 5bee927481
Disallow creating project with " in the path
9 years ago
Jeremy Grossmann 3e4423f663 Merge pull request #418 from GNS3/no_spice
9 years ago
Julien Duponchelle 537122daba
Do not list qemu binary with -spice in the name
9 years ago
Julien Duponchelle fd22cd8361
Send command line used to start the VM to client
9 years ago
Julien Duponchelle 03414993dc
Merge branch 'master' into 1.5
9 years ago
Julien Duponchelle 29089f1884
Cleanup an old kvm-ok test
9 years ago
Julien Duponchelle 889ea14973
For topologies before 1.4 manage qemu missing
9 years ago
Julien Duponchelle 58b998600e Send machine stats via the notification stream
9 years ago
Julien Duponchelle 119a2a3b66 Add test for unicode char in images path
9 years ago
Julien Duponchelle ee2104ba35 Check for /dev/kvm instead of kvm-ok
9 years ago
Julien Duponchelle 5617ddc4cc Show a warning when starting ASA8
9 years ago
Julien Duponchelle c280fd5fb8 Merge branch 'master' into 1.5
9 years ago
Julien Duponchelle 8225bad76b Fix usage of qemu 0.10 on Windows
9 years ago
Julien Duponchelle 5db1f6b2f7 Fix a test related to docker
9 years ago
Julien Duponchelle 758fb2a0e7 adapter_remove_nio_binding is a coroutine for all device type
9 years ago
Julien Duponchelle 5a28b9409a Fix Crash at startup when docker is not installed
9 years ago
Julien Duponchelle 1f756c0d4f Merge branch '1.4' into 1.5
9 years ago
Julien Duponchelle d184b65800 Improve PR #386
9 years ago
Julien Duponchelle 439a0c80d6 Another fix for docker tests
9 years ago
Julien Duponchelle fd0fb97204 Fix test
9 years ago
Vasil Rangelov d00efbfb0f Adds a handler for getting the Qemu related capabilities of the server. Currently includes just a check for KVM architectures.
9 years ago
Jeremy Grossmann 8cf55166cb Merge pull request #379 from GNS3/docker_cleanup
9 years ago
Julien Duponchelle 61cf91d83c Fix tests on Windows
9 years ago
Julien Duponchelle 33edbefa3b Docker cleanup and improvements
9 years ago
Julien Duponchelle 286cd7a3ac A debug status page embed in the server
9 years ago
Julien Duponchelle 480ca037cd Fix test on Windows
9 years ago
Julien Duponchelle ad4501838b Merge branch 'master' into unstable
9 years ago
grossmj 55034dd24f Update links for new website.
9 years ago
Julien Duponchelle 2aaad4749b Replace by another TCP port if port is already used
9 years ago