-
Notifications
You must be signed in to change notification settings - Fork 558
Conversation
@yakman2020, |
@acs-bot test this please |
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.
Thanks @yakman2020! This generally looks good. Have a few change requests. My main question is whether this functionality should be in vlabs
(not yet the supported by the ACS managed service).
Makefile
Outdated
@@ -57,6 +57,8 @@ checksum: | |||
.PHONY: clean | |||
clean: | |||
@rm -rf $(BINDIR) ./_dist | |||
go build -v -gcflags="-N -l" -ldflags="-X github.com/Azure/acs-engine/cmd.BuildSHA=${VERSION} -X github.com/Azure/acs-engine/cmd.BuildTime=${BUILD}" | |||
cd test/acs-engine-test; go build -v |
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.
make clean
should only do that—this logic is already handled in make build
.
@@ -0,0 +1,240 @@ | |||
{ | |||
"apiVersion": "[variables('apiVersionDefault')]", |
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.
This file is an artifact from a merge conflict, you can delete it.
@@ -0,0 +1,204 @@ | |||
{ | |||
"apiVersion": "[variables('apiVersionDefault')]", |
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 can delete this file too.
parts/dcoscustomdata190.t
Outdated
@@ -1,6 +1,5 @@ | |||
bootcmd: | |||
- bash -c "if [ ! -f /var/lib/sdb-gpt ];then echo DCOS-5890;parted -s /dev/sdb mklabel | |||
gpt;touch /var/lib/sdb-gpt;fi" | |||
- bash -c "if [ ! -f /var/lib/sdb-gpt ];then echo DCOS-5890;parted -s /dev/sdb mklabel gpt;touch /var/lib/sdb-gpt;fi" |
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.
This is a little harder to grok than the two line version.
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.
done as requested.
pkg/acsengine/templates.go
Outdated
@@ -0,0 +1,1707 @@ | |||
// Code generated by go-bindata. |
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 might be working off of an old branch as pkg/acsengine/templates.go
is not checked into source control. Please delete it.
pkg/api/apiloader.go
Outdated
@@ -9,6 +9,7 @@ import ( | |||
"github.com/Azure/acs-engine/pkg/api/v20160930" | |||
"github.com/Azure/acs-engine/pkg/api/v20170131" | |||
"github.com/Azure/acs-engine/pkg/api/v20170701" | |||
"github.com/Azure/acs-engine/pkg/api/v20170801" |
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.
@anhowe Should DCOS Windows support be in vlabs only for now?
Can one of the admins verify this patch? Say "@acs-bot test this please" to start tests. |
bc4f900
to
5db9e86
Compare
@acs-bot test this please |
d922c64
to
48f1183
Compare
@acs-bot test this please |
48f1183
to
0f1c833
Compare
@acs-bot test this please |
@yakman2020, |
@acs-bot test this please |
@dmitsh believe you're on the docket to help @yakman2020 on this one...CI doesn't seem to be running for this branch, or at least the bot isn't kicking off jobs. |
@@ -0,0 +1 @@ | |||
export EXPECTED_NODE_COUNT=2 |
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.
Why do you need this?
By default we calculate the node count by parsing api model file.
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.
removed the file.
pkg/acsengine/engine.go
Outdated
attributeContents := getDCOSAgentCustomNodeLabels(profile) | ||
log.Info("GetDCOSAgentCustomData2\n"); |
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.
not very descriptive log message
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.
removed the log message
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.
Thanks for addressing. Please rebase off of master—we just merged in CircleCI support. Rebasing will kick off a job in CI (which you'll be able to see).
@yakman2020, |
57506b1
to
c9776eb
Compare
parts/dcosmastervars.t
Outdated
@@ -36,8 +46,15 @@ | |||
"masterNSGName": "[concat(variables('orchestratorName'), '-master-nsg-', variables('nameSuffix'))]", | |||
"masterPublicIPAddressName": "[concat(variables('orchestratorName'), '-master-ip-', variables('masterEndpointDNSNamePrefix'), '-', variables('nameSuffix'))]", | |||
"apiVersionStorage": "2015-06-15", | |||
"storageAccountBaseName": "[uniqueString(concat(variables('masterEndpointDNSNamePrefix'),variables('location'),variables('orchestratorName')))]", | |||
"masterStorageAccountExhibitorName": "[concat(variables('storageAccountBaseName'), 'exhb0')]", | |||
{{if .HasWindows}} |
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.
These additional windows-specific vars should go inside the existing {{if .HasWindows}}
block above. (see line 26)
parts/dcosagentvars.t
Outdated
"{{.Name}}WindowsRDPEndRangeStop": "[add(variables('{{.Name}}WindowsRDPNatRangeStart'), add(variables('{{.Name}}Count'),variables('{{.Name}}Count')))]", | ||
{{end}} | ||
"{{.Name}}windowsAgentCustomScriptArguments": "[concat('$arguments = ', variables('singleQuote'),'-subnet ', variables('{{.Name}}Subnet'), ' -MasterCount ', variables('masterCount'), ' -firstMasterIP ', parameters('firstConsecutiveStaticIP'), ' -bootstrapUri ', '\"', variables('dcosWindowsBootstrapURL'), '\"', ' -isAgent $true -isPublic:$true', variables('singleQuote'),' ; ')]", |
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.
Shouldn't this be a windows-only change? (i.e., inside the {{if .IsWindows}}
branch)?
parts/dcosagentvars.t
Outdated
"{{.Name}}windowsAgentCustomScriptArguments": "[concat('$arguments = ', variables('singleQuote'),'-subnet ', variables('{{.Name}}Subnet'), ' -MasterCount ', variables('masterCount'), ' -firstMasterIP ', parameters('firstConsecutiveStaticIP'), ' -bootstrapUri ', '\"', variables('dcosWindowsBootstrapURL'), '\"', ' -isAgent $true -isPublic:$true', variables('singleQuote'),' ; ')]", | ||
{{else}} | ||
"{{.Name}}windowsAgentCustomScriptArguments": "[concat('$arguments = ', variables('singleQuote'),'-subnet ', variables('{{.Name}}Subnet'), ' -MasterCount ', variables('masterCount'), ' -firstMasterIP ', parameters('firstConsecutiveStaticIP'), ' -bootstrapUri ', '\"', variables('dcosWindowsBootstrapURL'), '\"', ' -isAgent $true', variables('singleQuote'),' ; ')]", |
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.
ditto
parts/dcosagentvars.t
Outdated
"{{.Name}}windowsAgentCustomScriptArguments": "[concat('$arguments = ', variables('singleQuote'),'-subnet ', variables('{{.Name}}Subnet'), ' -MasterCount ', variables('masterCount'), ' -firstMasterIP ', parameters('firstConsecutiveStaticIP'), ' -bootstrapUri ', '\"', variables('dcosWindowsBootstrapURL'), '\"', ' -isAgent $true', variables('singleQuote'),' ; ')]", | ||
{{end}} | ||
"{{.Name}}windowsAgentCustomScript": "[concat('powershell.exe -ExecutionPolicy Unrestricted -command \"', variables('{{.Name}}windowsAgentCustomScriptArguments'), variables('windowsCustomScriptSuffix'), '\" > %SYSTEMDRIVE%\\AzureData\\dcosWindowsProvision.log 2>&1')]", |
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.
ditto
c9776eb
to
909916e
Compare
Jack's requested changes added |
Thanks for hanging with us, LGTM! |
What this PR does / why we need it: Support for windows agents for DCOS
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #1078Special notes for your reviewer: Most changes in the form of new files.
Release note:
This change is