Azure / Azure/azure-quickstart-templates
Deploying 101-Telegraf-InfluxDB-Grafana to Azure fails to create resource tigVM/tigInit 2
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
[101-Telegraf-InfluxDB-Grafana](https://github.com/Azure/azure-quickstart-templates/tree/master/application-workloads/grafana/Telegraf-InfluxDB-Grafana)
### Issue Details
Deploying to Azure fails with below details in creation of tigVM/tigInit after succeeding in previous resources creation
Possibly related to [#6092](https://github.com/Azure/azure-quickstart-templates/issues/6092), however failure is observed after implementation of proposed solution for the issue.
`{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"VMExtensionProvisioningError","message":"VM has reported a failure when processing extension 'tigInit'. Error message: \"Enable failed: failed to execute command: command terminated with exit status=1\n[stdout]\nlecting previously unselected package python-cryptography.\r\nPreparing to unpack .../08-python-cryptography_2.1.4-1ubuntu1.4_amd64.deb ...\r\nUnpacking python-cryptography (2.1.4-1ubuntu1.4) ...\r\nSelecting previously unselected package python-pyasn1.\r\nPreparing to unpack .../09-python-pyasn1_0.4.2-3_all.deb ...\r\nUnpacking python-pyasn1 (0.4.2-3) ...\r\nSelecting previously unselected package python-paramiko.\r\nPreparing to unpack .../10-python-paramiko_2.0.0-1ubuntu1.2_all.deb ...\r\nUnpacking python-paramiko (2.0.0-1ubuntu1.2) ...\r\nSelecting previously unselected package python-httplib2.\r\nPreparing to unpack .../11-python-httplib2_0.9.2+dfsg-1ubuntu0.3_all.deb ...\r\nUnpacking python-httplib2 (0.9.2+dfsg-1ubuntu0.3) ...\r\nSelecting previously unselected package python-pkg-resources.\r\nPreparing to unpack .../12-python-pkg-resources_39.0.1-2_all.deb ...\r\nUnpacking python-pkg-resources (39.0.1-2) ...\r\nSelecting previously unselected package python-setuptools.\r\nPreparing to unpack .../13-python-setuptools_39.0.1-2_all.deb ...\r\nUnpacking python-setuptools (39.0.1-2) ...\r\nSelecting previously unselected package sshpass.\r\nPreparing to unpack .../14-sshpass_1.06-1_amd64.deb ...\r\nUnpacking sshpass (1.06-1) ...\r\nSelecting previously unselected package ansible.\r\nPreparing to unpack .../15-ansible_2.9.22-1ppa~bionic_all.deb ...\r\nUnpacking ansible (2.9.22-1ppa~bionic) ...\r\nSetting up python-idna (2.6-1) ...\r\nSetting up python-yaml (3.12-1build2) ...\r\nSetting up python-asn1crypto (0.24.0-1) ...\r\nSetting up python-pyasn1 (0.4.2-3) ...\r\nSetting up python-pkg-resources (39.0.1-2) ...\r\nSetting up python-markupsafe (1.0-1build1) ...\r\nSetting up python-httplib2 (0.9.2+dfsg-1ubuntu0.3) ...\r\nSetting up python-cffi-backend (1.11.5-1) ...\r\nSetting up sshpass (1.06-1) ...\r\nSetting up python-enum34 (1.1.6-2) ...\r\nSetting up python-ipaddress (1.0.17-1) ...\r\nSetting up python-setuptools (39.0.1-2) ...\r\nSetting up python-jinja2 (2.10-1ubuntu0.18.04.1) ...\r\nSetting up python-cryptography (2.1.4-1ubuntu1.4) ...\r\nSetting up python-paramiko (2.0.0-1ubuntu1.2) ...\r\nSetting up ansible (2.9.22-1ppa~bionic) ...\r\nProcessing triggers for man-db (2.8.3-2ubuntu0.1) ...\r\nReading package lists...\nBuilding dependency tree...\nReading state information...\nThe following package was automatically installed and is no longer required:\n linux-headers-4.15.0-143\nUse 'apt autoremove' to remove it.\nSuggested packages:\n zip\nThe following NEW packages will be installed:\n unzip\n0 upgraded, 1 newly installed, 0 to remove and 30 not upgraded.\nNeed to get 168 kB of archives.\nAfter this operation, 567 kB of additional disk space will be used.\nGet:1 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 unzip amd64 6.0-21ubuntu1.1 [168 kB]\nFetched 168 kB in 0s (3768 kB/s)\nSelecting previously unselected package unzip.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 83500 files and directories currently installed.)\r\nPreparing to unpack .../unzip_6.0-21ubuntu1.1_amd64.deb ...\r\nUnpacking unzip (6.0-21ubuntu1.1) ...\r\nSetting up unzip (6.0-21ubuntu1.1) ...\r\nProcessing triggers for mime-support (3.60ubuntu1) ...\r\nProcessing triggers for man-db (2.8.3-2ubuntu0.1) ...\r\nansible-playbook 2.9.22\n config file = /etc/ansible/ansible.cfg\n configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\n ansible python module location = /usr/lib/python2.7/dist-packages/ansible\n executable location = /usr/bin/ansible-playbook\n python version = 2.7.17 (default, Feb 27 2021, 15:10:58) [GCC 7.5.0]\nUsing /etc/ansible/ansible.cfg as config file\n\n[stderr]\ndebconf: unable to initialize frontend: Dialog\ndebconf: (TERM is not set, so the dialog frontend is not usable.)\ndebconf: falling back to frontend: Readline\ndebconf: unable to initialize frontend: Readline\ndebconf: (This frontend requires a controlling tty.)\ndebconf: falling back to frontend: Teletype\ndpkg-preconfigure: unable to re-open stdin: \ndebconf: unable to initialize frontend: Dialog\ndebconf: (TERM is not set, so the dialog frontend is not usable.)\ndebconf: falling back to frontend: Readline\ndebconf: unable to initialize frontend: Readline\ndebconf: (This frontend requires a controlling tty.)\ndebconf: falling back to frontend: Teletype\ndpkg-preconfigure: unable to re-open stdin: \n--2021-06-08 07:08:19-- https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/application-workloads/grafana/Telegraf-InfluxDB-Grafana/azuredeploy.jsonscripts/Configfiles.zip\nResolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.109.133, ...\nConnecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.\nHTTP request sent, awaiting response... 404 Not Found\n2021-06-08 07:08:19 ERROR 404: Not Found.\n\nunzip: cannot find or open Configfiles.zip, Configfiles.zip.zip or Configfiles.zip.ZIP.\nERROR! the playbook: /home/Configfiles/ansible/docker_install.yml could not be found\n\"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot "}]}`
### Repro steps (*if necessary, delete otherwise*)
1. Select template
2. Click Deploy to Azure
3. Fill-in requested parameter
4. Deploy
5. Issue is reproduced
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in the 101-Telegraf-InfluxDB-Grafana template directory, especially azuredeploy.json and the tigInit VM extension setup. Reproduce the deployment and inspect the failing Configfiles.zip download and /home/Configfiles/ansible/docker_install.yml path; done means the archive is retrieved and the tigInit extension completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, azure, grafana, python
- Domain
- cloud, devops, infrastructure, observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100