The Cinder driver uses the command "lsportfc" to get WWPN from IBM Storwize. The command is not supported by Storwize firmware old than 6.4.1. The bug causes following tracing log.
#### /var/log/cinder/volume.log ####
2013-04-02 15:14:43.758 ERROR cinder.volume.drivers.san.san [req-bad4f419-ffc0-4801-bb4e-8ac7f93575d4 None None] Error running SSH command: lsportfc -delim !
2013-04-02 15:14:43.761 26480 CRITICAL cinder [-] Unexpected error while running command.
Command: lsportfc -delim !
Exit code: 127
Stdout: ''
Stderr: 'rbash: lsportfc: command not found\n'
2013-04-02 15:14:43.761 26480 TRACE cinder Traceback (most recent call last):
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/bin/cinder-volume", line 59, in <module>
2013-04-02 15:14:43.761 26480 TRACE cinder launcher.wait()
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/lib/python2.6/site-packages/cinder/service.py", line 137, in wait
2013-04-02 15:14:43.761 26480 TRACE cinder service.wait()
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/lib/python2.6/site-packages/eventlet/greenthread.py", line 166, in wait
2013-04-02 15:14:43.761 26480 TRACE cinder return self._exit_event.wait()
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/lib/python2.6/site-packages/eventlet/event.py", line 116, in wait
2013-04-02 15:14:43.761 26480 TRACE cinder return hubs.get_hub().switch()
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/lib/python2.6/site-packages/eventlet/hubs/hub.py", line 177, in switch
2013-04-02 15:14:43.761 26480 TRACE cinder return self.greenlet.switch()
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/lib/python2.6/site-packages/eventlet/greenthread.py", line 192, in main
2013-04-02 15:14:43.761 26480 TRACE cinder result = function(*args, **kwargs)
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/lib/python2.6/site-packages/cinder/service.py", line 98, in run_server
2013-04-02 15:14:43.761 26480 TRACE cinder server.start()
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/lib/python2.6/site-packages/cinder/service.py", line 345, in start
2013-04-02 15:14:43.761 26480 TRACE cinder self.manager.init_host()
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 145, in init_host
2013-04-02 15:14:43.761 26480 TRACE cinder self.driver.do_setup(ctxt)
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/storwize_svc.py", line 248, in do_setup
2013-04-02 15:14:43.761 26480 TRACE cinder self._get_fc_wwpns()
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/storwize_svc.py", line 166, in _get_fc_wwpns
2013-04-02 15:14:43.761 26480 TRACE cinder header = next(generator, None)
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/storwize_svc.py", line 1351, in _port_conf_generator
2013-04-02 15:14:43.761 26480 TRACE cinder out, err = self._run_ssh(ssh_cmd)
2013-04-02 15:14:43.761 26480 TRACE cinder File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/san/san.py", line 152, in _run_ssh
2013-04-02 15:14:43.761 26480 TRACE cinder raise e
2013-04-02 15:14:43.761 26480 TRACE cinder ProcessExecutionError: Unexpected error while running command.
2013-04-02 15:14:43.761 26480 TRACE cinder Command: lsportfc -delim !
2013-04-02 15:14:43.761 26480 TRACE cinder Exit code: 127
2013-04-02 15:14:43.761 26480 TRACE cinder Stdout: ''
2013-04-02 15:14:43.761 26480 TRACE cinder Stderr: 'rbash: lsportfc: command not found\n'
2013-04-02 15:14:43.761 26480 TRACE cinder
Fix proposed to branch: master /review. openstack. org/26587
Review: https:/