Open djeeg opened 6 years ago
@djeeg thanks for the quick report :) - I did a deployment qa, I'll check the upgrade.
I dont see any loadBalancingRules in the template
Get the script
swarm-manager000003:$ docker ps -a | grep upgrade
6affa25f1b09 docker4x/upgrade-azure-core:18.03.0-ce-azure1 "/usr/bin/upgrade.sh" 11 minutes ago Exited (1) 11 minutes ago elated_babbage
7b8b1cd7fc06 docker4x/upgrade-azure:18.03-latest "/usr/bin/upgrade_wr…" 11 minutes ago Exited (1) 11 minutes ago
swarm-manager000003:/home/release/docker/stacks$ docker commit 6affa25f1b09 azureupgrade
swarm-manager000003:/home/release/docker/stacks$ docker run -ti --entrypoint /bin/bash azureupgrade
bash-4.3# find / -iname *azupgrade*
/opt/azupgrade.py
/opt/azupgrade_log_cfg.json
bash-4.3# cat /opt/azupgrade.py
Script seems to be looking for lbSSHName -> loadBalancingRules
if resource['name'] == "[variables('lbSSHName')]":
lb_rules = resource['properties'].get('loadBalancingRules')
for lb_rule in lb_rules:
if lb_rule['name'] == UCP_RULE_NAME:
lb_rule['properties']['backendPort'] = UCP_PORT
LOG.info("Set LB Rule for UCP to {}".format(UCP_PORT))
lbSSHName from template
{
"apiVersion": "[variables('apiVersion')]",
"dependsOn": [
"[concat('Microsoft.Network/publicIPAddresses/', variables('lbSSHPublicIPAddressName'))]"
],
"location": "[resourceGroup().location]",
"name": "[variables('lbSSHName')]",
"properties": {
"backendAddressPools": [
{
"name": "default"
}
],
"frontendIPConfigurations": [
{
"name": "default",
"properties": {
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', variables('lbSSHPublicIPAddressName'))]"
}
}
}
],
"inboundNatPools": [
{
"name": "default",
"properties": {
"backendPort": 22,
"frontendIPConfiguration": {
"id": "[variables('lbSSHFrontEndIPConfigID')]"
},
"frontendPortRangeEnd": "[variables('natSSHEndPort')]",
"frontendPortRangeStart": "[variables('natSSHStartPort')]",
"protocol": "tcp"
}
}
],
"probes": [
{
"name": "default",
"properties": {
"intervalInSeconds": 10,
"numberOfProbes": 2,
"port": 22,
"protocol": "Tcp"
}
}
]
},
"tags": {
"channel": "[variables('channel')]",
"provider": "[toUpper(variables('DockerProviderTag'))]"
},
"type": "Microsoft.Network/loadBalancers"
}
Are there any updates on this issue?
Hopefully im not jumping the gun here, 18.03 looks live on the releases page, and the template went active today (https://download.docker.com/azure/stable/18.03.0/Docker.tmpl)
Expected behavior
Upgrade starts
Actual behavior
Steps to reproduce the behavior
I see that the error is in lb_rules. I have added some custom loadbalancer rules
This is because I am running traefik on managers with host mode networking to bypass ingress network (to get actual client IP within docker containers)