Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove katello-agent related entities #1012

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

vsedmik
Copy link
Contributor

@vsedmik vsedmik commented Oct 4, 2023

Description of changes

Katello-agent was deprecated and removed from 6.15 including related API endpoints. This PR removes those supported in nailgun.

Upstream API documentation, plugin, or feature links

See the 6.15 apidoc for these particular endpoint. They are missing.

  • PUT /api/hosts/:host_id/errata/apply
  • PUT /api/hosts/:host_id/packages/install
  • PUT /api/hosts/:host_id/packages/upgrade
  • PUT /api/hosts/:host_id/packages/upgrade_all
  • PUT /api/hosts/:host_id/packages/remove
  • PUT /api/hosts/bulk/install_content
  • PUT /api/hosts/bulk/update_content
  • PUT /api/hosts/bulk/remove_content
Functional demonstration
In [1]: from robottelo.hosts import Satellite
In [2]: sat = Satellite('<SAT_FQDN>')	# stream/6.15 sat
In [3]: sat.api.Host().install_content(data={'organization_id': '1', 'included': {'ids': ['1']}, 'content_type': 'package', 'content': ['cat']})
...
HTTPError: 404 Client Error: Not Found for url: https://<SAT_FQDN>/api/v2/hosts/bulk/install_content
Additional Information

Robottelo PR for removal of the last used endpoint (/api/hosts/bulk/install_content) - SatelliteQE/robottelo#12817

@vsedmik vsedmik added No-CherryPick PR doesnt need CherryPick to previous branches Stream labels Oct 4, 2023
@vsedmik vsedmik self-assigned this Oct 4, 2023
@codecov
Copy link

codecov bot commented Oct 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b13aee3) 92.18% compared to head (5b1b377) 92.15%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1012      +/-   ##
==========================================
- Coverage   92.18%   92.15%   -0.03%     
==========================================
  Files           6        6              
  Lines        3057     3047      -10     
==========================================
- Hits         2818     2808      -10     
  Misses        239      239              
Files Coverage Δ
nailgun/entities.py 91.30% <ø> (-0.04%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@synkd synkd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@vsedmik
Copy link
Contributor Author

vsedmik commented Oct 12, 2023

rebased

@@ -4378,44 +4378,6 @@ def errata_applicability(self, synchronous=True, timeout=None, **kwargs):
response = client.put(self.path('errata/applicability'), **kwargs)
return _handle_response(response, self._server_config, synchronous, timeout)

def errata_apply(self, synchronous=True, timeout=None, **kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove errata_applicability method too as it is also removed right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Negative. Errata applicability recalculation functionality remains present.

[GET /api/hosts/:host_id/errata]    List errata available for the content host
[GET /api/hosts/:host_id/errata/:id]    Retrieve a single errata for a host
[PUT /api/hosts/:host_id/errata/applicability]    Force regenerate applicability.

Katello-agent was deprecated and removed from 6.15 including related
API endpoints. This PR removes those supported in nailgun.
Copy link
Contributor

@damoore044 damoore044 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack pending other comment

@sambible sambible merged commit 0a9a19d into SatelliteQE:master Oct 24, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No-CherryPick PR doesnt need CherryPick to previous branches Stream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants