fog 1.41.0 → 1.42.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/Rakefile +0 -3
- data/fog.gemspec +5 -6
- data/lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb +1 -1
- data/lib/fog/version.rb +1 -1
- data/lib/tasks/changelog_task.rb +2 -1
- data/lib/tasks/github_release_task.rb +1 -1
- data/tests/helpers/mock_helper.rb +0 -3
- metadata +19 -135
- data/lib/fog/bin/ovirt.rb +0 -28
- data/lib/fog/ovirt/compute.rb +0 -155
- data/lib/fog/ovirt/core.rb +0 -16
- data/lib/fog/ovirt/models/compute/affinity_group.rb +0 -25
- data/lib/fog/ovirt/models/compute/affinity_groups.rb +0 -20
- data/lib/fog/ovirt/models/compute/cluster.rb +0 -20
- data/lib/fog/ovirt/models/compute/clusters.rb +0 -20
- data/lib/fog/ovirt/models/compute/instance_type.rb +0 -39
- data/lib/fog/ovirt/models/compute/instance_types.rb +0 -20
- data/lib/fog/ovirt/models/compute/interface.rb +0 -19
- data/lib/fog/ovirt/models/compute/interfaces.rb +0 -29
- data/lib/fog/ovirt/models/compute/quota.rb +0 -16
- data/lib/fog/ovirt/models/compute/quotas.rb +0 -20
- data/lib/fog/ovirt/models/compute/server.rb +0 -175
- data/lib/fog/ovirt/models/compute/servers.rb +0 -27
- data/lib/fog/ovirt/models/compute/template.rb +0 -58
- data/lib/fog/ovirt/models/compute/templates.rb +0 -20
- data/lib/fog/ovirt/models/compute/volume.rb +0 -36
- data/lib/fog/ovirt/models/compute/volumes.rb +0 -28
- data/lib/fog/ovirt/requests/compute/add_interface.rb +0 -20
- data/lib/fog/ovirt/requests/compute/add_to_affinity_group.rb +0 -21
- data/lib/fog/ovirt/requests/compute/add_volume.rb +0 -21
- data/lib/fog/ovirt/requests/compute/attach_volume.rb +0 -22
- data/lib/fog/ovirt/requests/compute/create_affinity_group.rb +0 -18
- data/lib/fog/ovirt/requests/compute/create_vm.rb +0 -18
- data/lib/fog/ovirt/requests/compute/datacenters.rb +0 -20
- data/lib/fog/ovirt/requests/compute/destroy_affinity_group.rb +0 -19
- data/lib/fog/ovirt/requests/compute/destroy_interface.rb +0 -22
- data/lib/fog/ovirt/requests/compute/destroy_vm.rb +0 -19
- data/lib/fog/ovirt/requests/compute/destroy_volume.rb +0 -22
- data/lib/fog/ovirt/requests/compute/detach_volume.rb +0 -22
- data/lib/fog/ovirt/requests/compute/get_affinity_group.rb +0 -18
- data/lib/fog/ovirt/requests/compute/get_api_version.rb +0 -16
- data/lib/fog/ovirt/requests/compute/get_cluster.rb +0 -17
- data/lib/fog/ovirt/requests/compute/get_instance_type.rb +0 -17
- data/lib/fog/ovirt/requests/compute/get_quota.rb +0 -17
- data/lib/fog/ovirt/requests/compute/get_template.rb +0 -17
- data/lib/fog/ovirt/requests/compute/get_virtual_machine.rb +0 -17
- data/lib/fog/ovirt/requests/compute/list_affinity_group_vms.rb +0 -22
- data/lib/fog/ovirt/requests/compute/list_affinity_groups.rb +0 -20
- data/lib/fog/ovirt/requests/compute/list_clusters.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_instance_types.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_networks.rb +0 -16
- data/lib/fog/ovirt/requests/compute/list_quotas.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_template_interfaces.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_template_volumes.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_templates.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_virtual_machines.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_vm_interfaces.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_vm_volumes.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_volumes.rb +0 -19
- data/lib/fog/ovirt/requests/compute/mock_files/affinitygroup.xml +0 -8
- data/lib/fog/ovirt/requests/compute/mock_files/affinitygroup_vms.xml +0 -9
- data/lib/fog/ovirt/requests/compute/mock_files/affinitygroups.xml +0 -17
- data/lib/fog/ovirt/requests/compute/mock_files/cluster.xml +0 -20
- data/lib/fog/ovirt/requests/compute/mock_files/clusters.xml +0 -39
- data/lib/fog/ovirt/requests/compute/mock_files/data_centers.xml +0 -17
- data/lib/fog/ovirt/requests/compute/mock_files/disks.xml +0 -58
- data/lib/fog/ovirt/requests/compute/mock_files/instance_type.xml +0 -42
- data/lib/fog/ovirt/requests/compute/mock_files/instance_types.xml +0 -197
- data/lib/fog/ovirt/requests/compute/mock_files/nics.xml +0 -10
- data/lib/fog/ovirt/requests/compute/mock_files/quotas.xml +0 -7
- data/lib/fog/ovirt/requests/compute/mock_files/storage_domains.xml +0 -36
- data/lib/fog/ovirt/requests/compute/mock_files/template.xml +0 -39
- data/lib/fog/ovirt/requests/compute/mock_files/templates.xml +0 -110
- data/lib/fog/ovirt/requests/compute/mock_files/vm.xml +0 -52
- data/lib/fog/ovirt/requests/compute/mock_files/vms.xml +0 -152
- data/lib/fog/ovirt/requests/compute/mock_files/volumes.xml +0 -40
- data/lib/fog/ovirt/requests/compute/remove_from_affinity_group.rb +0 -21
- data/lib/fog/ovirt/requests/compute/storage_domains.rb +0 -20
- data/lib/fog/ovirt/requests/compute/update_interface.rb +0 -35
- data/lib/fog/ovirt/requests/compute/update_vm.rb +0 -18
- data/lib/fog/ovirt/requests/compute/update_volume.rb +0 -39
- data/lib/fog/ovirt/requests/compute/vm_action.rb +0 -22
- data/lib/fog/ovirt/requests/compute/vm_start_with_cloudinit.rb +0 -19
- data/lib/fog/ovirt/requests/compute/vm_ticket.rb +0 -17
- data/spec/fog/bin/ovirt_spec.rb +0 -10
- data/tests/ovirt/compute_tests.rb +0 -25
- data/tests/ovirt/models/compute/cluster_tests.rb +0 -31
- data/tests/ovirt/models/compute/clusters_tests.rb +0 -9
- data/tests/ovirt/models/compute/interface_tests.rb +0 -27
- data/tests/ovirt/models/compute/interfaces_tests.rb +0 -9
- data/tests/ovirt/models/compute/server_tests.rb +0 -51
- data/tests/ovirt/models/compute/servers_tests.rb +0 -14
- data/tests/ovirt/models/compute/template_tests.rb +0 -28
- data/tests/ovirt/models/compute/templates_tests.rb +0 -9
- data/tests/ovirt/requests/compute/create_vm_tests.rb +0 -26
- data/tests/ovirt/requests/compute/destroy_vm_tests.rb +0 -18
- data/tests/ovirt/requests/compute/list_datacenters_tests.rb +0 -13
- data/tests/ovirt/requests/compute/list_quotas_tests.rb +0 -12
- data/tests/ovirt/requests/compute/list_storage_domains_tests.rb +0 -13
- data/tests/ovirt/requests/compute/update_vm_tests.rb +0 -18
- data/tests/ovirt/requests/compute/update_volume_tests.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3df7287f3ad261f271ddac68c159c71fc6584565
|
4
|
+
data.tar.gz: aaf6dd8347213c5813d8c15222c72471654c35cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22c044fa32910668a9e30e6a1ae0f397bc1af2f2969a9ecb70e825ab674bcd952fd63574982751e985b253c052372d240dc1173981a968a17bea69d6843a94f9
|
7
|
+
data.tar.gz: a46c5e2eb704fd4fc440db7a53045c43f0b883bc3e4f814229a1d58c3d7885bfde0b1c5918c32f447aac8e35590f4a9c26ce34dceddd43fbcf02fdce86ac8b2e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
## 1.42.0 09/29/2017
|
2
|
+
*Hash* 41a38068d34237b9639ac045f99a4b48160834a9
|
3
|
+
|
4
|
+
Statistic | Value
|
5
|
+
------------- | --------:
|
6
|
+
Collaborators | 2
|
7
|
+
Forks | 1556
|
8
|
+
Open Issues | 45
|
9
|
+
Watchers | 4060
|
10
|
+
|
11
|
+
**MVP!** swamp09
|
12
|
+
|
13
|
+
#### [misc]
|
14
|
+
* Upgrade JSON to ~> 2.0. thanks Denis Defreyne
|
15
|
+
* Removing ovirt provider. thanks Ori Rabin
|
16
|
+
* fix changelog task. thanks geemus
|
17
|
+
* Suppress `warning: ambiguous first argument; put parentheses or a space even after `/' operator`. thanks swamp09
|
18
|
+
* Suppress `warning: mismatched indentations at 'end' with 'class'`. thanks swamp09
|
19
|
+
|
20
|
+
|
1
21
|
## 1.41.0 08/01/2017
|
2
22
|
*Hash* e5d3672e804149d38f91ccdfdaf7cfd7be52b75b
|
3
23
|
|
data/Rakefile
CHANGED
@@ -73,9 +73,6 @@ namespace :test do
|
|
73
73
|
task :openvz do
|
74
74
|
sh("export FOG_MOCK=#{mock} && bundle exec shindont tests/openvz")
|
75
75
|
end
|
76
|
-
task :ovirt do
|
77
|
-
sh("export FOG_MOCK=#{mock} && bundle exec shindont tests/ovirt")
|
78
|
-
end
|
79
76
|
task :cloudstack do
|
80
77
|
sh("export FOG_MOCK=#{mock} && bundle exec shindont tests/cloudstack")
|
81
78
|
end
|
data/fog.gemspec
CHANGED
@@ -11,8 +11,8 @@ Gem::Specification.new do |s|
|
|
11
11
|
## If your rubyforge_project name is different, then edit it and comment out
|
12
12
|
## the sub! line in the Rakefile
|
13
13
|
s.name = "fog"
|
14
|
-
s.version = "1.
|
15
|
-
s.date = "2017-
|
14
|
+
s.version = "1.42.0"
|
15
|
+
s.date = "2017-09-29"
|
16
16
|
s.rubyforge_project = "fog"
|
17
17
|
|
18
18
|
## Make sure your summary is short. The description may be as long
|
@@ -47,9 +47,8 @@ Gem::Specification.new do |s|
|
|
47
47
|
s.add_dependency("fog-core", "~> 1.45")
|
48
48
|
s.add_dependency("fog-json")
|
49
49
|
s.add_dependency("fog-xml", "~> 0.1.1")
|
50
|
-
|
51
|
-
|
52
|
-
s.add_dependency("json", ">= 1.8", "< 2.0")
|
50
|
+
|
51
|
+
s.add_dependency("json", "~> 2.0")
|
53
52
|
s.add_dependency("ipaddress", "~> 0.5")
|
54
53
|
|
55
54
|
# Modular providers (please keep sorted)
|
@@ -67,6 +66,7 @@ Gem::Specification.new do |s|
|
|
67
66
|
s.add_dependency("fog-joyent")
|
68
67
|
s.add_dependency("fog-local")
|
69
68
|
s.add_dependency("fog-openstack")
|
69
|
+
s.add_dependency("fog-ovirt")
|
70
70
|
s.add_dependency("fog-powerdns", ">= 0.1.1")
|
71
71
|
s.add_dependency("fog-profitbricks")
|
72
72
|
s.add_dependency("fog-rackspace")
|
@@ -90,7 +90,6 @@ Gem::Specification.new do |s|
|
|
90
90
|
s.add_development_dependency("opennebula")
|
91
91
|
s.add_development_dependency("pry")
|
92
92
|
s.add_development_dependency("rake")
|
93
|
-
s.add_development_dependency("rbovirt", "0.1.3")
|
94
93
|
s.add_development_dependency("rbvmomi")
|
95
94
|
s.add_development_dependency("rubocop", "0.41.2")
|
96
95
|
s.add_development_dependency("shindo", "~> 0.3.4")
|
data/lib/fog/version.rb
CHANGED
data/lib/tasks/changelog_task.rb
CHANGED
@@ -148,6 +148,7 @@ Watchers | #{watchers}
|
|
148
148
|
'Rodrigo Estebanez',
|
149
149
|
'Rupak Ganguly',
|
150
150
|
'Stepan G. Fedorov',
|
151
|
+
'swamp09',
|
151
152
|
'TerryHowe',
|
152
153
|
'Wesley Beary'
|
153
154
|
].include?(committer)
|
@@ -177,7 +178,7 @@ Watchers | #{watchers}
|
|
177
178
|
end
|
178
179
|
|
179
180
|
def committer_match
|
180
|
-
current_line.match /([-\w\s]+)\s+\(\d+\)/
|
181
|
+
@current_line.match (/([-\w\s]+)\s+\(\d+\)/)
|
181
182
|
end
|
182
183
|
|
183
184
|
def last_release_sha
|
@@ -58,9 +58,6 @@ if Fog.mock?
|
|
58
58
|
:openstack_username => 'openstack_username',
|
59
59
|
:openstack_tenant => 'openstack_tenant',
|
60
60
|
:openstack_auth_url => 'http://openstack:35357/v2.0/tokens',
|
61
|
-
:ovirt_url => 'http://ovirt:8080/api',
|
62
|
-
:ovirt_username => 'admin@internal',
|
63
|
-
:ovirt_password => '123123',
|
64
61
|
:profitbricks_username => 'profitbricks_username',
|
65
62
|
:profitbricks_password => 'profitbricks_password',
|
66
63
|
:rackspace_api_key => 'rackspace_api_key',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.42.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- geemus (Wesley Beary)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
@@ -56,20 +56,14 @@ dependencies:
|
|
56
56
|
name: json
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '1.8'
|
62
|
-
- - "<"
|
59
|
+
- - "~>"
|
63
60
|
- !ruby/object:Gem::Version
|
64
61
|
version: '2.0'
|
65
62
|
type: :runtime
|
66
63
|
prerelease: false
|
67
64
|
version_requirements: !ruby/object:Gem::Requirement
|
68
65
|
requirements:
|
69
|
-
- - "
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '1.8'
|
72
|
-
- - "<"
|
66
|
+
- - "~>"
|
73
67
|
- !ruby/object:Gem::Version
|
74
68
|
version: '2.0'
|
75
69
|
- !ruby/object:Gem::Dependency
|
@@ -282,6 +276,20 @@ dependencies:
|
|
282
276
|
- - ">="
|
283
277
|
- !ruby/object:Gem::Version
|
284
278
|
version: '0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: fog-ovirt
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
type: :runtime
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
285
293
|
- !ruby/object:Gem::Dependency
|
286
294
|
name: fog-powerdns
|
287
295
|
requirement: !ruby/object:Gem::Requirement
|
@@ -590,20 +598,6 @@ dependencies:
|
|
590
598
|
- - ">="
|
591
599
|
- !ruby/object:Gem::Version
|
592
600
|
version: '0'
|
593
|
-
- !ruby/object:Gem::Dependency
|
594
|
-
name: rbovirt
|
595
|
-
requirement: !ruby/object:Gem::Requirement
|
596
|
-
requirements:
|
597
|
-
- - '='
|
598
|
-
- !ruby/object:Gem::Version
|
599
|
-
version: 0.1.3
|
600
|
-
type: :development
|
601
|
-
prerelease: false
|
602
|
-
version_requirements: !ruby/object:Gem::Requirement
|
603
|
-
requirements:
|
604
|
-
- - '='
|
605
|
-
- !ruby/object:Gem::Version
|
606
|
-
version: 0.1.3
|
607
601
|
- !ruby/object:Gem::Dependency
|
608
602
|
name: rbvmomi
|
609
603
|
requirement: !ruby/object:Gem::Requirement
|
@@ -814,7 +808,6 @@ files:
|
|
814
808
|
- lib/fog/bin/opennebula.rb
|
815
809
|
- lib/fog/bin/openstack.rb
|
816
810
|
- lib/fog/bin/openvz.rb
|
817
|
-
- lib/fog/bin/ovirt.rb
|
818
811
|
- lib/fog/bin/rackspace.rb
|
819
812
|
- lib/fog/bin/rage4.rb
|
820
813
|
- lib/fog/bin/softlayer.rb
|
@@ -1818,83 +1811,8 @@ files:
|
|
1818
1811
|
- lib/fog/openvz/requests/compute/suspend_server.rb
|
1819
1812
|
- lib/fog/openvz/requests/compute/umount_server.rb
|
1820
1813
|
- lib/fog/ovirt.rb
|
1821
|
-
- lib/fog/ovirt/compute.rb
|
1822
|
-
- lib/fog/ovirt/core.rb
|
1823
|
-
- lib/fog/ovirt/models/compute/affinity_group.rb
|
1824
|
-
- lib/fog/ovirt/models/compute/affinity_groups.rb
|
1825
|
-
- lib/fog/ovirt/models/compute/cluster.rb
|
1826
|
-
- lib/fog/ovirt/models/compute/clusters.rb
|
1827
|
-
- lib/fog/ovirt/models/compute/instance_type.rb
|
1828
|
-
- lib/fog/ovirt/models/compute/instance_types.rb
|
1829
|
-
- lib/fog/ovirt/models/compute/interface.rb
|
1830
|
-
- lib/fog/ovirt/models/compute/interfaces.rb
|
1831
|
-
- lib/fog/ovirt/models/compute/quota.rb
|
1832
|
-
- lib/fog/ovirt/models/compute/quotas.rb
|
1833
|
-
- lib/fog/ovirt/models/compute/server.rb
|
1834
|
-
- lib/fog/ovirt/models/compute/servers.rb
|
1835
|
-
- lib/fog/ovirt/models/compute/template.rb
|
1836
|
-
- lib/fog/ovirt/models/compute/templates.rb
|
1837
|
-
- lib/fog/ovirt/models/compute/volume.rb
|
1838
|
-
- lib/fog/ovirt/models/compute/volumes.rb
|
1839
1814
|
- lib/fog/ovirt/requests/compute/activate_volume.rb
|
1840
|
-
- lib/fog/ovirt/requests/compute/add_interface.rb
|
1841
|
-
- lib/fog/ovirt/requests/compute/add_to_affinity_group.rb
|
1842
|
-
- lib/fog/ovirt/requests/compute/add_volume.rb
|
1843
|
-
- lib/fog/ovirt/requests/compute/attach_volume.rb
|
1844
|
-
- lib/fog/ovirt/requests/compute/create_affinity_group.rb
|
1845
|
-
- lib/fog/ovirt/requests/compute/create_vm.rb
|
1846
|
-
- lib/fog/ovirt/requests/compute/datacenters.rb
|
1847
1815
|
- lib/fog/ovirt/requests/compute/deactivate_volume.rb
|
1848
|
-
- lib/fog/ovirt/requests/compute/destroy_affinity_group.rb
|
1849
|
-
- lib/fog/ovirt/requests/compute/destroy_interface.rb
|
1850
|
-
- lib/fog/ovirt/requests/compute/destroy_vm.rb
|
1851
|
-
- lib/fog/ovirt/requests/compute/destroy_volume.rb
|
1852
|
-
- lib/fog/ovirt/requests/compute/detach_volume.rb
|
1853
|
-
- lib/fog/ovirt/requests/compute/get_affinity_group.rb
|
1854
|
-
- lib/fog/ovirt/requests/compute/get_api_version.rb
|
1855
|
-
- lib/fog/ovirt/requests/compute/get_cluster.rb
|
1856
|
-
- lib/fog/ovirt/requests/compute/get_instance_type.rb
|
1857
|
-
- lib/fog/ovirt/requests/compute/get_quota.rb
|
1858
|
-
- lib/fog/ovirt/requests/compute/get_template.rb
|
1859
|
-
- lib/fog/ovirt/requests/compute/get_virtual_machine.rb
|
1860
|
-
- lib/fog/ovirt/requests/compute/list_affinity_group_vms.rb
|
1861
|
-
- lib/fog/ovirt/requests/compute/list_affinity_groups.rb
|
1862
|
-
- lib/fog/ovirt/requests/compute/list_clusters.rb
|
1863
|
-
- lib/fog/ovirt/requests/compute/list_instance_types.rb
|
1864
|
-
- lib/fog/ovirt/requests/compute/list_networks.rb
|
1865
|
-
- lib/fog/ovirt/requests/compute/list_quotas.rb
|
1866
|
-
- lib/fog/ovirt/requests/compute/list_template_interfaces.rb
|
1867
|
-
- lib/fog/ovirt/requests/compute/list_template_volumes.rb
|
1868
|
-
- lib/fog/ovirt/requests/compute/list_templates.rb
|
1869
|
-
- lib/fog/ovirt/requests/compute/list_virtual_machines.rb
|
1870
|
-
- lib/fog/ovirt/requests/compute/list_vm_interfaces.rb
|
1871
|
-
- lib/fog/ovirt/requests/compute/list_vm_volumes.rb
|
1872
|
-
- lib/fog/ovirt/requests/compute/list_volumes.rb
|
1873
|
-
- lib/fog/ovirt/requests/compute/mock_files/affinitygroup.xml
|
1874
|
-
- lib/fog/ovirt/requests/compute/mock_files/affinitygroup_vms.xml
|
1875
|
-
- lib/fog/ovirt/requests/compute/mock_files/affinitygroups.xml
|
1876
|
-
- lib/fog/ovirt/requests/compute/mock_files/cluster.xml
|
1877
|
-
- lib/fog/ovirt/requests/compute/mock_files/clusters.xml
|
1878
|
-
- lib/fog/ovirt/requests/compute/mock_files/data_centers.xml
|
1879
|
-
- lib/fog/ovirt/requests/compute/mock_files/disks.xml
|
1880
|
-
- lib/fog/ovirt/requests/compute/mock_files/instance_type.xml
|
1881
|
-
- lib/fog/ovirt/requests/compute/mock_files/instance_types.xml
|
1882
|
-
- lib/fog/ovirt/requests/compute/mock_files/nics.xml
|
1883
|
-
- lib/fog/ovirt/requests/compute/mock_files/quotas.xml
|
1884
|
-
- lib/fog/ovirt/requests/compute/mock_files/storage_domains.xml
|
1885
|
-
- lib/fog/ovirt/requests/compute/mock_files/template.xml
|
1886
|
-
- lib/fog/ovirt/requests/compute/mock_files/templates.xml
|
1887
|
-
- lib/fog/ovirt/requests/compute/mock_files/vm.xml
|
1888
|
-
- lib/fog/ovirt/requests/compute/mock_files/vms.xml
|
1889
|
-
- lib/fog/ovirt/requests/compute/mock_files/volumes.xml
|
1890
|
-
- lib/fog/ovirt/requests/compute/remove_from_affinity_group.rb
|
1891
|
-
- lib/fog/ovirt/requests/compute/storage_domains.rb
|
1892
|
-
- lib/fog/ovirt/requests/compute/update_interface.rb
|
1893
|
-
- lib/fog/ovirt/requests/compute/update_vm.rb
|
1894
|
-
- lib/fog/ovirt/requests/compute/update_volume.rb
|
1895
|
-
- lib/fog/ovirt/requests/compute/vm_action.rb
|
1896
|
-
- lib/fog/ovirt/requests/compute/vm_start_with_cloudinit.rb
|
1897
|
-
- lib/fog/ovirt/requests/compute/vm_ticket.rb
|
1898
1816
|
- lib/fog/rage4.rb
|
1899
1817
|
- lib/fog/rage4/core.rb
|
1900
1818
|
- lib/fog/rage4/dns.rb
|
@@ -2294,7 +2212,6 @@ files:
|
|
2294
2212
|
- spec/fog/bin/opennebula_spec.rb
|
2295
2213
|
- spec/fog/bin/openstack_spec.rb
|
2296
2214
|
- spec/fog/bin/openvz_spec.rb
|
2297
|
-
- spec/fog/bin/ovirt_spec.rb
|
2298
2215
|
- spec/fog/bin/powerdns_spec.rb
|
2299
2216
|
- spec/fog/bin/profitbricks_spec.rb
|
2300
2217
|
- spec/fog/bin/rackspace_spec.rb
|
@@ -2474,22 +2391,6 @@ files:
|
|
2474
2391
|
- tests/openvz/helper.rb
|
2475
2392
|
- tests/openvz/models/compute/server_tests.rb
|
2476
2393
|
- tests/openvz/models/compute/servers_tests.rb
|
2477
|
-
- tests/ovirt/compute_tests.rb
|
2478
|
-
- tests/ovirt/models/compute/cluster_tests.rb
|
2479
|
-
- tests/ovirt/models/compute/clusters_tests.rb
|
2480
|
-
- tests/ovirt/models/compute/interface_tests.rb
|
2481
|
-
- tests/ovirt/models/compute/interfaces_tests.rb
|
2482
|
-
- tests/ovirt/models/compute/server_tests.rb
|
2483
|
-
- tests/ovirt/models/compute/servers_tests.rb
|
2484
|
-
- tests/ovirt/models/compute/template_tests.rb
|
2485
|
-
- tests/ovirt/models/compute/templates_tests.rb
|
2486
|
-
- tests/ovirt/requests/compute/create_vm_tests.rb
|
2487
|
-
- tests/ovirt/requests/compute/destroy_vm_tests.rb
|
2488
|
-
- tests/ovirt/requests/compute/list_datacenters_tests.rb
|
2489
|
-
- tests/ovirt/requests/compute/list_quotas_tests.rb
|
2490
|
-
- tests/ovirt/requests/compute/list_storage_domains_tests.rb
|
2491
|
-
- tests/ovirt/requests/compute/update_vm_tests.rb
|
2492
|
-
- tests/ovirt/requests/compute/update_volume_tests.rb
|
2493
2394
|
- tests/rage4/requests/dns/dns_tests.rb
|
2494
2395
|
- tests/storage/helper.rb
|
2495
2396
|
- tests/storage/models/directories_tests.rb
|
@@ -2598,7 +2499,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2598
2499
|
version: '0'
|
2599
2500
|
requirements: []
|
2600
2501
|
rubyforge_project: fog
|
2601
|
-
rubygems_version: 2.6.
|
2502
|
+
rubygems_version: 2.6.13
|
2602
2503
|
signing_key:
|
2603
2504
|
specification_version: 2
|
2604
2505
|
summary: brings clouds to you
|
@@ -2629,7 +2530,6 @@ test_files:
|
|
2629
2530
|
- spec/fog/bin/opennebula_spec.rb
|
2630
2531
|
- spec/fog/bin/openstack_spec.rb
|
2631
2532
|
- spec/fog/bin/openvz_spec.rb
|
2632
|
-
- spec/fog/bin/ovirt_spec.rb
|
2633
2533
|
- spec/fog/bin/powerdns_spec.rb
|
2634
2534
|
- spec/fog/bin/profitbricks_spec.rb
|
2635
2535
|
- spec/fog/bin/rackspace_spec.rb
|
@@ -2809,22 +2709,6 @@ test_files:
|
|
2809
2709
|
- tests/openvz/helper.rb
|
2810
2710
|
- tests/openvz/models/compute/server_tests.rb
|
2811
2711
|
- tests/openvz/models/compute/servers_tests.rb
|
2812
|
-
- tests/ovirt/compute_tests.rb
|
2813
|
-
- tests/ovirt/models/compute/cluster_tests.rb
|
2814
|
-
- tests/ovirt/models/compute/clusters_tests.rb
|
2815
|
-
- tests/ovirt/models/compute/interface_tests.rb
|
2816
|
-
- tests/ovirt/models/compute/interfaces_tests.rb
|
2817
|
-
- tests/ovirt/models/compute/server_tests.rb
|
2818
|
-
- tests/ovirt/models/compute/servers_tests.rb
|
2819
|
-
- tests/ovirt/models/compute/template_tests.rb
|
2820
|
-
- tests/ovirt/models/compute/templates_tests.rb
|
2821
|
-
- tests/ovirt/requests/compute/create_vm_tests.rb
|
2822
|
-
- tests/ovirt/requests/compute/destroy_vm_tests.rb
|
2823
|
-
- tests/ovirt/requests/compute/list_datacenters_tests.rb
|
2824
|
-
- tests/ovirt/requests/compute/list_quotas_tests.rb
|
2825
|
-
- tests/ovirt/requests/compute/list_storage_domains_tests.rb
|
2826
|
-
- tests/ovirt/requests/compute/update_vm_tests.rb
|
2827
|
-
- tests/ovirt/requests/compute/update_volume_tests.rb
|
2828
2712
|
- tests/rage4/requests/dns/dns_tests.rb
|
2829
2713
|
- tests/storage/helper.rb
|
2830
2714
|
- tests/storage/models/directories_tests.rb
|
data/lib/fog/bin/ovirt.rb
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
class Ovirt < Fog::Bin
|
2
|
-
class << self
|
3
|
-
def class_for(key)
|
4
|
-
case key
|
5
|
-
when :compute
|
6
|
-
Fog::Compute::Ovirt
|
7
|
-
else
|
8
|
-
raise ArgumentError, "Unrecognized service: #{key}"
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
def [](service)
|
13
|
-
@@connections ||= Hash.new do |hash, key|
|
14
|
-
hash[key] = case key
|
15
|
-
when :compute
|
16
|
-
Fog::Compute.new(:provider => 'Ovirt')
|
17
|
-
else
|
18
|
-
raise ArgumentError, "Unrecognized service: #{key.inspect}"
|
19
|
-
end
|
20
|
-
end
|
21
|
-
@@connections[service]
|
22
|
-
end
|
23
|
-
|
24
|
-
def services
|
25
|
-
Fog::Ovirt.services
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
data/lib/fog/ovirt/compute.rb
DELETED
@@ -1,155 +0,0 @@
|
|
1
|
-
require 'fog/ovirt/core'
|
2
|
-
|
3
|
-
module Fog
|
4
|
-
module Compute
|
5
|
-
class Ovirt < Fog::Service
|
6
|
-
requires :ovirt_username, :ovirt_password
|
7
|
-
recognizes :ovirt_url, :ovirt_server, :ovirt_port, :ovirt_api_path, :ovirt_datacenter,
|
8
|
-
:ovirt_filtered_api,
|
9
|
-
:ovirt_ca_cert_store, :ovirt_ca_cert_file, :ovirt_ca_no_verify
|
10
|
-
|
11
|
-
model_path 'fog/ovirt/models/compute'
|
12
|
-
model :server
|
13
|
-
collection :servers
|
14
|
-
model :template
|
15
|
-
collection :templates
|
16
|
-
model :instance_type
|
17
|
-
collection :instance_types
|
18
|
-
model :cluster
|
19
|
-
collection :clusters
|
20
|
-
model :interface
|
21
|
-
collection :interfaces
|
22
|
-
model :volume
|
23
|
-
collection :volumes
|
24
|
-
model :quota
|
25
|
-
collection :quotas
|
26
|
-
model :affinity_group
|
27
|
-
collection :affinity_groups
|
28
|
-
|
29
|
-
request_path 'fog/ovirt/requests/compute'
|
30
|
-
|
31
|
-
request :vm_action
|
32
|
-
request :vm_start_with_cloudinit
|
33
|
-
request :destroy_vm
|
34
|
-
request :create_vm
|
35
|
-
request :update_vm
|
36
|
-
request :datacenters
|
37
|
-
request :storage_domains
|
38
|
-
request :list_virtual_machines
|
39
|
-
request :get_virtual_machine
|
40
|
-
request :list_templates
|
41
|
-
request :get_template
|
42
|
-
request :list_instance_types
|
43
|
-
request :get_instance_type
|
44
|
-
request :list_clusters
|
45
|
-
request :get_cluster
|
46
|
-
request :add_interface
|
47
|
-
request :destroy_interface
|
48
|
-
request :update_interface
|
49
|
-
request :list_vm_interfaces
|
50
|
-
request :list_template_interfaces
|
51
|
-
request :list_networks
|
52
|
-
request :vm_ticket
|
53
|
-
request :list_vm_volumes
|
54
|
-
request :list_template_volumes
|
55
|
-
request :list_volumes
|
56
|
-
request :add_volume
|
57
|
-
request :destroy_volume
|
58
|
-
request :update_volume
|
59
|
-
request :attach_volume
|
60
|
-
request :detach_volume
|
61
|
-
request :activate_volume
|
62
|
-
request :deactivate_volume
|
63
|
-
request :get_api_version
|
64
|
-
request :list_quotas
|
65
|
-
request :get_quota
|
66
|
-
request :list_affinity_groups
|
67
|
-
request :get_affinity_group
|
68
|
-
request :list_affinity_group_vms
|
69
|
-
request :create_affinity_group
|
70
|
-
request :destroy_affinity_group
|
71
|
-
request :add_to_affinity_group
|
72
|
-
request :remove_from_affinity_group
|
73
|
-
|
74
|
-
module Shared
|
75
|
-
# converts an OVIRT object into an hash for fog to consume.
|
76
|
-
def ovirt_attrs obj
|
77
|
-
opts = {:raw => obj}
|
78
|
-
obj.instance_variables.each do |v|
|
79
|
-
key = v.to_s.gsub("@","").to_sym
|
80
|
-
value = obj.instance_variable_get(v)
|
81
|
-
#ignore nil values
|
82
|
-
next if value.nil?
|
83
|
-
|
84
|
-
opts[key] = case value
|
85
|
-
when OVIRT::Link
|
86
|
-
value.id
|
87
|
-
when OVIRT::TemplateVersion
|
88
|
-
value
|
89
|
-
when Array
|
90
|
-
value
|
91
|
-
when Hash
|
92
|
-
value
|
93
|
-
else
|
94
|
-
value.to_s.strip
|
95
|
-
end
|
96
|
-
end
|
97
|
-
opts
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
class Mock
|
102
|
-
include Shared
|
103
|
-
|
104
|
-
def initialize(options={})
|
105
|
-
require 'rbovirt'
|
106
|
-
end
|
107
|
-
|
108
|
-
private
|
109
|
-
|
110
|
-
def client
|
111
|
-
return @client if defined?(@client)
|
112
|
-
end
|
113
|
-
|
114
|
-
#read mocks xml
|
115
|
-
def read_xml(file_name)
|
116
|
-
file_path = File.join(File.dirname(__FILE__),"requests","compute","mock_files",file_name)
|
117
|
-
File.read(file_path)
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
class Real
|
122
|
-
include Shared
|
123
|
-
|
124
|
-
def initialize(options={})
|
125
|
-
require 'rbovirt'
|
126
|
-
username = options[:ovirt_username]
|
127
|
-
password = options[:ovirt_password]
|
128
|
-
server = options[:ovirt_server]
|
129
|
-
port = options[:ovirt_port] || 8080
|
130
|
-
api_path = options[:ovirt_api_path] || '/api'
|
131
|
-
url = options[:ovirt_url] || "#{@scheme}://#{server}:#{port}#{api_path}"
|
132
|
-
|
133
|
-
connection_opts = {}
|
134
|
-
connection_opts[:datacenter_id] = options[:ovirt_datacenter]
|
135
|
-
connection_opts[:ca_cert_store] = options[:ovirt_ca_cert_store]
|
136
|
-
connection_opts[:ca_cert_file] = options[:ovirt_ca_cert_file]
|
137
|
-
connection_opts[:ca_no_verify] = options[:ovirt_ca_no_verify]
|
138
|
-
connection_opts[:filtered_api] = options[:ovirt_filtered_api]
|
139
|
-
|
140
|
-
@client = OVIRT::Client.new(username, password, url, connection_opts)
|
141
|
-
end
|
142
|
-
|
143
|
-
def api_version
|
144
|
-
client.api_version
|
145
|
-
end
|
146
|
-
|
147
|
-
private
|
148
|
-
|
149
|
-
def client
|
150
|
-
@client
|
151
|
-
end
|
152
|
-
end
|
153
|
-
end
|
154
|
-
end
|
155
|
-
end
|