-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CLOUDSTACK-10239 default provider if needed #2430
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
Conversation
|
@DaanHoogland does this PR solve the issue (blocker-ish) shared on users@ towards 4.11 RC1? |
yadvr
left a comment
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.
Left some remarks, if the changes to the API mandatory parameters is acceptable, then LGTM.
| private String type; | ||
|
|
||
| @Parameter(name = ApiConstants.LDAP_DOMAIN, type = CommandType.STRING, required = true, description = "name of the group or OU in LDAP") | ||
| @Parameter(name = ApiConstants.LDAP_DOMAIN, type = CommandType.STRING, required = false, description = "name of the group or OU in LDAP") |
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.
Was this a regression that was added due to LDAP related enhancements, or could this cause issue if the field is made non-mandatory?
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.
the validation of the field is done deeper in the stack. A check is done to see if either ldapdomain or name is filled.
|
|
||
| @Deprecated | ||
| @Parameter(name = ApiConstants.NAME, type = CommandType.STRING, required = true, description = "name of the group or OU in LDAP") | ||
| @Parameter(name = ApiConstants.NAME, type = CommandType.STRING, required = false, description = "name of the group or OU in LDAP") |
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.
Same as previous comment ^^
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.
see above
| final String factory = _ldapConfiguration.getFactory(); | ||
| final String url = providerUrl == null ? _ldapConfiguration.getProviderUrl(domainId) : providerUrl; | ||
| String url = providerUrl == null ? _ldapConfiguration.getProviderUrl(domainId) : providerUrl; | ||
| if (StringUtils.isEmpty(url) && domainId != null) { |
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.
Can we do a Strings.isNullOrEmpty() instead?
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.
we can but getProviderUrl(domainId) returns "" at least
|
@rhtyd it does, |
|
as it is a backwards compatibility issue, i am marking this as a blocker. happy to discuss though. |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1681 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2193)
|
borisstoyanov
left a comment
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.
I've seen these same failures in the recent PRs and rerun them with a marvin box and they passed, tests LGTM.
|
Test LGTM, most of the the failures were caused by a fake public IP range added by test_public_ip_range.py that failed download urls for iso/volume/template. |
- CLOUDSTACK-10239: Fallback to default provider if needed (apache#2430) - CLOUDSTACK-10255: Fix agent logrotate (apache#2429)
No description provided.