Activity log for bug #1240287

Date Who What changed Old value New value Message
2013-10-16 00:26:52 Hyun Ha bug added bug
2013-10-16 00:42:29 Hyun Ha description cinder volume extend error Stderr : New size given (1 extents) not larger than existing size (256 extents)\n Run `lvextend --help' for more information. On the environment where using Cinder LVM driver, extend_volume fails like the following. # cinder extend 9dd8b44a-6835-40a6-ad9d-a103c25c532d 2 # cinder list +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ 2013-10-16 09:00:05.443 19511 INFO cinder.volume.manager [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] volume 9dd8b44a-6835-40a6-ad9d-a103c25c532d: extending 2013-10-16 09:00:05.444 19511 DEBUG cinder.openstack.common.processutils [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Running cmd (subprocess): sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d execute /opt/openstack/cinder/cinder/openstack/common/processutils.py:142 2013-10-16 09:00:05.571 19511 DEBUG cinder.openstack.common.processutils [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Result was 3 execute /opt/openstack/cinder/cinder/openstack/common/processutils.py:167 2013-10-16 09:00:05.573 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Error extending Volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Traceback (most recent call last): 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/brick/local_dev/lvm.py", line 469, in extend_volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm run_as_root=True) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/utils.py", line 142, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm return processutils.execute(*cmd, **kwargs) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/openstack/common/processutils.py", line 173, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm cmd=' '.join(cmd)) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm ProcessExecutionError: Unexpected error while running command. 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Exit code: 3 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stdout: ' Rounding up size to full physical extent 4.00 MiB\n' 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stderr: " New size given (1 extents) not larger than existing size (256 extents)\n Run `lvextend --help' for more information.\n" 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm 2013-10-16 09:00:05.577 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Cmd :sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdOut : Rounding up size to full physical extent 4.00 MiB 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdErr : New size given (1 extents) not larger than existing size (256 extents) Run `lvextend --help' for more information. # cinder help extend usage: cinder extend <volume> <new-size> Attempt to extend the size of an existing volume. Positional arguments: <volume> Name or ID of the volume to extend. <new-size> New size of volume in GB In cinder cli, the integer of 'new-size' is in GB . But In LVM command, (lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d ) '-L 2' is in MB. so, If I really want extend size of volume, 1 GB to 2 GB, I have to try like follow. # cinder extend 54a7125f-3a8f-48dc-a8b8-8f623c742ecb 2048 # cinder list +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | 54a7125f-3a8f-48dc-a8b8-8f623c742ecb | available | haha-vol01 | 2048 | None | false | | | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ # lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert volume-54a7125f-3a8f-48dc-a8b8-8f623c742ecb cinder-volumes -wi-ao 2.00g please check this bug. Thank you.
2013-10-16 00:43:24 Hyun Ha description On the environment where using Cinder LVM driver, extend_volume fails like the following. # cinder extend 9dd8b44a-6835-40a6-ad9d-a103c25c532d 2 # cinder list +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ 2013-10-16 09:00:05.443 19511 INFO cinder.volume.manager [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] volume 9dd8b44a-6835-40a6-ad9d-a103c25c532d: extending 2013-10-16 09:00:05.444 19511 DEBUG cinder.openstack.common.processutils [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Running cmd (subprocess): sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d execute /opt/openstack/cinder/cinder/openstack/common/processutils.py:142 2013-10-16 09:00:05.571 19511 DEBUG cinder.openstack.common.processutils [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Result was 3 execute /opt/openstack/cinder/cinder/openstack/common/processutils.py:167 2013-10-16 09:00:05.573 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Error extending Volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Traceback (most recent call last): 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/brick/local_dev/lvm.py", line 469, in extend_volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm run_as_root=True) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/utils.py", line 142, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm return processutils.execute(*cmd, **kwargs) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/openstack/common/processutils.py", line 173, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm cmd=' '.join(cmd)) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm ProcessExecutionError: Unexpected error while running command. 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Exit code: 3 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stdout: ' Rounding up size to full physical extent 4.00 MiB\n' 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stderr: " New size given (1 extents) not larger than existing size (256 extents)\n Run `lvextend --help' for more information.\n" 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm 2013-10-16 09:00:05.577 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Cmd :sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdOut : Rounding up size to full physical extent 4.00 MiB 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdErr : New size given (1 extents) not larger than existing size (256 extents) Run `lvextend --help' for more information. # cinder help extend usage: cinder extend <volume> <new-size> Attempt to extend the size of an existing volume. Positional arguments: <volume> Name or ID of the volume to extend. <new-size> New size of volume in GB In cinder cli, the integer of 'new-size' is in GB . But In LVM command, (lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d ) '-L 2' is in MB. so, If I really want extend size of volume, 1 GB to 2 GB, I have to try like follow. # cinder extend 54a7125f-3a8f-48dc-a8b8-8f623c742ecb 2048 # cinder list +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | 54a7125f-3a8f-48dc-a8b8-8f623c742ecb | available | haha-vol01 | 2048 | None | false | | | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ # lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert volume-54a7125f-3a8f-48dc-a8b8-8f623c742ecb cinder-volumes -wi-ao 2.00g please check this bug. Thank you. On the environment where using Cinder LVM driver, extend_volume fails like the following. # cinder extend 9dd8b44a-6835-40a6-ad9d-a103c25c532d 2 # cinder list +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ 2013-10-16 09:00:05.443 19511 INFO cinder.volume.manager [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] volume 9dd8b44a-6835-40a6-ad9d-a103c25c532d: extending 2013-10-16 09:00:05.444 19511 DEBUG cinder.openstack.common.processutils [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Running cmd (subprocess): sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d execute /opt/openstack/cinder/cinder/openstack/common/processutils.py:142 2013-10-16 09:00:05.571 19511 DEBUG cinder.openstack.common.processutils [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Result was 3 execute /opt/openstack/cinder/cinder/openstack/common/processutils.py:167 2013-10-16 09:00:05.573 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Error extending Volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Traceback (most recent call last): 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/brick/local_dev/lvm.py", line 469, in extend_volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm run_as_root=True) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/utils.py", line 142, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm return processutils.execute(*cmd, **kwargs) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/openstack/common/processutils.py", line 173, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm cmd=' '.join(cmd)) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm ProcessExecutionError: Unexpected error while running command. 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Exit code: 3 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stdout: ' Rounding up size to full physical extent 4.00 MiB\n' 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stderr: " New size given (1 extents) not larger than existing size (256 extents)\n Run `lvextend --help' for more information.\n" 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm 2013-10-16 09:00:05.577 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Cmd :sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdOut : Rounding up size to full physical extent 4.00 MiB 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdErr : New size given (1 extents) not larger than existing size (256 extents)   Run `lvextend --help' for more information. # cinder help extend usage: cinder extend <volume> <new-size> Attempt to extend the size of an existing volume. Positional arguments:   <volume> Name or ID of the volume to extend.   <new-size> New size of volume in GB In cinder cli, the integer of 'new-size' is in GB . But In LVM command, (lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d ) '-L 2' is in MB. so, If I really want to extend size of volume, 1 GB to 2 GB, I have to try like follow. # cinder extend 54a7125f-3a8f-48dc-a8b8-8f623c742ecb 2048 # cinder list +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | 54a7125f-3a8f-48dc-a8b8-8f623c742ecb | available | haha-vol01 | 2048 | None | false | | | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ # lvs   LV VG Attr LSize Origin Snap% Move Log Copy% Convert   volume-54a7125f-3a8f-48dc-a8b8-8f623c742ecb cinder-volumes -wi-ao 2.00g please check this bug. Thank you.
2013-10-16 00:43:57 Hyun Ha description On the environment where using Cinder LVM driver, extend_volume fails like the following. # cinder extend 9dd8b44a-6835-40a6-ad9d-a103c25c532d 2 # cinder list +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ 2013-10-16 09:00:05.443 19511 INFO cinder.volume.manager [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] volume 9dd8b44a-6835-40a6-ad9d-a103c25c532d: extending 2013-10-16 09:00:05.444 19511 DEBUG cinder.openstack.common.processutils [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Running cmd (subprocess): sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d execute /opt/openstack/cinder/cinder/openstack/common/processutils.py:142 2013-10-16 09:00:05.571 19511 DEBUG cinder.openstack.common.processutils [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Result was 3 execute /opt/openstack/cinder/cinder/openstack/common/processutils.py:167 2013-10-16 09:00:05.573 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Error extending Volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Traceback (most recent call last): 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/brick/local_dev/lvm.py", line 469, in extend_volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm run_as_root=True) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/utils.py", line 142, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm return processutils.execute(*cmd, **kwargs) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/openstack/common/processutils.py", line 173, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm cmd=' '.join(cmd)) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm ProcessExecutionError: Unexpected error while running command. 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Exit code: 3 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stdout: ' Rounding up size to full physical extent 4.00 MiB\n' 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stderr: " New size given (1 extents) not larger than existing size (256 extents)\n Run `lvextend --help' for more information.\n" 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm 2013-10-16 09:00:05.577 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Cmd :sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdOut : Rounding up size to full physical extent 4.00 MiB 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdErr : New size given (1 extents) not larger than existing size (256 extents)   Run `lvextend --help' for more information. # cinder help extend usage: cinder extend <volume> <new-size> Attempt to extend the size of an existing volume. Positional arguments:   <volume> Name or ID of the volume to extend.   <new-size> New size of volume in GB In cinder cli, the integer of 'new-size' is in GB . But In LVM command, (lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d ) '-L 2' is in MB. so, If I really want to extend size of volume, 1 GB to 2 GB, I have to try like follow. # cinder extend 54a7125f-3a8f-48dc-a8b8-8f623c742ecb 2048 # cinder list +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | 54a7125f-3a8f-48dc-a8b8-8f623c742ecb | available | haha-vol01 | 2048 | None | false | | | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ # lvs   LV VG Attr LSize Origin Snap% Move Log Copy% Convert   volume-54a7125f-3a8f-48dc-a8b8-8f623c742ecb cinder-volumes -wi-ao 2.00g please check this bug. Thank you. On the environment where using Cinder LVM driver, extend_volume fails like the following. # cinder extend 9dd8b44a-6835-40a6-ad9d-a103c25c532d 2 # cinder list +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ 2013-10-16 09:00:05.443 19511 INFO cinder.volume.manager [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] volume 9dd8b44a-6835-40a6-ad9d-a103c25c532d: extending 2013-10-16 09:00:05.444 19511 DEBUG cinder.openstack.common.processutils [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Running cmd (subprocess): sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d execute /opt/openstack/cinder/cinder/openstack/common/processutils.py:142 2013-10-16 09:00:05.571 19511 DEBUG cinder.openstack.common.processutils [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Result was 3 execute /opt/openstack/cinder/cinder/openstack/common/processutils.py:167 2013-10-16 09:00:05.573 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Error extending Volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Traceback (most recent call last): 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/brick/local_dev/lvm.py", line 469, in extend_volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm run_as_root=True) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/utils.py", line 142, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm return processutils.execute(*cmd, **kwargs) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/openstack/common/processutils.py", line 173, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm cmd=' '.join(cmd)) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm ProcessExecutionError: Unexpected error while running command. 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Exit code: 3 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stdout: ' Rounding up size to full physical extent 4.00 MiB\n' 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stderr: " New size given (1 extents) not larger than existing size (256 extents)\n Run `lvextend --help' for more information.\n" 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm 2013-10-16 09:00:05.577 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Cmd :sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdOut : Rounding up size to full physical extent 4.00 MiB 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdErr : New size given (1 extents) not larger than existing size (256 extents)   Run `lvextend --help' for more information. # cinder help extend usage: cinder extend <volume> <new-size> Attempt to extend the size of an existing volume. Positional arguments:   <volume> Name or ID of the volume to extend.   <new-size> New size of volume in GB In cinder cli, the integer of 'new-size' is in GB . But In LVM command, (lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d ) '-L 2' is in MB. so, If I really want to extend size of volume, 1 GB to 2 GB, I have to try like the following. # cinder extend 54a7125f-3a8f-48dc-a8b8-8f623c742ecb 2048 # cinder list +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | 54a7125f-3a8f-48dc-a8b8-8f623c742ecb | available | haha-vol01 | 2048 | None | false | | | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ # lvs   LV VG Attr LSize Origin Snap% Move Log Copy% Convert   volume-54a7125f-3a8f-48dc-a8b8-8f623c742ecb cinder-volumes -wi-ao 2.00g please check this bug. Thank you.
2013-10-16 00:44:43 Hyun Ha description On the environment where using Cinder LVM driver, extend_volume fails like the following. # cinder extend 9dd8b44a-6835-40a6-ad9d-a103c25c532d 2 # cinder list +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ 2013-10-16 09:00:05.443 19511 INFO cinder.volume.manager [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] volume 9dd8b44a-6835-40a6-ad9d-a103c25c532d: extending 2013-10-16 09:00:05.444 19511 DEBUG cinder.openstack.common.processutils [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Running cmd (subprocess): sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d execute /opt/openstack/cinder/cinder/openstack/common/processutils.py:142 2013-10-16 09:00:05.571 19511 DEBUG cinder.openstack.common.processutils [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Result was 3 execute /opt/openstack/cinder/cinder/openstack/common/processutils.py:167 2013-10-16 09:00:05.573 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Error extending Volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Traceback (most recent call last): 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/brick/local_dev/lvm.py", line 469, in extend_volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm run_as_root=True) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/utils.py", line 142, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm return processutils.execute(*cmd, **kwargs) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/openstack/common/processutils.py", line 173, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm cmd=' '.join(cmd)) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm ProcessExecutionError: Unexpected error while running command. 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Exit code: 3 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stdout: ' Rounding up size to full physical extent 4.00 MiB\n' 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stderr: " New size given (1 extents) not larger than existing size (256 extents)\n Run `lvextend --help' for more information.\n" 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm 2013-10-16 09:00:05.577 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Cmd :sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdOut : Rounding up size to full physical extent 4.00 MiB 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdErr : New size given (1 extents) not larger than existing size (256 extents)   Run `lvextend --help' for more information. # cinder help extend usage: cinder extend <volume> <new-size> Attempt to extend the size of an existing volume. Positional arguments:   <volume> Name or ID of the volume to extend.   <new-size> New size of volume in GB In cinder cli, the integer of 'new-size' is in GB . But In LVM command, (lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d ) '-L 2' is in MB. so, If I really want to extend size of volume, 1 GB to 2 GB, I have to try like the following. # cinder extend 54a7125f-3a8f-48dc-a8b8-8f623c742ecb 2048 # cinder list +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | 54a7125f-3a8f-48dc-a8b8-8f623c742ecb | available | haha-vol01 | 2048 | None | false | | | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ # lvs   LV VG Attr LSize Origin Snap% Move Log Copy% Convert   volume-54a7125f-3a8f-48dc-a8b8-8f623c742ecb cinder-volumes -wi-ao 2.00g please check this bug. Thank you. On the environment where using Cinder LVM driver, extend_volume fails like the following. # cinder extend 9dd8b44a-6835-40a6-ad9d-a103c25c532d 2 # cinder list +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+----------------+------+-------------+----------+-------------+ 2013-10-16 09:00:05.573 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Error extending Volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Traceback (most recent call last): 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/brick/local_dev/lvm.py", line 469, in extend_volume 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm run_as_root=True) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/utils.py", line 142, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm return processutils.execute(*cmd, **kwargs) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm File "/opt/openstack/cinder/cinder/openstack/common/processutils.py", line 173, in execute 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm cmd=' '.join(cmd)) 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm ProcessExecutionError: Unexpected error while running command. 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Exit code: 3 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stdout: ' Rounding up size to full physical extent 4.00 MiB\n' 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm Stderr: " New size given (1 extents) not larger than existing size (256 extents)\n Run `lvextend --help' for more information.\n" 2013-10-16 09:00:05.573 19511 TRACE cinder.brick.local_dev.lvm 2013-10-16 09:00:05.577 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] Cmd :sudo cinder-rootwrap /opt/openstack/cinder/etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdOut : Rounding up size to full physical extent 4.00 MiB 2013-10-16 09:00:05.580 19511 ERROR cinder.brick.local_dev.lvm [req-5ef88a15-b50d-4135-ad7c-926ad3cc8e5d e68844e2afb14001a4e322e76c0ded99 469289b44db3489fb635083f2000cf4e] StdErr : New size given (1 extents) not larger than existing size (256 extents)   Run `lvextend --help' for more information. # cinder help extend usage: cinder extend <volume> <new-size> Attempt to extend the size of an existing volume. Positional arguments:   <volume> Name or ID of the volume to extend.   <new-size> New size of volume in GB In cinder cli, the integer of 'new-size' is in GB . But In LVM command, (lvextend -L 2 cinder-volumes/volume-9dd8b44a-6835-40a6-ad9d-a103c25c532d ) '-L 2' is in MB. so, If I really want to extend size of volume, 1 GB to 2 GB, I have to try like the following. # cinder extend 54a7125f-3a8f-48dc-a8b8-8f623c742ecb 2048 # cinder list +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ | 54a7125f-3a8f-48dc-a8b8-8f623c742ecb | available | haha-vol01 | 2048 | None | false | | | 9dd8b44a-6835-40a6-ad9d-a103c25c532d | error_extending | test03 | 1 | None | false | | +--------------------------------------+-----------------+--------------+------+-------------+----------+-------------+ # lvs   LV VG Attr LSize Origin Snap% Move Log Copy% Convert   volume-54a7125f-3a8f-48dc-a8b8-8f623c742ecb cinder-volumes -wi-ao 2.00g please check this bug. Thank you.
2013-10-16 00:49:57 Hyun Ha summary cinder extend cinder : extend volume Error
2013-10-16 01:09:58 John Griffith cinder: status New Triaged
2013-10-16 01:10:00 John Griffith cinder: assignee John Griffith (john-griffith)
2013-10-16 01:10:04 John Griffith cinder: milestone havana-rc3
2013-10-16 01:10:07 John Griffith cinder: importance Undecided Critical
2013-10-16 01:16:41 OpenStack Infra cinder: status Triaged In Progress
2013-10-16 03:29:13 OpenStack Infra cinder: status In Progress Fix Committed
2013-10-16 04:53:57 OpenStack Infra cinder: status Fix Committed Fix Released
2013-10-17 10:32:34 Thierry Carrez cinder: milestone havana-rc3 2013.2