Skip to content

Commit e64b446

Browse files
committed
Merge branch 'master' into migration
2 parents 87c56c3 + 253dd41 commit e64b446

10 files changed

+45
-32
lines changed

examples/dcos-versions/dcos1.7.3.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"apiVersion": "vlabs",
33
"properties": {
44
"orchestratorProfile": {
5-
"orchestratorType": "DCOS173"
5+
"orchestratorType": "DCOS",
6+
"orchestratorVersion": "1.7.3"
67
},
78
"masterProfile": {
89
"count": 1,

examples/dcos-versions/dcos1.8.4.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"apiVersion": "vlabs",
33
"properties": {
44
"orchestratorProfile": {
5-
"orchestratorType": "DCOS184"
5+
"orchestratorType": "DCOS",
6+
"orchestratorVersion": "1.8.4"
67
},
78
"masterProfile": {
89
"count": 3,

examples/dcos-versions/dcos1.8.8.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"apiVersion": "vlabs",
33
"properties": {
44
"orchestratorProfile": {
5-
"orchestratorType": "DCOS188"
5+
"orchestratorType": "DCOS",
6+
"orchestratorVersion": "1.8.8"
67
},
78
"masterProfile": {
89
"count": 3,

examples/dcos-versions/dcos1.9.0.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"apiVersion": "vlabs",
33
"properties": {
44
"orchestratorProfile": {
5-
"orchestratorType": "DCOS190"
5+
"orchestratorType": "DCOS",
6+
"orchestratorVersion": "1.9.0"
67
},
78
"masterProfile": {
89
"count": 3,

examples/scale-up/kubernetes_template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -881,9 +881,9 @@
881881
"type": "string"
882882
},
883883
"targetEnvironment": {
884-
"defaultValue": "AzureCloud",
884+
"defaultValue": "AzurePublicCloud",
885885
"metadata": {
886-
"description": "The azure deploy environment. Currently support: AzureCloud, AzureChinaCloud"
886+
"description": "The azure deploy environment. Currently support: AzurePublicCloud, AzureChinaCloud"
887887
},
888888
"type": "string"
889889
}

examples/scale-up/kubernetes_update_template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -881,9 +881,9 @@
881881
"type": "string"
882882
},
883883
"targetEnvironment": {
884-
"defaultValue": "AzureCloud",
884+
"defaultValue": "AzurePublicCloud",
885885
"metadata": {
886-
"description": "The azure deploy environment. Currently support: AzureCloud, AzureChinaCloud"
886+
"description": "The azure deploy environment. Currently support: AzurePublicCloud, AzureChinaCloud"
887887
},
888888
"type": "string"
889889
}

parts/configure-swarm-cluster.sh

+14-19
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,6 @@ echo "AZUREUSER: $AZUREUSER"
3636

3737
ensureAzureNetwork()
3838
{
39-
# ensure the host name is resolvable
40-
hostResolveHealthy=1
41-
for i in {1..120}; do
42-
host $VMNAME
43-
if [ $? -eq 0 ]
44-
then
45-
# hostname has been found continue
46-
hostResolveHealthy=0
47-
echo "the host name resolves"
48-
break
49-
fi
50-
sleep 1
51-
done
52-
if [ $hostResolveHealthy -ne 0 ]
53-
then
54-
echo "host name does not resolve, aborting install"
55-
exit 1
56-
fi
57-
5839
# ensure the network works
5940
networkHealthy=1
6041
for i in {1..12}; do
@@ -88,6 +69,20 @@ ensureAzureNetwork()
8869
fi
8970
sleep 1
9071
done
72+
# attempt to fix hostname, in case dns is not resolving Azure IPs (but can resolve public ips)
73+
if [ $networkHealthy -ne 0 ]
74+
then
75+
HOSTNAME=`hostname`
76+
HOSTADDR=`ip address show dev eth0 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*'`
77+
echo $HOSTADDR $HOSTNAME >> /etc/hosts
78+
hostname -i
79+
if [ $? -eq 0 ]
80+
then
81+
# hostname has been found continue
82+
networkHealthy=0
83+
echo "the network is healthy by updating /etc/hosts"
84+
fi
85+
fi
9186
if [ $networkHealthy -ne 0 ]
9287
then
9388
echo "the network is not healthy, cannot resolve ip address, aborting install"

parts/configure-swarmmode-cluster.sh

+14
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,20 @@ ensureAzureNetwork()
7878
fi
7979
sleep 1
8080
done
81+
# attempt to fix hostname, in case dns is not resolving Azure IPs (but can resolve public ips)
82+
if [ $networkHealthy -ne 0 ]
83+
then
84+
HOSTNAME=`hostname`
85+
HOSTADDR=`ip address show dev eth0 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*'`
86+
echo $HOSTADDR $HOSTNAME >> /etc/hosts
87+
hostname -i
88+
if [ $? -eq 0 ]
89+
then
90+
# hostname has been found continue
91+
networkHealthy=0
92+
echo "the network is healthy by updating /etc/hosts"
93+
fi
94+
fi
8195
if [ $networkHealthy -ne 0 ]
8296
then
8397
echo "the network is not healthy, cannot resolve ip address, aborting install"

parts/masterparams.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
"type": "string"
5555
},
5656
"targetEnvironment": {
57-
"defaultValue": "AzureCloud",
57+
"defaultValue": "AzurePublicCloud",
5858
"metadata": {
59-
"description": "The azure deploy environment. Currently support: AzureCloud, AzureChinaCloud"
59+
"description": "The azure deploy environment. Currently support: AzurePublicCloud, AzureChinaCloud"
6060
},
6161
"type": "string"
6262
},

pkg/acsengine/templates.go

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)