Comment 0 for bug 1515101

Revision history for this message
jiamin (shljia) wrote : Nova shows invalid error message when trying to attach deleted volume

Overview Description:

Delete a volume from the storage array, then try to attach it to a instance, nova-compute.log doesn't give a useful error message.

Steps to Reproduce:

1.cinder create --name <vol> 10
2. cinder show <vol> #get the ds8k volume id
3. rmfbvol <vol id> #remove the volume in ds8k
4. nova volume-attach instance <vol_id> auto

Actual Results:
    ERROR oslo_messaging.rpc.dispatcher VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Driver initialize connection failed (error: Request to storage API failed: HTTP 500

Expected Results:
    TRACE oslo_messaging.rpc.dispatcher ClientException: VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Volume `1013` does not exist! (HTTP 500)

Is Regression? Yes
Reproducibility: Always