-
Notifications
You must be signed in to change notification settings - Fork 180
Conversation
This change would be merged after below is completed. Adding Support in Gopherhead Library:[wip] rackspace/gophercloud#580
This looks like an Identity Extension and, as such, should go under |
Hi @jrperritt : It is an Identity v3 feature which is a part of that version which was not present in v2, so i think i could not be treated as extenstion but a v3 api feature itself ? Please correct me if i am wrong. |
AFAICT, it is a feature that is not standard on all OpenStack clouds, which is why it should go in See here: http://developer.openstack.org/api-ref-identity-v3-ext.html#identity_v3_OS-TRUST-ext |
@jrperritt : Ohh i think there is some misunderstanding, the patch includes how to USE Trust Id when it is entered through Auth Options not to generate Trust Id. User needs to supply Trust id which is generated through above API, when entering credentials so that it could be used as a token. |
@jrperritt : Please review. |
There seems to be; as I said, this is an extension. You've implemented this directly in the
It is an extension; it doesn't belong in |
I have written usage tests in: http://paste.openstack.org/show/521847/ ; Please check. |
Hi, @jrperritt. One question. |
Issue
Solution
ToAuthOptionsV3Map() (map[string]interface{}, error)
func (ao AuthOptions) ToAuthOptionsV3Map() (map[string]interface{}, error) {
// current tokensv3.Create logic should go here
}
type AuthOptionsExt struct {
gophercloud.AuthOptionsV3er
TrustID string
}
func (ao AuthOptionsExt) ToAuthOptionsV3Map() (map[string]interface{}, error) {
m, err := ao.AuthOptionsV3er.ToAuthOptionsV3Map()
//error handling
// add logic for adding TrustID to m
return m, nil
}
|
@codevulture will you continue this one? we're looking forward to get this in, let me know if we can help. |
For anyone interested, I'll be adding support for this to |
@jrperritt sounds great, looking fwd! |
@jrperritt , @rochaporto : Thanks, any help would be appreciated. I have made this patch as per the requirements according to the comments. Hope this patch could be used. |
@jrperritt : I saw gophercloud/gophercloud@0bc5578 , Is this commit not of use now ? |
It would be a mistake to think that the amount of time that has elapsed has any bearing on the suitability of this PR to get merged. What does have bearing is style and correctness, and in those aspects this PR does look satisfactory now. |
Hi @jrperritt Can i get your contact details Irc / email-id? I had some questions that i wanted to ask..Thanks. |
@codevulture Sure. Just to be clear:
|
@jrperritt : Thanks for the information.
I have gone through #592 and wanted to ask that should the new repo(gophercloud/gophercloud) be imported now instead of(rackspace/gophercloud) in projects like: |
No
You may use this repo or the new repo at any time, separately or in conjunction. Currently, the new repo has no plans for a release schedule. As it says in the README: if you want to use it, vendor it and write integration tests for the parts that you use (Note: kubernetes already does this: https://github.com/kubernetes/kubernetes/tree/master/vendor/github.com/rackspace/gophercloud). |
@jrperritt : Yes Kubernetes uses rackspace/gophercloud repo for now, So the features and modifications you added in new gophercloud/gophercloud related to trust, should i add those in this repo also as those are related to trust and might be also be needed here, What is your opinion? |
The PR you made for authentication via Trust ID was merged in this repo, because it was submitted prior to declaring the feature-freeze. This repo is now closed to new features. |
@jrperritt : Ohkay, that's why i had a doubt that would the repos in kubernetes or other projects that uses this repo have a plan to use gophercloud/gophercloud in future. But that said i guess only patches that resolve bugs are entertained now or we have to use new repo and make changes in kubernetes or other projects to update it's vendor deps as applicable. |
This change would be merged after below is completed. Added Support in Gopherhead Library:rackspace/gophercloud#580
Adding Keystone Trust