Bug 1798154
| Summary: | deprecate katello-agent in satellite 6.7 | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Justin Sherrill <jsherril> |
| Component: | katello-agent | Assignee: | Justin Sherrill <jsherril> |
| Status: | CLOSED ERRATA | QA Contact: | tstrych |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | Unspecified | CC: | egolov, greartes, kkohli, spetrosi, tstrych |
| Target Milestone: | 6.7.0 | Keywords: | 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
Created redmine issue https://projects.theforeman.org/issues/29200 from this bug Upstream bug assigned to jsherril Upstream bug assigned to jsherril Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/29200 has been resolved. 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. 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. moving to ON_DEV now that https://bugzilla.redhat.com/show_bug.cgi?id=1812137 is too 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.
It was verified with sat 6.7 snap 16. 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 |