Re: [Spacewalk-devel] Problem building dev workstation
On Mon, Nov 11, 2013 at 05:43:32PM +0800, Colin Coe wrote: I ended up rebuilding the VM and starting again. I had missed a step or two. My few cents: I wrote a little workaroung thing that could probably help you (if nothing was broken in between last commit and today): https://github.com/isbm/spacewalk-power-toys But I am using CentOS for it, not sure how it will fly on Fedora. HTH. -- Bo Maryniuk SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Support mental health or I'll kill you! ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Problem building dev workstation
Will check it out. Am using rhel6 as f19 has no openjdk-1.6.0. CC On Nov 11, 2013 6:03 PM, Bo Maryniuk b...@suse.de wrote: On Mon, Nov 11, 2013 at 05:43:32PM +0800, Colin Coe wrote: I ended up rebuilding the VM and starting again. I had missed a step or two. My few cents: I wrote a little workaroung thing that could probably help you (if nothing was broken in between last commit and today): https://github.com/isbm/spacewalk-power-toys But I am using CentOS for it, not sure how it will fly on Fedora. HTH. -- Bo Maryniuk SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Support mental health or I'll kill you! ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Problem building dev workstation
Hi Bo Just looking at this now. I have a pre-built, working spacewalk environment and I want to turn it into a dev environment. Does the script cater for this? What options are applicable? Thanks CC On Mon, Nov 11, 2013 at 6:13 PM, Colin Coe colin@gmail.com wrote: Will check it out. Am using rhel6 as f19 has no openjdk-1.6.0. CC On Nov 11, 2013 6:03 PM, Bo Maryniuk b...@suse.de wrote: On Mon, Nov 11, 2013 at 05:43:32PM +0800, Colin Coe wrote: I ended up rebuilding the VM and starting again. I had missed a step or two. My few cents: I wrote a little workaroung thing that could probably help you (if nothing was broken in between last commit and today): https://github.com/isbm/spacewalk-power-toys But I am using CentOS for it, not sure how it will fly on Fedora. HTH. -- Bo Maryniuk SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Support mental health or I'll kill you! ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel -- RHCE#805007969328369 ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Problem building dev workstation
On Mon, Nov 11, 2013 at 07:09:35PM +0800, Colin Coe wrote: Hi Bo Just looking at this now. I have a pre-built, working spacewalk environment and I want to turn it into a dev environment. Does the script cater for this? What options are applicable? Well, it does as described: 1. It puts the Spacewalk into a bare minimal JeOS, adds required stuff and sets up your dev env with an ability to deploy to a remote host (it does not uses symlinking, but rsync). 2. Then you should git-clone the repository and run bsp -r within the $SPACEWALK_SOURCES/java directory (see --generate-config), and it will try to assemble the whole thing from the current sources and will deploy over. You could try skipping step #1. P.S. But I am not sure if the step #1 is still working (last time it seems to be OK was around two months ago). Give it a try: after all, your VM shoud be able to make snapshots... :-) -- Bo Maryniuk SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer You have delighted us long enough. ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
[Spacewalk-devel] Newbie trying to test my code changes
Hello there, first time user. I'm trying to test my changes to the code by building from source, but I can't figure out how to do so. I've gotten as far as using 'tito build --test --rpm in spacewalk/java as per https://www.redhat.com/archives/spacewalk-list/2013-February/msg00052.html. My test to see if I am working from my updated code has been to git rm EnabledListSetupAction.java, and commit the change to git. Then I run tito build --test --rpm in spacewalk/java, and rpm -ivh --replacefiles the resulting packages (skipping the spacewalk-java-lib package, because that breaks the client even without my changes). After I start Spacewalk back up, navigating to /rhn/users/ActiveList.do still functions. It is my understanding that without EnabledListSetupAction (as per https://fedorahosted.org/spacewalk/wiki/TracingaPage) this should no longer work. Any help with this specific line of thinking would be greatly appreciated, but, more generally, how do I build the project to test my changes to the code? My senior thesis is to make a contribution to the project, but I'm having the hardest time just setting up an environment where I can make changes - see results, and I only have 3 weeks left. Thank you for your time, Austin E. Lavinghouse PS- If I'm doing anything wrong re: formatting, mailing list etiquette, please let me know! ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Newbie trying to test my code changes
Oh, and upon re-reading I realized: You can't skip spacewalk-java-lib. That's the rpm that contains all the really important stuff. What client are you breaking by installing it? Another thing to consider is that if you installed the Spacewalk 2.0 rpms you probably want to be making your changes on top of the SPACEWALK-2.0 branch, not master. The code in master may have been updated to rely on changes made in other packages, for example the database schema, and may break if installed on a 2.0 system. Once you have your changes working on the SPACEWALK-2.0 branch it would probably be a clean merge over to master. -Stephen On 11/11/2013 02:10 PM, Stephen Herr wrote: Hi Austin, Assuming that you really are sucessfully building and installing the rpm, the only thing that occures to me is that you should restart the tomcat service (probably 'tomcat6' or 'tomcat' depending on your setup). This forces it to reload cached content. In general that's a fine approach to take. /var/log/httpd/error_log and /var/log/tomcat/catalina.out are some error logs it might be very useful for you to watch when you're testing your changes. In the former you'll generally see exceptions generated in the python and perl layers, in the latter you'll see exceptions generated in the java layer. -Stephen Herr On 11/11/2013 12:21 PM, Austin Lavinghouse wrote: Hello there, first time user. I'm trying to test my changes to the code by building from source, but I can't figure out how to do so. I've gotten as far as using 'tito build --test --rpm in spacewalk/java as per https://www.redhat.com/archives/spacewalk-list/2013-February/msg00052.html. My test to see if I am working from my updated code has been to git rm EnabledListSetupAction.java, and commit the change to git. Then I run tito build --test --rpm in spacewalk/java, and rpm -ivh --replacefiles the resulting packages (skipping the spacewalk-java-lib package, because that breaks the client even without my changes). After I start Spacewalk back up, navigating to /rhn/users/ActiveList.do still functions. It is my understanding that without EnabledListSetupAction (as per https://fedorahosted.org/spacewalk/wiki/TracingaPage) this should no longer work. Any help with this specific line of thinking would be greatly appreciated, but, more generally, how do I build the project to test my changes to the code? My senior thesis is to make a contribution to the project, but I'm having the hardest time just setting up an environment where I can make changes - see results, and I only have 3 weeks left. Thank you for your time, Austin E. Lavinghouse PS- If I'm doing anything wrong re: formatting, mailing list etiquette, please let me know! ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Newbie trying to test my code changes
On Mon, Nov 11, 2013 at 1:23 PM, Stephen Herr sh...@redhat.com wrote: Oh, and upon re-reading I realized: You can't skip spacewalk-java-lib. That's the rpm that contains all the really important stuff. What client are you breaking by installing it? Another thing to consider is that if you installed the Spacewalk 2.0 rpms you probably want to be making your changes on top of the SPACEWALK-2.0 branch, not master. The code in master may have been updated to rely on changes made in other packages, for example the database schema, and may break if installed on a 2.0 system. Once you have your changes working on the SPACEWALK-2.0 branch it would probably be a clean merge over to master. -Stephen Thanks for noticing that! I'll pull the 2.0 branch and start working from there, using the same stop - change - commit - tito - rpm - start process. On 11/11/2013 02:10 PM, Stephen Herr wrote: Hi Austin, Assuming that you really are sucessfully building and installing the rpm, the only thing that occures to me is that you should restart the tomcat service (probably 'tomcat6' or 'tomcat' depending on your setup). This forces it to reload cached content. In general that's a fine approach to take. /var/log/httpd/error_log and /var/log/tomcat/catalina.out are some error logs it might be very useful for you to watch when you're testing your changes. In the former you'll generally see exceptions generated in the python and perl layers, in the latter you'll see exceptions generated in the java layer. -Stephen Herr I have been using /usr/sbin/spacewalk-service stop / start before making any changes. Thanks for the logs, I'm not getting errors in either; however, I think I discovered the reason for that. rpm -qa | grep spacewalk shows that both spacewalk-java-2.0.5-1.el6.noarch *and* -2.1.54-1.git.0.5c89a47.el6.noarch are installed, so the java is probably running out of the 2.0. Thus, my changes aren't doing anything (but I'm also not buggering up the system by trying to install 2.1 on top of it!). Going to remove the 2.1 package, pull the 2.0 down, and give it a shot. Thanks for your help! Updates in a bit as soon as I try it. ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
[Spacewalk-devel] [PATCH] Added Oracle Linux channels for UEKR3, as well as Spacewalk 2.0 Server/Client for OL6 and Client for OL5
Oracle has shipped UEK Release 3 as well as Oracle built and signed versions of Spacewalk 2.0 Server (for Oracle Linux 6-x86_64) and Spacewalk 2.0 Client for (OL5/OL6). This patch adds those channels to spacewalk-common-channels.ini. I specified the Spacewalk channels as children of the parent OL5/OL6 channels as they inherit the GPG keys from the parent. They also use an alternative naming so as not to conflict with anyone who wants to use the upstream server/client channels. --- utils/spacewalk-common-channels.ini | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/utils/spacewalk-common-channels.ini b/utils/spacewalk-common-channels.ini index 3f7a901..07c010a 100644 --- a/utils/spacewalk-common-channels.ini +++ b/utils/spacewalk-common-channels.ini @@ -863,6 +863,13 @@ name = Oracle Linux 6 UEK (%(arch)s) base_channels = oraclelinux6-%(arch)s yumrepo_url = http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/%(arch)s/ +[oraclelinux6-uek-r3] +label= %(base_channel)s-uek-r3 +archs= x86_64 +name = Oracle Linux 6 UEK Release 3 (%(arch)s) +base_channels = oraclelinux6-%(arch)s +yumrepo_url = http://public-yum.oracle.com/repo/OracleLinux/OL6/UEKR3/latest/%(arch)s/ + [oraclelinux6-mysql] label= %(base_channel)s-mysql archs= %(_x86_archs)s @@ -877,6 +884,20 @@ name = Oracle Linux 6 Playground (%(arch)s) base_channels = oraclelinux6-%(arch)s yumrepo_url = http://public-yum.oracle.com/repo/OracleLinux/OL6/playground/latest/%(arch)s/ +[oraclelinux6-spacewalk20-server] +label= %(base_channel)s-spacewalk20-server +archs= x86_64 +name = Spacewalk 2.0 Server for Oracle Linux 6 (%(arch)s) +base_channels = oraclelinux6-%(arch)s +yumrepo_url = http://public-yum.oracle.com/repo/OracleLinux/OL6/spacewalk20/server/%(arch)s/ + +[oraclelinux6-spacewalk20-client] +label= %(base_channel)s-spacewalk20-client +archs= %(_x86_archs)s +name = Spacewalk 2.0 Client for Oracle Linux 6 (%(arch)s) +base_channels = oraclelinux6-%(arch)s +yumrepo_url = http://public-yum.oracle.com/repo/OracleLinux/OL6/spacewalk20/client/%(arch)s/ + [oraclelinux5] archs= %(_x86_archs)s name = Oracle Linux 5 (%(arch)s) @@ -913,3 +934,11 @@ archs= %(_x86_archs)s name = Oracle Linux 5 UEK (%(arch)s) base_channels = oraclelinux5-%(arch)s yumrepo_url = http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/latest/%(arch)s/ + +[oraclelinux5-spacewalk20-client] +label= %(base_channel)s-spacewalk20-client +archs= %(_x86_archs)s +name = Spacewalk 2.0 Client for Oracle Linux 5 (%(arch)s) +base_channels = oraclelinux5-%(arch)s +yumrepo_url = http://public-yum.oracle.com/repo/OracleLinux/OL5/spacewalk20/client/%(arch)s/ + -- 1.7.1 -- Oracle http://www.oracle.com Avi Miller | Principal Program Manager | +61 (412) 229 687 Oracle Linux and Virtualization 417 St Kilda Road, Melbourne, Victoria 3004 Australia ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] Added Oracle Linux channels for UEKR3, as well as Spacewalk 2.0 Server/Client for OL6 and Client for OL5
Avi Miller wrote: % Oracle has shipped UEK Release 3 as well as Oracle built and signed versions of Spacewalk 2.0 Server (for Oracle Linux 6-x86_64) and Spacewalk 2.0 Client for (OL5/OL6). This patch adds those channels to spacewalk-common-channels.ini. % % I specified the Spacewalk channels as children of the parent OL5/OL6 channels as they inherit the GPG keys from the parent. They also use an alternative naming so as not to conflict with anyone who wants to use the upstream server/client channels. Hi Avi, Thanks for your patch. Commited to Spacewalk master as c1079bc659d892322b70dd63d85d9dcefa935693. Regards, -- Michael Mráka Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel