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

Also install package updates #33

Closed
stdevel opened this issue Jun 20, 2017 · 7 comments
Closed

Also install package updates #33

stdevel opened this issue Jun 20, 2017 · 7 comments
Assignees
Milestone

Comments

@stdevel
Copy link
Owner

stdevel commented Jun 20, 2017

Beginning with Foreman 1.14.3, non-errata package updates can be triggered/installed using the UI - would be handy if katprep_maintenance could do the same.

@stdevel stdevel self-assigned this Jun 20, 2017
@stdevel
Copy link
Owner Author

stdevel commented Jun 20, 2017

Unfortunately, the Foreman API currently offers no call for this.

@stdevel
Copy link
Owner Author

stdevel commented Jun 2, 2018

Things have changed, yas: https://theforeman.org/plugins/katello/3.5/api/apidoc/v2/host_packages.html

PUT /api/hosts/:host_id/packages/upgrade_all 
Update packages remotely

@stdevel
Copy link
Owner Author

stdevel commented Jun 11, 2018

Investigating in branch feature-pkg_updates-issue33

@stdevel
Copy link
Owner Author

stdevel commented Jun 11, 2018

Was thinking about adding an exclude parameter to katprep_maintenance - unfortunately I found no way to implement this. The API call upgrade_all upgrades all packages, while upgrade requires a list of package IDs. For this it would be necessary to have a list of "upgradable" packages for a particular host - and there is no such API call.

@stdevel
Copy link
Owner Author

stdevel commented Jun 11, 2018

In the web interface it is possible to list available package upgrades, so there must be a way to retrieve this information. Gonna ask the developers.

@stdevel
Copy link
Owner Author

stdevel commented Jun 12, 2018

In the web interface it is possible to list available package upgrades, so there must be a way to retrieve this information. Gonna ask the developers.
Discussion started: https://community.theforeman.org/t/looking-for-api-call-for-retrieving-upgradable-packages-per-content-host/9985

@stdevel
Copy link
Owner Author

stdevel commented Jun 12, 2018

Added code for installing all available package upgrades in commit 63ba47a.
Successfully tested with Foreman 1.17.1 and Katello 3.6.

stdevel added a commit that referenced this issue Jun 15, 2018
Added code for installing package upgrades, see issue #33
@stdevel stdevel closed this as completed Jun 25, 2018
@stdevel stdevel added this to the 0.5.0 milestone Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant