Skip to content

Commit

Permalink
HPCC-32724 Allow storage planes to be defined in bare-metal systems
Browse files Browse the repository at this point in the history
- Checks environment.xml for Software/Globals/Storage and looks for any storage planes defined.

Signed-off-by: Jack Del Vecchio <[email protected]>
  • Loading branch information
jackdelv committed Oct 25, 2024
1 parent 7513f82 commit 9ab6ad9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions dali/base/dafdesc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3699,12 +3699,20 @@ static void doInitializeStorageGroups(bool createPlanesFromGroups)
if (cur.groupType == grp_thor)
cur.createStoragePlane(storage, 1);
}
}

//Uncomment the following to trace the values that been generated
//printYAML(storage);
// Add storage planes defined in environment.xml
Owned<IPropertyTree> env = getHPCCEnvironment();
Owned<IPropertyTreeIterator> storagePlanes = env->getElements("Software/Globals/Storage/StoragePlane");
ForEach(*storagePlanes)
{
IPropertyTree & storagePlane = storagePlanes->query();
storage->addPropTree("planes", LINK(&storagePlane));
}
#endif

//Uncomment the following to trace the values that been generated
//printYAML(storage);
#endif

//Ensure that host groups that are defined in terms of other host groups are expanded out so they have an explicit list of hosts
normalizeHostGroups();
Expand Down

0 comments on commit 9ab6ad9

Please sign in to comment.