chef-partners/azure-chef-extension

Deployment of Azure Chef extension is failing in Ubuntu 20.04

ayushbhatt29 opened this issue · 0 comments

When deploying Azure Chef Client extension 1210.13.4.2 in Ubuntu 20.04, its failing with following error.

Command Used -

az vm extension set --resource-group "ayush-resgrp" --vm-name "ayush-ubuntu" --name "LinuxChefClient" --publisher Chef.Bootstrap.WindowsAzure --version 1210.13.4.2  --no-auto-upgrade true --protected-settings "{'validation_key':'***', 'client_key':'***', 'client_rb': '**\.chef\config.rb'}" --settings "{ 'bootstrap_options': { 'chef_server_url': '', 'chef_node_name': 'ayush-ubuntu'},'CHEF_LICENSE':'accept', 'runlist': '[recipe[new::default]]', 'custom_json_attr': { 'policy_group': 'ayu-policygroup', 'policy_name': 'ayushpolicy','tags':['tag1','tag2','tag3']}}"

Error -

Deployment failed. Correlation ID: 7ca42ed1-b452-46e1-a23c-7fbd5c862e80. The handler for VM extension type 'Chef.Bootstrap.WindowsAzure.LinuxChefClient' has reported terminal failure for VM extension 'LinuxChefClient' with error message: '[ExtensionOperationError] Non-zero exit code: 1, /var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/install.sh
[stdout]


[stderr]
Running scope as unit: Chef.Bootstrap.WindowsAzure.LinuxChefClient_1210.13.4.2_50a4126a-dcb2-43af-849a-b7145cf67963.scope
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 111: python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 111: /usr/libexec/platform-python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 1: python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 5: python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 5: /usr/libexec/platform-python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 7: python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 7: /usr/libexec/platform-python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 9: python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 9: /usr/libexec/platform-python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 11: python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 11: /usr/libexec/platform-python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 13: python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 13: /usr/libexec/platform-python: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 1: gem: not found
/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.13.4.2/bin/chef-install.sh: 21: gem: not found
'.

'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/VMExtensionChefClientLinuxTroubleshoot'