Problem Statement:
While executing the bootvm.py script to create ESC VM, you might encounter the following error, and the bootvm.py script exits
abnormally:
bootvm script fails with error "object of type 'NoneType' has no len()"
Description:
The bootvm.py script fails to authenticate the Open Stack credentials and the connectivity details, because the details are
not specified or partially specified.
Solution:
Ensure that you have an openrc file to source with up-to-date values.
For example:
export OS_USERNAME=admin
export OS_PASSWORD=<HIDDEN>
export OS_REGION_NAME=RegionOne
export OS_AUTH_URL=http://172.29.91.77:5000/v3
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_IDENTITY_API_VERSION=3
Source the openrc file before running bootvm.py once again.
You can also pass the values directly on the bootvm.py using os_<variable_name>
, that is --os_auth_url=http://172.29.91.77:5000/v3
.
If you still encounter the same error, run the bootvm.py script with the debug option, and redirect the output to a file.
To perform this action, add the following command-line argument.
--loglevel DEBUG --log /tmp/esc-install.log
For any technical support attach the resulting esc-install.log file.