Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1798154

Summary: deprecate katello-agent in satellite 6.7
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: katello-agentAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: tstrych
Severity: medium Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: egolov, greartes, kkohli, spetrosi, tstrych
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.14.0.14-1 Doc Type: Deprecated Functionality
Doc Text:
The Katello agent is deprecated and will be removed in a future release. Transition your workloads to using the remote execution feature.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 15:54:31 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 Justin Sherrill 2020-02-04 17:04:01 UTC
Description of problem:

katello-agent is going away in satellite 7.0 and deprecation warnings need to be added throughout the application for it

Things needing the warnings: Api, cli, and UI

In the UI, we'd need them on the content host details pages for package and errata actions, as well as for bulk package/errata actions

Comment 3 Justin Sherrill 2020-02-26 21:09:49 UTC
Created redmine issue https://projects.theforeman.org/issues/29200 from this bug

Comment 4 Bryan Kearney 2020-02-26 23:05:29 UTC
Upstream bug assigned to jsherril

Comment 5 Bryan Kearney 2020-02-26 23:05:31 UTC
Upstream bug assigned to jsherril

Comment 6 Bryan Kearney 2020-03-02 23:05:24 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/29200 has been resolved.

Comment 8 tstrych 2020-03-09 15:37:48 UTC
I was able to test UI

Hosts -> Content hosts: 
a) Bulk action - manage errata
b) Bulk action - manage packages
c) content host -> packages ( Actions, Installed, Applicable )
d) content host -> errata
e) register content host

API and cli still pending, I unsuccessfully tried to reach the api_deprecation_warning.

Comment 9 tstrych 2020-03-09 16:17:43 UTC
After talk with developers, there is a problem with seeing deprecation message in logs. (during api and cli calls)
This problem needs to be fixed, validation failed.

Comment 11 Justin Sherrill 2020-03-12 13:19:25 UTC
moving to ON_DEV now that https://bugzilla.redhat.com/show_bug.cgi?id=1812137 is too

Comment 12 tstrych 2020-03-16 18:47:15 UTC
I was able to verify CLI and API now. 

API call:

host bulk actions - example I used for install content
curl --header "Accept:application/json,version=2" --header "Content-Type:application/json" --request PUT --user username:password --insecure --data '{"host_id":"<id>","organization_id":"<ord_id>","content_type":"package","included":{"search":"<hostname of content machine>"},"content":["<package_list>"]}'  https://<satellite hostname>/api/hosts/bulk/install_content


host packages - example I used for remove
curl --header "Accept:application/json,version=2" --header "Content-Type:application/json" --request PUT --user username:password --insecure --data '{"host_id":"<id>","packages":["<package_name>"]}' https://<satellite hostname>/api/hosts/<id>/packages/remove


CLI: 
host bulk actions - example for remove:
1.(create host collection) 
hammer host-collection create --host-ids <id> --organization-id <org_id> --name <hc_name>
2.make a bulk action
hammer host-collection package remove --packages <list of packages> --organization-id <id>

host packages:
hammer host package upgrade --host-id <id> --packages <list of packages>

In production log:
DEPRECATION WARNING: Remote actions using katello-agent are deprecated and will be removed in Katello 4.0.  You may consider switching to Remote Execution.

Comment 13 tstrych 2020-03-16 18:48:02 UTC
It was verified with sat 6.7 snap 16.

Comment 16 errata-xmlrpc 2020-04-14 15:54:31 UTC
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, 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:1455