Bug 2224565 - [RFE] Multiple puppet classes delete [NEEDINFO]
Summary: [RFE] Multiple puppet classes delete
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Puppet
Version: 6.14.0
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-21 13:43 UTC by anfacina
Modified: 2023-08-08 11:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:
lstejska: needinfo? (anfacina)


Attachments (Terms of Use)

Description anfacina 2023-07-21 13:43:50 UTC
Description of problem:
The customer migrated the environment from puppet to Ansible, and they would like to remove all puppet classes using hammer or webconsole, but unfortunately hammer does not provide such functionality, but Satellite API can help here. Please check https://SATELLITE-FQDN/apidoc specifically DELETE /foreman_puppet/api/puppetclasses/:id  Delete a Puppet class and related methods that could help you to remove puppet related stuff.

Version-Release number of selected component (if applicable):
Satellite 6.13

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:
There is no a method in hammer or Web Console to remove the puppet classes, the only way is using the Satellite API.

Expected results:
Remove the puppet classes using hammer command or through the Web console


Additional info:

Comment 1 Adam Ruzicka 2023-08-02 15:02:02 UTC
On a side note, what do you mean by web console?

Comment 2 Leos Stejskal 2023-08-08 11:36:21 UTC
Hi,
AFAIK we don't have an endpoint for such an action for any other resources,
and we are not planning to add this kind of delete-all-resources endpoint.

Why doesn't the CU list all the puppet classes (their ids) and then simply
iterate over the list of ids, calling the API endpoint for deleting the resource?


Note You need to log in before you can comment on or make changes to this bug.