IBM SVC: Logging error when failed to create SVC host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
When attaching a volume created in IBM SVC storage, we create a SVC host with the following command[1][2][3]
svctask mkhost -force -iscsiname <IQN> -name <host>
If the SVC host already exists, we fail the command and try to use the existing host[4]
The problem with this workflow is, even if the SVC host creation fails due to an existing SVC host, it's not an actual failure but we still log an error[5] in this case which is misleading.
The error is logged from a generic method which runs ssh commands but we need to distinguish which failures are actual failures and which are not to help operators better debug the issues.
Also we already log an error if the make host fails for any other reason[6]
In summary, the ERROR message is misleading in this case and should not be logged in the above described case.
tags: | added: low-hanging-fruit |