-
Notifications
You must be signed in to change notification settings - Fork 560
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: grenzr If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This /lgtm @CecileRobertMichon could you take a pass as well? |
@@ -356,6 +356,7 @@ MASTER_ARTIFACTS_CONFIG_PLACEHOLDER | |||
sed -i "s|<searchDomainName>|{{WrapAsParameter "searchDomainName"}}|g" "/opt/azure/containers/setup-custom-search-domains.sh" | |||
sed -i "s|<searchDomainRealmUser>|{{WrapAsParameter "searchDomainRealmUser"}}|g" "/opt/azure/containers/setup-custom-search-domains.sh" | |||
sed -i "s|<searchDomainRealmPassword>|{{WrapAsParameter "searchDomainRealmPassword"}}|g" "/opt/azure/containers/setup-custom-search-domains.sh" | |||
sed -i "s|<searchDomainComputerOU>|{{WrapAsParameter "searchDomainComputerOU"}}|g" "/opt/azure/containers/setup-custom-search-domains.sh" |
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.
you will need to add this line to https://github.com/Azure/acs-engine/blob/fix-multiple-agentpools/parts/k8s/kubernetesmastercustomdatavmss.yml#L384 as well
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.
ok thanks, will do - however my issue is that the sed substitutions do not occur during bootstrap of each machine.
see comment in #3737 for further info:
#3737 (comment)
I'm not sure the kubelet service (which I believe is supposed to trigger this script) is working properly. Any idea why that might be?
Codecov Report
@@ Coverage Diff @@
## master #3911 +/- ##
==========================================
- Coverage 57.53% 57.52% -0.02%
==========================================
Files 108 108
Lines 16747 16750 +3
==========================================
Hits 9635 9635
- Misses 6341 6344 +3
Partials 771 771 |
5b6cc8b
to
b168e6b
Compare
freshly rebased and added searchDomainComputerOU as requested. Just need some support on why the sed substitution script (supposedly triggered by kubelet.service) doesn't occur during machine bootstrap if possible please? |
@grenzr what does the shell script look like after kubelet starts? Specifically the value of (speaking to your statement that the sed replacement isn't working) |
@jackfrancis sorry for delay - haven't forgotten about this, had some other pressing things to deal with last week. Will get you the logs asap. |
@jackfrancis soo... I just rebased this branch locally with v0.22.4 and built a new acs-engine binary and tested a deployment with it (including my changes above). It failed again with exit code 80 on the CSE. The contents of
ie. none of the substitute occurred at all.
So when kubelet starts its supposed to call this first:
However, the custom-search-domains.sh is called, but fails (as expected) with :
Isn't the kubelet service supposed to be enabled or if not, when is it? If not at boot then it looks like its happening too late for the custom search domain script. |
heh... it can't start on boot if the service isn't installed yet, eh? :) Yeah looks like ensureKubelet is called too late as it happens well after attempts to run |
In testing this functionality, I found the following: - apt-get update was needed before attempting to install packages - better escaping on variables (esp. realm password with symbols) - addition of --computer-ou switch for realm command
Also don't apply escaping to sdComputerOU, but leave it there for username and password which are more likely to need it
b168e6b
to
133aaaf
Compare
freshly rebased from master, and have now provided a PoC solution in the latest commit, which appears to bring up a working cluster now. |
@grenzr let's undo the last commit, that's not the way we want to move this forward (it has wide ranging consequences) Question: is the new computerOU configuration optional? Or a new requirement for this functionality? |
@jackfrancis sure, I'll remove it shortly. Was only there temporarily for demo. Do you have any thoughts on a better alternative? Yes, the computerOU I believe is optional currently, as I wanted to maintain backwards compatibility with the existing implementation (although I'm not sure it was working properly to begin with?) This piece only adds the option to the realm command if its non-empty:
and the defaultValue for it is an empty string in Anything else I've missed? I haven't run any ginkgo tests across it locally yet. |
133aaaf
to
0414cce
Compare
PoC commit removed |
@grenzr thank you for your contribution! We've relocated to https://github.com/Azure/aks-engine/. What is the status of this PR? I am closing this one as we are no longer accepting PRs for acs-engine but love to see this go through in aks-engine. Please let me know if you are willing to reopen the PR at https://github.com/Azure/aks-engine/pulls. Thanks! |
What this PR does / why we need it:
As noted in #3737, I was unable to get this feature working out of the box without:
apt-get update
before custom search domain packages are installedWhich issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #fixes #3737
Special notes for your reviewer:
If applicable:
Release note: