TritonDataCenter / manta-thoth

Thoth is a Manta-based system for core and crash dump management
16 stars 7 forks source link

"thoth object" should not connect Manta #135

Closed jclulow closed 8 years ago

jclulow commented 8 years ago

The sdc-thoth command will use ur to discover dumps on some set of compute nodes in an SDC data centre. One of the commands it uses to collect dump information is thoth object, which extracts dump ID information from a local core file or crash dump.

In thoth, there is code to avoid connecting to Manta (or the caching Database) for commands (like object) that do not require it. It seems like the caching database modifications have added an initial configuration step that essentially unconditionally attempts to connect to Manta before processing the command line and determining whether or not it is needed.

This affects sdc-thoth operation, as MANTA_URL (amongst other things) is not set in the environment. In addition, sdc-thoth tries very hard to ignore any error in the discovery process, making this relatively difficult to diagnose initially. With a few modifications to the script, we can see that the output from thoth object <somecorefile> is:

thoth: expected MANTA_URL environment variable to be set