Skip to content

(MODULES-6356) Fixes a problem still remaining from MODULES-2904 #259

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

Merged
merged 2 commits into from
Jan 5, 2018

Conversation

kreeuwijk
Copy link
Contributor

As described in MODULES-2904, installation fails with an array of SQL Admins. This was fixed in the use_discrete=true block (line 171-178. However the double quotes also needed to be removed from the list of accounts for the /SQLSYSADMINACCOUNTS switch parameter.
This PR removes the double quotes in the use_discrete=true section (which is only used for /SQLSYSADMINACCOUNTS). I have tested this to sucessfully fix installation for the following scenario's:

  • SQL 2016 on Win2016 with 1 local group specified for SQLSYSADMINACCOUNTS
  • SQL 2016 on Win2016 with 1 domain group specified for SQLSYSADMINACCOUNTS
  • SQL 2016 on Win2016 with 3 groups (1 local, 1 domain and BUILTIN\Administrators) specified for SQLSYSADMINACCOUNTS

Without the fix, the only setting that works is /SQLSYSADMINACCOUNTS="BUILTIN\Administrators", all other settings (both local and domain accounts/groups) will fail.

@glennsarti
Copy link
Contributor

Hi @kreeuwijk. Thanks for the PR. Did you happen to try on an SQL edition other than 2016 ?

@kreeuwijk
Copy link
Contributor Author

I have not, but I can easily test this on other SQL versions for you. I'll do some tests today.

@kreeuwijk
Copy link
Contributor Author

Tested the following versions, all successfully:

@glennsarti
Copy link
Contributor

Thanks @kreeuwijk . I've repro'd that issue too :-(

Looks like we need to modify the spec tests as well. Should probably add an acceptance test as this should've been caught when MODULES-2904 was closed.

glennsarti and others added 2 commits January 3, 2018 13:56
Previously the acceptance test suite had been modified to use test tiering and
test mode switcher.  However the spec acceptance helper method still expected
a master to be present.  This commit modifies the helper to only execute master
provisioning steps if there is indeed a master specified in the hosts array.
As described in MODULES-2904, installation fails with an array of SQL Admins.
This was fixed in the use_discrete=true block (line 171-178. However the double
quotes also needed to be removed from the list of accounts for the
/SQLSYSADMINACCOUNTS switch parameter.  This appears to be due to the arguments
being interpretted literally, including the double quotes when doing account
lookups.  Without the fix, the only setting that works is
/SQLSYSADMINACCOUNTS="BUILTIN\Administrators", all other settings (both local
and domain accounts/groups) will fail, particularly those with whitespace.
@glennsarti
Copy link
Contributor

glennsarti commented Jan 3, 2018

Updated the acceptance and unit tests for the change. Running through adhoc.

CI is jammed up at the moment. Can't run through adhoc. Ran locally on my beaker testing ok.

@glennsarti glennsarti changed the title Fixes a problem still remaining from MODULES-2904 (MODULES-6356) Fixes a problem still remaining from MODULES-2904 Jan 3, 2018
@glennsarti
Copy link
Contributor

@kreeuwijk In future can you please raise a MODULES ticket and perform the work on your personal fork rather than this repo.

@kreeuwijk
Copy link
Contributor Author

Ah ok, sorry that's due to my unfamiliarity with how this process works.

@glennsarti
Copy link
Contributor

@glennsarti
Copy link
Contributor

@ThoughtCrhyme You wanna hit the merge button for me...

@ThoughtCrhyme ThoughtCrhyme merged commit 5d7c5f8 into master Jan 5, 2018
@glennsarti glennsarti deleted the kreeuwijk-patch-1 branch February 21, 2018 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants