Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
rc: set URI's in enclosing instance for hierarchical flux #2322
Add a flag that causes an environment variable to be unset of a 'sanitize' flag is set in the struct attrmap array.
Problem: FLUX_KVS_NAMESPACE is cleared in the broker environment if set, but it is need by rc3.d/01-enclosing-instance. Eliminate code to explicitly sanitize FLUX_KVS_NAMESPACE and FLUX_URI in the broker environment, then set the 'sanitize' bit for FLUX_URI in attrmap, and add FLUX_KVS_NAMESPACE to attrmap with 'sanitize' set. Now the attribute 'parent-kvs-namespace' contains the previous value of FLUX_KVS_NAMESPACE, if it was set. Rc scripts can use flux getattr to obtain the value.
Problem: 01-enclosing-instance doesn't work with the new exec system. Since the 'parent-kvs-namespace' attribute is now set in a child instance, to complement 'parent-uri', use the pair of them to set the local and remote uri's for the instance in its job directory in the KVS, e.g. job.0000.0029.d400.0000.guest.flux.local_uri job.0000.0029.d400.0000.guest.flux.remote_uri Fixes #2318
@@ Coverage Diff @@ ## master #2322 +/- ## ========================================= Coverage ? 80.88% ========================================= Files ? 214 Lines ? 33815 Branches ? 0 ========================================= Hits ? 27352 Misses ? 6463 Partials ? 0
Cool! Checked this out and was able to hack together a quick script to list hierarchical instances as a test: