Re: [Spacewalk-list] Spacewalk Profile Package Sync problem

2019-07-16 Thread Bryan Norton
To expand on this, I've discovered today that some packages can be
installed via profile sync, but most cannot.  For example, arpwatch will
install just fine, but aide and haproxy (amongst many others) will fail
with the Internal Server Error.  I can't figure it out, it doesn't make
sense.  At least, not without better code debugging skills than I have.

On Mon, Jul 15, 2019 at 1:19 PM Bryan Norton  wrote:

> Hello Everyone,
>
> I'm having a problem with a newly set up Spacewalk 2.9 server.  Whenever I
> attempt to synchronize a server with a software package list from either a
> Stored Profile or a specific system, it fails.  I can choose the system or
> profile to compare it with, do the comparison, pick the package(s) to
> synchronize, but when I get to the last page, and click schedule, it just
> sits there for a minute.  Eventually, I receive an Internal Server Error.
>
> In browsing the various logs, there's only one entry that appears
> relevant, and I've included it below.  The only part sanitized is the
> removal of the server name.
>
> Jul 15 12:57:22  server: 2019-07-15 12:57:22,273
> [ajp-bio-0:0:0:0:0:0:0:1-8009-exec-23] WARN
>  org.apache.struts.action.RequestProcessor - Unhandled Exception thrown:
> class java.lang.NullPointerException
> Jul 15 12:57:22  server: 2019-07-15 12:57:22,276
> [ajp-bio-0:0:0:0:0:0:0:1-8009-exec-23] ERROR
> com.redhat.rhn.frontend.servlets.SessionFilter - Error during transaction.
> Rolling back
> Jul 15 12:57:22  server: javax.servlet.ServletException:
> java.lang.NullPointerException
> Jul 15 12:57:22  server: at
> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
> Jul 15 12:57:22  server: at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)
> Jul 15 12:57:22  server: at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
> Jul 15 12:57:22  server: at
> com.redhat.rhn.frontend.struts.RhnRequestProcessor.process(RhnRequestProcessor.java:105)
> Jul 15 12:57:22  server: at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1926)
> Jul 15 12:57:22  server: at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:451)
> Jul 15 12:57:22  server: at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
> Jul 15 12:57:22  server: at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> Jul 15 12:57:22  server: at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> Jul 15 12:57:22  server: at
> com.redhat.rhn.frontend.servlets.AuthFilter.doFilter(AuthFilter.java:104)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> Jul 15 12:57:22  server: at
> com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
> Jul 15 12:57:22  server: at
> com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> Jul 15 12:57:22  server: at
> com.redhat.rhn.frontend.servlets.LocalizedEnvironmentFilter.doFilter(LocalizedEnvironmentFilter.java:67)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> Jul 15 12:57:22  server: at
> com.redhat.rhn.frontend.servlets.EnvironmentFilter.doFilter(EnvironmentFilter.java:101)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> Jul 15 12:57:22  server: at
> com.redhat.rhn.frontend.servlets.SessionFilter.doFilter(SessionFilter.java:58)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> Jul 15 12:57:22  server: at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> Jul 15 12:

[Spacewalk-list] spacecmd

2019-07-16 Thread Ananta Chakravartula
I got spacewalk setup using chef and I run some spacecmd commands part of
the recipe ( using execute resource), but chef-client fails with error

```
chef-client[32220]: Spacewalk Password: ERROR:
chef-client[32220]: Warning: Password input may be echoed.
chef-client[32220]:   passwd = fallback_getpass(prompt, stream)
chef-client[32220]: /usr/lib64/python2.7/getpass.py:83: GetPassWarning:
Can not control echo on the terminal.
chef-client[32220]: Spacewalk Password: ERROR:```
```

I do have ~/.spacecmd/config , but looks like spacecmd is looking for tty.
It doesn't error when i run chef-client manually.


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

[Spacewalk-list] Spacewalk 2.9 - Enabling GPG check for channels

2019-07-16 Thread Wenkai Chen
HI Spacewalk users,

I just configured Spacewalk to sync from Red hat and Centos repositories. 
However, I am unsure of whether GPG check is really enabled for each channel.
I would like to enable GPG check for security reasons.
I could not find any useful resources online, apart from this article 
https://serverfault.com/questions/593281/how-to-disable-gpg-checks-per-channel-in-spacewalk
 which tells us how to disable gpg check in a channel. I did the reverse so 
that I can enable it.

However, I am not exactly sure if it works. I am also not sure for Centos 
channels, is gpg check enabled by default? Where exactly are the settings in 
spacewalk to configure this?
I understand that for standalone servers, these settings can be configured 
under the /etc/yum.repos.d/ folder files corresponding to the repository. But I 
am not exactly sure if it is similar to Spacewalk servers? Or channels in that 
manner.

Thanks.

Regards,
Wenkai








CONFIDENTIALITY NOTICE: "This email is confidential and may also be privileged. 
If this email has been sent to you in error, please delete it immediately and 
notify us. Please do not copy, distribute or disseminate part or whole of this 
email if you are not the intended recipient or if you have not been authorized 
to do so. We reserve the right, to the extent and under circumstances permitted 
by applicable laws, to monitor, retain, intercept and block email messages to 
and from our systems. Thank you."

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

Re: [Spacewalk-list] Spacewalk 2.9 - Enabling GPG check for channels

2019-07-16 Thread Robert Paschedag
You have to check within the channel options in spacewalk, if GPG signing is 
activated.

Robert


⁣sent from my mobile device​


 Originale Nachricht 
Von: Wenkai Chen 
Gesendet: Wed Jul 17 05:29:31 GMT+02:00 2019
An: "spacewalk-list@redhat.com" 
Betreff: [Spacewalk-list]  Spacewalk 2.9 - Enabling GPG check for channels

HI Spacewalk users,

I just configured Spacewalk to sync from Red hat and Centos repositories. 
However, I am unsure of whether GPG check is really enabled for each channel.
I would like to enable GPG check for security reasons.
I could not find any useful resources online, apart from this article 
https://serverfault.com/questions/593281/how-to-disable-gpg-checks-per-channel-in-spacewalk
 which tells us how to disable gpg check in a channel. I did the reverse so 
that I can enable it.

However, I am not exactly sure if it works. I am also not sure for Centos 
channels, is gpg check enabled by default? Where exactly are the settings in 
spacewalk to configure this?
I understand that for standalone servers, these settings can be configured 
under the /etc/yum.repos.d/ folder files corresponding to the repository. But I 
am not exactly sure if it is similar to Spacewalk servers? Or channels in that 
manner.

Thanks.

Regards,
Wenkai








CONFIDENTIALITY NOTICE: "This email is confidential and may also be privileged. 
If this email has been sent to you in error, please delete it immediately and 
notify us. Please do not copy, distribute or disseminate part or whole of this 
email if you are not the intended recipient or if you have not been authorized 
to do so. We reserve the right, to the extent and under circumstances permitted 
by applicable laws, to monitor, retain, intercept and block email messages to 
and from our systems. Thank you."





___
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] Spacewalk 2.9 - Enabling GPG check for channels

2019-07-16 Thread Wenkai Chen
Hi,

If I have configured the GPG settings under "Manage Software Channels' > 
'Channel Name' > 'Details', means it is enabled?

Attached a screenshot if it is correct. Thanks.


Regards,
Wenkai

-Original Message-
From: spacewalk-list-boun...@redhat.com  On 
Behalf Of Robert Paschedag
Sent: Wednesday, 17 July 2019 2:34 PM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] Spacewalk 2.9 - Enabling GPG check for channels

You have to check within the channel options in spacewalk, if GPG signing is 
activated.

Robert


⁣sent from my mobile device​


 Originale Nachricht 
Von: Wenkai Chen 
Gesendet: Wed Jul 17 05:29:31 GMT+02:00 2019
An: "spacewalk-list@redhat.com" 
Betreff: [Spacewalk-list]  Spacewalk 2.9 - Enabling GPG check for channels

HI Spacewalk users,

I just configured Spacewalk to sync from Red hat and Centos repositories. 
However, I am unsure of whether GPG check is really enabled for each channel.
I would like to enable GPG check for security reasons.
I could not find any useful resources online, apart from this article 
https://serverfault.com/questions/593281/how-to-disable-gpg-checks-per-channel-in-spacewalk
 which tells us how to disable gpg check in a channel. I did the reverse so 
that I can enable it.

However, I am not exactly sure if it works. I am also not sure for Centos 
channels, is gpg check enabled by default? Where exactly are the settings in 
spacewalk to configure this?
I understand that for standalone servers, these settings can be configured 
under the /etc/yum.repos.d/ folder files corresponding to the repository. But I 
am not exactly sure if it is similar to Spacewalk servers? Or channels in that 
manner.

Thanks.

Regards,
Wenkai








CONFIDENTIALITY NOTICE: "This email is confidential and may also be privileged. 
If this email has been sent to you in error, please delete it immediately and 
notify us. Please do not copy, distribute or disseminate part or whole of this 
email if you are not the intended recipient or if you have not been authorized 
to do so. We reserve the right, to the extent and under circumstances permitted 
by applicable laws, to monitor, retain, intercept and block email messages to 
and from our systems. Thank you."





___
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
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list