microsoft / openshift-container-platform

OpenShift Container Platform on Azure
MIT License
134 stars 195 forks source link

Openshift 3.11 fails with exit status=2 #174

Open Srimrao02 opened 5 years ago

Srimrao02 commented 5 years ago

Describe the bug The template based installation fails with exit status=2

To Reproduce Steps to reproduce the behavior: Always when i run installation with template it fails.

az group deployment create --name OpenShiftAzure_Cluster3 -g OpenShiftAzure_Group2 \ --template-uri https://raw.githubusercontent.com/Microsoft/openshift-container-platform/master/azuredeploy.json \ --parameters @./azuredeploy.parameters.json

Deployment failed. Correlation ID: 7626e2d1-a06b-4a59-84e4-a7d8e8e40b99. { "status": "Failed", "error": { "code": "ResourceDeploymentFailure", "message": "The resource operation completed with terminal provisioning state 'Failed'.", "details": [ { "code": "DeploymentFailed", "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.", "details": [ { "code": "Conflict", "message": "{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"VMExtensionProvisioningError\",\r\n \"message\": \"VM has reported afailure when processing extension 'deployOpenShift'. Error message: \\"Enable failed: failed to execute command: command terminated with exit status=2\n[stdout]\nWed Jul 3 04:34:31 UTC 2019 - Starting Script\nWed Jul 3 04:34:32 UTC 2019 - Configuring SSH ControlPath to use shorter path name\nWed Jul 3 04:34:32 UTC 2019 - Cloning Ansible playbook repository\nCloning into 'openshift-container-platform-playbooks'...\n - Retrieved playbooks successfully\nWed Jul 3 04:34:34 UTC 2019 - Create variable for routing certificate based on certificate type\nWed Jul 3 04:34:34 UTC 2019 - Create variable for master api certificate based on certificate type\nWed Jul 3 04:34:34 UTC 2019 - Create variable for master cluster address based on cluster type\nWed Jul 3 04:34:34 UTC 2019 - Creating Master nodes grouping\nWed Jul 3 04:34:34 UTC 2019 - Creating Infra nodes grouping\nWed Jul 3 04:34:34 UTC 2019 - Creating Nodes grouping\nWed Jul 3 04:34:34 UTC 2019 - Create Ansible Hosts file\nWed Jul 3 04:34:34 UTC 2019 - Running DNS Hostname resolution check\n\nPLAY [all] *\n\nTASK [Wait for DNS hostname resolution - will try for up to 33 minutes] ****\nfatal: [devopenshift2-master01]: FAILED! => {\\"changed\\": false, \\"elapsed\\": 2000, \\"msg\\": \\"Timeout when waiting for devopenshift2-master01:22\\"}\nfatal: [devopenshift2-infra01]: FAILED! => {\\"changed\\": false, \\"elapsed\\": 2000, \\"msg\\": \\"Timeout when waiting for devopenshift2-infra01:22\\"}\nfatal: [devopenshift2-node01]: FAILED! => {\\"changed\\": false, \\"elapsed\\": 2000, \\"msg\\": \\"Timeout when waiting for devopenshift2-node01:22\\"}\n\nPLAY RECAP *\ndevopenshift2-infra01 : ok=0 changed=0 unreachable=0 failed=1 \ndevopenshift2-master01 : ok=0 changed=0 unreachable=0 failed=1 \ndevopenshift2-node01 : ok=0 changed=0 unreachable=0 failed=1 \n\n\n[stderr]\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 00 --:--:-- --:--:-- --:--:-- 0\r100 10 100 10 0 0 1522 0 --:--:-- --:--:-- --:--:-- 1666\n [WARNING]: Could not create retry file '/home/infyadmin/openshift-container-\nplatform-playbooks/check-dns-host-name-resolution.retry'. [Errno 13]\nPermission denied: u'/home/infyadmin/openshift-container-platform-playbooks\n/check-dns-host-name-resolution.retry'\n\\".\"\r\n }\r\n ]\r\n }\r\n}" } ] } ] } }

Expected behavior It should deploy openshift

Screenshots If applicable, add screenshots to help explain your problem.

stdout Include the last 100 lines of stdout from Bastion host - see troubleshooting https://docs.microsoft.com/en-us/azure/virtual-machines/linux/openshift-troubleshooting

Template Information (please complete the following information):

Additional context Add any other context about the problem here.

Srimrao02 commented 5 years ago

template_content.txt

Attached the template file used

Srimrao02 commented 5 years ago

Any help please

haroldwongms commented 5 years ago

the value for domainName must be 'none' if you are not deploying a private cluster.

Srimrao02 commented 5 years ago

Hi @haroldwongms ,

Ya this is not a private cluster. Are you mentioning about this parameter from parameters file?

  "domainName": {
      "value": "contoso.com"
  },

my parameter file has

  "masterClusterType": {
      "value": "public"
  },
  "routerClusterType": {
      "value": "public"
  }