Re: [Spacewalk-list] Unable to create bootstrap files

2018-02-27 Thread Brian Schonecker
For those interested, I enabled spacewalk-nightly repo in YUM and then
simply updated 'spacewalk-certs-tools' package.

Brian

On Tue, Feb 27, 2018 at 3:30 AM, Michael Mraka 
wrote:

> DiOrio, Max:
> > Interesting – where do you put activation keys – I thought that would be
> put in there after the bootstrap script was created.
> >
> > So this is slightly interesting.  I put a print options below the main
> script where it gets the options – and here’s the results.  The options are
> being red – but…it says it’s getting overrides from
> client-config-overrides.txt.  I believe this file is in
> /var/ww/html/pub/bootstrap.  The overrides in the file there don’t match
> the overrides it’s pulling in.
> ...
> > ERROR: unhandled exception occurred:
> > Traceback (most recent call last):
> >   File "/usr/bin/rhn-bootstrap", line 46, in 
> > sys.exit(mod.main() or 0)
> >   File "/usr/share/rhn/certs/rhn_bootstrap.py", line 637, 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
>
> The error has been fixed in
> https://github.com/spacewalkproject/spacewalk/commit/
> 5df22a1acf3f945d9d848e9ab9df5cd70e84b09e
>
> Regards,
>
> --
> Michael Mráka
> System Management Engineering, Red Hat
>
> ___
> Spacewalk-list mailing list
> Spacewalk-list@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Unable to create bootstrap files

2018-02-27 Thread Brian Schonecker
I can confirm that the rhn-bootstrap process now works for me.

Thank you!

Brian

On Tue, Feb 27, 2018 at 3:30 AM, Michael Mraka 
wrote:

> DiOrio, Max:
> > Interesting – where do you put activation keys – I thought that would be
> put in there after the bootstrap script was created.
> >
> > So this is slightly interesting.  I put a print options below the main
> script where it gets the options – and here’s the results.  The options are
> being red – but…it says it’s getting overrides from
> client-config-overrides.txt.  I believe this file is in
> /var/ww/html/pub/bootstrap.  The overrides in the file there don’t match
> the overrides it’s pulling in.
> ...
> > ERROR: unhandled exception occurred:
> > Traceback (most recent call last):
> >   File "/usr/bin/rhn-bootstrap", line 46, in 
> > sys.exit(mod.main() or 0)
> >   File "/usr/share/rhn/certs/rhn_bootstrap.py", line 637, 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
>
> The error has been fixed in
> https://github.com/spacewalkproject/spacewalk/commit/
> 5df22a1acf3f945d9d848e9ab9df5cd70e84b09e
>
> Regards,
>
> --
> Michael Mráka
> System Management Engineering, Red Hat
>
> ___
> Spacewalk-list mailing list
> Spacewalk-list@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Unable to create bootstrap files

2018-02-27 Thread Michael Mraka
DiOrio, Max:
> Interesting – where do you put activation keys – I thought that would be put 
> in there after the bootstrap script was created.
> 
> So this is slightly interesting.  I put a print options below the main script 
> where it gets the options – and here’s the results.  The options are being 
> red – but…it says it’s getting overrides from client-config-overrides.txt.  I 
> believe this file is in /var/ww/html/pub/bootstrap.  The overrides in the 
> file there don’t match the overrides it’s pulling in.
...
> ERROR: unhandled exception occurred:
> Traceback (most recent call last):
>   File "/usr/bin/rhn-bootstrap", line 46, in 
> sys.exit(mod.main() or 0)
>   File "/usr/share/rhn/certs/rhn_bootstrap.py", line 637, 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

The error has been fixed in
https://github.com/spacewalkproject/spacewalk/commit/5df22a1acf3f945d9d848e9ab9df5cd70e84b09e

Regards,

--
Michael Mráka
System Management Engineering, Red Hat

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

Re: [Spacewalk-list] Unable to create bootstrap files

2018-02-26 Thread DiOrio, Max
Yes – this does “fix” it.  I have a feeling that if ORG_GPG_KEY is empty, 
that’s where we’re having the problem.

I haven’t found a good description for what he ORG_GPG_KEY actually is for.  
Everything is saying it’s the organization’s GPG key – but what does that mean? 
 We’re using the GPG keys that the creator signed the package with and not 
resigning all the RPM’s with our own key.

Max DiOrio
Global Systems Administrator

From: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Brian Schonecker
Sent: Monday, February 26, 2018 11:08 AM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] Unable to create bootstrap files

Here's all I did:

https://github.com/bschonec/spacewalk/commit/bcae7948b6c827bbaeb3395d7eee6c9a69d38338

Note, that you can't use multiple ORG_GPG_KEYs when creating the bootstrap 
file.  I edited the bootstrap files manually after creating them.  I was more 
concerned about getting ANY bootstrap file created rather than finding out what 
the Python code bug is.  Again, I'm no developer AT ALL.

Brian

On Mon, Feb 26, 2018 at 10:58 AM, DiOrio, Max 
<max.dio...@ieeeglobalspec.com<mailto:max.dio...@ieeeglobalspec.com>> wrote:
Interesting – where do you put activation keys – I thought that would be put in 
there after the bootstrap script was created.

So this is slightly interesting.  I put a print options below the main script 
where it gets the options – and here’s the results.  The options are being red 
– but…it says it’s getting overrides from client-config-overrides.txt.  I 
believe this file is in /var/ww/html/pub/bootstrap.  The overrides in the file 
there don’t match the overrides it’s pulling in.


[[LAColo] root@la-1pspacewalk certs]# /usr/bin/rhn-bootstrap 
--allow-config-actions --allow-remote-commands 
--hostname=la-1pspacewalk.internal.ieeeglobalspec.com<http://la-1pspacewalk.internal.ieeeglobalspec.com>
 --ssl-cert=/var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT

{'no_up2date': 0, 'gpg_key': '', 'force': None, 'verbose': 0, 'script': 
'bootstrap.sh', 'pub_tree': '/var/www/html/pub', 'allow_remote_commands': 1, 
'overrides': 'client-config-overrides.txt', 'http_proxy': '', 
'allow_config_actions': 1, 'ssl_cert': 
'/var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT', 'hostname': 
'la-1pspacewalk.internal.ieeeglobalspec.com<http://la-1pspacewalk.internal.ieeeglobalspec.com>',
 'activation_keys': '', 'http_proxy_password': '', 'no_ssl': 0, 'no_gpg': 0, 
'http_proxy_username': ''}
* 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://la-1pspacewalk.internal.ieeeglobalspec.com/XMLRPC'
proxyPassword''
proxyUser''
sslCACert'/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT'
httpProxy''
noSSLServerURL   
'http://la-1pspacewalk.internal.ieeeglobalspec.com/XMLRPC'
enableProxyAuth  '0'
useGPG   1

ERROR: unhandled exception occurred:
Traceback (most recent call last):
  File "/usr/bin/rhn-bootstrap", line 46, in 
sys.exit(mod.main() or 0)
  File "/usr/share/rhn/certs/rhn_bootstrap.py", line 637, 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



Max DiOrio
Global Systems Administrator

From: 
spacewalk-list-boun...@redhat.com<mailto:spacewalk-list-boun...@redhat.com> 
[mailto:spacewalk-list-boun...@redhat.com<mailto:spacewalk-list-boun...@redhat.com>]
 On Behalf Of Brian Schonecker
Sent: Monday, February 26, 2018 10:28 AM
To: spacewalk-list@redhat.com<mailto:spacewalk-list@redhat.com>
Subject: Re: [Spacewalk-list] Unable to create bootstrap files

I'm no developer and I don't play one on TV but *I* believe that the problem 
lines in 178 of 
https://github.com/spacewalkproject/spacewalk/blob/master/spacewalk/certs-tools/rhn_bootstrap_strings.py.
  The "options" variable isn't defined in the context of the bootstrap funtion.

When I back rev that piece of code, I'm able to create the bootstrap files, 
albeit with only one activation key.


Brian

On Mon, Feb 26, 2018 at 9:54 AM, DiOrio, Max 
<max.dio...@ieeeglobalspec.com<mailto:max.dio...@ieeeglobalspec.com>> wrote:
Any word on this one?  I’m seeing this too.

I’m seeing options being defined as read from the command line.  Not sure 
what’s not being defined.

Max DiOrio
Global Systems Administrator

F

Re: [Spacewalk-list] Unable to create bootstrap files

2018-02-26 Thread Brian Schonecker
Here's all I did:

https://github.com/bschonec/spacewalk/commit/bcae7948b6c827bbaeb3395d7eee6c9a69d38338

Note, that you can't use multiple ORG_GPG_KEYs when creating the bootstrap
file.  I edited the bootstrap files manually after creating them.  I was
more concerned about getting ANY bootstrap file created rather than finding
out what the Python code bug is.  Again, I'm no developer AT ALL.

Brian

On Mon, Feb 26, 2018 at 10:58 AM, DiOrio, Max <max.dio...@ieeeglobalspec.com
> wrote:

> Interesting – where do you put activation keys – I thought that would be
> put in there after the bootstrap script was created.
>
>
>
> So this is slightly interesting.  I put a print options below the main
> script where it gets the options – and here’s the results.  The options are
> being red – but…it says it’s getting overrides from
> client-config-overrides.txt.  I believe this file is in
> /var/ww/html/pub/bootstrap.  The overrides in the file there don’t match
> the overrides it’s pulling in.
>
>
>
>
>
> [[LAColo] root@la-1pspacewalk certs]# /usr/bin/rhn-bootstrap
> --allow-config-actions --allow-remote-commands --hostname=la-1pspacewalk.
> internal.ieeeglobalspec.com --ssl-cert=/var/www/html/pub/
> RHN-ORG-TRUSTED-SSL-CERT
>
>
>
> {'no_up2date': 0, 'gpg_key': '', 'force': None, 'verbose': 0, 'script':
> 'bootstrap.sh', 'pub_tree': '/var/www/html/pub', 'allow_remote_commands':
> 1, 'overrides': 'client-config-overrides.txt', 'http_proxy': '',
> 'allow_config_actions': 1, 'ssl_cert': 
> '/var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT',
> 'hostname': 'la-1pspacewalk.internal.ieeeglobalspec.com',
> 'activation_keys': '', 'http_proxy_password': '', 'no_ssl': 0, 'no_gpg': 0,
> 'http_proxy_username': ''}
>
> * 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://la-1pspacewalk.
> internal.ieeeglobalspec.com/XMLRPC'
>
> proxyPassword''
>
> proxyUser''
>
> sslCACert'/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT'
>
> httpProxy''
>
> noSSLServerURL   'http://la-1pspacewalk.
> internal.ieeeglobalspec.com/XMLRPC'
>
> enableProxyAuth  '0'
>
> useGPG   1
>
>
>
> ERROR: unhandled exception occurred:
>
> Traceback (most recent call last):
>
>   File "/usr/bin/rhn-bootstrap", line 46, in 
>
> sys.exit(mod.main() or 0)
>
>   File "/usr/share/rhn/certs/rhn_bootstrap.py", line 637, 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
>
>
>
>
>
>
>
> *Max DiOrio*
>
> Global Systems Administrator
>
>
>
> *From:* spacewalk-list-boun...@redhat.com [mailto:spacewalk-list-
> boun...@redhat.com] *On Behalf Of *Brian Schonecker
> *Sent:* Monday, February 26, 2018 10:28 AM
> *To:* spacewalk-list@redhat.com
> *Subject:* Re: [Spacewalk-list] Unable to create bootstrap files
>
>
>
> I'm no developer and I don't play one on TV but *I* believe that the
> problem lines in 178 of https://github.com/spacewalkproject/spacewalk/
> blob/master/spacewalk/certs-tools/rhn_bootstrap_strings.py.  The
> "options" variable isn't defined in the context of the bootstrap funtion.
>
>
>
> When I back rev that piece of code, I'm able to create the bootstrap
> files, albeit with only one activation key.
>
>
>
>
>
> Brian
>
>
>
> On Mon, Feb 26, 2018 at 9:54 AM, DiOrio, Max <
> max.dio...@ieeeglobalspec.com> wrote:
>
> Any word on this one?  I’m seeing this too.
>
>
>
> I’m seeing options being defined as read from the command line.  Not sure
> what’s not being defined.
>
>
>
> *Max DiOrio*
>
> Global Systems Administrator
>
>
>
> *From:* spacewalk-list-boun...@redhat.com [mailto:spacewalk-list-
> boun...@redhat.com] *On Behalf Of *Brian Schonecker
> *Sent:* Saturday, February 17, 2018 7:10 PM
> *To:* spacewalk-list@redhat.com
> *Subject:* Re: [Spacewalk-list] Unable to create bootstrap files
>
>
>
> Has anyone tried in

Re: [Spacewalk-list] Unable to create bootstrap files

2018-02-26 Thread DiOrio, Max
Interesting – where do you put activation keys – I thought that would be put in 
there after the bootstrap script was created.

So this is slightly interesting.  I put a print options below the main script 
where it gets the options – and here’s the results.  The options are being red 
– but…it says it’s getting overrides from client-config-overrides.txt.  I 
believe this file is in /var/ww/html/pub/bootstrap.  The overrides in the file 
there don’t match the overrides it’s pulling in.


[[LAColo] root@la-1pspacewalk certs]# /usr/bin/rhn-bootstrap 
--allow-config-actions --allow-remote-commands 
--hostname=la-1pspacewalk.internal.ieeeglobalspec.com 
--ssl-cert=/var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT

{'no_up2date': 0, 'gpg_key': '', 'force': None, 'verbose': 0, 'script': 
'bootstrap.sh', 'pub_tree': '/var/www/html/pub', 'allow_remote_commands': 1, 
'overrides': 'client-config-overrides.txt', 'http_proxy': '', 
'allow_config_actions': 1, 'ssl_cert': 
'/var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT', 'hostname': 
'la-1pspacewalk.internal.ieeeglobalspec.com', 'activation_keys': '', 
'http_proxy_password': '', 'no_ssl': 0, 'no_gpg': 0, 'http_proxy_username': ''}
* 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://la-1pspacewalk.internal.ieeeglobalspec.com/XMLRPC'
proxyPassword''
proxyUser''
sslCACert'/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT'
httpProxy''
noSSLServerURL   
'http://la-1pspacewalk.internal.ieeeglobalspec.com/XMLRPC'
enableProxyAuth  '0'
useGPG   1

ERROR: unhandled exception occurred:
Traceback (most recent call last):
  File "/usr/bin/rhn-bootstrap", line 46, in 
sys.exit(mod.main() or 0)
  File "/usr/share/rhn/certs/rhn_bootstrap.py", line 637, 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



Max DiOrio
Global Systems Administrator

From: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Brian Schonecker
Sent: Monday, February 26, 2018 10:28 AM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] Unable to create bootstrap files

I'm no developer and I don't play one on TV but *I* believe that the problem 
lines in 178 of 
https://github.com/spacewalkproject/spacewalk/blob/master/spacewalk/certs-tools/rhn_bootstrap_strings.py.
  The "options" variable isn't defined in the context of the bootstrap funtion.

When I back rev that piece of code, I'm able to create the bootstrap files, 
albeit with only one activation key.


Brian

On Mon, Feb 26, 2018 at 9:54 AM, DiOrio, Max 
<max.dio...@ieeeglobalspec.com<mailto:max.dio...@ieeeglobalspec.com>> wrote:
Any word on this one?  I’m seeing this too.

I’m seeing options being defined as read from the command line.  Not sure 
what’s not being defined.

Max DiOrio
Global Systems Administrator

From: 
spacewalk-list-boun...@redhat.com<mailto:spacewalk-list-boun...@redhat.com> 
[mailto:spacewalk-list-boun...@redhat.com<mailto:spacewalk-list-boun...@redhat.com>]
 On Behalf Of Brian Schonecker
Sent: Saturday, February 17, 2018 7:10 PM
To: spacewalk-list@redhat.com<mailto:spacewalk-list@redhat.com>
Subject: Re: [Spacewalk-list] Unable to create bootstrap files

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 
<ssaam...@hotmail.com<mailto:ssaam...@hotmail.com>> wrote:

Hello,



I ma running Spacewalk 2.7 and I faced the same issue too :-(


From: 
spacewalk-list-boun...@redhat.com<mailto:spacewalk-list-boun...@redhat.com> 
<spacewalk-list-boun...@redhat.com<mailto:spacewalk-list-boun...@redhat.com>> 
on behalf of Brian Schonecker <bscho...@gmail.com<mailto:bscho...@gmail.com>>
Sent: Wednesday, February 14, 2018 9:21 PM
To: spacewalk-list@redhat.com<mailto:spacewalk-list@redhat.com>
Subject: [Spacewalk-list] Unable to create bootstrap files

C

Re: [Spacewalk-list] Unable to create bootstrap files

2018-02-26 Thread Brian Schonecker
I'm no developer and I don't play one on TV but *I* believe that the
problem lines in 178 of
https://github.com/spacewalkproject/spacewalk/blob/master/spacewalk/certs-tools/rhn_bootstrap_strings.py.
The "options" variable isn't defined in the context of the bootstrap
funtion.

When I back rev that piece of code, I'm able to create the bootstrap files,
albeit with only one activation key.


Brian

On Mon, Feb 26, 2018 at 9:54 AM, DiOrio, Max <max.dio...@ieeeglobalspec.com>
wrote:

> Any word on this one?  I’m seeing this too.
>
>
>
> I’m seeing options being defined as read from the command line.  Not sure
> what’s not being defined.
>
>
>
> *Max DiOrio*
>
> Global Systems Administrator
>
>
>
> *From:* spacewalk-list-boun...@redhat.com [mailto:spacewalk-list-
> boun...@redhat.com] *On Behalf Of *Brian Schonecker
> *Sent:* Saturday, February 17, 2018 7:10 PM
> *To:* spacewalk-list@redhat.com
> *Subject:* Re: [Spacewalk-list] Unable to create bootstrap files
>
>
>
> 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 <ssaam...@hotmail.com> wrote:
>
> Hello,
>
>
>
> I ma running Spacewalk 2.7 and I faced the same issue too :-(
>
>
> --
>
> *From:* spacewalk-list-boun...@redhat.com <spacewalk-list-bounces@
> redhat.com> on behalf of Brian Schonecker <bscho...@gmail.com>
> *Sent:* Wednesday, February 14, 2018 9:21 PM
> *To:* spacewalk-list@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 
>
> 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@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*
> <https://gist.github.com/bschonec/e88bda385c85c927c6a971bc563df6b9>
>
> Spacewak rhn-bootstrap error
> <https://gist.github.com/bschonec/e88bda385c85c927c6a971bc563df6b9&

Re: [Spacewalk-list] Unable to create bootstrap files

2018-02-26 Thread DiOrio, Max
Any word on this one?  I’m seeing this too.

I’m seeing options being defined as read from the command line.  Not sure 
what’s not being defined.

Max DiOrio
Global Systems Administrator

From: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Brian Schonecker
Sent: Saturday, February 17, 2018 7:10 PM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] Unable to create bootstrap files

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 
<ssaam...@hotmail.com<mailto:ssaam...@hotmail.com>> wrote:

Hello,



I ma running Spacewalk 2.7 and I faced the same issue too :-(


From: 
spacewalk-list-boun...@redhat.com<mailto:spacewalk-list-boun...@redhat.com> 
<spacewalk-list-boun...@redhat.com<mailto:spacewalk-list-boun...@redhat.com>> 
on behalf of Brian Schonecker <bscho...@gmail.com<mailto:bscho...@gmail.com>>
Sent: Wednesday, February 14, 2018 9:21 PM
To: spacewalk-list@redhat.com<mailto:spacewalk-list@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 
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@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<https://gist.github.com/bschonec/e88bda385c85c927c6a971bc563df6b9>
Spacewak rhn-bootstrap 
error<https://gist.github.com/bschonec/e88bda385c85c927c6a971bc563df6b9>

 <https://gist.github.com/bschonec/e88bda385c85c927c6a971bc563df6b9>

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list<https://gist.github.com/bschonec/e88bda385c85c927c6a971bc563df6b9>
 <https://gist.github.com/bschonec/e88bda385c85c927c6a971bc563df6b9>
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Unable to create bootstrap files

2018-02-17 Thread Brian Schonecker
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 <ssaam...@hotmail.com> wrote:

> Hello,
>
>
> I ma running Spacewalk 2.7 and I faced the same issue too :-(
>
>
> --
> *From:* spacewalk-list-boun...@redhat.com <spacewalk-list-bounces@
> redhat.com> on behalf of Brian Schonecker <bscho...@gmail.com>
> *Sent:* Wednesday, February 14, 2018 9:21 PM
> *To:* spacewalk-list@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 
> 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@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@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Unable to create bootstrap files

2018-02-14 Thread Samer Odeh
Hello,


I ma running Spacewalk 2.7 and I faced the same issue too :-(



From: spacewalk-list-boun...@redhat.com <spacewalk-list-boun...@redhat.com> on 
behalf of Brian Schonecker <bscho...@gmail.com>
Sent: Wednesday, February 14, 2018 9:21 PM
To: spacewalk-list@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 
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@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://avatars0.githubusercontent.com/u/9570174?s=400=4]<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@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

[Spacewalk-list] Unable to create bootstrap files

2018-02-14 Thread Brian Schonecker
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 
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@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
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list