{"action":"created","issue":{"url":"https://api.github.com/repos/chef-partners/azure-chef-extension/issues/147","repository_url":"https://api.github.com/repos/chef-partners/azure-chef-extension","labels_url":"https://api.github.com/repos/chef-partners/azure-chef-extension/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/chef-partners/azure-chef-extension/issues/147/comments","events_url":"https://api.github.com/repos/chef-partners/azure-chef-extension/issues/147/events","html_url":"https://github.com/chef-partners/azure-chef-extension/issues/147","id":161392851,"number":147,"title":"chef cronjob disabled in some VMs ","user":{"login":"rubeon","id":687066,"avatar_url":"https://avatars.githubusercontent.com/u/687066?v=3","gravatar_id":"","url":"https://api.github.com/users/rubeon","html_url":"https://github.com/rubeon","followers_url":"https://api.github.com/users/rubeon/followers","following_url":"https://api.github.com/users/rubeon/following{/other_user}","gists_url":"https://api.github.com/users/rubeon/gists{/gist_id}","starred_url":"https://api.github.com/users/rubeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubeon/subscriptions","organizations_url":"https://api.github.com/users/rubeon/orgs","repos_url":"https://api.github.com/users/rubeon/repos","events_url":"https://api.github.com/users/rubeon/events{/privacy}","received_events_url":"https://api.github.com/users/rubeon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-21T09:47:21Z","updated_at":"2016-06-21T11:46:35Z","closed_at":null,"body":"Hi,\r\n\r\nit looks like there was some issue last night  with an attempted update to `1210.12.104.1000` that disabled chef in some of our VMs. \r\n\r\n**waagent.log**\r\n```\r\n2016/06/21 01:38:10 Retrieved GoalState from Azure Fabric.\r\n2016/06/21 01:38:10 ExpectedState: Started\r\n2016/06/21 01:38:10 ContainerId: [snip]\r\n2016/06/21 01:38:10 RoleInstanceId: [snip]\r\n2016/06/21 01:38:10 Private key with thumbprint: [snip] was retrieved.\r\n2016/06/21 01:38:10 Public cert with thumbprint:  [snip] was retrieved.\r\n2016/06/21 01:38:10 Posted Role Properties. CertificateThumbprint= [snip]\r\n2016/06/21 01:38:13 Found Plugin: Chef.Bootstrap.WindowsAzure.LinuxChefClient version: 1210.12.104.1000\r\n2016/06/21 01:38:13 Downloading plugin manifest: Chef.Bootstrap.WindowsAzure.LinuxChefClient from  [snip]\r\n2016/06/21 01:38:13 Plugin server is:  [snip]\r\n2016/06/21 01:38:13 Bundle URI =  [snip]\r\n2016/06/21 01:38:13 Plugin bundle [snip] successfully length = 75695\r\n2016/06/21 01:38:13 Extracted  [snip]/Chef.Bootstrap.WindowsAzure__LinuxChefClient__1210.12.104.1000 to /var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000\r\n2016/06/21 01:38:13 Found RuntimeSettings for Chef.Bootstrap.WindowsAzure.LinuxChefClient V 1210.12.104.1000\r\n2016/06/21 01:38:13 SetHandlerState: Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000, NotInstalled\r\n2016/06/21 01:38:13 Spawned disable.sh PID 34936\r\n2016/06/21 01:38:18 disableCommand completed.\r\n2016/06/21 01:38:18 SetHandlerState: Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.103.1000, Disabled\r\n2016/06/21 01:38:18 Chef.Bootstrap.WindowsAzure.LinuxChefClient version 1210.12.103.1000 is disabled\r\n2016/06/21 01:38:18 Copy status file from old plugin dir to new\r\n2016/06/21 01:38:18 Spawned update.sh PID 35166\r\n2016/06/21 01:38:23 ERROR:Process 35166 returned non-zero exit code(1)\r\n2016/06/21 01:38:23 ERROR:Update failed for Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000\r\n2016/06/21 01:38:23 Spawned uninstall.sh PID 35201\r\n2016/06/21 01:38:28 uninstallCommand completed.\r\n2016/06/21 01:38:28 SetHandlerState: Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.103.1000, NotInstalled\r\n2016/06/21 01:38:28 Uninstall completeChef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.103.1000\r\n2016/06/21 01:38:28 Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.103.1000 extension files deleted.\r\n2016/06/21 01:38:28 Found RuntimeSettings for Chef.Bootstrap.WindowsAzure.LinuxChefClient V 1210.12.104.1000\r\n2016/06/21 01:38:28 Spawned install.sh PID 35221\r\n2016/06/21 01:38:33 installCommand completed.\r\n2016/06/21 01:38:33 SetHandlerState: Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000, Installed\r\n2016/06/21 01:38:33 Installation completed for Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000\r\n2016/06/21 01:38:33 Spawned enable.sh PID 35241\r\n2016/06/21 01:38:38 enableCommand completed.\r\n2016/06/21 01:38:38 SetHandlerState: Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000, Enabled\r\n2016/06/21 01:38:38 Enable completed for Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000\r\n2016/06/21 01:38:38 Processing completed for Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000\r\n2016/06/21 01:38:38 Found Plugin: Microsoft.OSTCExtensions.LinuxDiagnostic version: 2.3.9001\r\n2016/06/21 01:38:38 Found RuntimeSettings for Microsoft.OSTCExtensions.LinuxDiagnostic V 2.3.9001\r\n2016/06/21 01:38:38 Spawned diagnostic.py -enable PID 35258\r\n2016/06/21 01:38:39 LinuxAzureDiagnostic started to handle.\r\n2016/06/21 01:38:39 [Microsoft.OSTCExtensions.LinuxDiagnostic-2.3.9001] cwd is /var/lib/waagent/Microsoft.OSTCExtensions.LinuxDiagnostic-2.3.9001\r\n2016/06/21 01:38:39 [Microsoft.OSTCExtensions.LinuxDiagnostic-2.3.9001] Change log file to /var/log/azure/Microsoft.OSTCExtensions.LinuxDiagnostic/2.3.9001/extension.log\r\n2016/06/21 01:38:43 enableCommand completed.\r\n\r\n```\r\n\r\nAnd the extension log:\r\n**/var/log/azure/Chef.Bootstrap.WindowsAzure.LinuxChefClient/1210.12.104.1000/CommandExecution.log**\r\n\r\n```\r\n2016/06/21 01:38:13 Downloading plugin manifest: Chef.Bootstrap.WindowsAzure.LinuxChefClient from [snip]/Chef.Bootstrap.WindowsAzure_LinuxChefClient_europenorth_manifest.xml\r\n2016/06/21 01:38:13 Plugin server is: rdfepirv2db3prdstr02.blob.core.windows.net\r\n2016/06/21 01:38:13 Bundle URI = [snip]/Chef.Bootstrap.WindowsAzure__LinuxChefClient__1210.12.104.1000\r\n2016/06/21 01:38:13 Plugin bundle [snip]/Chef.Bootstrap.WindowsAzure__LinuxChefClient__1210.12.104.1000downloaded successfully length = 75695\r\n2016/06/21 01:38:13 Extracted [snip]/Chef.Bootstrap.WindowsAzure__LinuxChefClient__1210.12.104.1000 to /var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000\r\n2016/06/21 01:38:13 Found RuntimeSettings for Chef.Bootstrap.WindowsAzure.LinuxChefClient V 1210.12.104.1000\r\n2016/06/21 01:38:13 Spawned disable.sh PID 34936\r\n2016/06/21 01:38:18 disableCommand completed.\r\n2016/06/21 01:38:18 Chef.Bootstrap.WindowsAzure.LinuxChefClient version 1210.12.103.1000 is disabled\r\n2016/06/21 01:38:18 Spawned update.sh PID 35166\r\n2016/06/21 01:38:23 Process 35166 returned non-zero exit code(1)\r\n2016/06/21 01:38:23 Update failed for Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000\r\n2016/06/21 01:38:23 Spawned uninstall.sh PID 35201\r\n2016/06/21 01:38:28 uninstallCommand completed.\r\n2016/06/21 01:38:28 Uninstall completeChef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.103.1000\r\n2016/06/21 01:38:28 Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.103.1000 extension files deleted.\r\n2016/06/21 01:38:28 Found RuntimeSettings for Chef.Bootstrap.WindowsAzure.LinuxChefClient V 1210.12.104.1000\r\n2016/06/21 01:38:28 Spawned install.sh PID 35221\r\n2016/06/21 01:38:33 installCommand completed.\r\n2016/06/21 01:38:33 Installation completed for Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000\r\n2016/06/21 01:38:33 Spawned enable.sh PID 35241\r\n2016/06/21 01:38:38 enableCommand completed.\r\n2016/06/21 01:38:38 Enable completed for Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000\r\n2016/06/21 01:38:38 Processing completed for Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000\r\n\r\n```\r\n\r\nThis left the system in a state where the chef-client is no longer being run in the crontab, and hasn't checked in with the Chef server since that event.\r\n\r\nThere were several other machines that didn't try to update, but I'm not sure how they might be configured differently.  Is there a way to block this kind of update from happening?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/chef-partners/azure-chef-extension/issues/comments/227416187","html_url":"https://github.com/chef-partners/azure-chef-extension/issues/147#issuecomment-227416187","issue_url":"https://api.github.com/repos/chef-partners/azure-chef-extension/issues/147","id":227416187,"user":{"login":"NimishaS","id":1298875,"avatar_url":"https://avatars.githubusercontent.com/u/1298875?v=3","gravatar_id":"","url":"https://api.github.com/users/NimishaS","html_url":"https://github.com/NimishaS","followers_url":"https://api.github.com/users/NimishaS/followers","following_url":"https://api.github.com/users/NimishaS/following{/other_user}","gists_url":"https://api.github.com/users/NimishaS/gists{/gist_id}","starred_url":"https://api.github.com/users/NimishaS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NimishaS/subscriptions","organizations_url":"https://api.github.com/users/NimishaS/orgs","repos_url":"https://api.github.com/users/NimishaS/repos","events_url":"https://api.github.com/users/NimishaS/events{/privacy}","received_events_url":"https://api.github.com/users/NimishaS/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T11:46:35Z","updated_at":"2016-06-21T11:46:35Z","body":"@rubeon , can you please share your `/var/lib/waagent/Chef.Bootstrap.WindowsAzure.LinuxChefClient-1210.12.104.1000/config/0.settings`, ` /var/log/azure/custom.log` and `/var/lib/waagent/ExtensionsConfig.1.xml` file?\r\n\r\nAlso please share how you created the VM with extension."}}
{"actor":{"display_login":"NimishaS"}}