Comment 1 for bug 1831983

Revision history for this message
Aida Palacio Hoz (aidaph) wrote :

Hello,

Iban and I did a complete debug of manila-share code and the issue is fixed now.

For this error:

2019-06-06 11:56:15.993 4191 ERROR manila.share.drivers.ibm.gpfs [req-79f86b63-595a-4eb9-8dad-b712a7c45b8e - - - - -] Failed to check GPFS state. Error: list index out of range.: IndexError: list index out of range

We guess the problem is with python version. In Stein release Openstack services use python3 and this code runs properly in python2. In manila.share.drivers.ibm.gpfsgpfs module, the function _check_gpfs_state fails in lines = out.splitlines(). We set this line to lines = out.split('\\n') and it runs ok now. Same for methods _is_dir where line output.strip() == 'directory' was replaced by output.lstrip('b\'').replace('\\n\'','') == 'directory' and in _get_available_capacity where the line out = out.splitlines()[1] was set by out = out.split('\\n')[1]. The problem is the "\n" due to a misunderstanding of character '\'.

This solution is just a temporal fix because we understood that it was not the better solution.

Cheers,
Aida