Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-11164

[RFE] Cinder: ability to track/list volume events

XMLWordPrintable

    • Icon: Feature Feature
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • cinder-operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • ?
    • ?
    • ?
    • ?

      As an OpenStack operator, I would like to be able to list the events that affected a volume during it's lifecycle.
      For example, the creation, modification and deletion events. This would be useful for customers not only from an audit perspective, but also for operational purposes, as they would be able to tell when the last snapshot or backup was created or deleted, or when the qos properties where defined or changed.
      This is is line with what nova already offers for server events, so it would provide a consistent user experience. For example:

      (overcloud) [stack@director.keller.lab ~]$ openstack server event list --fit -c "Request ID" -c Action -c "Start Time" testvm001 
      +------------------------------------------+----------------+----------------------------+
      | Request ID                               | Action         | Start Time                 |
      +------------------------------------------+----------------+----------------------------+
      | req-dce0d97c-15f0-4179-85fa-fcd3a9110c9e | attach_volume  | 2024-11-04T11:01:17.000000 |
      | req-73d7ce59-6132-4847-9710-c1e3a2742d20 | live-migration | 2024-11-04T11:00:26.000000 |
      | req-fc65925e-33ba-4375-930c-4bb855e43803 | create         | 2024-11-04T10:59:23.000000 |
      +------------------------------------------+----------------+----------------------------+
      (overcloud) [stack@director.keller.lab ~]$ openstack server event show testvm001 req-dce0d97c-15f0-4179-85fa-fcd3a9110c9e --fit
      +---------------+--------------------------------------------------------------------------------------------+
      | Field         | Value                                                                                      |
      +---------------+--------------------------------------------------------------------------------------------+
      | action        | attach_volume                                                                              |
      | events        | [{'event': 'compute_attach_volume', 'start_time': '2024-11-04T11:01:18.000000',            |
      |               | 'finish_time': '2024-11-04T11:01:22.000000', 'result': 'Success', 'traceback': None,       |
      |               | 'host': 'overcloud-novacompute-0.keller.lab', 'hostId':                                    |
      |               | '1f4ef244ca3fe3dc82f22b5881b944b36ee46a44b8543363bc43503f'}]                               |
      | instance_uuid | 799e6a71-70ad-4f6c-9655-61565aaf77cf                                                       |
      | message       | None                                                                                       |
      | project_id    | 3224cb31026b4b7e8caf537904b03a53                                                           |
      | request_id    | req-dce0d97c-15f0-4179-85fa-fcd3a9110c9e                                                   |
      | start_time    | 2024-11-04T11:01:17.000000                                                                 |
      | updated_at    | 2024-11-04T11:01:22.000000                                                                 |
      | user_id       | dcd17f4df82e4222868a84617345fd7a                                                           |
      +---------------+--------------------------------------------------------------------------------------------+
      (overcloud) [stack@director.keller.lab ~]$ 
      

              Unassigned Unassigned
              rhn-support-enothen Eric Nothen
              rhos-dfg-storage-squad-cinder
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: