Commit Graph

680 Commits

Author SHA1 Message Date
David Gageot c688617f75 Merge pull request #2763 from dgageot/retry-vbox
Retry VirtualBox commands
2016-01-07 11:43:59 +01:00
David Gageot 6dc0801674 Add unit tests for vbm
Signed-off-by: David Gageot <david@gageot.net>
2016-01-07 09:52:26 +01:00
David Gageot fcb31f99f2 FIX #2762 retry Virtualbox commands
Signed-off-by: David Gageot <david@gageot.net>
2016-01-07 09:21:25 +01:00
Daehyeok Mun c33fd0d548 GCE delete instance during rm
Delete instance during rm command regardless instance status

Signed-off-by: Daehyeok Mun <daehyeok@gmail.com>
2016-01-06 18:04:50 -07:00
David Gageot 2aebbb8d88 Merge pull request #2708 from dgageot/external
Add CI tests for an external driver
2016-01-06 21:54:12 +01:00
Nathan LeClaire 04160e392b Merge pull request #2760 from dgageot/disable-old-vbox
Disable support for VBox <= 4.2
2016-01-06 09:52:22 -08:00
David Gageot 7cf9ae71be Support creating a machine on an existing google VM
Signed-off-by: David Gageot <david@gageot.net>
2016-01-06 16:55:56 +01:00
David Gageot 5e75bf3346 Fix broken VTx detection
Signed-off-by: David Gageot <david@gageot.net>
2016-01-06 12:42:46 +01:00
David Gageot dcc77f8891 FIX #2756 Disable support for VBox <= 4.2
Signed-off-by: David Gageot <david@gageot.net>
2016-01-06 12:41:39 +01:00
David Gageot 8664af9f9b Tell the user that Hyperv could cause VBox to fail
Signed-off-by: David Gageot <david@gageot.net>
2016-01-05 18:40:33 +01:00
Jean-Laurent de Morlhon 42b1f4e811 Merge pull request #2721 from rediceli/master
Fix #2717, Driver vmwarefusion fail because of soft link
2016-01-04 17:34:01 +01:00
rediceli ccb8c31827 Fix #2717, Driver vmwarefusion fail because of soft link
Signed-off-by: rediceli <redice.li@qq.com>
2016-01-05 00:00:06 +08:00
Jean-Laurent de Morlhon 03171b8d21 Merge pull request #2727 from soleo/1986-aws-optional-tags
#1986 aws optional tags for AWS EC2
2016-01-04 16:34:00 +01:00
David Gageot e143c68cf9 Merge pull request #2732 from dgageot/better-logs
Improve Start/Stop/Kill/Restart lifecycle/logs
2016-01-04 16:24:55 +01:00
Xinjiang Shao c59c8a60c5 Add --amazonec2-tags for extra tags assignment support. Ref #1986
Signed-off-by: Xinjiang Shao <shaoxinjiang@gmail.com>
2016-01-04 09:19:36 -06:00
David Gageot 9354fed274 Remove some duplication related to swarm
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:40:04 +01:00
David Gageot 2b96c0656d Dead code
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:39:52 +01:00
David Gageot 855de0741a Logs for Kill
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:38:25 +01:00
David Gageot e9aa75f021 Logs for Restart
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:38:25 +01:00
David Gageot 783d2b124e Logs for Start
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:38:25 +01:00
David Gageot bbe76b5a26 Logs for Stop
Signed-off-by: David Gageot <david@gageot.net>
2016-01-04 10:38:25 +01:00
Fabrizio Soppelsa c63d303a2e Add --openstack-key-pair and --openstack-private-file-name so to
import and reuse existing nova keypairs.

Signed-off-by: Fabrizio Soppelsa <fsoppelsa@mirantis.com>
2015-12-29 11:43:00 -08:00
David Gageot 01cc4af89e Merge pull request #2695 from dgageot/hyperv-vbox-incompatibility
Detect VBox/HyperV incompatibility
2015-12-28 12:17:41 +01:00
David Gageot 6fe81d3dd4 Point to working version of vbox
Signed-off-by: David Gageot <david@gageot.net>
2015-12-28 11:23:15 +01:00
David Gageot c36a2711af Detect VBox/HyperV incompatibility
Signed-off-by: David Gageot <david@gageot.net>
2015-12-28 11:18:56 +01:00
ryo nakamaru 28ac085cdd Fixes aws-ec2 initiated shutdown caused by constant DeviceName (/dev/sda1)
Signed-off-by: ryo nakamaru <pottava@gmail.com>
2015-12-28 17:43:41 +09:00
Jean-Laurent de Morlhon 45cf74508a Better naming & cleanup
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
2015-12-24 16:11:46 +01:00
Euan b41ead67ec Remove unneeded 'amz' package
Deprecated by the conversion to the upstream SDK

Signed-off-by: Euan <euank@euank.com>
2015-12-24 15:58:49 +01:00
Euan 8d98d2b7b7 amazonec2: Convert EC2 API calls to official SDK
This does an almost 1-to-1 translation of API calls.

The differences are as follows:
1. Use the SDK waiter for spot instance request fulfillment
2. Uses the toplevel private/public ip fields instead of the
   networkinterface's fields
3. Recognizes the 'Terminated' state as an error explicitly instead of
   implicitly.
4. Uses filters on DescribeSecurityGroups to find the correct one more
   efficiently and to limit to a given VPC.

Other than that, it really should be identical apart from the perhaps
obvious error message differences.

Signed-off-by: Euan <euank@euank.com>
2015-12-24 15:57:02 +01:00
Jean-Laurent de Morlhon 1c0a05529f Merge pull request #1522 from frapposelli/vspheredriver-with-govmomi
Full rewrite of the vSphere driver
2015-12-24 11:09:57 +01:00
David Gageot 9d19ecfd27 Add ENV variables for each flag
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 18:12:26 +01:00
David Gageot 22cf29b2ee FIX #639 and #510 find powershell.exe
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:41 +01:00
David Gageot fa8fa69e7c Wait for machine to start/stop
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot 8b31854a80 Extract the code to create a b2d disk image
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot 0c783976e0 Only get the IP of a running machine
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot af87c000d2 Simplify commands
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot a4995adbc7 Add comments
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot 7e7c83427a VSwitch name should be saved to config.json
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot 40ab483a35 FIX #2457 Add a flag to set the CPU count
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 16:36:40 +01:00
David Gageot 6a5cc751bb FIX #2232 Check that the user is an Administrator
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 12:04:44 +01:00
David Gageot d5e11fb961 FIX #512 Check the virtual switch in PreCreateCheck()
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 12:04:39 +01:00
David Gageot aa3a4e4498 Simplify code
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 11:38:51 +01:00
David Gageot 2311fd69c9 Format code
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 11:36:40 +01:00
David Gageot 19fc64d583 Remove redundant code
Signed-off-by: David Gageot <david@gageot.net>
2015-12-23 11:31:38 +01:00
Fabio Rapposelli 2e90b7cb55 Update vSphere driver to work with govmomi instead of wrapping govc.
Signed-off-by: Fabio Rapposelli <fabio@vmware.com>
2015-12-22 19:00:45 +01:00
David Gageot ee8c9abed2 Merge pull request #2654 from dgageot/2140_driver_restart
Change host restart to use the driver implementation
2015-12-22 14:32:49 +01:00
Jean-Laurent de Morlhon e22f1db4bf Merge pull request #2657 from dgageot/improve-generic-driver
Improve generic driver
2015-12-22 14:13:22 +01:00
Jean-Laurent de Morlhon 643df3c0a7 Merge pull request #2589 from boyvinall/mv/filter-openstack-floating
Filter openstack floating IPs by tenant ID
2015-12-22 14:12:21 +01:00
David Gageot cdfa729f36 Simplify code
Signed-off-by: David Gageot <david@gageot.net>
2015-12-22 12:04:46 +01:00
David Gageot 181a1d47b4 The generic driver shouldn't support kill since stop is not supported
Signed-off-by: David Gageot <david@gageot.net>
2015-12-22 11:46:59 +01:00