fog-openstack 0.1.25 → 0.1.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -1
- data/.travis.yml +4 -4
- data/.zuul.yaml +35 -0
- data/README.md +3 -3
- data/Rakefile +6 -9
- data/docs/planning.md +3 -3
- data/docs/storage.md +1 -1
- data/examples/planning/basics.rb +1 -1
- data/fog-openstack.gemspec +3 -3
- data/lib/fog/baremetal/openstack/requests/create_chassis.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/create_node.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/create_port.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/get_chassis.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/get_driver.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/get_driver_properties.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/get_node.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/get_port.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_chassis.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_chassis_detailed.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_drivers.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_nodes.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_nodes_detailed.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_ports.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_ports_detailed.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/patch_chassis.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/patch_node.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/patch_port.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/set_node_maintenance.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/set_node_power_state.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/set_node_provision_state.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/unset_node_maintenance.rb +4 -4
- data/lib/fog/compute/openstack/models/network.rb +4 -4
- data/lib/fog/compute/openstack/models/networks.rb +4 -4
- data/lib/fog/compute/openstack/models/server.rb +1 -1
- data/lib/fog/compute/openstack/models/server_group.rb +4 -4
- data/lib/fog/compute/openstack/models/server_groups.rb +4 -4
- data/lib/fog/compute/openstack/models/tenant.rb +4 -4
- data/lib/fog/compute/openstack/models/tenants.rb +4 -4
- data/lib/fog/compute/openstack/requests/add_aggregate_host.rb +4 -4
- data/lib/fog/compute/openstack/requests/add_fixed_ip.rb +7 -7
- data/lib/fog/compute/openstack/requests/allocate_address.rb +3 -3
- data/lib/fog/compute/openstack/requests/boot_from_snapshot.rb +3 -3
- data/lib/fog/compute/openstack/requests/create_aggregate.rb +4 -4
- data/lib/fog/compute/openstack/requests/create_flavor.rb +4 -4
- data/lib/fog/compute/openstack/requests/create_flavor_metadata.rb +4 -4
- data/lib/fog/compute/openstack/requests/create_key_pair.rb +4 -4
- data/lib/fog/compute/openstack/requests/create_security_group.rb +4 -4
- data/lib/fog/compute/openstack/requests/create_security_group_rule.rb +4 -4
- data/lib/fog/compute/openstack/requests/delete_aggregate.rb +4 -4
- data/lib/fog/compute/openstack/requests/delete_flavor.rb +4 -4
- data/lib/fog/compute/openstack/requests/delete_key_pair.rb +4 -4
- data/lib/fog/compute/openstack/requests/delete_security_group.rb +4 -4
- data/lib/fog/compute/openstack/requests/delete_security_group_rule.rb +4 -4
- data/lib/fog/compute/openstack/requests/delete_service.rb +4 -4
- data/lib/fog/compute/openstack/requests/disable_service.rb +4 -4
- data/lib/fog/compute/openstack/requests/disable_service_log_reason.rb +4 -4
- data/lib/fog/compute/openstack/requests/enable_service.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_address.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_aggregate.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_flavor_metadata.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_host_details.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_security_group.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_security_group_rule.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_server_volumes.rb +1 -1
- data/lib/fog/compute/openstack/requests/get_vnc_console.rb +7 -7
- data/lib/fog/compute/openstack/requests/list_aggregates.rb +4 -4
- data/lib/fog/compute/openstack/requests/list_all_addresses.rb +4 -4
- data/lib/fog/compute/openstack/requests/list_hosts.rb +4 -4
- data/lib/fog/compute/openstack/requests/list_key_pairs.rb +4 -4
- data/lib/fog/compute/openstack/requests/list_security_groups.rb +4 -4
- data/lib/fog/compute/openstack/requests/list_services.rb +4 -4
- data/lib/fog/compute/openstack/requests/list_tenants.rb +4 -4
- data/lib/fog/compute/openstack/requests/pause_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/release_address.rb +1 -1
- data/lib/fog/compute/openstack/requests/remove_aggregate_host.rb +4 -4
- data/lib/fog/compute/openstack/requests/remove_fixed_ip.rb +7 -7
- data/lib/fog/compute/openstack/requests/rescue_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/resume_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/server_actions.rb +7 -7
- data/lib/fog/compute/openstack/requests/server_diagnostics.rb +7 -7
- data/lib/fog/compute/openstack/requests/set_tenant.rb +3 -3
- data/lib/fog/compute/openstack/requests/shelve_offload_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/shelve_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/start_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/stop_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/suspend_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/unpause_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/unshelve_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/update_aggregate.rb +4 -4
- data/lib/fog/compute/openstack/requests/update_aggregate_metadata.rb +4 -4
- data/lib/fog/dns/openstack.rb +3 -0
- data/lib/fog/identity/openstack.rb +3 -0
- data/lib/fog/identity/openstack/v2/models/role.rb +5 -5
- data/lib/fog/identity/openstack/v2/models/roles.rb +4 -4
- data/lib/fog/identity/openstack/v2/models/tenant.rb +5 -5
- data/lib/fog/identity/openstack/v2/models/tenants.rb +5 -5
- data/lib/fog/identity/openstack/v2/models/user.rb +5 -5
- data/lib/fog/identity/openstack/v2/models/users.rb +5 -5
- data/lib/fog/identity/openstack/v2/requests/add_user_to_tenant.rb +6 -6
- data/lib/fog/identity/openstack/v2/requests/create_ec2_credential.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/create_role.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/create_tenant.rb +8 -8
- data/lib/fog/identity/openstack/v2/requests/create_user.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/create_user_role.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/delete_ec2_credential.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/delete_role.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/delete_tenant.rb +8 -8
- data/lib/fog/identity/openstack/v2/requests/delete_user.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/delete_user_role.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/get_ec2_credential.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/get_role.rb +5 -5
- data/lib/fog/identity/openstack/v2/requests/get_tenant.rb +7 -7
- data/lib/fog/identity/openstack/v2/requests/get_tenants_by_id.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/get_tenants_by_name.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/get_user_by_id.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/get_user_by_name.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/list_ec2_credentials.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/list_endpoints_for_token.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/list_roles.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/list_roles_for_user_on_tenant.rb +8 -8
- data/lib/fog/identity/openstack/v2/requests/list_tenants.rb +7 -7
- data/lib/fog/identity/openstack/v2/requests/list_user_global_roles.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/list_users.rb +6 -6
- data/lib/fog/identity/openstack/v2/requests/remove_user_from_tenant.rb +6 -6
- data/lib/fog/identity/openstack/v2/requests/set_tenant.rb +4 -4
- data/lib/fog/identity/openstack/v2/requests/update_tenant.rb +8 -8
- data/lib/fog/identity/openstack/v2/requests/update_user.rb +1 -1
- data/lib/fog/image/openstack.rb +3 -0
- data/lib/fog/image/openstack/v1/requests/add_member_to_image.rb +7 -7
- data/lib/fog/image/openstack/v1/requests/get_image.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/get_image_by_id.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/get_image_members.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/get_shared_images.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/list_public_images.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/remove_member_from_image.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/set_tenant.rb +3 -3
- data/lib/fog/image/openstack/v1/requests/update_image_members.rb +5 -5
- data/lib/fog/image/openstack/v2/requests/add_member_to_image.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/add_tag_to_image.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/download_image.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/get_image.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/get_image_by_id.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/get_image_members.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/get_member_details.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/get_shared_images.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/list_images.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/remove_member_from_image.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/remove_tag_from_image.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/set_tenant.rb +3 -3
- data/lib/fog/image/openstack/v2/requests/update_image_member.rb +5 -5
- data/lib/fog/openstack.rb +27 -47
- data/lib/fog/openstack/version.rb +2 -2
- data/lib/fog/planning/openstack.rb +2 -2
- data/lib/fog/planning/openstack/models/plan.rb +1 -1
- data/lib/fog/planning/openstack/models/plans.rb +2 -2
- data/lib/fog/planning/openstack/models/role.rb +1 -1
- data/lib/fog/planning/openstack/models/roles.rb +2 -2
- data/lib/fog/planning/openstack/requests/add_role_to_plan.rb +7 -7
- data/lib/fog/planning/openstack/requests/create_plan.rb +7 -7
- data/lib/fog/planning/openstack/requests/delete_plan.rb +7 -7
- data/lib/fog/planning/openstack/requests/get_plan.rb +7 -7
- data/lib/fog/planning/openstack/requests/get_plan_templates.rb +7 -7
- data/lib/fog/planning/openstack/requests/list_plans.rb +7 -7
- data/lib/fog/planning/openstack/requests/list_roles.rb +7 -7
- data/lib/fog/planning/openstack/requests/patch_plan.rb +7 -7
- data/lib/fog/planning/openstack/requests/remove_role_from_plan.rb +7 -7
- data/lib/fog/shared_file_system/openstack.rb +44 -9
- data/lib/fog/shared_file_system/openstack/requests/add_security_service_to_share_network.rb +28 -0
- data/lib/fog/shared_file_system/openstack/requests/create_security_service.rb +47 -0
- data/lib/fog/shared_file_system/openstack/requests/delete_security_service.rb +24 -0
- data/lib/fog/shared_file_system/openstack/requests/get_security_service.rb +26 -0
- data/lib/fog/shared_file_system/openstack/requests/list_security_services.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_security_services_detail.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb +28 -0
- data/lib/fog/shared_file_system/openstack/requests/share_network_action.rb +16 -0
- data/lib/fog/shared_file_system/openstack/requests/update_security_service.rb +31 -0
- data/lib/fog/storage/openstack/models/file.rb +2 -0
- data/lib/fog/volume/openstack.rb +3 -0
- data/lib/fog/volume/openstack/requests/set_tenant.rb +3 -3
- data/playbooks/.gitkeep +0 -0
- data/playbooks/fog-openstack-unittest-spec/run.yaml +57 -0
- data/playbooks/fog-openstack-unittest-test/run.yaml +57 -0
- metadata +18 -6
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3348399a88b9e9c9d222f75d2f0ded6f74a64f7
|
4
|
+
data.tar.gz: 5f1b769ff3bc1f12b2e238c6c53bcc585392f9ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1308a13a800a9a95a21fc93d2be5f6d56e4f74c4da952589e3d1f1fce77707baaeb3b42d1cd99244aea26550f6ba5788340ed58bd70c4abb6ad1c1e4a6e70c3
|
7
|
+
data.tar.gz: 6243316e3b1aa9036847e0b3e052dd111954c0acc9b0e27c8c4dba1a9e4aee87d3a204a4ca6afe1428ce7fd73dbba2a530a1f7bd2606bde728619d34fa1c50c3
|
data/.rubocop.yml
CHANGED
@@ -100,7 +100,9 @@ StringLiterals:
|
|
100
100
|
Enabled: false
|
101
101
|
StringLiteralsInInterpolation:
|
102
102
|
Enabled: false
|
103
|
-
|
103
|
+
TrailingCommaInArrayLiteral:
|
104
|
+
Enabled: false
|
105
|
+
TrailingCommaInHashLiteral:
|
104
106
|
Enabled: false
|
105
107
|
WhileUntilModifier:
|
106
108
|
Enabled: false
|
data/.travis.yml
CHANGED
@@ -10,13 +10,13 @@ env:
|
|
10
10
|
matrix:
|
11
11
|
fast_finish: true
|
12
12
|
include:
|
13
|
-
- rvm: 2.2.
|
13
|
+
- rvm: 2.2.10
|
14
14
|
gemfile: Gemfile
|
15
|
-
- rvm: 2.3.
|
15
|
+
- rvm: 2.3.7
|
16
16
|
gemfile: Gemfile
|
17
|
-
- rvm: 2.
|
17
|
+
- rvm: 2.4.4
|
18
18
|
gemfile: Gemfile
|
19
|
-
- rvm: 2.
|
19
|
+
- rvm: 2.5.1
|
20
20
|
gemfile: Gemfile
|
21
21
|
- rvm: jruby-head
|
22
22
|
gemfile: Gemfile
|
data/.zuul.yaml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
- project:
|
2
|
+
check:
|
3
|
+
jobs:
|
4
|
+
- fog-openstack-unittest-test
|
5
|
+
- fog-openstack-unittest-spec
|
6
|
+
|
7
|
+
- job:
|
8
|
+
name: fog-openstack-unittest-test
|
9
|
+
parent: init-test
|
10
|
+
description: |
|
11
|
+
fog-openstack unittest test tests
|
12
|
+
run: playbooks/fog-openstack-unittest-test/run.yaml
|
13
|
+
vars:
|
14
|
+
rvm:
|
15
|
+
2.2.10
|
16
|
+
2.3.7
|
17
|
+
2.4.4
|
18
|
+
2.5.1
|
19
|
+
jruby-head
|
20
|
+
nodeset: ubuntu-xenial
|
21
|
+
|
22
|
+
- job:
|
23
|
+
name: fog-openstack-unittest-spec
|
24
|
+
parent: init-test
|
25
|
+
description: |
|
26
|
+
fog-openstack unittest spec tests
|
27
|
+
run: playbooks/fog-openstack-unittest-spec/run.yaml
|
28
|
+
vars:
|
29
|
+
rvm:
|
30
|
+
2.2.10
|
31
|
+
2.3.7
|
32
|
+
2.4.4
|
33
|
+
2.5.1
|
34
|
+
jruby-head
|
35
|
+
nodeset: ubuntu-xenial
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Fog::
|
1
|
+
# Fog::OpenStack
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/fog-openstack.svg)](http://badge.fury.io/rb/fog-openstack) [![Build Status](https://travis-ci.org/fog/fog-openstack.svg?branch=master)](https://travis-ci.org/fog/fog-openstack) [![Dependency Status](https://gemnasium.com/fog/fog-openstack.svg)](https://gemnasium.com/fog/fog-openstack) [![Coverage Status](https://coveralls.io/repos/github/fog/fog-openstack/badge.svg?branch=master)](https://coveralls.io/github/fog/fog-openstack?branch=master) [![Code Climate](https://codeclimate.com/github/fog/fog-openstack.svg)](https://codeclimate.com/github/fog/fog-openstack) [![Join the chat at https://gitter.im/fog/fog-openstack](https://badges.gitter.im/fog/fog-openstack.svg)](https://gitter.im/fog/fog-openstack?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
4
4
|
|
@@ -95,7 +95,7 @@ p compute.images
|
|
95
95
|
# <Fog::Compute::OpenStack::Image
|
96
96
|
# id="57a67f8a-7bae-4578-b684-b9b4dcd48d7f",
|
97
97
|
# ...
|
98
|
-
# >
|
98
|
+
# >
|
99
99
|
# ]
|
100
100
|
# >
|
101
101
|
```
|
@@ -401,7 +401,7 @@ identity.domains
|
|
401
401
|
# description="",
|
402
402
|
# enabled=true,
|
403
403
|
# name="Default",
|
404
|
-
# >
|
404
|
+
# >
|
405
405
|
# ]
|
406
406
|
# >
|
407
407
|
```
|
data/Rakefile
CHANGED
@@ -4,27 +4,24 @@ require 'rake/testtask'
|
|
4
4
|
|
5
5
|
RuboCop::RakeTask.new
|
6
6
|
|
7
|
-
task :default => :
|
7
|
+
task :default => ['tests:unit', 'tests:spec']
|
8
8
|
|
9
|
-
|
10
|
-
task :test do
|
11
|
-
mock = ENV['FOG_MOCK'] || 'true'
|
12
|
-
sh("export FOG_MOCK=#{mock} && bundle exec rake tests:unit")
|
13
|
-
end
|
9
|
+
task :test => 'tests:unit'
|
14
10
|
|
15
|
-
desc 'Run fog-openstack spec/ tests (VCR)'
|
16
11
|
task :spec => "tests:spec"
|
17
12
|
|
18
13
|
namespace :tests do
|
19
|
-
desc
|
14
|
+
desc 'Run fog-openstack tests with Minitest'
|
20
15
|
Rake::TestTask.new do |t|
|
16
|
+
ENV['FOG_MOCK']= ENV['FOG_MOCK'].nil? ? 'true' : ENV['FOG_MOCK']
|
17
|
+
|
21
18
|
t.name = 'unit'
|
22
19
|
t.libs.push [ "lib", "test" ]
|
23
20
|
t.test_files = FileList['test/**/*.rb']
|
24
21
|
t.verbose = true
|
25
22
|
end
|
26
23
|
|
27
|
-
desc
|
24
|
+
desc 'Run fog-openstack tests with RSpec and VCR'
|
28
25
|
Rake::TestTask.new do |t|
|
29
26
|
t.name = 'spec'
|
30
27
|
t.libs.push [ "lib", "spec" ]
|
data/docs/planning.md
CHANGED
@@ -31,7 +31,7 @@ require 'fog/openstack'
|
|
31
31
|
Next, create a connection to Tuskar:
|
32
32
|
|
33
33
|
```ruby
|
34
|
-
service = Fog::
|
34
|
+
service = Fog::OpenStack.new({
|
35
35
|
:service => :planning, # OpenStack Fog service
|
36
36
|
:openstack_username => USERNAME, # Your OpenStack Username
|
37
37
|
:openstack_api_key => PASSWORD, # Your OpenStack Password
|
@@ -48,7 +48,7 @@ Fog provides both a **model** and **request** abstraction. The request abstracti
|
|
48
48
|
|
49
49
|
### Request Layer
|
50
50
|
|
51
|
-
The `Fog::
|
51
|
+
The `Fog::OpenStack[:planning]` object supports a number of methods that wrap individual HTTP requests to the Tuskar API.
|
52
52
|
|
53
53
|
To see a list of requests supported by the planning service:
|
54
54
|
|
@@ -170,7 +170,7 @@ This will return hash similar to:
|
|
170
170
|
```
|
171
171
|
|
172
172
|
[//]: # (TODO: Specify URL to rubydoc.info when OpenStack Planning service is part of release and pages are built)
|
173
|
-
To learn more about `Fog::
|
173
|
+
To learn more about `Fog::OpenStack[:planning]` request methods refer to [rdoc](http://rubydoc.info/gems/fog/Fog). To learn more about Excon refer to [Excon GitHub repo](https://github.com/geemus/excon).
|
174
174
|
|
175
175
|
### Model Layer
|
176
176
|
|
data/docs/storage.md
CHANGED
@@ -257,7 +257,7 @@ To upload a file into a directory:
|
|
257
257
|
file = directory.files.create :key => 'space.jpg', :body => File.open "space.jpg"
|
258
258
|
```
|
259
259
|
|
260
|
-
**Note**: For files larger than 5 GB please refer to the [Upload Large Files](#
|
260
|
+
**Note**: For files larger than 5 GB please refer to the [Upload Large Files](#upload-large-files) section.
|
261
261
|
|
262
262
|
### Additional Parameters
|
263
263
|
|
data/examples/planning/basics.rb
CHANGED
@@ -8,7 +8,7 @@ username = 'admin@example.net'
|
|
8
8
|
password = 'secret'
|
9
9
|
tenant = 'My Compute Tenant' # String
|
10
10
|
|
11
|
-
planning ||= ::Fog::
|
11
|
+
planning ||= ::Fog::OpenStack.new(
|
12
12
|
:service => :planning,
|
13
13
|
:openstack_api_key => password,
|
14
14
|
:openstack_username => username,
|
data/fog-openstack.gemspec
CHANGED
@@ -5,7 +5,7 @@ require 'fog/openstack/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "fog-openstack"
|
8
|
-
spec.version = Fog::
|
8
|
+
spec.version = Fog::OpenStack::VERSION
|
9
9
|
spec.authors = ["Matt Darby"]
|
10
10
|
spec.email = ["matt.darby@rackspace.com"]
|
11
11
|
|
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.required_ruby_version = '>= 2.
|
22
|
+
spec.required_ruby_version = '>= 2.2.0'
|
23
23
|
|
24
|
-
spec.add_dependency 'fog-core', '~> 1.
|
24
|
+
spec.add_dependency 'fog-core', '~> 1.45.0'
|
25
25
|
spec.add_dependency 'fog-json', '>= 1.0'
|
26
26
|
spec.add_dependency 'ipaddress', '>= 0.8'
|
27
27
|
|
@@ -9,7 +9,7 @@ module Fog
|
|
9
9
|
:path => "chassis/#{chassis_uuid}"
|
10
10
|
)
|
11
11
|
end
|
12
|
-
end
|
12
|
+
end
|
13
13
|
|
14
14
|
class Mock
|
15
15
|
def get_chassis(_chassis_uuid)
|
@@ -17,8 +17,8 @@ module Fog
|
|
17
17
|
response.status = [200, 204][rand(2)]
|
18
18
|
response.body = data[:chassis_collection].first
|
19
19
|
response
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -9,7 +9,7 @@ module Fog
|
|
9
9
|
:path => "drivers/#{driver_name}"
|
10
10
|
)
|
11
11
|
end
|
12
|
-
end
|
12
|
+
end
|
13
13
|
|
14
14
|
class Mock
|
15
15
|
def get_driver(_driver_name)
|
@@ -17,8 +17,8 @@ module Fog
|
|
17
17
|
response.status = [200, 204][rand(2)]
|
18
18
|
response.body = data[:drivers].first
|
19
19
|
response
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -11,7 +11,7 @@ module Fog
|
|
11
11
|
:path => "drivers/properties"
|
12
12
|
)
|
13
13
|
end
|
14
|
-
end
|
14
|
+
end
|
15
15
|
|
16
16
|
class Mock
|
17
17
|
def get_driver_properties(_driver_name)
|
@@ -33,8 +33,8 @@ module Fog
|
|
33
33
|
"ipmi_bridging" => "bridging_type."
|
34
34
|
}
|
35
35
|
response
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -9,7 +9,7 @@ module Fog
|
|
9
9
|
:path => "nodes/#{node_id}"
|
10
10
|
)
|
11
11
|
end
|
12
|
-
end
|
12
|
+
end
|
13
13
|
|
14
14
|
class Mock
|
15
15
|
def get_node(_node_id)
|
@@ -17,8 +17,8 @@ module Fog
|
|
17
17
|
response.status = [200, 204][rand(2)]
|
18
18
|
response.body = data[:nodes].first
|
19
19
|
response
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -9,7 +9,7 @@ module Fog
|
|
9
9
|
:path => "ports/#{port_id}"
|
10
10
|
)
|
11
11
|
end
|
12
|
-
end
|
12
|
+
end
|
13
13
|
|
14
14
|
class Mock
|
15
15
|
def get_port(_port_id)
|
@@ -17,8 +17,8 @@ module Fog
|
|
17
17
|
response.status = [200, 204][rand(2)]
|
18
18
|
response.body = data[:ports].first
|
19
19
|
response
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:query => options
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def list_chassis(_parameters = nil)
|
@@ -35,8 +35,8 @@ module Fog
|
|
35
35
|
]
|
36
36
|
}
|
37
37
|
response
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:query => options
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def list_chassis_detailed(_options = {})
|
@@ -18,8 +18,8 @@ module Fog
|
|
18
18
|
response.status = [200, 204][rand(2)]
|
19
19
|
response.body = {"chassis" => data[:chassis_collection]}
|
20
20
|
response
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:query => options
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def list_drivers(_options = {})
|
@@ -18,8 +18,8 @@ module Fog
|
|
18
18
|
response.status = [200, 204][rand(2)]
|
19
19
|
response.body = {"drivers" => data[:drivers]}
|
20
20
|
response
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:query => options
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def list_nodes(_options = {})
|
@@ -27,8 +27,8 @@ module Fog
|
|
27
27
|
}]
|
28
28
|
}
|
29
29
|
response
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|