IBM / CAST

CAST can enhance the system management of cluster-wide resources. It consists of the open source tools: cluster system management (CSM) and burst buffer.
Eclipse Public License 1.0
27 stars 34 forks source link

Added csm_init_struct to csm_allocation_step_end to fix Message packing error after building with --type=Release #944

Closed besawn closed 4 years ago

besawn commented 4 years ago

While testing the release build of CSM 1.8.1, the following problem was discovered via CSM FVT regression test:

/test/results/buckets/basic/step.log:Test Case 5:  Calling csm_allocation_step_end                  (allocation_id: 4 step_id: 1):          FAILED
/test/results/buckets/basic/step_tmp.log:(null) FAILED: errcode: 28 errmsg: Message packing error

The problem only occurs when building the release rpms using the following process on RHEL 8.X: scripts/configure.pl --type=Release --mincmake=3.6 --rpmbuild --parallel; scripts/rebuild noinstall package and does not reproduce when building without the --type=Release flag: scripts/configure.pl --mincmake=3.6 --rpmbuild --parallel; scripts/rebuild noinstall package

This problem is due to allocation_step_end.c failing to explicitly initialize the version metadata in the input struct. The problem only manifests on RHEL 8.X when building with --type=Release. After explicitly initializing the input struct, the tests pass successfully.