Volume Retype of attached volume with active VM does not work

Bug #1721369 reported by Trinh Lee
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cinder
Incomplete
Undecided
Unassigned
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

Steps to reproduce:

1. Boot a Nova VM instance and make sure it is ACTIVE and running fine.
2. Create a new Cinder volume.
3. Attach the above Cinder volume to the above active (running) VM.
3. Try to migrate this ATTACHED volume between different storages of the same type (cinder retype with --migration-policy on-demand )
4. The retyped volume gets stuck at "Retyping" state forever.

Expected result:
The attached volume should be retyped to another storage.

Notes: no specific errors observed from the cinder-volumes.log or cinder-api.log.
The attached volume is simply stuck at "Retyping" state. A new (temporary) volume was created but stuck at "Migrating" state forever as well.

This issue was observed on the latest Liberty branch. But I believe the same issue might happen with Ocata as well.

Trinh Lee (trinhlee)
tags: added: cinder libvirt nova volume
description: updated
Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

Sicne the command is issued from the Cinder CLI, I'm not seeing at first glance that as a nova problem. Triaging the bug to Cinder, but feel free to put the status to New for Nova if something is required from its side.

Changed in nova:
status: New → Invalid
Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

Please attach the cinder logs.

Revision history for this message
Trinh Lee (trinhlee) wrote :

Are you able to reproduce the issue?
I didn't see much error from the logs...the attached volume instance just got stuck at "retyping" status forever....
Will attach the logs later in this ticket but it is good if you can try to reproduce. Thanks.

Revision history for this message
Trinh Lee (trinhlee) wrote :
Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

Attached logs don't appear to capture what was going on at the time.

Make sure you have the [nova] section configured. When a volume is attached Cinder needs to call out to Nova to handle the volume moving.

Changed in cinder:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.