Bug 1842571
| Summary: | Ceilometer updates the gnocchi resource as ended as soon as delete action is triggered without validating if the resource is deleted. | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | KOSAL RAJ I <kiyyappa> |
| Component: | openstack-ceilometer | Assignee: | Matthias Runge <mrunge> |
| Status: | CLOSED ERRATA | QA Contact: | Leonid Natapov <lnatapov> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 13.0 (Queens) | CC: | apevec, jschluet, lhh, mrunge, pkilambi, rdiwakar |
| Target Milestone: | z13 | Keywords: | Triaged, ZStream |
| Target Release: | 13.0 (Queens) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-ceilometer-10.0.1-12.el7ost | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-10-28 18:31:03 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
KOSAL RAJ I
2020-06-01 14:42:16 UTC
I created a volume (one), a snapshot from that volume (one-snap), a volume (two) from the snapshot and tried to delete the volume two. In this case, I can not even delete with --purge, but at the same time, gnocchi does NOT mark the volume as ended. While not being able to delete a new volume created from a snapshot may be wrong, I don't see inconsistent behavior here in ceilometer. Again, am I missing something? I've posted a fix on https://review.opendev.org/736445 (overcloud) [stack@undercloud-0 ~]$ openstack volume create --size 20 lala +---------------------+--------------------------------------+ | Field | Value | +---------------------+--------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2020-10-20T05:27:00.000000 | | description | None | | encrypted | False | | id | b6e4463b-463b-441d-9634-68f3d95b2ec8 | | migration_status | None | | multiattach | False | | name | lala | | properties | | | replication_status | None | | size | 20 | | snapshot_id | None | | source_volid | None | | status | creating | | type | tripleo | | updated_at | None | | user_id | 2fc8ac9126654aaa865bd2951dce769b | +---------------------+--------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ openstack volume snapshot create --volume b6e4463b-463b-441d-9634-68f3d95b2ec foo_snap No volume with a name or ID of 'b6e4463b-463b-441d-9634-68f3d95b2ec' exists. (overcloud) [stack@undercloud-0 ~]$ openstack volume snapshot create --volume b6e4463b-463b-441d-9634-68f3d95b2ec8 foo_snap +-------------+--------------------------------------+ | Field | Value | +-------------+--------------------------------------+ | created_at | 2020-10-20T05:27:42.571786 | | description | None | | id | fe76b453-b184-4dde-b2c0-1b553953de64 | | name | foo_snap | | properties | | | size | 20 | | status | creating | | updated_at | None | | volume_id | b6e4463b-463b-441d-9634-68f3d95b2ec8 | +-------------+--------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ openstack volume create --snapshot fe76b453-b184-4dde-b2c0-1b553953de64 clone +---------------------+--------------------------------------+ | Field | Value | +---------------------+--------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2020-10-20T05:28:05.000000 | | description | None | | encrypted | False | | id | 3b97ad9f-bfbc-46ae-8676-0949a6db4493 | | migration_status | None | | multiattach | False | | name | clone | | properties | | | replication_status | None | | size | 20 | | snapshot_id | fe76b453-b184-4dde-b2c0-1b553953de64 | | source_volid | None | | status | creating | | type | tripleo | | updated_at | None | | user_id | 2fc8ac9126654aaa865bd2951dce769b | +---------------------+--------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ openstack volume delete --purge b6e4463b-463b-441d-9634-68f3d95b2ec8 (overcloud) [stack@undercloud-0 ~]$ openstack metric resource show b6e4463b-463b-441d-9634-68f3d95b2ec8 +-----------------------+-----------------------------------------------------------------------------+ | Field | Value | +-----------------------+-----------------------------------------------------------------------------+ | created_by_project_id | e4342cc6968c430ea7467623eb6b97ee | | created_by_user_id | 3d9310cce76642c49a10b61cdcdcb1cd | | creator | 3d9310cce76642c49a10b61cdcdcb1cd:e4342cc6968c430ea7467623eb6b97ee | | ended_at | None | | id | b6e4463b-463b-441d-9634-68f3d95b2ec8 | | metrics | snapshot.size: f30a5ca2-b47a-4a65-b1b0-fd3e912edec5 | | | volume.backup.size: 1e4f3ae3-8fd6-4241-8494-f5869dffe4b6 | | | volume.manage_existing.end: 1276a543-6505-46c9-8f62-6a201918ce6f | | | volume.manage_existing.start: ebb3e582-1f38-4035-9029-cf469e658fbe | | | volume.manage_existing_snapshot.end: 1b19c7f9-1ef3-46a7-80a6-d17558ba4add | | | volume.manage_existing_snapshot.start: d624c857-a4f4-421e-9b35-3a0a22ae1f0b | | | volume.size: 74b0f14a-977b-4ad1-b646-1551b7d69865 | | | volume.snapshot.size: 7d766aa6-be35-4313-8077-15fb47e56f81 | | | volume: 76391447-8775-4985-ab36-9472d4cc5db5 | | original_resource_id | b6e4463b-463b-441d-9634-68f3d95b2ec8 | | project_id | b0a43e2bb36e4910a6730e2d823ef08f | | revision_end | None | | revision_start | 2020-10-20T05:27:37.099628+00:00 | | started_at | 2020-10-20T05:27:37.099541+00:00 | | type | volume | | user_id | 2fc8ac9126654aaa865bd2951dce769b | +-----------------------+-----------------------------------------------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (openstack-ceilometer bug fix advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4396 |