You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Mike Tutkowski <mi...@solidfire.com> on 2013/08/06 01:18:14 UTC

Issue with deleting a volume that's never been attached to a VM

Hi,

I've noticed in 4.2 when I try to delete a volume that's never been
attached to a VM that CloudStack says the operation was successful and the
GUI removes the volume from the table, but when I refresh the table, the
volume comes back.

Has anyone else noticed this behavior as of late?

If I attach the volume, then detach it, then delete it, all behaves as
expected.

Thanks!

-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: Issue with deleting a volume that's never been attached to a VM

Posted by Prasanna Santhanam <ts...@apache.org>.
Already in the JIRA reports - CLOUDSTACK-4038

On Tue, Aug 06, 2013 at 04:51:31AM +0000, Rajesh Battala wrote:
> I able to reproduce it. 
> Deleting unattached volume is coming back again. 
> The removed column is not update in the db for this volume. 
> 
> Will create a major bug. 
> 
> *************************** 6. row ***************************
>                         id: 6
>                 account_id: 2
>                  domain_id: 1
>                    pool_id: NULL
>               last_pool_id: NULL
>                instance_id: NULL
>                  device_id: NULL
>                       name: testVol
>                       uuid: 3b008262-1c52-49a7-900d-b38fbf274e89
>                       size: 5368709120
>                     folder: NULL
>                       path: NULL
>                     pod_id: NULL
>             data_center_id: 1
>                 iscsi_name: NULL
>                    host_ip: NULL
>                volume_type: DATADISK
>                  pool_type: NULL
>           disk_offering_id: 3
>                template_id: NULL
> first_snapshot_backup_uuid: NULL
>                recreatable: 0
>                    created: 2013-08-06 04:47:07
>                   attached: NULL
>                    updated: 2013-08-06 04:47:07
>                    removed: NULL
>                      state: Allocated
>                 chain_info: NULL
>               update_count: 0
>                  disk_type: NULL
>     vm_snapshot_chain_size: NULL
>                     iso_id: 0
>             display_volume: 1
>                     format: NULL
>                   min_iops: NULL
>                   max_iops: NULL
> 6 rows in set (0.00 sec)
> 
> 
> 
> -----Original Message-----
> From: Rajesh Battala [mailto:rajesh.battala@citrix.com] 
> Sent: Tuesday, August 6, 2013 10:15 AM
> To: dev@cloudstack.apache.org
> Subject: RE: Issue with deleting a volume that's never been attached to a VM
> 
> I will try on my setup 
> 
> -----Original Message-----
> From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com] 
> Sent: Tuesday, August 6, 2013 4:48 AM
> To: dev@cloudstack.apache.org
> Subject: Issue with deleting a volume that's never been attached to a VM
> 
> Hi,
> 
> I've noticed in 4.2 when I try to delete a volume that's never been attached to a VM that CloudStack says the operation was successful and the GUI removes the volume from the table, but when I refresh the table, the volume comes back.
> 
> Has anyone else noticed this behavior as of late?
> 
> If I attach the volume, then detach it, then delete it, all behaves as expected.
> 
> Thanks!
> 
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *(tm)*

-- 
Prasanna.,

------------------------
Powered by BigRock.com


Re: Issue with deleting a volume that's never been attached to a VM

Posted by Mike Tutkowski <mi...@solidfire.com>.
Thanks, everyone!


On Mon, Aug 5, 2013 at 11:01 PM, Sailaja Mada <sa...@citrix.com>wrote:

> Hi Rajesh,
>
> I have created the issue some time back @ CLOUDSTACK-4038) State of the
> DATA volumes remains in Allocated state if they are deleted before using
> them (Attach/Detach)
>
> Thanks,
> Sailaja.M
>
> -----Original Message-----
> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
> Sent: Tuesday, August 06, 2013 10:22 AM
> To: dev@cloudstack.apache.org
> Subject: RE: Issue with deleting a volume that's never been attached to a
> VM
>
> I able to reproduce it.
> Deleting unattached volume is coming back again.
> The removed column is not update in the db for this volume.
>
> Will create a major bug.
>
> *************************** 6. row ***************************
>                         id: 6
>                 account_id: 2
>                  domain_id: 1
>                    pool_id: NULL
>               last_pool_id: NULL
>                instance_id: NULL
>                  device_id: NULL
>                       name: testVol
>                       uuid: 3b008262-1c52-49a7-900d-b38fbf274e89
>                       size: 5368709120
>                     folder: NULL
>                       path: NULL
>                     pod_id: NULL
>             data_center_id: 1
>                 iscsi_name: NULL
>                    host_ip: NULL
>                volume_type: DATADISK
>                  pool_type: NULL
>           disk_offering_id: 3
>                template_id: NULL
> first_snapshot_backup_uuid: NULL
>                recreatable: 0
>                    created: 2013-08-06 04:47:07
>                   attached: NULL
>                    updated: 2013-08-06 04:47:07
>                    removed: NULL
>                      state: Allocated
>                 chain_info: NULL
>               update_count: 0
>                  disk_type: NULL
>     vm_snapshot_chain_size: NULL
>                     iso_id: 0
>             display_volume: 1
>                     format: NULL
>                   min_iops: NULL
>                   max_iops: NULL
> 6 rows in set (0.00 sec)
>
>
>
> -----Original Message-----
> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
> Sent: Tuesday, August 6, 2013 10:15 AM
> To: dev@cloudstack.apache.org
> Subject: RE: Issue with deleting a volume that's never been attached to a
> VM
>
> I will try on my setup
>
> -----Original Message-----
> From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com]
> Sent: Tuesday, August 6, 2013 4:48 AM
> To: dev@cloudstack.apache.org
> Subject: Issue with deleting a volume that's never been attached to a VM
>
> Hi,
>
> I've noticed in 4.2 when I try to delete a volume that's never been
> attached to a VM that CloudStack says the operation was successful and the
> GUI removes the volume from the table, but when I refresh the table, the
> volume comes back.
>
> Has anyone else noticed this behavior as of late?
>
> If I attach the volume, then detach it, then delete it, all behaves as
> expected.
>
> Thanks!
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *(tm)*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

RE: Issue with deleting a volume that's never been attached to a VM

Posted by Sailaja Mada <sa...@citrix.com>.
Hi Rajesh,

I have created the issue some time back @ CLOUDSTACK-4038) State of the DATA volumes remains in Allocated state if they are deleted before using them (Attach/Detach) 

Thanks,
Sailaja.M

-----Original Message-----
From: Rajesh Battala [mailto:rajesh.battala@citrix.com] 
Sent: Tuesday, August 06, 2013 10:22 AM
To: dev@cloudstack.apache.org
Subject: RE: Issue with deleting a volume that's never been attached to a VM

I able to reproduce it. 
Deleting unattached volume is coming back again. 
The removed column is not update in the db for this volume. 

Will create a major bug. 

*************************** 6. row ***************************
                        id: 6
                account_id: 2
                 domain_id: 1
                   pool_id: NULL
              last_pool_id: NULL
               instance_id: NULL
                 device_id: NULL
                      name: testVol
                      uuid: 3b008262-1c52-49a7-900d-b38fbf274e89
                      size: 5368709120
                    folder: NULL
                      path: NULL
                    pod_id: NULL
            data_center_id: 1
                iscsi_name: NULL
                   host_ip: NULL
               volume_type: DATADISK
                 pool_type: NULL
          disk_offering_id: 3
               template_id: NULL
first_snapshot_backup_uuid: NULL
               recreatable: 0
                   created: 2013-08-06 04:47:07
                  attached: NULL
                   updated: 2013-08-06 04:47:07
                   removed: NULL
                     state: Allocated
                chain_info: NULL
              update_count: 0
                 disk_type: NULL
    vm_snapshot_chain_size: NULL
                    iso_id: 0
            display_volume: 1
                    format: NULL
                  min_iops: NULL
                  max_iops: NULL
6 rows in set (0.00 sec)



-----Original Message-----
From: Rajesh Battala [mailto:rajesh.battala@citrix.com] 
Sent: Tuesday, August 6, 2013 10:15 AM
To: dev@cloudstack.apache.org
Subject: RE: Issue with deleting a volume that's never been attached to a VM

I will try on my setup 

-----Original Message-----
From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com] 
Sent: Tuesday, August 6, 2013 4:48 AM
To: dev@cloudstack.apache.org
Subject: Issue with deleting a volume that's never been attached to a VM

Hi,

I've noticed in 4.2 when I try to delete a volume that's never been attached to a VM that CloudStack says the operation was successful and the GUI removes the volume from the table, but when I refresh the table, the volume comes back.

Has anyone else noticed this behavior as of late?

If I attach the volume, then detach it, then delete it, all behaves as expected.

Thanks!

--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*(tm)*

RE: Issue with deleting a volume that's never been attached to a VM

Posted by Rajesh Battala <ra...@citrix.com>.
I able to reproduce it. 
Deleting unattached volume is coming back again. 
The removed column is not update in the db for this volume. 

Will create a major bug. 

*************************** 6. row ***************************
                        id: 6
                account_id: 2
                 domain_id: 1
                   pool_id: NULL
              last_pool_id: NULL
               instance_id: NULL
                 device_id: NULL
                      name: testVol
                      uuid: 3b008262-1c52-49a7-900d-b38fbf274e89
                      size: 5368709120
                    folder: NULL
                      path: NULL
                    pod_id: NULL
            data_center_id: 1
                iscsi_name: NULL
                   host_ip: NULL
               volume_type: DATADISK
                 pool_type: NULL
          disk_offering_id: 3
               template_id: NULL
first_snapshot_backup_uuid: NULL
               recreatable: 0
                   created: 2013-08-06 04:47:07
                  attached: NULL
                   updated: 2013-08-06 04:47:07
                   removed: NULL
                     state: Allocated
                chain_info: NULL
              update_count: 0
                 disk_type: NULL
    vm_snapshot_chain_size: NULL
                    iso_id: 0
            display_volume: 1
                    format: NULL
                  min_iops: NULL
                  max_iops: NULL
6 rows in set (0.00 sec)



-----Original Message-----
From: Rajesh Battala [mailto:rajesh.battala@citrix.com] 
Sent: Tuesday, August 6, 2013 10:15 AM
To: dev@cloudstack.apache.org
Subject: RE: Issue with deleting a volume that's never been attached to a VM

I will try on my setup 

-----Original Message-----
From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com] 
Sent: Tuesday, August 6, 2013 4:48 AM
To: dev@cloudstack.apache.org
Subject: Issue with deleting a volume that's never been attached to a VM

Hi,

I've noticed in 4.2 when I try to delete a volume that's never been attached to a VM that CloudStack says the operation was successful and the GUI removes the volume from the table, but when I refresh the table, the volume comes back.

Has anyone else noticed this behavior as of late?

If I attach the volume, then detach it, then delete it, all behaves as expected.

Thanks!

--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*(tm)*

RE: Issue with deleting a volume that's never been attached to a VM

Posted by Rajesh Battala <ra...@citrix.com>.
I will try on my setup 

-----Original Message-----
From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com] 
Sent: Tuesday, August 6, 2013 4:48 AM
To: dev@cloudstack.apache.org
Subject: Issue with deleting a volume that's never been attached to a VM

Hi,

I've noticed in 4.2 when I try to delete a volume that's never been attached to a VM that CloudStack says the operation was successful and the GUI removes the volume from the table, but when I refresh the table, the volume comes back.

Has anyone else noticed this behavior as of late?

If I attach the volume, then detach it, then delete it, all behaves as expected.

Thanks!

--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*(tm)*