SumoLogic / sumologic-collector-chef-cookbook

Chef Cookbook for installing and configuring the SumoLogic collector for the Sumo Logic service
Other
30 stars 90 forks source link

Install with LWRP fails, but Chef completes successfully #83

Open DanielRedOak opened 8 years ago

DanielRedOak commented 8 years ago

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.

duchatran commented 8 years ago

@KierranM , @zl4bv : Have you guys seen this?

zl4bv commented 8 years ago

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.