kiranchavala opened a new issue, #9190:
URL: https://github.com/apache/cloudstack/issues/9190

   ISSUE TYPE
   
   BUG 
   
   
   Component Name
   
   Volume, 
   
   CLOUDSTACK VERSION
   
   Cloudstack version 4.18, 4.19 
   
   SUMMARY
   
   Disk offering can be changed for a volume created with encrypted offering
   
   
   Steps to reproduce the issue
   
   
   1. Create a disk offering with encryption option enabled 
   
   2. Create a volume with the disk offering mentioned in step 1 
   
   3. Create a disk offering with encryption option disabled
   
   4. Change the disk offering of the volume created in step 2 to the 
disoffering mentioned in step 3 
   
   
   In the database, we are changing only the disk offering id , the  
passphrase_id and encrypt_format remains the same
   
   ```
   mysql> select * from volumes where id=59 \G;
   *************************** 1. row ***************************
                           id: 59
                   account_id: 2
                    domain_id: 1
                      pool_id: 1
                 last_pool_id: NULL
                  instance_id: 57
                    device_id: 1
                         name: DATA-57
                         uuid: 35bc8d97-2f5c-4eeb-9973-6dfcb125a2a8
                         size: 11811160064
                       folder: NULL
                         path: 35bc8d97-2f5c-4eeb-9973-6dfcb125a2a8
                       pod_id: NULL
               data_center_id: 1
                   iscsi_name: NULL
                      host_ip: NULL
                  volume_type: DATADISK
                    pool_type: NULL
             disk_offering_id: 6
                  template_id: NULL
   first_snapshot_backup_uuid: NULL
                  recreatable: 0
                      created: 2024-06-07 06:50:07
                     attached: NULL
                      updated: 2024-06-07 06:54:46
                      removed: NULL
                        state: Ready
                   chain_info: NULL
                 update_count: 4
                    disk_type: NULL
       vm_snapshot_chain_size: NULL
                       iso_id: NULL
               display_volume: 1
                       format: QCOW2
                     min_iops: NULL
                     max_iops: NULL
                hv_ss_reserve: NULL
            provisioning_type: thin
                external_uuid: NULL
                passphrase_id: 1
               encrypt_format: luks
   
   
   
    ```
   
   
   Actual Behaviour
   
   Cloudstack is allowing to  change the disk offering from encrypted to 
unecrypted  or vice versa
   
   Expected Behaviour
   
   Cloudstack should not allow change of disk offering change  from encrypted 
to unecrypted  or vice versa


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to