1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

28 commits

Author SHA1 Message Date
Erik Michaels-Ober
f2bd2404d1 Revert "Updated gem spec to require json rather than multi_json"
This reverts commits: 66638b25d7,
3f0314dbd1, and
18ce4b7eca.

Since google-api-client was added as a dependency in afa9b025e9,
multi_json is a de facto dependency of fog, so this is a needless layer.
If #1034 is still an issue, I'd be happy to ship a version of multi_json
that requires rubygems >= 1.3.5.
2013-05-06 04:05:36 -07:00
Dan Prince
07c4d64195 Merge pull request #1693 from amerine/remove_openstack_cache_busting
Remove the OpenStack API cache busting.
2013-05-03 07:11:45 -07:00
Sergio Rubio
4fb0522361 Merge pull request #1699 from frodenas/openstack_get_version
[openstack] Retrieve supported API version for Image & Network services
2013-04-10 03:51:45 -07:00
Kyle Rames
66638b25d7 Updated gem spec to require json rather than multi_json; Fog::JSON will attempt to load and use multi_json first and then fallback to require json; removed hard coded references to multi_json 2013-04-03 08:42:45 -05:00
Ferran Rodenas
f1d5d70c9a [openstack] Retrieve supported API version for Image & Network services 2013-03-26 16:25:04 +01:00
Mark Turner
ed70672110 Remove the OpenStack API cache busting.
Not sure why this was ever here, and I cannot find a reason to continuously bust
the Nova request caching in the wsgi request handler. It does not help
performance, and makes attempts at ANY caching of responses to a Fog request
annoying.
2013-03-23 22:54:58 -07:00
Ferran Rodenas
b52d8912f9 [openstack|image] Check for glance version (fog only supports v1) 2013-03-05 13:16:38 +01:00
Joe Topjian
9b7be36feb Added multi-region support for OpenStack Image service 2012-12-21 12:54:53 -07:00
Sergio Rubio
8049ee0d0f [openstack|image] Configurable :openstack_endpoint_type
:openstack_endpoint_type is missing as a recognized parameter. This
patch fixes that, and allows the :openstack_endpoint_type to be
configurable instead of hardcoding the value to 'adminURL'

That is, you can create the connection to the service as follows now:

require 'fog'
conn = Fog::Image.new({
  :provider => 'OpenStack',
  :openstack_api_key => ENV['OS_PASSWORD'],
  :openstack_username => ENV["OS_USERNAME"],
  :openstack_auth_url => ENV["OS_AUTH_URL"]
  :openstack_tenant => ENV["OS_TENANT_NAME"],
  :openstack_endpoint_type => 'publicURL', #publicURL, adminURL, internalURL
})

Defaults to adminURL to maintain backwards compatibility.
2012-12-21 18:27:56 +01:00
Dan Prince
ba26129001 OpenStack auth updates to select by service name.
This patch updates the OpenStack auth implementation so that
it supports selecting API service by both 'name' and 'type'.

Previously the implementation was confusing because it
used a config param called :openstack_service_name to
select the service 'type' from the catalog. This patch
swaps it so that :openstack_service_name actually selects
by 'name'.

The previous logic to select service by type ('compute' for example)
has been preserved in a new :openstack_service_type parameter.
This option is used just as it was before for backwards compatability.

This change is potentially breaking for anyone previously using
:openstack_service_name (which I don't think is that common but is
possible). As such we should probably make a release note saying
that previous users of :openstack_service_name should migrate to
use :openstack_service_type instead.
2012-12-10 07:55:54 -05:00
Philip Mark M. Deazeta
a9fb65985c [openstack] Make use of the unscoped token for reauthentication 2012-11-26 17:23:13 +08:00
Nelvin Driz
0035231954 [openstack] Fix Failing Shindo Tests
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-10-02 14:09:02 +08:00
Nelvin Driz
7c72e5394f [openstack] Authentication Mocks
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-09-28 14:41:59 +08:00
Alvin Garcia
155b0c9157 [openstack|image] Added update_members function 2012-09-28 14:32:37 +08:00
James Herdman
97b16d08d2 Remove absolute path when requiring 2012-05-26 11:27:28 -04:00
Nelvin Driz
7b46964770 [openstack] Make current_user and current_token accessible to services
- This is for users with no permission to access keystone admin API

Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:03 +08:00
Alvin Garcia
1129de27c9 [openstack|image] Added set_tenant 2012-04-30 10:35:02 +08:00
Nelvin Driz
9a0a5f2da2 [openstack|image] Update Image Service Authentication Options
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:01 +08:00
Nelvin Driz
92523f763a [openstack] Update mocks for login and identity request #get_user_by_id
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:01 +08:00
Nelvin Driz
ae66ab45d7 [openstack] Update Authentication through X-Auth-Token 2012-04-30 10:35:01 +08:00
Nelvin Driz
a76c244eba [openstack] Wrong instance variables accessed for #credentials 2012-04-30 10:35:00 +08:00
Nelvin Driz
9bfdf11dcf [openstack|identity] Fix Identity Authentication Conditions on Endpoint
Detection
2012-04-30 10:35:00 +08:00
Nelvin Driz
4910768827 [openstack] Add Export of Credentials 2012-04-30 10:35:00 +08:00
Nelvin Driz
c643bd8e03 [openstack] Update Reinitialization Process of Existing Auth Token 2012-04-30 10:35:00 +08:00
Philip Mark Deazeta
df3c374e33 [openstack] Modify authentication process 2012-04-30 10:35:00 +08:00
Philip Mark Deazeta
74fe4885c9 [openstack|image] Added image module, model and request 2012-04-30 10:34:59 +08:00
Philip Mark Deazeta
8e5ac8d9ed [openstack|image] Added test for models and request 2012-04-30 10:34:59 +08:00
Philip Mark Deazeta
c122d622c0 [openstack|image] Added image service, model and request 2012-04-30 10:34:59 +08:00