Azure / azure-quickstart-templates

Azure Quickstart Templates
https://aka.ms/azqst
MIT License
14.03k stars 16.11k forks source link

Error enabling chef-client service - no such file rb_sysopen /etc/chef/client.rb #1947

Open rfedoriu opened 8 years ago

rfedoriu commented 8 years ago

chef-json-parameters-linux-vm

Issue Details

Hello. I can't seem to get anything to work with the 'LinuxChefExtension' example in this template. When generating just a plain (empty) vm and removing the 'LinuxChefExtension' resource block (and associated variables/parameters) the same settings work to generate a vm. Note that with the 'LinuxChefExtension' settings included a vm is created, but then errors out I presume when trying to bootstrap the node. What is befuddling is that the error indicates there is no '/etc/chef/client.rb' file, when there is and is readable. Been tearing my hair out, any assistance greatly appreciated.

[From ~/.azure/azure.err:] Error message: "chef-service enable failed - "Error enabling chef-client service - No such file or directory @ rb_sysopen - /etc/chef/client.rb - Check log file for details"

Repro steps (if necessary, delete otherwise)

  1. azuredeploy.json & azuredeploy.parameters.json with placeholders/params/variables set
  2. Login via 'azure login', set correct account, and execute: 'azure group deployment create -g MY_RESOURCE_GROUP -n "my-vmname-01" -v -f azuredeploy.json -e azuredeploy.parameters.json'
  3. After failing, view ~/.azure/azure.err

    MORE INFO:

/etc/chef/client.rb: log_level :info log_location STDOUT chef_server_url 'https://chef-armdev-01:443/organizations/testorg' validation_client_name 'testorg-validator'

singhkays commented 8 years ago

@kundanap Can you take a look at this?

singhkays commented 8 years ago

Also adding @golive