Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2165803

Summary: [DDF] Delete users of disabled telemetry services after upgrade
Product: Red Hat OpenStack Reporter: Yadnesh Kulkarni <ykulkarn>
Component: documentationAssignee: mgeary <mgeary>
Status: CLOSED CURRENTRELEASE QA Contact: Leonid Natapov <lnatapov>
Severity: medium Docs Contact: mgeary <mgeary>
Priority: medium    
Version: 16.2 (Train)CC: jbadiapa, lmadsen, mrunge
Target Milestone: z2Keywords: Documentation, Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-31 12:47: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:
Bug Depends On: 2158159    
Bug Blocks:    

Description Yadnesh Kulkarni 2023-01-31 06:02:16 UTC
Description of problem:

Add a post upgrade action in documentation[1] to delete obsolete telemetry users.

While upgrading RHOSP13 to RHOSP16.2, legacy telemetry services(gnocchi, ceilometer, aodh) are removed during upgrade unless it's explicitly enabled.
These services are disabled by default in RHOSP16.2
```
source ~/overcloudrc

# Find which telemetry endpoints exist after upgrade.
openstack endpoint list | grep -i -e aodh -e gnocchi -e panko

# Delete the users of the missing endpoints.
openstack user delete aodh gnocchi panko
```

Performing this task is not mandatory, this is just a cleanup task. Existance those users with deleted endpoints doesn't impact the cloud in anyway.

[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.2/html-single/framework_for_upgrades_13_to_16.2/index#performing-post-upgrade-actions

Comment 6 Leif Madsen 2023-04-20 12:53:41 UTC
25.2 Deleting users of disabled telemetry services

<blurb about telemetry services being disabled by default, this cleans up left over endpoints>

.Procedure

. Login to your undercloud and source the overcloud authentication file <NOTE: I think there is a template for this in the common/global/ director>
source ~/overcloudrc

. Find which telemetry endpoints exist after upgrade:
openstack endpoint list | grep -i -e aodh -e gnocchi -e panko

. Delete the users of the missing endpoints:
openstack user delete aodh gnocchi panko

Comment 17 Juan Badia Payno 2023-04-25 13:50:23 UTC
This BZ is also related to BZ#2158159

Comment 35 Leif Madsen 2023-08-31 12:47:03 UTC
This has been published and is available in the RHOSP 16.2 framework for upgrades guide.