-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes major bug which makes jclouds discovery unusable. #6651
Fixes major bug which makes jclouds discovery unusable. #6651
Conversation
} | ||
location = location.getParent(); | ||
} | ||
return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if location itself or any of its parents in the graph is not in REGION
scope, it returns true. That means to me node is not inside that region
but method name is isNodeInsideRegions
.
It feels strange...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it might be feel strange, but a Node
in jclouds always has REGION
scope, because you cannot define a ComputeResource
without binding it to a region or zone. So your case will never happen.
c9a704e
to
8ca3493
Compare
Properties jcloudsProperties = newOverrideProperties(); | ||
if (regions != null) { | ||
List<String> regionList = Arrays.asList(regions.split(",")); | ||
for (String region : regionList) { | ||
regionsSet.add(region); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so now we are supporting multi regions and zones. (with comma separated) right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct.
8ca3493
to
6b3656d
Compare
Thanks for your comments. Will merge if no more comments are present today. |
verify |
3 similar comments
verify |
verify |
verify |
zone and regions filtering current jclouds implementation discovery is broken. Also added more logs and unit tests, configuration for live testing is coming after this pr is merged.
6b3656d
to
4dc3110
Compare
Fixes major bug which makes jclouds discovery unusable.
Due to a bug in zone and regions filtering current jclouds implementation discovery is
broken in 3.6-EA. Also added more logs and unit tests, configuration for live
testing is coming after this pr is merged.