openstack: fix project-scoped with project name#1367
Conversation
c2d5f7a to
c8ad9f5
Compare
The project-scoped with project name should include
project domain id instead user domain name in scope
section according to current openstack API, example:
{
"auth": {
"identity": {
"methods": [
"password"
],
"password": {
"user": {
"id": "ee4dfb6e5540447cb3741905149d9b6e",
"password": "devstacker"
}
}
},
"scope": {
"project": {
"domain": {
"id": "default"
},
"name": "admin"
}
}
}
}
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
c8ad9f5 to
0104418
Compare
Codecov Report
@@ Coverage Diff @@
## trunk #1367 +/- ##
==========================================
+ Coverage 86.34% 86.34% +<.01%
==========================================
Files 372 372
Lines 76156 76161 +5
Branches 6971 6972 +1
==========================================
+ Hits 65755 65761 +6
+ Misses 7605 7604 -1
Partials 2796 2796
Continue to review full report at Codecov.
|
|
Thanks for the contribution. This looks reasonable. Should we fall back to including name in the request if id is not specified (aka for backward compatibility reasons or similar)? |
Which name? The project name is left, this patch is fixing a mistake where user "domain name" was used in place of project "domain name", I don't believe this code ever worked. Btw, using both project domain name and project domain id at a same time does not work for me. You can use either 'project domain name' or 'project domain id' in project's scope. |
|
Hm, small correction, one can use both project domain name and project domain id at a time, or any of them according to and later Nevertheless there is no |
|
@Kami could you please advise what should I do next to proceed with PR? |
|
@kshtsk Thanks for the clarification. I will look at it (and try to test it) and if everything looks OK, merge it into trunk. |
|
Merged into trunk. Thanks for the contribution 👍 |
|
@Kami could we get a new release on pypi with this fix soon, please? that would make our life easier :) |
|
@toabctl There is no currently no ETA for the next release yet (might take some time since there are some other larger changes in trunk and some other larger changes still need to land), but in the mean time you can use version from git "git+https://github.com/apache/libcloud.git@trunk@egg=apache-libcloud". |
Suggesting using latest version of apache-libcloud that includes the openstack driver issue fix (apache/libcloud#1367 is fixing issue apache/libcloud#1365) Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
The newest version of libcloud includes the fix necessary to work correctly with OpenStack (specifically apache/libcloud#1367)
Suggesting using 2.0.7 version of apache-libcloud that introduced a fix on openstack driver. (apache/libcloud#1367 is fixing issue apache/libcloud#1365) Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
Suggesting using 2.0.7 version of apache-libcloud that introduced a fix on openstack driver. (apache/libcloud#1367 is fixing issue apache/libcloud#1365) Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
Suggesting using 2.7.0 version of apache-libcloud that introduced a fix on openstack driver. (apache/libcloud#1367 is fixing issue apache/libcloud#1365) Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
Suggesting using 2.7.0 version of apache-libcloud that introduced a fix on openstack driver. (apache/libcloud#1367 is fixing issue apache/libcloud#1365) Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
Suggesting using 2.7.0 version of apache-libcloud that introduced a fix on openstack driver. (apache/libcloud#1367 is fixing issue apache/libcloud#1365) Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
Suggesting using 2.8.0 version of apache-libcloud that introduces a fix on openstack driver. (apache/libcloud#1367 is fixing issue apache/libcloud#1365) Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
Fix openstack project-scoped with project name token authentication
Description
The project-scoped with project name should include
project domain id instead user domain name in scope
section according to current openstack API, example:
Status
work in progress
Checklist (tick everything that applies)