sumologic-collector-chef-cookbook
sumologic-collector-chef-cookbook copied to clipboard
Install with LWRP fails, but Chef completes successfully
It looks like even if the install using the LWRP fails, Chef reports success on completion. On the next run the install is attempted again. This continues for all subsequent runs.
I ran the same command that is used during the LWRP install and the installer is showing:
Unpacking JRE ... Preparing JRE ... Starting Installer ... The installation directory has been set to /opt/SumoCollector. Extracting files... Jun 20, 2016 3:10:17 PM java.util.prefs.FileSystemPreferences$2 run INFO: Created system preferences directory in java.home. Unable to start Sumo Logic Collector service. It's taking longer than expected to register your Collector with Sumo Logic. Please check your settings and try again. It's taking longer than expected to register your Collector with Sumo Logic. Please check your settings and try again. Finishing installation...
My issue was bad access keys, but I wouldn't have seen any issue if I didn't check to see the status of the new collector.
@KierranM , @zl4bv : Have you guys seen this?
We've had access key problems that produced different error messages but in those cases Chef reported a failure and stopped.
For Chef to detect failure the Sumo installer needs to return a non-zero exist status, which it may not be doing in this case.