cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Event state is incorrect when Maintenance mode is Enabled/Cancelled on a Primary storage

Open kiranchavala opened this issue 2 years ago • 0 comments

ISSUE TYPE

Bug

COMPONENT NAME

Component: API/ UI

CLOUDSTACK VERSION

Cloudstack version 4.18,

SUMMARY

Event is incorrectly displayed when Maintenance mode is Enabled/Cancelled on a Primary storage

Steps to reproduce the issue

  1. Navigate to Infrastructure > Primary storage

  2. Select a primary storage and enable maintenance mode

  3. The event generated for maintenance is in Scheduled state

  4. Cancel the maintenance mode on the primary storage

  5. The event generated for maintenance is in Scheduled state

enable-maintainence mode

eventmainteance

eventmaintainece2

*************************** 213. row ***************************
           id: 213
         uuid: 7816d935-2586-45d1-b98b-53e3bccc31fe
         type: MAINT.PREPARE.PS
        state: Scheduled
  description: preparing storage pool: 1 for maintenance
      user_id: 2
   account_id: 2
    domain_id: 1
  resource_id: 1
resource_type: StoragePool
      created: 2024-01-11 05:17:55
        level: INFO
     start_id: 0
   parameters: NULL
     archived: 0
      display: 1


*************************** 214. row ***************************
           id: 214
         uuid: 63683a5d-dda2-44d2-aa25-86b03f8a1de0
         type: MAINT.CANCEL.PS
        state: Scheduled
  description: canceling maintenance for primary storage pool: 1
      user_id: 2
   account_id: 2
    domain_id: 1
  resource_id: 1
resource_type: StoragePool
      created: 2024-01-11 05:24:11
        level: INFO
     start_id: 0
   parameters: NULL
     archived: 0
      display: 1

Expected behavior

The state of the event should be completed

kiranchavala avatar Jan 11 '24 06:01 kiranchavala