[Spacewalk-devel] Full spacewalk dev workstation causes Invalid SSL certificate error

2016-06-06 Thread Laurence Rochfort
Hello,

I'm trying to setup the full developer workstation as per the wiki at
https://fedorahosted.org/spacewalk/wiki/DevelopmentWorkstationSetup.

However, after I run the sudo ant install-devel step, I receive the
error below on starting osa-dispatcher.

Any suggestions would be much appreciated.

Starting spacewalk services...
Initializing jabberd processes ...
Starting router:   [  OK  ]
Starting sm:   [  OK  ]
Starting c2s:  [  OK  ]
Starting s2s:  [  OK  ]
Starting tomcat6:  [  OK  ]
Waiting for tomcat to be ready ...
Starting httpd:[  OK  ]
Starting osa-dispatcher: Spacewalk 10779 2016/06/03 15:07:32 +01:00: ('Invalid 
SSL certificate:', Unable to read file 
/var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT)
   [  OK  ]
Starting rhn-search...
Starting cobbler daemon:   [  OK  ]
Starting RHN Taskomatic...
Done.



Cheers,
Laurence.

Laurence Rochfort | Principal Oracle Linux Developer
Phone: +44 118 924 5629 | Mobile: +44 7867 908 605
Oracle Linux

Building 520, Oracle Parkway | Reading | Berkshire | RG6 1RA | United Kingdom

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


Re: [Spacewalk-devel] Full spacewalk dev workstation causes Invalid SSL certificate error

2016-06-07 Thread Laurence Rochfort
Thanks for the reply, Jan.

The cert file is where it used to be and it looks to me that the
install-devel step modifies some parts of /var/www/html, but then copies
back pub.

The certificate looks to be exactly the same as it was before the
install-devel step and is where /etc/rhn/rhn.conf expects it to be.

I have checked that the setfacl commands executed correctly, and have
even tried regenerating the certificate, but to no avail.

A rollback and fresh install of spacewalk and the git repo exhibits the
same behaviour.

Any ideas?

Many thanks,
Laurence

[root@lrochfor-swdev-1 ~]# grep ssl /etc/rhn/rhn.conf
db_ssl_enabled = 
web.ssl_available = 1
osa-dispatcher.osa_ssl_cert = /var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT

[root@lrochfor-swdev-1 ~]# ls -l /var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT
-rw-r--r--. 1 root root 5465 Jun  3 14:08 
/var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT

[root@lrochfor-swdev-1 ~]# ls -l /var/www/html.old/pub/RHN-ORG-TRUSTED-SSL-CERT
-rw-r--r--. 1 root root 5465 Jun  3 14:08 
/var/www/html.old/pub/RHN-ORG-TRUSTED-SSL-CERT

[root@lrochfor-swdev-1 ~]# diff /var/www/html.old/pub/RHN-ORG-TRUSTED-SSL-CERT 
/var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT   

[root@lrochfor-swdev-1 ~]# diff /var/www/html.old/pub/RHN-ORG-TRUSTED-SSL-CERT 
/var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT




Jan Dobes writes:

> If it happens after running ant install-devel, the script probably 
> breaks something in path /var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT
>
> According to file java/buildconf/build-webapp.xml line 159 it renames 
> /var/www/html to /var/www/html.old . (I have no idea how this works, 
> this development workstation setup code should be reviewed.)
>
> Try to find correct path to RHN-ORG-TRUSTED-SSL-CERT and update 
> parameter 'osa-dispatcher.osa_ssl_cert' in /etc/rhn/rhn.conf to point to 
> it. Or copy the certificate into expected path.
>
> On 6.6.2016 11:52 Laurence Rochfort wrote:
>> Hello,
>>
>> I'm trying to setup the full developer workstation as per the wiki at
>> https://fedorahosted.org/spacewalk/wiki/DevelopmentWorkstationSetup.
>>
>> However, after I run the sudo ant install-devel step, I receive the
>> error below on starting osa-dispatcher.
>>
>> Any suggestions would be much appreciated.
>>
>> Starting spacewalk services...
>> Initializing jabberd processes ...
>> Starting router:   [  OK  ]
>> Starting sm:   [  OK  ]
>> Starting c2s:  [  OK  ]
>> Starting s2s:  [  OK  ]
>> Starting tomcat6:  [  OK  ]
>> Waiting for tomcat to be ready ...
>> Starting httpd:[  OK  ]
>> Starting osa-dispatcher: Spacewalk 10779 2016/06/03 15:07:32 +01:00: 
>> ('Invalid SSL certificate:', Unable to read file 
>> /var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT)
>> [  OK  ]
>> Starting rhn-search...
>> Starting cobbler daemon:   [  OK  ]
>> Starting RHN Taskomatic...
>> Done.
>>
>>
>>
>> Cheers,
>> Laurence.
>>
>> Laurence Rochfort | Principal Oracle Linux Developer
>> Phone: +44 118 924 5629 | Mobile: +44 7867 908 605
>> Oracle Linux
>>
>> Building 520, Oracle Parkway | Reading | Berkshire | RG6 1RA | United Kingdom
>>
>> ___
>> Spacewalk-devel mailing list
>> Spacewalk-devel@redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-devel
>>


-- 

Cheers,
Laurence.

Laurence Rochfort | Principal Oracle Linux Developer
Phone: +44 118 924 5629 | Mobile: +44 7867 908 605
Oracle Linux

Building 520, Oracle Parkway | Reading | Berkshire | RG6 1RA | United Kingdom

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


[Spacewalk-devel] Development workstation setup

2017-04-11 Thread Laurence Rochfort
Hi all,

I'm trying to get a dev environment working for Spacewalk by following
https://github.com/spacewalkproject/spacewalk/wiki/DevelopmentWorkstationSetup

The "Poor Man's" instructions for a system running Tomcat 7 states:

"FIXME: This is not working yet. Figure out what needs to be changed to
make it work."

Are there updated instructions for Tomcat 7 anywhere?

If I follow the poor man's instructions on Oracle Linux 7, then at the
ant install-tomcat step I receive the following jmock errors:

"Test.java:33: error: package org.jmock does not exist"



What's the current best environment and steps for a SW dev setup?

Cheers,
Laurence.

Laurence Rochfort | Principal Oracle Linux Developer
Phone: +44 118 924 5629 | Mobile: +44 7867 908 605
Oracle Linux

Building 520, Oracle Parkway | Reading | Berkshire | RG6 1RA | United Kingdom

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


[Spacewalk-devel] "Tracing a page" link broken on Wiki

2018-02-19 Thread Laurence Rochfort
Hi guys,

FYI, the "Tracing a page" on the github wiki is broken; it just returns you
to the wiki home page.

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

Cheers,
Laurence.

Laurence Rochfort | Principal Oracle Linux Developer
Phone: +44 118 924 5629 | Mobile: +44 7867 908 605
Oracle Linux

Building 520, Oracle Parkway | Reading | Berkshire | RG6 1RA | United Kingdom

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


Re: [Spacewalk-devel] "Tracing a page" link broken on Wiki

2018-02-20 Thread Laurence Rochfort

Grant Gainey writes:

> I re-extracted this page from the last Trac database backup., using
> trac2github, and committed it to the wiki - it's visible now. No need for a
> BZ (altho no worries if you've already opened one!)

Awesome, thanks all!

Cheers,
Laurence.

Laurence Rochfort | Principal Oracle Linux Developer
Phone: +44 118 924 5629 | Mobile: +44 7867 908 605
Oracle Linux

Building 520, Oracle Parkway | Reading | Berkshire | RG6 1RA | United Kingdom

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


[Spacewalk-devel] Test schema data

2018-03-08 Thread Laurence Rochfort
Hi all,

Is there a sample data schema available to use for testing? Or maybe
some test data generation script?

Cheers,
Laurence.

Laurence Rochfort | Principal Oracle Linux Developer
Phone: +44 118 924 5629 | Mobile: +44 7867 908 605
Oracle Linux

Building 520, Oracle Parkway | Reading | Berkshire | RG6 1RA | United Kingdom

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


Re: [Spacewalk-devel] Some 2.8.x version RPMs list in 2.9 COPR project

2019-04-29 Thread Laurence Rochfort


On 26 April 2019 at 13:46 BST, Michael Mraka wrote:

> Laurence Rochfort:
>> Hi all,
>>
>> I was looking at the COPR project for Spacewalk 2.9 and noticed that
>> some of the spacewalk-* packages have a 2.8.x version, whereas in the
>> SPACEWALK-2.9 git tag they have a 2.9.x version.
>>
>> The main spacewalk package stands out in particular.
>>
>> https://copr.fedorainfracloud.org/coprs/g/spacewalkproject/spacewalk-2.9/
>>
>> I noticed the following packages have different version numbers from
>> git:
>>
>> spacewalk-proxy-installer2.8.6-1.fc2814 days ago succeeded   
>> Disabled-
>> spacewalk-config 2.8.5-1.fc2814 days ago succeeded   
>> Disabled-
>> spacewalk-setup-postgresql   2.8.4-1.fc2814 days ago succeeded   
>> Disabled-
>> spacewalk-proxy-selinux  2.8.3-1.fc2814 days ago succeeded   
>> Disabled-
>> perl-Satcon  2.8.2-1.fc2814 days ago succeeded   Disabled
>> -
>> spacewalk2.8.2-1.fc2814 days ago succeeded   Disabled
>> -
>> spacewalk-proxy-docs 2.8.2-1.fc2814 days ago succeeded   
>> Disabled-
>> spacewalk-proxy-html 2.8.2-1.fc2814 days ago succeeded   
>> Disabled-
>>
>> Could somebody please confirm if the correct versions have been built on
>> COPR?
>
> Hello Laurence,
>
> these versions are ok. There has been no change during Spacewalk 2.9
> development in these packages. If you look into .spec you can see
> Version: 2.9.0 here but it is just a result of an automatic version
> bump so the first real change in the package would increased version to
> 2.9.1.
>
> Let's check latest tagged versions:
> $ cd spacewalk.git
> $ git checksout SPACEWALK-2.9
> $ for t in spacewalk-proxy-installer spacewalk-config 
> spacewalk-setup-postgresql spacewalk-proxy-selinux perl-Satcon spacewalk-2 
> spacewalk-proxy-docs spacewalk-proxy-html ; do git tag | grep $t | tail -1 ; 
> done
> spacewalk-proxy-installer-2.8.6-1
> spacewalk-config-2.8.5-1
> spacewalk-setup-postgresql-2.8.4-1
> spacewalk-proxy-selinux-2.8.3-1
> perl-Satcon-2.8.2-1
> spacewalk-2.8.2-1
> spacewalk-proxy-docs-2.8.2-1
> spacewalk-proxy-html-2.8.2-1

Thanks for the explanation, Michael.

I do wonder if having the main Spacewalk 2.9 package have a version of
2.8 is a little confusing for a sys admin who's not so familiar with
Spacewalk?

If I were to ask yum which version of Spacewalk I have installed and it
says 2.8, or the main package version didn't match all the others, then
it might be confusing and cause me to try to upgrade?

Just a thought.

--
Cheers,
Laurence.

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


[Spacewalk-devel] Some 2.8.x version RPMs list in 2.9 COPR project

2019-04-26 Thread Laurence Rochfort
Hi all,

I was looking at the COPR project for Spacewalk 2.9 and noticed that
some of the spacewalk-* packages have a 2.8.x version, whereas in the
SPACEWALK-2.9 git tag they have a 2.9.x version.

The main spacewalk package stands out in particular.

https://copr.fedorainfracloud.org/coprs/g/spacewalkproject/spacewalk-2.9/

I noticed the following packages have different version numbers from
git:

spacewalk-proxy-installer   2.8.6-1.fc2814 days ago succeeded   
Disabled-
spacewalk-config2.8.5-1.fc2814 days ago succeeded   
Disabled-
spacewalk-setup-postgresql  2.8.4-1.fc2814 days ago succeeded   
Disabled-
spacewalk-proxy-selinux 2.8.3-1.fc2814 days ago succeeded   
Disabled-
perl-Satcon 2.8.2-1.fc2814 days ago succeeded   Disabled
-
spacewalk   2.8.2-1.fc2814 days ago succeeded   Disabled
-
spacewalk-proxy-docs2.8.2-1.fc2814 days ago succeeded   
Disabled- 
spacewalk-proxy-html2.8.2-1.fc2814 days ago succeeded   
Disabled- 

Could somebody please confirm if the correct versions have been built on
COPR?

Many thanks.




Oh, I noticed that the repo link on the following page is wrong:

https://spacewalkproject.github.io/howtoinstall.html

States:
https://copr.fedorainfracloud.org/groups/g/spacewalkproject/spacewalk-2.9/
Should be:
https://copr.fedorainfracloud.org/coprs/g/spacewalkproject/spacewalk-2.9/

-- 
Cheers,
Laurence.

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