fog-ovirt 1.2.5 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +7 -0
- data/.rubocop_todo.yml +17 -5
- data/Gemfile +0 -1
- data/Gemfile.local.rb +0 -0
- data/README.md +2 -6
- data/Rakefile +2 -8
- data/fog-ovirt.gemspec +3 -2
- data/lib/fog/ovirt/compute.rb +5 -29
- data/lib/fog/ovirt/compute/v4.rb +3 -0
- data/lib/fog/ovirt/requests/compute/v4/mock_files/operating_systems.xml +4 -4
- data/lib/fog/ovirt/version.rb +1 -1
- metadata +20 -85
- data/lib/fog/ovirt/compute/v3.rb +0 -136
- data/lib/fog/ovirt/requests/compute/v3/activate_volume.rb +0 -23
- data/lib/fog/ovirt/requests/compute/v3/add_interface.rb +0 -22
- data/lib/fog/ovirt/requests/compute/v3/add_to_affinity_group.rb +0 -23
- data/lib/fog/ovirt/requests/compute/v3/add_volume.rb +0 -23
- data/lib/fog/ovirt/requests/compute/v3/attach_volume.rb +0 -24
- data/lib/fog/ovirt/requests/compute/v3/create_affinity_group.rb +0 -20
- data/lib/fog/ovirt/requests/compute/v3/create_vm.rb +0 -20
- data/lib/fog/ovirt/requests/compute/v3/datacenters.rb +0 -22
- data/lib/fog/ovirt/requests/compute/v3/deactivate_volume.rb +0 -24
- data/lib/fog/ovirt/requests/compute/v3/destroy_affinity_group.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/destroy_interface.rb +0 -24
- data/lib/fog/ovirt/requests/compute/v3/destroy_vm.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/destroy_volume.rb +0 -24
- data/lib/fog/ovirt/requests/compute/v3/detach_volume.rb +0 -24
- data/lib/fog/ovirt/requests/compute/v3/get_affinity_group.rb +0 -20
- data/lib/fog/ovirt/requests/compute/v3/get_api_version.rb +0 -18
- data/lib/fog/ovirt/requests/compute/v3/get_cluster.rb +0 -19
- data/lib/fog/ovirt/requests/compute/v3/get_instance_type.rb +0 -19
- data/lib/fog/ovirt/requests/compute/v3/get_quota.rb +0 -19
- data/lib/fog/ovirt/requests/compute/v3/get_template.rb +0 -19
- data/lib/fog/ovirt/requests/compute/v3/get_virtual_machine.rb +0 -19
- data/lib/fog/ovirt/requests/compute/v3/get_volume.rb +0 -19
- data/lib/fog/ovirt/requests/compute/v3/list_affinity_group_vms.rb +0 -24
- data/lib/fog/ovirt/requests/compute/v3/list_affinity_groups.rb +0 -22
- data/lib/fog/ovirt/requests/compute/v3/list_clusters.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/list_instance_types.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/list_networks.rb +0 -18
- data/lib/fog/ovirt/requests/compute/v3/list_operating_systems.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/list_quotas.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/list_template_interfaces.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/list_template_volumes.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/list_templates.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/list_virtual_machines.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/list_vm_volumes.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/list_volumes.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/mock_files/affinitygroup.xml +0 -8
- data/lib/fog/ovirt/requests/compute/v3/mock_files/affinitygroup_vms.xml +0 -9
- data/lib/fog/ovirt/requests/compute/v3/mock_files/affinitygroups.xml +0 -17
- data/lib/fog/ovirt/requests/compute/v3/mock_files/cluster.xml +0 -20
- data/lib/fog/ovirt/requests/compute/v3/mock_files/clusters.xml +0 -39
- data/lib/fog/ovirt/requests/compute/v3/mock_files/data_centers.xml +0 -17
- data/lib/fog/ovirt/requests/compute/v3/mock_files/disks.xml +0 -58
- data/lib/fog/ovirt/requests/compute/v3/mock_files/instance_type.xml +0 -42
- data/lib/fog/ovirt/requests/compute/v3/mock_files/instance_types.xml +0 -197
- data/lib/fog/ovirt/requests/compute/v3/mock_files/nics.xml +0 -10
- data/lib/fog/ovirt/requests/compute/v3/mock_files/operating_systems.xml +0 -10
- data/lib/fog/ovirt/requests/compute/v3/mock_files/quotas.xml +0 -7
- data/lib/fog/ovirt/requests/compute/v3/mock_files/storage_domains.xml +0 -36
- data/lib/fog/ovirt/requests/compute/v3/mock_files/template.xml +0 -39
- data/lib/fog/ovirt/requests/compute/v3/mock_files/templates.xml +0 -110
- data/lib/fog/ovirt/requests/compute/v3/mock_files/vm.xml +0 -52
- data/lib/fog/ovirt/requests/compute/v3/mock_files/vms.xml +0 -152
- data/lib/fog/ovirt/requests/compute/v3/mock_files/volume.xml +0 -21
- data/lib/fog/ovirt/requests/compute/v3/mock_files/volumes.xml +0 -40
- data/lib/fog/ovirt/requests/compute/v3/remove_from_affinity_group.rb +0 -23
- data/lib/fog/ovirt/requests/compute/v3/storage_domains.rb +0 -22
- data/lib/fog/ovirt/requests/compute/v3/update_interface.rb +0 -36
- data/lib/fog/ovirt/requests/compute/v3/update_vm.rb +0 -20
- data/lib/fog/ovirt/requests/compute/v3/update_volume.rb +0 -37
- data/lib/fog/ovirt/requests/compute/v3/vm_action.rb +0 -24
- data/lib/fog/ovirt/requests/compute/v3/vm_start_with_cloudinit.rb +0 -21
- data/lib/fog/ovirt/requests/compute/v3/vm_ticket.rb +0 -19
- data/tests/ovirt/requests/compute/v3/client_tests.rb +0 -31
- data/tests/ovirt/requests/compute/v3/create_vm_tests.rb +0 -17
- data/tests/ovirt/requests/compute/v3/destroy_vm_tests.rb +0 -14
- data/tests/ovirt/requests/compute/v3/list_datacenters_tests.rb +0 -11
- data/tests/ovirt/requests/compute/v3/list_quotas_tests.rb +0 -10
- data/tests/ovirt/requests/compute/v3/list_storage_domains_tests.rb +0 -11
- data/tests/ovirt/requests/compute/v3/update_vm_tests.rb +0 -14
- data/tests/ovirt/requests/compute/v3/update_volume_tests.rb +0 -15
@@ -1,52 +0,0 @@
|
|
1
|
-
<vm href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c" id="52b9406e-cf66-4867-8655-719a094e324c">
|
2
|
-
<name>vm01</name>
|
3
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/disks" rel="disks"/>
|
4
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/nics" rel="nics"/>
|
5
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/cdroms" rel="cdroms"/>
|
6
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/snapshots" rel="snapshots"/>
|
7
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/tags" rel="tags"/>
|
8
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/permissions" rel="permissions"/>
|
9
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/statistics" rel="statistics"/>
|
10
|
-
<type>server</type>
|
11
|
-
<status>
|
12
|
-
<state>down</state>
|
13
|
-
</status>
|
14
|
-
<memory>805306368</memory>
|
15
|
-
<cpu>
|
16
|
-
<topology sockets="1" cores="1"/>
|
17
|
-
</cpu>
|
18
|
-
<os type="unassigned">
|
19
|
-
<boot dev="network"/>
|
20
|
-
<boot dev="hd"/>
|
21
|
-
<kernel/>
|
22
|
-
<initrd/>
|
23
|
-
<cmdline/>
|
24
|
-
</os>
|
25
|
-
<high_availability>
|
26
|
-
<enabled>false</enabled>
|
27
|
-
<priority>1</priority>
|
28
|
-
</high_availability>
|
29
|
-
<display>
|
30
|
-
<type>spice</type>
|
31
|
-
<address>host</address>
|
32
|
-
<port>5900</port>
|
33
|
-
<secure_port>5901</secure_port>
|
34
|
-
<monitors>1</monitors>
|
35
|
-
</display>
|
36
|
-
<host href="/api/hosts/3690fafa-4b4c-11e1-8b7b-5254009970cc" id="3690fafa-4b4c-11e1-8b7b-5254009970cc"/>
|
37
|
-
<cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
|
38
|
-
<template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
|
39
|
-
<start_time>2012-02-05T11:00:33.222Z</start_time>
|
40
|
-
<creation_time>2012-01-31T07:21:10.667Z</creation_time>
|
41
|
-
<origin>rhev</origin>
|
42
|
-
<stateless>false</stateless>
|
43
|
-
<placement_policy>
|
44
|
-
<affinity>migratable</affinity>
|
45
|
-
</placement_policy>
|
46
|
-
<memory_policy>
|
47
|
-
<guaranteed>536870912</guaranteed>
|
48
|
-
</memory_policy>
|
49
|
-
<usb>
|
50
|
-
<enabled>true</enabled>
|
51
|
-
</usb>
|
52
|
-
</vm>
|
@@ -1,152 +0,0 @@
|
|
1
|
-
<vms>
|
2
|
-
<vm href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b" id="5ee86332-7b19-465b-8801-2a12ed0d6c1b">
|
3
|
-
<name>test-vm1</name>
|
4
|
-
<link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/disks" rel="disks"/>
|
5
|
-
<link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/nics" rel="nics"/>
|
6
|
-
<link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/cdroms" rel="cdroms"/>
|
7
|
-
<link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/snapshots" rel="snapshots"/>
|
8
|
-
<link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/tags" rel="tags"/>
|
9
|
-
<link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/permissions" rel="permissions"/>
|
10
|
-
<link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/statistics" rel="statistics"/>
|
11
|
-
<type>server</type>
|
12
|
-
<status>
|
13
|
-
<state>down</state>
|
14
|
-
</status>
|
15
|
-
<memory>1073741824</memory>
|
16
|
-
<cpu>
|
17
|
-
<topology sockets="1" cores="4"/>
|
18
|
-
</cpu>
|
19
|
-
<os type="unassigned">
|
20
|
-
<boot dev="network"/>
|
21
|
-
<kernel/>
|
22
|
-
<initrd/>
|
23
|
-
<cmdline/>
|
24
|
-
</os>
|
25
|
-
<high_availability>
|
26
|
-
<enabled>false</enabled>
|
27
|
-
<priority>1</priority>
|
28
|
-
</high_availability>
|
29
|
-
<display>
|
30
|
-
<type>spice</type>
|
31
|
-
<monitors>1</monitors>
|
32
|
-
</display>
|
33
|
-
<cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
|
34
|
-
<template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
|
35
|
-
<start_time>2012-02-06T10:47:32.214Z</start_time>
|
36
|
-
<creation_time>2012-01-31T07:45:13.068Z</creation_time>
|
37
|
-
<origin>rhev</origin>
|
38
|
-
<stateless>false</stateless>
|
39
|
-
<placement_policy>
|
40
|
-
<affinity>migratable</affinity>
|
41
|
-
</placement_policy>
|
42
|
-
<memory_policy>
|
43
|
-
<guaranteed>536870912</guaranteed>
|
44
|
-
</memory_policy>
|
45
|
-
<usb>
|
46
|
-
<enabled>true</enabled>
|
47
|
-
</usb>
|
48
|
-
</vm>
|
49
|
-
<vm href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1" id="349764bb-eba3-4466-abef-f18f4c40c9f1">
|
50
|
-
<name>fosdem</name>
|
51
|
-
<link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/disks" rel="disks"/>
|
52
|
-
<link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/nics" rel="nics"/>
|
53
|
-
<link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/cdroms" rel="cdroms"/>
|
54
|
-
<link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/snapshots" rel="snapshots"/>
|
55
|
-
<link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/tags" rel="tags"/>
|
56
|
-
<link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/permissions" rel="permissions"/>
|
57
|
-
<link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/statistics" rel="statistics"/>
|
58
|
-
<type>server</type>
|
59
|
-
<status>
|
60
|
-
<state>down</state>
|
61
|
-
</status>
|
62
|
-
<memory>536870912</memory>
|
63
|
-
<cpu>
|
64
|
-
<topology sockets="1" cores="1"/>
|
65
|
-
</cpu>
|
66
|
-
<os type="unassigned">
|
67
|
-
<boot dev="hd"/>
|
68
|
-
<kernel/>
|
69
|
-
<initrd/>
|
70
|
-
<cmdline/>
|
71
|
-
</os>
|
72
|
-
<high_availability>
|
73
|
-
<enabled>false</enabled>
|
74
|
-
<priority>1</priority>
|
75
|
-
</high_availability>
|
76
|
-
<display>
|
77
|
-
<type>spice</type>
|
78
|
-
<address>host</address>
|
79
|
-
<port>5902</port>
|
80
|
-
<secure_port>5903</secure_port>
|
81
|
-
<monitors>1</monitors>
|
82
|
-
</display>
|
83
|
-
<host href="/api/hosts/3690fafa-4b4c-11e1-8b7b-5254009970cc" id="3690fafa-4b4c-11e1-8b7b-5254009970cc"/>
|
84
|
-
<cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
|
85
|
-
<template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
|
86
|
-
<start_time>2012-02-05T11:04:39.217Z</start_time>
|
87
|
-
<creation_time>2012-02-05T10:53:30.484Z</creation_time>
|
88
|
-
<origin>rhev</origin>
|
89
|
-
<stateless>false</stateless>
|
90
|
-
<placement_policy>
|
91
|
-
<affinity>migratable</affinity>
|
92
|
-
</placement_policy>
|
93
|
-
<memory_policy>
|
94
|
-
<guaranteed>536870912</guaranteed>
|
95
|
-
</memory_policy>
|
96
|
-
<usb>
|
97
|
-
<enabled>true</enabled>
|
98
|
-
</usb>
|
99
|
-
</vm>
|
100
|
-
<vm href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c" id="52b9406e-cf66-4867-8655-719a094e324c">
|
101
|
-
<name>vm01</name>
|
102
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/disks" rel="disks"/>
|
103
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/nics" rel="nics"/>
|
104
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/cdroms" rel="cdroms"/>
|
105
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/snapshots" rel="snapshots"/>
|
106
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/tags" rel="tags"/>
|
107
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/permissions" rel="permissions"/>
|
108
|
-
<link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/statistics" rel="statistics"/>
|
109
|
-
<type>server</type>
|
110
|
-
<status>
|
111
|
-
<state>down</state>
|
112
|
-
</status>
|
113
|
-
<memory>805306368</memory>
|
114
|
-
<cpu>
|
115
|
-
<topology sockets="1" cores="1"/>
|
116
|
-
</cpu>
|
117
|
-
<os type="unassigned">
|
118
|
-
<boot dev="network"/>
|
119
|
-
<boot dev="hd"/>
|
120
|
-
<kernel/>
|
121
|
-
<initrd/>
|
122
|
-
<cmdline/>
|
123
|
-
</os>
|
124
|
-
<high_availability>
|
125
|
-
<enabled>false</enabled>
|
126
|
-
<priority>1</priority>
|
127
|
-
</high_availability>
|
128
|
-
<display>
|
129
|
-
<type>spice</type>
|
130
|
-
<address>host</address>
|
131
|
-
<port>5900</port>
|
132
|
-
<secure_port>5901</secure_port>
|
133
|
-
<monitors>1</monitors>
|
134
|
-
</display>
|
135
|
-
<host href="/api/hosts/3690fafa-4b4c-11e1-8b7b-5254009970cc" id="3690fafa-4b4c-11e1-8b7b-5254009970cc"/>
|
136
|
-
<cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
|
137
|
-
<template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
|
138
|
-
<start_time>2012-02-05T11:00:33.222Z</start_time>
|
139
|
-
<creation_time>2012-01-31T07:21:10.667Z</creation_time>
|
140
|
-
<origin>rhev</origin>
|
141
|
-
<stateless>false</stateless>
|
142
|
-
<placement_policy>
|
143
|
-
<affinity>migratable</affinity>
|
144
|
-
</placement_policy>
|
145
|
-
<memory_policy>
|
146
|
-
<guaranteed>536870912</guaranteed>
|
147
|
-
</memory_policy>
|
148
|
-
<usb>
|
149
|
-
<enabled>true</enabled>
|
150
|
-
</usb>
|
151
|
-
</vm>
|
152
|
-
</vms>
|
@@ -1,21 +0,0 @@
|
|
1
|
-
<disks>
|
2
|
-
<disk href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387/disks/9f68ecfd-218b-4f80-8e7a-e70b2ab054cd" id="9f68ecfd-218b-4f80-8e7a-e70b2ab054cd">
|
3
|
-
<name>Disk 2</name>
|
4
|
-
<link href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387/disks/9f68ecfd-218b-4f80-8e7a-e70b2ab054cd/statistics" rel="statistics"/>
|
5
|
-
<vm href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387" id="192cdd3f-3281-4e20-b81d-93bdc57ac387"/>
|
6
|
-
<storage_domains>
|
7
|
-
<storage_domain id="cba62b33-887a-410c-b367-e3d9229a72f7"/>
|
8
|
-
</storage_domains>
|
9
|
-
<size>5368709120</size>
|
10
|
-
<type>data</type>
|
11
|
-
<status>
|
12
|
-
<state>ok</state>
|
13
|
-
</status>
|
14
|
-
<interface>virtio</interface>
|
15
|
-
<format>raw</format>
|
16
|
-
<sparse>true</sparse>
|
17
|
-
<bootable>false</bootable>
|
18
|
-
<wipe_after_delete>false</wipe_after_delete>
|
19
|
-
<propagate_errors>false</propagate_errors>
|
20
|
-
</disk>
|
21
|
-
</disks>
|
@@ -1,40 +0,0 @@
|
|
1
|
-
<disks>
|
2
|
-
<disk href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387/disks/9f68ecfd-218b-4f80-8e7a-e70b2ab054cd" id="9f68ecfd-218b-4f80-8e7a-e70b2ab054cd">
|
3
|
-
<name>Disk 2</name>
|
4
|
-
<link href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387/disks/9f68ecfd-218b-4f80-8e7a-e70b2ab054cd/statistics" rel="statistics"/>
|
5
|
-
<vm href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387" id="192cdd3f-3281-4e20-b81d-93bdc57ac387"/>
|
6
|
-
<storage_domains>
|
7
|
-
<storage_domain id="cba62b33-887a-410c-b367-e3d9229a72f7"/>
|
8
|
-
</storage_domains>
|
9
|
-
<size>5368709120</size>
|
10
|
-
<type>data</type>
|
11
|
-
<status>
|
12
|
-
<state>ok</state>
|
13
|
-
</status>
|
14
|
-
<interface>virtio</interface>
|
15
|
-
<format>raw</format>
|
16
|
-
<sparse>true</sparse>
|
17
|
-
<bootable>false</bootable>
|
18
|
-
<wipe_after_delete>false</wipe_after_delete>
|
19
|
-
<propagate_errors>false</propagate_errors>
|
20
|
-
</disk>
|
21
|
-
<disk href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387/disks/e373b1a5-6c89-43f1-9a2d-cdf674412349" id="e373b1a5-6c89-43f1-9a2d-cdf674412349">
|
22
|
-
<name>Disk 1</name>
|
23
|
-
<link href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387/disks/e373b1a5-6c89-43f1-9a2d-cdf674412349/statistics" rel="statistics"/>
|
24
|
-
<vm href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387" id="192cdd3f-3281-4e20-b81d-93bdc57ac387"/>
|
25
|
-
<storage_domains>
|
26
|
-
<storage_domain id="cba62b33-887a-410c-b367-e3d9229a72f7"/>
|
27
|
-
</storage_domains>
|
28
|
-
<size>8589934592</size>
|
29
|
-
<type>system</type>
|
30
|
-
<status>
|
31
|
-
<state>ok</state>
|
32
|
-
</status>
|
33
|
-
<interface>virtio</interface>
|
34
|
-
<format>cow</format>
|
35
|
-
<sparse>true</sparse>
|
36
|
-
<bootable>true</bootable>
|
37
|
-
<wipe_after_delete>false</wipe_after_delete>
|
38
|
-
<propagate_errors>false</propagate_errors>
|
39
|
-
</disk>
|
40
|
-
</disks>
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Ovirt
|
3
|
-
class Compute
|
4
|
-
class V3
|
5
|
-
class Real
|
6
|
-
def remove_from_affinity_group(id, options = {})
|
7
|
-
raise ArgumentError, "instance id is a required parameter" unless id
|
8
|
-
raise ArgumentError, "affinity group id is a required parameter for remove-from-affinity-group" unless options.key? :id
|
9
|
-
client.delete_vm_from_affinity_group(options[:id], id)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
class Mock
|
14
|
-
def remove_from_affinity_group(id, options = {})
|
15
|
-
raise ArgumentError, "instance id is a required parameter" unless id
|
16
|
-
raise ArgumentError, "affinity group id is a required parameter for remove-from-affinity-group" unless options.key? :id
|
17
|
-
true
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Ovirt
|
3
|
-
class Compute
|
4
|
-
class V3
|
5
|
-
class Real
|
6
|
-
def storage_domains(filter = {})
|
7
|
-
client.storagedomains(filter)
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
class Mock
|
12
|
-
def storage_domains(_filters = {})
|
13
|
-
xml = read_xml "storage_domains.xml"
|
14
|
-
Nokogiri::XML(xml).xpath("/storage_domains/storage_domain").map do |sd|
|
15
|
-
OVIRT::StorageDomain.new(self, sd)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Ovirt
|
3
|
-
class Compute
|
4
|
-
class V3
|
5
|
-
module Shared
|
6
|
-
def check_arguments(id, options)
|
7
|
-
raise ArgumentError, "instance id is a required parameter" unless id
|
8
|
-
raise ArgumentError, "interface id is a required parameter for update-interface" unless options.key? :id
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
class Real
|
13
|
-
extend ::Fog::Ovirt::Compute::V3::Shared
|
14
|
-
|
15
|
-
def update_interface(id, options)
|
16
|
-
check_arguments(id, options)
|
17
|
-
|
18
|
-
interface_id = options[:id]
|
19
|
-
options.delete(:id)
|
20
|
-
|
21
|
-
client.update_interface(id, interface_id, options)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
class Mock
|
26
|
-
extend ::Fog::Ovirt::Compute::V3::Shared
|
27
|
-
|
28
|
-
def update_interface(id, options)
|
29
|
-
check_arguments(id, options)
|
30
|
-
true
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Ovirt
|
3
|
-
class Compute
|
4
|
-
class V3
|
5
|
-
class Real
|
6
|
-
def update_vm(attrs)
|
7
|
-
client.update_vm(attrs)
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
class Mock
|
12
|
-
def update_vm(_attrs)
|
13
|
-
xml = read_xml("vm.xml")
|
14
|
-
OVIRT::VM.new(self, Nokogiri::XML(xml).root)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Ovirt
|
3
|
-
class Compute
|
4
|
-
class V3
|
5
|
-
module Shared
|
6
|
-
def check_arguments(id, options)
|
7
|
-
raise ArgumentError, "instance id is a required parameter" unless id
|
8
|
-
raise ArgumentError, "disk id is a required parameter for update-volume" unless options.key? :id
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
class Real
|
13
|
-
extend ::Fog::Ovirt::Compute::V3::Shared
|
14
|
-
|
15
|
-
def update_volume(id, options)
|
16
|
-
check_arguments(id, options)
|
17
|
-
|
18
|
-
disk_id = options[:id]
|
19
|
-
options.delete(:id)
|
20
|
-
|
21
|
-
client.update_volume(id, disk_id, options)
|
22
|
-
true # If we come here, expect success and return true
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
class Mock
|
27
|
-
extend ::Fog::Ovirt::Compute::V3::Shared
|
28
|
-
|
29
|
-
def update_volume(id, options)
|
30
|
-
check_arguments(id, options)
|
31
|
-
true
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Ovirt
|
3
|
-
class Compute
|
4
|
-
class V3
|
5
|
-
class Real
|
6
|
-
def vm_action(options = {})
|
7
|
-
raise ArgumentError, "instance id is a required parameter" unless options.key? :id
|
8
|
-
raise ArgumentError, "action is a required parameter" unless options.key? :action
|
9
|
-
|
10
|
-
client.vm_action options[:id], options[:action]
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
class Mock
|
15
|
-
def vm_action(options = {})
|
16
|
-
raise ArgumentError, "id is a required parameter" unless options.key? :id
|
17
|
-
raise ArgumentError, "action is a required parameter" unless options.key? :action
|
18
|
-
true
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Ovirt
|
3
|
-
class Compute
|
4
|
-
class V3
|
5
|
-
class Real
|
6
|
-
def vm_start_with_cloudinit(options = {})
|
7
|
-
raise ArgumentError, "instance id is a required parameter" unless options.key? :id
|
8
|
-
client.vm_start_with_cloudinit(options[:id], options[:user_data])
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
class Mock
|
13
|
-
def vm_start_with_cloudinit(options = {})
|
14
|
-
raise ArgumentError, "instance id is a required parameter" unless options.key? :id
|
15
|
-
true
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|