Ok, we are getting a bit further:

(after adding the follwing to dnf-plugins/spacewalk.py:

class InvalidGpgKeyLocation(Exception):
    msg = ""

    def __init__(self, msgtext):
        self.msg = msgtext

#    pass


(Sorry, we don't do python for a living, so it is a bit bumpy.)

On it goes:
dnf repolist -d 10 -e 10
[...]
not found deltainfo for: Fedora 22 Updates (x86_64)
repo: downloading from remote: fedora22-x86_64, _Handle: metalnk: None,
mlist: None, urls [u'https://OURSPACEWALK/XMLRPC/GET-REQ/fedora22-x86_64'].
not found deltainfo for: Fedora 22 (x86_64)
not found updateinfo for: Fedora 22 (x86_64)
repo: downloading from remote: clone-spacewalk23-client-fedora21-x86_64,
_Handle: metalnk: None, mlist: None, urls
[u'https://OURSPACEWALK/XMLRPC/GET-REQ/clone-spacewalk23-client-fedora21-x86_64'].
not found deltainfo for: Clone of Spacewalk Client 2.3 for Fedora 21
(x86_64)
not found updateinfo for: Clone of Spacewalk Client 2.3 for Fedora 21
(x86_64)
timer: sack setup: 63303 ms
ibis-special-fedora-22: using metadata from Fri Jun 26 15:05:22 2015.
fedora22-x86_64-updates: using metadata from Fri Jun 26 15:05:24 2015.
fedora22-x86_64: using metadata from Fri Jun 26 15:05:34 2015.
clone-spacewalk23-client-fedora21-x86_64: using metadata from Fri Jun 26
15:06:23 2015.
Last metadata expiration check performed 0:00:00 ago on Fri Jun 26
15:06:23 2015.
Completion plugin: Generating completion cache...
Cleaning up.
Traceback (most recent call last):
  File "/usr/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 185, in
user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 134, in
_main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1077, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands/repolist.py",
line 216, in run
    if repo.repofile:
AttributeError: 'SpacewalkRepo' object has no attribute 'repofile'

On 06/26/2015 02:55 PM, Jonathan Hoser wrote:
> Dear all,
>
> we are not sure anymore what we are doing - everyone is going mad atm...
>
> Maybe due to our current experience with Fedora22, DNF and the
> spacewalk-plugin.
> Don't get us wrong, we are delighted there is one,
> but we have a ton of trouble with it.
>
> It may be because somewhere a rhnlib got cross-installed on the new
> systems,
> but I thought, I'd just share our experience for others...
>
> After getting DNF to talk, the following was reported:
>
> Traceback (most recent call last):
>   File "/usr/bin/dnf", line 36, in <module>
>     main.user_main(sys.argv[1:], exit_code=True)
>   File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 185, in
> user_main
>     errcode = main(args)
>   File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
>     return _main(base, args)
>   File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 115, in
> _main
>     cli.configure(map(ucd, args))
>   File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 983, in
> configure
>     self.base.plugins.load(self.base.conf.pluginpath, opts.disableplugins)
>   File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 94, in load
>     import_modules(package, files)
>   File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 123, in
> import_modules
>     module = importlib.import_module(name)
>   File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in
> import_module
>     __import__(name)
>   File "/usr/lib/python2.7/site-packages/dnf-plugins/spacewalk.py", line
> 34, in <module>
>     import up2date_client.up2dateAuth
>   File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 3, in <module>
>     import rhnserver
>   File "/usr/share/rhn/up2date_client/rhnserver.py", line 34, in <module>
>     import rpcServer
>   File "/usr/share/rhn/up2date_client/rpcServer.py", line 5, in <module>
>     import config
>   File "/usr/share/rhn/up2date_client/config.py", line 16, in <module>
>     from rhn.connections import idn_ascii_to_puny, idn_puny_to_unicode
> ImportError: cannot import name idn_ascii_to_puny
>
>
> => idn_pune_to_unicode idn_ascii_to_pune
>
> We had a hard time finding and identifying the missing imports
> and funnily we didn't see idn_ascii_to_puny, idn_puny_to_unicode but
> idn_pune_to_unicode idn_ascii_to_pune
> are in the rhnlib that is atm on the system. It might be the wrong one
> (i.e. from fedora repos),
> and this error followed us some time around, until I replaced a number
> of 'y's with 'e's.
>
> Now we got the plugin working, BUT....
>
>  dnf repolist -d 10 -e 10
> timer: config: 9 ms
> cachedir: /var/cache/dnf/x86_64/22
> Loaded plugins: builddep, Query, generate_completion_cache, noroot,
> config-manager, download, protected_packages, migrate, reposync,
> debuginfo-install, copr, playground, langpacks, kickstart,
> needs-restarting, spacewalk
> initialized Langpacks plugin
> initializing!! Spacewalk plugin
> initializing.....past config parsing.... Spacewalk plugin
> initialized Spacewalk plugin
> DNF version: 1.0.1
> Command: dnf repolist -d 10 -e 10
> Installroot: /
> Releasever: 22
> Base command: repolist
> Extra commands: []
> This system is receiving updates from Spacewalk server.
> Cleaning up.
> Traceback (most recent call last):
>   File "/usr/bin/dnf", line 36, in <module>
>     main.user_main(sys.argv[1:], exit_code=True)
>   File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 185, in
> user_main
>     errcode = main(args)
>   File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
>     return _main(base, args)
>   File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 115, in
> _main
>     cli.configure(map(ucd, args))
>   File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1016, in
> configure
>     self.base.plugins.run_config()
>   File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 82, in fn
>     dnf.util.mapall(operator.methodcaller(method), self.plugins)
>   File "/usr/lib/python2.7/site-packages/dnf/util.py", line 157, in mapall
>     return list(map(fn, *seq))
>   File "/usr/lib/python2.7/site-packages/dnf-plugins/spacewalk.py", line
> 84, in config
>     self.activate_channels(self.cli.demands.sack_activation)
>   File "/usr/lib/python2.7/site-packages/dnf-plugins/spacewalk.py", line
> 158, in activate_channels
>     'enabled': conf.enabled,
>   File "/usr/lib/python2.7/site-packages/dnf-plugins/spacewalk.py", line
> 227, in __init__
>     except InvalidGpgKeyLocation as e:
> NameError: global name 'InvalidGpgKeyLocation' is not defined
>
> (Yes, there's some debug messages from me in the DNF load);
>
> In yum-rhn-plugin/rhnplugin.py there was/is a class defined:
> class InvalidGpgKeyLocation(Exception):
> but this is not present in dnf-plugins/spacewalk.py
> ...
>
> Arg. Just saw the FIXME note in dnf-plugins/spacewalk.py
> that a number of functions should be moved to rhn-client-tools....
>
> We will look further.
>
> Best
> -Jonathan
>
> --
> Jonathan Hoser, M.Sc.

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to