ERROR: openstackclient.shell Exception raised: No module named type

Asked by leichongchong

Jenkins CI runs into below error:
ERROR: openstackclient.shell Exception raised: No module named type

Question information

Language:
English Edit question
Status:
Solved
For:
Cinder Edit question
Assignee:
No assignee Edit question
Solved by:
leichongchong
Solved:
Last query:
Last reply:
Revision history for this message
leichongchong (leichong2010) said :
#1

devstack failed with 'No module named type':
------------------------------------------
2015-07-23 09:42:24.728 | + return 0
2015-07-23 09:42:24.728 | + is_service_enabled tls-proxy
2015-07-23 09:42:24.729 | + return 1
2015-07-23 09:42:24.729 | + create_volume_types
2015-07-23 09:42:24.729 | + is_service_enabled c-api
2015-07-23 09:42:24.734 | + return 0
2015-07-23 09:42:24.734 | + [[ -n FC:vnx150151 ]]
2015-07-23 09:42:24.734 | + local be be_name
2015-07-23 09:42:24.734 | + for be in '${CINDER_ENABLED_BACKENDS//,/ }'
2015-07-23 09:42:24.734 | + be_name=vnx150151
2015-07-23 09:42:24.734 | + openstack volume type create --os-volume-api-version 1 --property volume_backend_name=vnx150151 vnx150151
2015-07-23 09:42:25.152 | ERROR: openstackclient.shell Exception raised: No module named type
2015-07-23 09:42:25.166 | + exit_trap
2015-07-23 09:42:25.166 | + local r=1
2015-07-23 09:42:25.167 | ++ jobs -p
2015-07-23 09:42:25.167 | + jobs=24883
2015-07-23 09:42:25.167 | + [[ -n 24883 ]]
2015-07-23 09:42:25.167 | + [[ -n /opt/stack/new/devstacklog.txt.2015-07-23-053540 ]]
2015-07-23 09:42:25.167 | + [[ True == \T\r\u\e ]]
2015-07-23 09:42:25.167 | + echo 'exit_trap: cleaning up child processes'
2015-07-23 09:42:25.167 | exit_trap: cleaning up child processes
2015-07-23 09:42:25.167 | + kill 24883
2015-07-23 09:42:25.167 | ./stack.sh: line 463: kill: (24883) - No such process

Revision history for this message
leichongchong (leichong2010) said :
#2

This issue is caused by python-openstackclient from pypi.
----
python-openstackclient (1.5.0)
----
This version of openstackclient does not support type options in cli.

After setting 'export DEVSTACK_PROJECT_FROM_GIT=python-openstackclient' in CI, a much newer version of python-openstackclient which supports type options in cli is installed and the issue is gone.
-----
python-openstackclient version in git is 1.5.1.dev135