ibmcb / cbtool

Cloud Rapid Experimentation and Analysis Toolkit
Apache License 2.0
78 stars 49 forks source link

docker_file_parser() throws exception because of invalid workload file name #440

Open rayx opened 3 months ago

rayx commented 3 months ago

docker/workload/Dockerfile-ubuntu-cb_stress file name is invalid. It should be Dockerfile-ubuntu_cb_stress instead. Otherwise it causes the following code in docker_file_parser() to throw exception:

                _x_fnam = _fnam.replace("Dockerfile-",'').split('_')
                print(_x_fnam)
                _key_prefix = _x_fnam[0]
                _f_workload = _x_fnam[2]

                if len(_x_fnam) > 3 :
                    _f_workload += '_' + _x_fnam[3]

BTW, while investigating the issue, I notice that all workload files except null workload are based on ubuntu. Does that mean CBTOOL doesn't support using centos as workload vm? I ask because I don't see this is mentioned in the docs. Also, why is the nullworkload based on centos?