cloudstack
cloudstack copied to clipboard
Event state is incorrect when Maintenance mode is Enabled/Cancelled on a Primary storage
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
-
Navigate to Infrastructure > Primary storage
-
Select a primary storage and enable maintenance mode
-
The event generated for maintenance is in Scheduled state
-
Cancel the maintenance mode on the primary storage
-
The event generated for maintenance is in Scheduled state
*************************** 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