[Spacewalk-list] Unable to create bootstrap files

Brian Schonecker bschonec at gmail.com
Sun Feb 18 00:10:16 UTC 2018


Has anyone tried installing the latest version of Spacewalk on CentOS7
lately?  I've tried 'rhn-bootstrap' on every version of 7 available from
the CentOS forge and I get exactly the same problem.  I've created more
than 12 different installs of Centos 7 (and even 6!) and none of them run
rhn-bootstrap properly.

Is there an alternative to the rhn-bootstrap?  I really don't want to
'rhn-register' all the servers.

Thanks, Brian

On Thu, Feb 15, 2018 at 2:23 AM, Samer Odeh <ssaammoo at hotmail.com> wrote:

> Hello,
>
>
> I ma running Spacewalk 2.7 and I faced the same issue too :-(
>
>
> ------------------------------
> *From:* spacewalk-list-bounces at redhat.com <spacewalk-list-bounces@
> redhat.com> on behalf of Brian Schonecker <bschonec at gmail.com>
> *Sent:* Wednesday, February 14, 2018 9:21 PM
> *To:* spacewalk-list at redhat.com
> *Subject:* [Spacewalk-list] Unable to create bootstrap files
>
> CentOS 7 64 bit.
>
> After a flawless install I need to create the bootstrap registration files
> so that I can register my clients.
>
> I get the following error when trying to create the bootstrap files via
> rhn-bootstrap:
>
>
>
> # rhn-bootstrap
> * WARNING: if there were hand edits to the rotated (backed up) file,
>            some settings may need to be migrated.
> * bootstrap overrides (written):
>   '/var/www/html/pub/bootstrap/client-config-overrides.txt'
>
> Values written:
> enableProxy              '0'
> serverURL                'https://rbswal01.jariettech.local/XMLRPC'
> proxyPassword            ''
> proxyUser                ''
> sslCACert                '/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT'
> httpProxy                ''
> noSSLServerURL           'http://rbswal01.jariettech.local/XMLRPC'
> enableProxyAuth          '0'
> useGPG                   1
>
> ERROR: unhandled exception occurred:
> Traceback (most recent call last):
>   File "/usr/bin/rhn-bootstrap", line 46, in <module>
>     sys.exit(mod.main() or 0)
>   File "/usr/share/rhn/certs/rhn_bootstrap.py", line 636, in main
>     generateBootstrapScript(options)
>   File "/usr/share/rhn/certs/rhn_bootstrap.py", line 577, in
> generateBootstrapScript
>     1 - options.no_up2date, pubname)
>   File "/usr/share/rhn/certs/rhn_bootstrap_strings.py", line 178, in
> getHeader
>     org_gpg_key = ",".join([os.path.basename(gpg_key) for gpg_key in
> options.gpg_key.split(",")])
> NameError: global name 'options' is not defined
> [root at rbswal01 ~]#
>
> I've done this a dozen times before on a Red Hat Satellite system but for
> some reason the Spacewalk gods aren't smiling on me.
>
> I have zero knowledge of Python so I don't even know where to begin there.
>
> Again, the install was flawless and (so far) I don't see any issues with
> anything else Spacewalk related.
>
>
> Here's a little bit about my system along with RPMs:
>
> https://gist.github.com/bschonec/e88bda385c85c927c6a971bc563df6b9
> <https://gist.github.com/bschonec/e88bda385c85c927c6a971bc563df6b9>
> Spacewak rhn-bootstrap error
> <https://gist.github.com/bschonec/e88bda385c85c927c6a971bc563df6b9>
> gist.github.com
> Spacewak rhn-bootstrap error
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20180217/12a3979a/attachment.htm>


More information about the Spacewalk-list mailing list