Skip to content

improve logging in vmware storage processor #3652

@DaanHoogland

Description

@DaanHoogland

VolumeOrchestrator gives a cryptic message when copy from primary to secondary failes on Vmware during migrate volume.

Failed to migrate volumecom.cloud.exception.StorageUnavailableException: Resource [StoragePool:1446] is unreachable: Migrate volume failed: copy volume from primary to secondary failed due to exception: Exception: java.lang.NullPointerExceptionMessage: null

there is a lot of information in the message about where things went wrong but not about what is wrong. The NPE is not locatable from the message or the accompanyting stacktrace.

in com.cloud.storage.resource.VmwareStorageProcessor#copyVolumeFromPrimaryToSecondary , diagnostic output should be improved.

ISSUE TYPE
  • Improvement Request
COMPONENT NAME
Vmware Storage
CLOUDSTACK VERSION

CONFIGURATION
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE

EXPECTED RESULTS

ACTUAL RESULTS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions