Commit graph

  • dce4f133c1 Update jruby version for travis to 9.1.13.0 kirby@puppetlabs.com 2018-01-03 16:49:53 -08:00
  • b5fd0f7993 Add tests for new vsphere functionality kirby@puppetlabs.com 2018-01-03 14:42:18 -08:00
  • 1a01855e92 reduce loop delay when waiting for host selection kirby@puppetlabs.com 2017-12-01 00:29:52 -08:00
  • dd12125c6b Simplify run_select_hosts kirby@puppetlabs.com 2017-11-28 13:14:04 -08:00
  • f75d4f6287 Ensure vm is removed from migrations kirby@puppetlabs.com 2017-11-12 11:41:29 -08:00
  • 0472559645 Remove unnecessary rescue kirby@puppetlabs.com 2017-11-06 11:24:35 -08:00
  • 6bf2eb7c8f Document parameters added in vmpooler.yaml.example kirby@puppetlabs.com 2017-11-06 11:12:15 -08:00
  • 33bdf66dbd Write check_time_finished whether host retrieval was successful or not kirby@puppetlabs.com 2017-11-06 08:58:19 -08:00
  • 35817faa76 Specify that migration_limit is vsphere only kirby@puppetlabs.com 2017-11-03 15:54:06 -07:00
  • f47b804ff3 Remove attr_reader for provider_hosts kirby@puppetlabs.com 2017-11-03 15:49:45 -07:00
  • 5a19ef5ee7 Remove references to redis in migrate_vm kirby@puppetlabs.com 2017-11-03 15:47:31 -07:00
  • c602421f9e Move provider_hosts to vsphere provider kirby@puppetlabs.com 2017-11-03 15:43:39 -07:00
  • dc8067a427 Move migrate_vm logic to vsphere provider kirby@puppetlabs.com 2017-11-03 12:50:05 -07:00
  • 2e3e83a9e1 Update pool_manager and vsphere tests to support changes in host selection kirby@puppetlabs.com 2017-10-13 18:06:21 -07:00
  • 7c71311dce Return the least used set of hosts kirby@puppetlabs.com 2017-10-13 18:05:40 -07:00
  • cf2f9fa849 Only specify cluster for clone operations kirby@puppetlabs.com 2017-10-13 18:02:26 -07:00
  • 4d7e9c7910 Add capability to create folders kirby@puppetlabs.com 2017-10-13 18:00:16 -07:00
  • 04cb1da15a (QENG-5305) Check cluster utilization once at a time kirby@puppetlabs.com 2017-10-13 17:56:22 -07:00
  • 62643b237f (POOLER-96) Setting the Rubygems version (#246) Samuel 2017-11-28 12:43:45 -06:00
  • a7f07883f0
    specify bundler version 1.15.4 Samuel 2017-11-28 12:11:59 -06:00
  • 139ab81bfc
    print bundle version Samuel 2017-11-28 12:06:11 -06:00
  • cf3f736506
    update jruby to 1.7.13 Samuel 2017-11-28 11:58:12 -06:00
  • 2e71b85d08
    Update .travis.yml Samuel 2017-11-28 11:51:10 -06:00
  • e6c97c2960
    also update bundler to 1.15.4 Samuel 2017-11-28 11:44:47 -06:00
  • db42616580
    (POOLER-96) Setting the Rubygems version Samuel 2017-11-28 11:35:55 -06:00
  • 1ff78b4ae2
    Merge pull request #237 from puppetlabs/vagrant-update Rob Braden 2017-11-07 15:11:25 -08:00
  • e075330b76
    Updated Vagrant box and associated docs Gene Liverman 2017-09-20 12:16:08 -07:00
  • c958f5787e Merge pull request #245 from puppetlabs/POOLER-93 mattkirby 2017-10-25 10:06:40 -07:00
  • 96541729fb (POOLER-93) Extend API endpoint to provide just what is needed The status endpoint provides a lot of statistics. This commit extends it by supporting a query parameter called 'view' which may contain one or multiple comma separated names for the top-level statistics returned in the JSON response. status is always returned. Optional elements are capacity,queue,clone,boot,pools Everything is returned when 'view' is not specified, which is backwards compatible with the current behavior. Samuel Beaulieu 2017-10-19 17:25:15 -05:00
  • abdc86f164 Merge pull request #244 from puppetlabs/POOLER-92 mattkirby 2017-10-20 09:07:25 -07:00
  • f6813f75c2 move the dummy provider with aliases to the example directory Samuel Beaulieu 2017-10-19 16:28:11 -05:00
  • f10bcadf7e (POOLER-92) Add the alias information in the API status page for each pool Before this change if a pool had an alias configured, the information would not be made public in the API. This commit adds the alias key in the pool object for each pool if configured. The alias key can be abscent, a string or an one or multiple array of strings. The value of the alias is copied from the configuration and can represent another name for the pool, or another configured pool. Samuel Beaulieu 2017-10-18 12:26:39 -05:00
  • 0b5abd9bd3 Fix no implicit conversion to rational from nil (#239) Samuel 2017-10-17 17:51:02 -05:00
  • e8f4bc52a6 set test data properly Samuel Beaulieu 2017-09-28 12:01:38 -05:00
  • f63f68ceab Fix no implicit conversion to rational from nil Before this change if the boottime was nil, the check_ready loop would exit on Time.now - host['boottime'] with a TypeError in jruby. The boottime is nil when the power is Off so moving that check earlier should catch that bug. Samuel Beaulieu 2017-09-28 11:15:03 -05:00
  • be61501260 Merge pull request #236 from glennsarti/make-check-pool-more-responsive mattkirby 2017-09-26 13:32:52 -07:00
  • 0840e11e71 (maint) Pin nokogiri and redis due to old ruby versions Glenn Sarti 2017-09-19 16:35:21 -07:00
  • f209c2b830 (GH-226) Respond quickly to VMs being consumed Glenn Sarti 2017-09-01 16:21:44 -07:00
  • 0ea1e50267 Merge pull request #234 from mattkirby/config_issues mattkirby 2017-08-17 12:05:10 -07:00
  • 2f5e43284d (POOLER-89) Identify when config issue is present kirby@puppetlabs.com 2017-08-14 14:52:00 -07:00
  • 03e8933d2b Merge pull request #233 from puppetlabs/fix-template-delta-script mattkirby 2017-08-02 15:02:30 -07:00
  • 3efce8d4e7 (maint) Update template delta script for moved vsphere credentials Scott Garman 2017-08-02 14:48:11 -07:00
  • d789dfdfc8 Merge pull request #229 from glennsarti/fix-phantom-vms mattkirby 2017-08-01 10:38:25 -07:00
  • 0e05163825 Merge pull request #231 from glennsarti/dynamically-load-providers Rob Braden 2017-07-25 15:08:55 -07:00
  • d7adb5aee0 Merge pull request #232 from glennsarti/fix-rubocop Rob Braden 2017-07-25 15:06:42 -07:00
  • cecf8c5c79 (maint) Pin nokogiri on legacy ruby Glenn Sarti 2017-07-18 14:31:01 -07:00
  • b16a2e6e96 (GH-230) Dynamically load VM Providers Glenn Sarti 2017-07-18 13:48:03 -07:00
  • e55a8825af (maint) Remove phatom VMs and ensure inventory is successful Glenn Sarti 2017-07-10 17:21:27 -07:00
  • b500814c69 (maint) Update flaky test Glenn Sarti 2017-07-18 15:28:39 -07:00
  • 9c93d2534f (maint) Fix rubocop offenses Glenn Sarti 2017-07-18 15:26:27 -07:00
  • 9b0e55f959 Merge pull request #227 from glennsarti/add-check-skew Rob Braden 2017-07-12 23:19:51 -07:00
  • 5e0aefc629 (maint) Fix minor rubocop violations Glenn Sarti 2017-07-07 17:04:12 -07:00
  • 30946fab8e (GH-226) Use a dynamic pool_check loop period Glenn Sarti 2017-06-22 17:52:10 -07:00
  • 7902769611 Merge pull request #228 from mattkirby/least_used_host_fixup Glenn Sarti 2017-07-10 09:51:42 -07:00
  • c750657c6f Update find_least_used_compatible_host to specify pool kirby@puppetlabs.com 2017-06-27 15:51:28 -07:00
  • e5d2844fcc Merge pull request #223 from glennsarti/pooler-83-specify-datacenter Rob Braden 2017-06-27 15:16:27 -07:00
  • 5355d1cf03 Add find_folder method details Samuel 2017-06-20 15:08:39 +01:00
  • 7077eadc65 (POOLER-83) Add ability to specify a datacenter for vsphere Glenn Sarti 2017-06-14 17:39:14 -07:00
  • 58b580d3eb Merge pull request #225 from glennsarti/add-dev-doco Rob Braden 2017-06-20 15:12:22 -07:00
  • cfc1b61f0e Merge pull request #224 from glennsarti/gh-213-remove-underscore-connection Rob Braden 2017-06-20 15:11:02 -07:00
  • b54b248d75 Merge pull request #221 from puppetlabs/sam-suppert-multiple-providers Rob Braden 2017-06-20 15:08:32 -07:00
  • 11dd15c7a8 (maint) Update development documentation Glenn Sarti 2017-06-16 15:20:20 -07:00
  • c0913ed7c7 Merge pull request #222 from puppetlabs/docker-in-vagrant Samuel 2017-06-20 14:45:16 +01:00
  • 3a4df791ff (GH-213) Remove use of private _connection method Glenn Sarti 2017-06-15 13:45:14 -07:00
  • ee3f5e2215 Merge pull request #220 from puppetlabs/refactor-get_cluster_host_utilization Rob Braden 2017-06-13 15:17:29 -07:00
  • a7274f3869
    Updated README with Vagrant info Gene Liverman 2017-06-12 15:19:25 -07:00
  • fdf5f5beb0
    Added a Vagrant file that is caplable of running vmpooler in Docker or locally Gene Liverman 2017-06-12 13:29:33 -07:00
  • fb1847f538
    added sample usage of the dummy provider Gene Liverman 2017-06-12 13:28:24 -07:00
  • dea5c4e962
    Updated Dockerfile Set to use a newer JRuby Added an environment variable for the log file location Changed entrypoint to cmd to add flexibility Added missing trailing slash to copy command path Gene Liverman 2017-06-12 13:27:36 -07:00
  • d93ab332f7 Adding support for multiple vsphere providers Refactoring the vmpooler.yaml format to support multiple providers. The second level key under :providers: is a unique key name that represents a provider that can be refered in the pool's parameter called provider. The code is still backward compatible to support the :vsphere: and :dummy: keys but in reality if you have more than one vsphere configuration you would give them a different name. For example :vsphere-pdx: and :vsphere-bfs: and the actual provider class would be specified as a parameter called 'provider_class'. See tests and examples for more information. Samuel Beaulieu 2017-06-09 10:01:15 +01:00
  • 87056a731c Fix test to raise expected error Samuel Beaulieu 2017-06-07 17:20:11 +01:00
  • 26d6cb28d9 Refactor the get_cluster_host_utilization method The same method logic was being used in two places but only one was calling the method get_cluster_host_utilization, so this refactors it to use the method for both. The method could also return an empty array and the subsequent line would try to .sort[0][1] which would return undefined method [] for nil:NilClass in that case. The return value is now checked and an exception raised Samuel Beaulieu 2017-06-07 17:04:21 +01:00
  • 1fcb19bd7b Merge pull request #216 from glennsarti/ticket/master/POOLER-70-add-providers mattkirby 2017-05-17 14:08:14 -07:00
  • 85b0f035aa (POOLER-52) Add recovery to vSphere connections Glenn Sarti 2017-05-12 14:54:30 -07:00
  • df783f0ed0 (POOLER-52) Use a Connection Pooler for vSphere connections Glenn Sarti 2017-04-18 16:21:34 -07:00
  • 2f37c1e9b5 (POOLER-52) Modify dummy provider to use a connection pool Glenn Sarti 2017-04-05 10:55:49 -07:00
  • 888ffc4afc (POOLER-52) Add a generic connection pool Glenn Sarti 2017-04-05 10:54:58 -07:00
  • 0aa550f852 (POOLER-70) Remove vsphere_helper Glenn Sarti 2017-04-04 20:49:01 -07:00
  • ba686e3c0a (maint) Update VMPooler files with fixes for Rubocop violations Glenn Sarti 2017-04-04 17:08:56 -07:00
  • 2e255a5a43 (POOLER-70) Move vSphere configuration into providers section Glenn Sarti 2017-04-14 16:08:12 -07:00
  • 57eba4a8e4 (POOLER-70) Update execute! for VM Provider Glenn Sarti 2017-03-31 17:28:22 -07:00
  • 1a3ae86943 (POOLER-70) Add config for VM Provider Glenn Sarti 2017-04-04 14:23:36 -07:00
  • 710b3808a5 (POOLER-70) Add create_provider_object for VM Provider Glenn Sarti 2017-04-04 14:23:57 -07:00
  • 2ca1a39e8c (POOLER-70) Update _check_pool for VM Provider Glenn Sarti 2017-03-31 14:31:43 -07:00
  • 7c3ad716af (POOLER-70) Update check_pool for VM Provider Glenn Sarti 2017-03-31 14:30:00 -07:00
  • 3f6ead8134 (POOLER-70) Update migrate_vm_and_record_timing for VM Provider Glenn Sarti 2017-03-31 14:23:56 -07:00
  • cf15829f05 (POOLER-70) Remove get_vm_host_info from pool_manager Glenn Sarti 2017-03-31 14:22:58 -07:00
  • 2974eac371 (POOLER-70) Update migrate_vm for VM Provider Glenn Sarti 2017-03-31 14:21:06 -07:00
  • acf32a3f7b (POOLER-70) Update check_snapshot_queue for VM Provider Glenn Sarti 2017-03-31 14:19:24 -07:00
  • 41f9d7b3c4 (POOLER-70) Update check_disk_queue for VM Provider Glenn Sarti 2017-03-31 14:06:25 -07:00
  • e01b96c6d0 (POOLER-70) Add get_provider_for_pool for VM Provider Glenn Sarti 2017-04-03 15:33:10 -07:00
  • c09035cfcb (POOLER-70) Add get_pool_name_for_vm for VM Provider Glenn Sarti 2017-03-31 14:07:08 -07:00
  • c7b37dec75 (POOLER-70) Update revert_vm_snapshot for VM Provider Glenn Sarti 2017-03-31 14:02:39 -07:00
  • a56d61c8bf (POOLER-70) Update create_vm_snapshot for VM Provider Glenn Sarti 2017-03-31 14:01:54 -07:00
  • fd54c4ca18 (POOLER-70) Update create_vm_disk for VM Provider Glenn Sarti 2017-03-31 14:01:10 -07:00
  • 64bca33d45 (POOLER-70) Update destroy_vm for VM Provider Glenn Sarti 2017-03-31 13:59:59 -07:00
  • b21d78fa49 (POOLER-70) Update _clone_vm for VM Provider Glenn Sarti 2017-03-31 13:59:08 -07:00
  • cc1910fd76 (POOLER-70) Update check_running_vm for VM Provider Glenn Sarti 2017-03-31 13:51:36 -07:00
  • 8c421aa3bd (POOLER-70) Update check_ready_vm for VM Provider Glenn Sarti 2017-03-31 13:50:30 -07:00
  • 760dc1c67e (POOLER-70) Update move_pending_vm_to_ready for VM Provider Glenn Sarti 2017-03-31 13:43:24 -07:00