cinder extend Bug : tgt update not implemented
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Jon Bernard |
Bug Description
When using 'cinder extend' command, tgt update process doesn't implemented.
So, If you want to see extended size of volume inside your vm, you must run 'tgt-admin --update iqn.2010-
See my test case as follow.
1. Create cinder volume
# cinder create --volume-type LVM01-type --display-name test-extend-vol01 3
2. List cinder volume & confirm the size 3 GB
# cinder list
+------
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+------
| 885f850f-
+------
3. run lvs command to confirm the size 3 GB
# lvs | grep 885f850f-
volume-
4. run 'tgt-admin --show' command to confirm the size 3 GB
# tgt-admin --show
Target 1: iqn.2010-
System information:
Driver: iscsi
State: ready
I_T nexus information:
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Backing store type: null
Backing store path: None
Backing store flags:
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 3221 MB, Block size: 512
Online: Yes
Backing store type: rdwr
Backing store path: /dev/cinder-
Backing store flags:
Account information:
ACL information:
ALL
5. Extend cinder volume
# cinder extend 885f850f-
6. List cinder volume and confirm the extended size to 5 GB
# cinder list
+------
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+------
| 885f850f-
+------
7. Run 'lvs' command to confirm the extended size to 5 GB
# lvs | grep 885f850f-
volume-
8. Run 'tgt-admin --show' command to confirm the extended size to 5 GB , but it still 3 GB because didn't implemented 'tgt update'
# tgt-admin --show
Target 1: iqn.2010-
System information:
Driver: iscsi
State: ready
I_T nexus information:
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Backing store type: null
Backing store path: None
Backing store flags:
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 3221 MB, Block size: 512
Online: Yes
Backing store type: rdwr
Backing store path: /dev/cinder-
Backing store flags:
Account information:
ACL information:
ALL
9. Run 'tgt-admin --update' command to update
# tgt-admin --update iqn.2010-
10. Run 'tgt-admin --show' command to confirm 5 GB updated
# tgt-admin --show
Target 1: iqn.2010-
System information:
Driver: iscsi
State: ready
I_T nexus information:
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Backing store type: null
Backing store path: None
Backing store flags:
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 5369 MB, Block size: 512
Online: Yes
Backing store type: rdwr
Backing store path: /dev/cinder-
Backing store flags:
Account information:
ACL information:
ALL
Please check this bug and answer to me.
Thank you.
description: | updated |
Changed in cinder: | |
assignee: | nobody → Jon Bernard (jbernard) |
Changed in cinder: | |
importance: | Undecided → Medium |
Changed in cinder: | |
milestone: | none → icehouse-2 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | icehouse-2 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/58599
Review: https:/