Bug 1409320 - rhn_check utilizes DNF plugins, which is deprecated and slated for removal in upcoming DNF release
Summary: rhn_check utilizes DNF plugins, which is deprecated and slated for removal in...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.6
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space27
TreeView+ depends on / blocked
 
Reported: 2016-12-31 16:02 UTC by Fermulator
Modified: 2017-09-27 19:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-27 19:31:09 UTC
Embargoed:


Attachments (Terms of Use)

Description Fermulator 2016-12-31 16:02:58 UTC
Description of problem:

When a client runs "rhn_check" manually, they are spammed with numerous of these messages:
{{{
$ sudo rhn_check --verbose
The 'plugins' function is not a part of DNF API and will be removed in the upcoming DNF release. Please use only officially supported API functions. DNF API documentation is available at https://dnf.readthedocs.org/en/latest/api.html.
}}}

Version-Release number of selected component (if applicable):
rhn-check-2.6.8-1.fc24.noarch

How reproducible:
100%

Steps to Reproduce:
1. On a client registered with a Spacewalk server (mine includes all rhn actions enabled and OSAD service running); 
2. Execute "sudo rhn_check --verbose"

Actual results:
$ sudo rhn_check --verbose
The 'plugins' function is not a part of DNF API and will be removed in the upcoming DNF release. Please use only officially supported API functions. DNF API documentation is available at https://dnf.readthedocs.org/en/latest/api.html.
The 'plugins' function is not a part of DNF API and will be removed in the upcoming DNF release. Please use only officially supported API functions. DNF API documentation is available at https://dnf.readthedocs.org/en/latest/api.html.
The 'plugins' function is not a part of DNF API and will be removed in the upcoming DNF release. Please use only officially supported API functions. DNF API documentation is available at https://dnf.readthedocs.org/en/latest/api.html.
The 'plugins' function is not a part of DNF API and will be removed in the upcoming DNF release. Please use only officially supported API functions. DNF API documentation is available at https://dnf.readthedocs.org/en/latest/api.html.
The 'plugins' function is not a part of DNF API and will be removed in the upcoming DNF release. Please use only officially supported API functions. DNF API documentation is available at https://dnf.readthedocs.org/en/latest/api.html.
The 'plugins' function is not a part of DNF API and will be removed in the upcoming DNF release. Please use only officially supported API functions. DNF API documentation is available at https://dnf.readthedocs.org/en/latest/api.html.
The 'plugins' function is not a part of DNF API and will be removed in the upcoming DNF release. Please use only officially supported API functions. DNF API documentation is available at https://dnf.readthedocs.org/en/latest/api.html.
The 'plugins' function is not a part of DNF API and will be removed in the upcoming DNF release. Please use only officially supported API functions. DNF API documentation is available at https://dnf.readthedocs.org/en/latest/api.html.
Failed to synchronize cache for repo 'fedora_25', disabling.


Expected results:
Seems like we need to update these to utilize the new (proper) DNF APIs, rather than the plugin system?

Additional info:

$ rpm -qa | grep spacewalk
spacewalk-client-repo-2.6-0.fc24.noarch
python3-spacewalk-backend-usix-2.6.74-1.fc24.noarch
dnf-plugin-spacewalk-2.6.3-1.fc24.noarch


Happens on both Fedora 24/25 (using Fedora24 packages for Spacewalk 2.6)

$ cat /etc/fedora-release 
Fedora release 25 (Twenty Five)

$ uname -a
Linux <hostname> 4.8.6-300.fc25.x86_64 #1 SMP Tue Nov 1 12:36:38 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Comment 1 Fermulator 2017-01-06 18:51:51 UTC
Possibly being addressed by https://github.com/spacewalkproject/spacewalk/pull/495

Comment 2 Michael Mráka 2017-01-11 09:41:27 UTC
Yes, it seems to be fine with DNF 2.0 plugin.

# rhn_check -vv
D: do_call packages.checkNeedUpdate('rhnsd=1',){}
D: local action status: (0, 'rpm database not modified since last update (or package list recently updated)', {})
D: rpcServer: Calling XMLRPC registration.welcome_message
#

Comment 3 Eric Herget 2017-09-27 19:31:09 UTC
Spacewalk 2.7 has been released.

https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27


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