Commit Graph

714 Commits (ffe64485344bc0df44ad61f69efc33df74248100)

Author SHA1 Message Date
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
Julien Duponchelle 5b347fe48f Raise error if server received windows path
9 years ago
Julien Duponchelle 3f4da9050c Support VPCS 0.6.1
9 years ago
Julien Duponchelle 63edcc1c34 Fix duplicate of -no-kvm options
9 years ago
Julien Duponchelle caade47e16 Fix tests about images paths security
9 years ago
Julien Duponchelle 390c88d7cd Raise an error if user send a non local path to remote server
9 years ago
Julien Duponchelle 669295131b Fix qemu tests on Linux
9 years ago
Julien Duponchelle ab4c8665e4 Fix backup projects and a qemu broken tests
9 years ago
Julien Duponchelle da240f21ba Apply pep8 fix
9 years ago
Julien Duponchelle f01a6dcaaf Fix qemu tests
9 years ago
Julien Duponchelle 1248584841 Cleanup unused and duplicates
9 years ago
Julien Duponchelle 58d2a5d4b0 Support VPCS 0.6.1
9 years ago
grossmj c3e99bfc1d Drop netifaces (replaced by psutil). Fixes #344.
9 years ago
Julien Duponchelle 6fbc84c0dc Return relative path for dynamips images
9 years ago
Julien Duponchelle 7ee12edb5c Fix add existing IOS not working
9 years ago
Julien Duponchelle f1e9262c94 Avoid test crash if GNS3 is running on the same computer
9 years ago
Julien Duponchelle 7967a922bc Merge branch 'master' into unstable
9 years ago
Julien Duponchelle bd54c55ae1 Fix minor errors reported by codacy.com
9 years ago
Julien Duponchelle 69c38c6414 Use pytest 2.8 so it's work with Python 3.5 without warning
9 years ago
Julien Duponchelle 6edb41ded7 Merge branch 'master' into unstable
9 years ago
Julien Duponchelle 42c8fb7c29 Raise an error when you use a port outside the ranges
9 years ago
Julien Duponchelle c2a08a391c Fix crash in IOU config export
9 years ago
Julien Duponchelle d979f08c93 Update api documentation
9 years ago
Julien Duponchelle 504a4af4ab Enforce console port for VNC
9 years ago
Julien Duponchelle c50c735e86 Merge branch 'master' into unstable
9 years ago
Julien Duponchelle acd5c992ba Fix Dynamips identifier is already used by another router
9 years ago
Julien Duponchelle 9b740e85d0 Fix Dynamips identifier is already used by another router
9 years ago
Julien Duponchelle 5e3ce48a52 Merge branch 'master' into unstable
9 years ago
Julien Duponchelle 3d7d8682ee OVA file support
9 years ago
Julien Duponchelle 034ac392b7 Support listing images in subdirectories
9 years ago
Julien Duponchelle bfe9c117ba Fix tests
9 years ago
grossmj 47abba3c9c Fixes tests.
9 years ago
Julien Duponchelle c16d237176 Fix test
9 years ago
Julien Duponchelle 986ab649d7 Fix project not closing
9 years ago
Julien Duponchelle d853ffe791 Change the way we look for Qemu path
9 years ago
Julien Duponchelle fea7a8a9ab Fix Qemu cannot be used on Windows
9 years ago
Julien Duponchelle 796ca86df9 Fix random failures in tests on OSX and Windows
9 years ago
Julien Duponchelle 55f7c79918 Explicit set qemu memory as MB
9 years ago
Julien Duponchelle 323674ba5c Turn off KVM for non x86 architectures
9 years ago
Julien Duponchelle 8b46a1a4ab Fix tests
9 years ago
Julien Duponchelle dbc4f05465 Fix tests
9 years ago
Julien Duponchelle e92d9ca5ff Raise error if qemu image already exist when creating disk
9 years ago
Julien Duponchelle 54448ab936 Prevent user to create a qemu to a different directory on non local
9 years ago
Julien Duponchelle 5b0c36c0d6 API for creating a qemu disk image
9 years ago
Julien Duponchelle 5d8c90d138 Rename qemu image type to qemu image format
9 years ago
Julien Duponchelle b94a4e2308 Add code for creating qemu image on server side
9 years ago
Julien Duponchelle c3c971921d Update documentation
9 years ago
Julien Duponchelle d9f1a7c7d3 API for listing current projects
9 years ago
Julien Duponchelle cbe593f4a4 Fix virtualbox test crash on Linux
9 years ago
Julien Duponchelle cbc859a03b Merge remote-tracking branch 'origin/master' into unstable
9 years ago
Julien Duponchelle 3f25bfcb27 Fix qemu tests
9 years ago
Julien Duponchelle fc14deee1b Restore images & projects tarballs
9 years ago
Julien Duponchelle 270017d945 Allow user to backup projects and images
9 years ago
Julien Duponchelle c3eb6a440f Fix vmware and interfaces tests
9 years ago
Julien Duponchelle a461cb71c6 Allow to send the iourc when starting the VM
9 years ago
Julien Duponchelle dd6c377b15 Fix test on Linux
9 years ago
Julien Duponchelle 33d6fbde21 Fix server tests
9 years ago
Julien Duponchelle e93f1330b8 Fix dynamips tests
9 years ago
Julien Duponchelle 1f116fc992 Fix tests
9 years ago
Julien Duponchelle 3b3929803b Force turn off KVM for the CI
9 years ago
Julien Duponchelle 6e3ebb714d Return vm_directory for VirtualBox and VMware
9 years ago
Julien Duponchelle feefb075d4 Make the qemu event crash more future proof
9 years ago
Julien Duponchelle e8805d3fdc When a qemu VM crash send the log to the client.
9 years ago
Julien Duponchelle 3bb1509f41 Fix the tests after the removal of the KVM flag from VM
9 years ago
Julien Duponchelle 2b36746d52 Return the working directory of a Qemu VM
9 years ago
Julien Duponchelle a8e69d9a0b Do not use the md5 from cache for a missing image
9 years ago
Julien Duponchelle 4aadfa3b67 Test all IOU requirements at VM startup
9 years ago
Julien Duponchelle a577fe9fdb Make VMX reading case insensitive
9 years ago
Julien Duponchelle f041697311 Compute a md5sum of images for futur purpose
9 years ago
Julien Duponchelle 04aac2f3dc Convert old -enable-kvm to kvm settings for Qemu
9 years ago
Julien Duponchelle 04e62e429c Merge branch 'master' into unstable
9 years ago
Julien Duponchelle 07eab6e766 Fix tests
9 years ago
Julien Duponchelle 2da0b36ee7 Support a platform parameter for Qemu
9 years ago
Julien Duponchelle fb79543342 Build documentation
9 years ago
Julien Duponchelle b0fb2fcc6d Fix test
9 years ago
Julien Duponchelle b36c5f25d2 Improve memory consumption of file upload with the HTML form
9 years ago
Julien Duponchelle 7c7f8fe3ed Fix ethernet interfaces tests if eth0 doesn't exists
9 years ago
Julien Duponchelle 525940ee15 Add a stupid is_interface_up test in order to see why it's crash on
9 years ago
Julien Duponchelle 352fa3480b Fix qemu tests on travis
9 years ago
Julien Duponchelle 669ec42985 Add a test for KVM support
9 years ago
grossmj ca331ae2a5 Import/Export support for IOU nvrams.
9 years ago
Julien Duponchelle a1204dca0a Merge branch 'master' into unstable
9 years ago
Julien Duponchelle b344def887 Fix crash when virtualbox list of VMS return an empty line
9 years ago
Julien Duponchelle a79249aa9e Fix tests after merge
9 years ago
Julien Duponchelle 9442042d7a Merge branch 'master' into unstable
9 years ago
Vasil Rangelov 9ef4628cbc Added a method for getting qemu-img binaries, and moved the qemu folder into a separate method.
9 years ago
Julien Duponchelle 8abf22ef24 Skip network interfaces on Travis
9 years ago
Julien Duponchelle 7cad25eb1a Raise a VirtualBox error if adapter doesn't exists
9 years ago
Julien Duponchelle ecf4e91e55 Ignore VirtualBox VM Name with a carriage return in name
9 years ago
Julien Duponchelle ea67f4aeb9 Test ok on Windows
9 years ago
Julien Duponchelle c98bcedd39 Cleanup the temporary project after modules have been notified of the
9 years ago
Julien Duponchelle 4216724d0b Give a reason for travis skip test
9 years ago
Julien Duponchelle 117630c887 Test ok on Windows
9 years ago
Julien Duponchelle c03c66ec48 Fix tests crash on travis
9 years ago
Julien Duponchelle e62dd1a572 Fix tests on Windows
9 years ago
Julien Duponchelle 1f931d56c7 Fix test suite on Windows
9 years ago
Julien Duponchelle 24e84a3dd8 Test interfaces (it seem it's crash on Travis)
9 years ago
Julien Duponchelle 6f9f004ebb API for list & download files of a project
9 years ago
Julien Duponchelle 33bca1a85c Fix tests on Windows
9 years ago
Julien Duponchelle 4d50d00b3e Fix test suite on Windows
9 years ago
Julien Duponchelle f8d95291fa Test interfaces (it seem it's crash on Travis)
9 years ago