Re: [Spacewalk-devel] Informal Devel Environment Survey
My setup involves the following 1) Workstation with Fedora on it. This workstation has eclipse + sudo yum install ant-nodeps junit ant-junit java-1.6.0-openjdk-devel sudo rpm -Uvh http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/ivy-1.3.1-1jpp.noarch.rpm it also has a checkout of the spacewalk git repo. The checkout directory has the code directory listed in /etc/exports to make it available across systems for NFS mount. It also has a Vmware Server running on it with a Rhel 5 VM. 2) The Rhel 5 VM has Spacewalk setup from the https://fedorahosted.org/spacewalk/wiki/HowToInstall instructions .. I then go to https://fedorahosted.org/spacewalk/wiki/DevelopmentWorkstationSetup I skip the git checkoout part and instead mount the directory exported from fedora.., I follow every other step formt he development workstation setup. Idea is to do the development + compilation using the Eclipse IDE on Fedora and runtime with ant/tomcat5/apache etc on Rhel 5 where a 'spacewalk-like' environemnt is present. Trick is to maintain the same directory structure + user permission (including same UID + GIDs) information across both machines.. so for example if the git directory is in /opt/sw/spacewalk on fedora it is the same in rhel 5 .. if my UID is XXX on fedora, there must be a user with the same name and name UID in rhel 5. I would think a similar setup could work for Fedora/Centos combination also... This is a fairly complicated setup but i like the separation between development and runtime environment.. Partha Travis Camechis wrote: Sounds like a good idea. I think another useful think would to have people describe how they setup there environment. It would be good to see how people streamline there development and testing. One thing Im wondering is how people do a lot of there testing. It looks like testing a lot of the features could involve rebuilding VMS a lot and running the test ( not for sure since I haven't actually used the product yet ). Currently I set up my Development box on a CentOs workstation. I setup a NFS mount so I could mount my checkout on my F10 laptop. I also plan on installing a couple VMS on the Centos machine to act as test clients. I currently have one installed so far. On Fri, Jan 23, 2009 at 8:06 PM, Jesus M. Rodriguez wrote: On Fri, Jan 23, 2009 at 12:27 PM, Michael DeHaan wrote: Jesus M. Rodriguez wrote: On Thu, Jan 22, 2009 at 3:03 PM, Coe, Colin C. (Unix Engineer) wrote: I've found that doing the steps under 'Deploying Development Schema' doesn't work (for me anyway) and ends up needing to redo the dev environment. Also, I'd like to see https://fedorahosted.org/spacewalk/wiki/JavaDesign fleshed out a lot more. Anything in particular? I'd be happy to update it. jesus ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel Could the dev-environment be more appliancey? How about a shell-script/recipe to automate environment setup, or publishing a kickstart for installation of a dev-environment in a virtual machine (with just the virt-install command and kickstart, you should be good to go)? One problem is grabbing the Oracle bits, for now, so that may have to be a one-off, but everything else, perhaps... The appliance idea is a decent one, and worth adding to the list of dev setups. I personally use a virt guest to do my development in. I wouldn't want the appliance to be the only way of dev setup. A great idea though. jesus ___ 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] Informal Devel Environment Survey
Sounds like a good idea. I think another useful think would to have people describe how they setup there environment. It would be good to see how people streamline there development and testing. One thing Im wondering is how people do a lot of there testing. It looks like testing a lot of the features could involve rebuilding VMS a lot and running the test ( not for sure since I haven't actually used the product yet ). Currently I set up my Development box on a CentOs workstation. I setup a NFS mount so I could mount my checkout on my F10 laptop. I also plan on installing a couple VMS on the Centos machine to act as test clients. I currently have one installed so far. On Fri, Jan 23, 2009 at 8:06 PM, Jesus M. Rodriguez wrote: > On Fri, Jan 23, 2009 at 12:27 PM, Michael DeHaan > wrote: > > Jesus M. Rodriguez wrote: > >> > >> On Thu, Jan 22, 2009 at 3:03 PM, Coe, Colin C. (Unix Engineer) > >> wrote: > >> > >>> > >>> I've found that doing the steps under 'Deploying Development Schema' > >>> doesn't work (for me anyway) and ends up needing to redo the dev > >>> environment. > >>> > >>> Also, I'd like to see > https://fedorahosted.org/spacewalk/wiki/JavaDesign > >>> fleshed out a lot more. > >>> > >> > >> Anything in particular? I'd be happy to update it. > >> > >> jesus > >> > >> ___ > >> Spacewalk-devel mailing list > >> Spacewalk-devel@redhat.com > >> https://www.redhat.com/mailman/listinfo/spacewalk-devel > >> > > > > Could the dev-environment be more appliancey? > > > > How about a shell-script/recipe to automate environment setup, or > publishing > > a kickstart for installation of a dev-environment in a virtual machine > (with > > just the virt-install command > > and kickstart, you should be good to go)? > > > > One problem is grabbing the Oracle bits, for now, so that may have to be > a > > one-off, but everything else, perhaps... > > > > The appliance idea is a decent one, and worth adding to the list of dev > setups. > I personally use a virt guest to do my development in. I wouldn't want the > appliance to be the only way of dev setup. > > A great idea though. > jesus > > ___ > 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] Informal Devel Environment Survey
On Fri, Jan 23, 2009 at 12:27 PM, Michael DeHaan wrote: > Jesus M. Rodriguez wrote: >> >> On Thu, Jan 22, 2009 at 3:03 PM, Coe, Colin C. (Unix Engineer) >> wrote: >> >>> >>> I've found that doing the steps under 'Deploying Development Schema' >>> doesn't work (for me anyway) and ends up needing to redo the dev >>> environment. >>> >>> Also, I'd like to see https://fedorahosted.org/spacewalk/wiki/JavaDesign >>> fleshed out a lot more. >>> >> >> Anything in particular? I'd be happy to update it. >> >> jesus >> >> ___ >> Spacewalk-devel mailing list >> Spacewalk-devel@redhat.com >> https://www.redhat.com/mailman/listinfo/spacewalk-devel >> > > Could the dev-environment be more appliancey? > > How about a shell-script/recipe to automate environment setup, or publishing > a kickstart for installation of a dev-environment in a virtual machine (with > just the virt-install command > and kickstart, you should be good to go)? > > One problem is grabbing the Oracle bits, for now, so that may have to be a > one-off, but everything else, perhaps... > The appliance idea is a decent one, and worth adding to the list of dev setups. I personally use a virt guest to do my development in. I wouldn't want the appliance to be the only way of dev setup. A great idea though. jesus ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Informal Devel Environment Survey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 23 Jan 2009 11:45:48 +0530 tushar wrote: > > when:-at the time of Installing Web application :- these are the > last few steps which are mentioned in > wiki(https://fedorahosted.org/spacewalk/wiki/DevelopmentWorkstationSetup) > > * cd $GITDIR/spacewalk/search-server > * make test-srpm; rpmbuild --rebuild > spacewalk-search-*.git.*.src.rpm; rpm -Uvh > /usr/src/redhat/RPMS/noarch/spacewalk-search-0.4.1-1.git.*.noarch.rpm > * it's a good idea to wipe out the search indexes, "sudo > /sbin/service rhn-search cleanindex" > * sudo /sbin/rhn-satellite start > > > At the time of performing rpmbuild --rebuild > spacewalk-search-*.git.*.src.rpm; , this command fails. as it is > trying to search in search-server folder but if we fire this command > under saerch-server > /rpmbuild-spacewalk-search-git-f51c6110bc1c7296b3478c3110a30c9dca331e9b > it works > > > At the time of performing rpm -Uvh > /usr/src/redhat/RPMS/noarch/spacewalk-search-0.4.1-1.git.*.noarch.rpm , > this also fails ,if we go to /usr/src/redhat/RPMS/noarch/ folder it > is showing > spacewalk-search-0.4.10-1.git.f51c6110bc1c7296b3478c3110a30c9dca331e9b.noarch.rpm > > present,we have 0.4.10 not 0.4.1 Just updated the section for spacewalk-search to: ../rel-eng/bin/build.py --test --rpm && /tmp/spacewalk-build/noarch/spacewalk-search-*.git.*.noarch.rpm Cheers, Devan - -- Devan Goodwin Software Engineer Spacewalk / RHN Satellite Halifax, Canada 650.567.9039x79267 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkl6JxcACgkQAyHWaPV9my67pwCglNwOaQiOBHjFghBNbLevDNcF lhIAoLyvZSb9Zu717HtX++hBkHYhMHpO =te9x -END PGP SIGNATURE- ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Informal Devel Environment Survey
A couple things I noticed on the setup page are slightly out of date now. 1. cd $GITDIR/spacewalk/search-server make test-srpm; rpmbuild --rebuild spacewalk-search-*.git.*.src.rpm; rpm -Uvh /usr/src/redhat/RPMS/noarch/spacewalk- search-0.4.1-1.git.*.noarch.rpm The src rpm does not exist directly under search-server but one dir down. Another issue I had is the rpmbuild command tries to write to /usr/src which you then could end up with permission issues. 2. /etc/init.d/rhn-satellite stop It appears to be now suggested to use /usr/sbin/rhn-satellite stop ( I think its in /usr/sbin now ). Please correct me if I am wrong in any of these cases. These are just a couple things that caused me a few hicups during the dev setup process. On Fri, Jan 23, 2009 at 12:27 PM, Michael DeHaan wrote: > Jesus M. Rodriguez wrote: > >> On Thu, Jan 22, 2009 at 3:03 PM, Coe, Colin C. (Unix Engineer) >> wrote: >> >> >>> I've found thaasfat doing the steps under 'Deploying Development Schema' >>> doesn't work (for me anyway) and ends up needing to redo the dev >>> environment. >>> >>> Also, I'd like to see >>> https://fedorahosted.org/spacewalk/wiki/JavaDesignfleshed out a lot more. >>> >>> >> >> Anything in particular? I'd be happy to update it. >> >> jesus >> >> ___ >> Spacewalk-devel mailing list >> Spacewalk-devel@redhat.com >> https://www.redhat.com/mailman/listinfo/spacewalk-devel >> >> > > Could the dev-environment be more appliancey? > > How about a shell-script/recipe to automate environment setup, or > publishing a kickstart for installation of a dev-environment in a virtual > machine (with just the virt-install command > and kickstart, you should be good to go)? > > One problem is grabbing the Oracle bits, for now, so that may have to be a > one-off, but everything else, perhaps... > > --Michael > > > ___ > 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] Informal Devel Environment Survey
Jesus M. Rodriguez wrote: On Thu, Jan 22, 2009 at 3:03 PM, Coe, Colin C. (Unix Engineer) wrote: I've found that doing the steps under 'Deploying Development Schema' doesn't work (for me anyway) and ends up needing to redo the dev environment. Also, I'd like to see https://fedorahosted.org/spacewalk/wiki/JavaDesign fleshed out a lot more. Anything in particular? I'd be happy to update it. jesus ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel Could the dev-environment be more appliancey? How about a shell-script/recipe to automate environment setup, or publishing a kickstart for installation of a dev-environment in a virtual machine (with just the virt-install command and kickstart, you should be good to go)? One problem is grabbing the Oracle bits, for now, so that may have to be a one-off, but everything else, perhaps... --Michael ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] cleanup external projects from git
Dennis Gilmore wrote: On Friday 23 January 2009 12:18:31 am Dennis Gilmore wrote: jabberpy and perl-Filesys-Df are both in fedora and EPEL, I plan to remove them from spacewalk git tomorrow afternoon. please yell if you think they should be kept. ive already blocked them from being built in spacewalk koji. Dennis perl-Set-Crontab perl-Crypt-GeneratePassword perl-Frontier-RPC perl-Math-FFT perl-Schedule-Cron-Events will be removed also. they are all in fedora and epel also When you remove some package or block it from Spacewalk tag, please remove file(s) rel-eng/packages/ as well. Otherwise rel-eng/build-missing-builds-in-koji.sh will try to build these packages 3 times per day. Thx -- Miroslav Suchy RHN Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Informal Devel Environment Survey
On Thu, Jan 22, 2009 at 3:03 PM, Coe, Colin C. (Unix Engineer) wrote: > I've found that doing the steps under 'Deploying Development Schema' doesn't > work (for me anyway) and ends up needing to redo the dev environment. > > Also, I'd like to see https://fedorahosted.org/spacewalk/wiki/JavaDesign > fleshed out a lot more. Anything in particular? I'd be happy to update it. jesus ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] cleanup external projects from git
Dennis Gilmore wrote: On Friday 23 January 2009 12:18:31 am Dennis Gilmore wrote: jabberpy and perl-Filesys-Df are both in fedora and EPEL, I plan to perl-Set-Crontab perl-Crypt-GeneratePassword perl-Frontier-RPC perl-Math-FFT perl-Schedule-Cron-Events will be removed also. they are all in fedora and epel also I would like the rise the issue of perl-Satcon, nocpulse-common and other packages we already pushed to Fedora. They are in Fedora and Epel as well. But we are upstream of such packages. I will welcome some tool which we can run after each release of Spacewalk and which will say something like: # rel-eng/what-is-fedora-missing Following packages in Fedora and Epel packages are older than release which can be found in rel-eng/packages/ and should be updated: perl-Satcon git: perl-Satcon-0.2-1 F-10: perl-Satcon-0.1-1 ... nocpulse-common: git: nocpulse-common-0.3-1 F-10: nocpulse-common-0.2-1 ... # rel-eng/update-package-in-Fedora F-10 nocpulse-common Package nocpulse-common updated in branch F-10. Build of nocpulse-common updated in branch F-10 has been requested. # rel-eng/update-package-in-Fedora devel nocpulse-common Package nocpulse-common updated in branch devel. Build of nocpulse-common updated in branch devel has been requested. # rel-eng/update-package-in-Fedora EL-5 nocpulse-common Package nocpulse-common updated in branch EL-5. Build of nocpulse-common updated in branch EL-5 has been requested. Or something like that. -- Miroslav Suchy RHN Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] beginning spacewalk development
Devan Goodwin wrote: 1. Getting packages into Fedora: https://fedorahosted.org/spacewalk/wiki/GettingPackagesIntoFedora This entails getting approved as a Fedora packager and learning the ins and outs of rpm's and spec files but it's really not that hard once you do it a couple times, and it can prove to be very valuable knowledge to have as well. The end goal is a great one as well, spacewalk installable straight out of Fedora/EPEL yum repos. And you can even review our packages which wait for review: https://bugzilla.redhat.com/show_bug.cgi?id=466906 https://bugzilla.redhat.com/show_bug.cgi?id=466953 2. Migrate Perl pages to Java: https://fedorahosted.org/spacewalk/wiki/RemainingPxtPages 3. Try to understand the code and its workflow and write or enhance current documentation. Ideally by changing the comments in code from which are the documentation automatically generated: https://fedorahosted.org/spacewalk/wiki/DeveloperDocs -- Miroslav Suchy RHN Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] Informal Devel Environment Survey
Devan Goodwin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Noticing a lot of newcomers really struggling with our devel setup lately and got to wondering how many others out there aren't actually even using it. Anyone feel like sharing what, if anything, they're doing differently from the standard devel environment setup defined here (and why): https://fedorahosted.org/spacewalk/wiki/DevelopmentWorkstationSetup I have a gut feeling we should recommend something drastically different to lower the barrier to entry. I personally disagree with the whole DevelopmentWorkstationSetup idea. Since you will get something which differs from final Spacewalk. And I do not want to run tests and experiments directly on my workstation. I prefer to have Spacewalk installed on different virtual machine and test the code there. I write code on my machine. Python/perl code I then copy directly. For java I use this workflow: I edit .java file in git on my machine and then in virtual machine as root: # cd /tmp # mkdir -p com/redhat/rhn/domain/kickstart/ # scp myn...@mymachine:spacewalk.git/java/src/com/redhat/rhn/domain/kickstart/KickstartCommand.java com/redhat/rhn/domain/kickstart/ # javac -extdirs /var/lib/tomcat5/webapps/rhn/WEB-INF/lib/ com/redhat/rhn/domain/kickstart/KickstartCommand.java # jar uf /usr/share/rhn/lib/rhn.jar com/redhat/rhn/domain/kickstart/KickstartCommand.class # /etc/init.d/tomcat5 restart If I make changes in a lot of files I run "make test-rpm" in directory where the package reside (can be find by cat rel-eng/packages/package>) and then copy and install the resulting rpm to that virtual machine. This way I'll get exact copy of Spacewalk as others will have, when I commit and push my changes. No problems with schema or wrong symlinks. -- Miroslav Suchy RHN Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] cleanup external projects from git
On Fri, Jan 23, 2009 at 12:18:31AM -0600, Dennis Gilmore wrote: > jabberpy and perl-Filesys-Df are both in fedora and EPEL, I plan to remove > them from spacewalk git tomorrow afternoon. please yell if you think they > should be kept. ive already blocked them from being built in spacewalk koji. Could we please postpone removing things until after we create another compose with those Fedora / EPEL packages and see that they actually work? -- Jan Pazdziora Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel