[Spacewalk-list] Can not have same-named distributions in two organizations

Jon Miller jonebird at gmail.com
Fri Apr 12 01:05:55 UTC 2013


Not sure if this is by design or a bug (will happily file one if the
later). I was creating a new organization in my Spacewalk server today and
I re-used the same steps performed in creating my distribution as I did
with my previous organization:
       + Distribution Label: centos-6.3-x86_64
       + Tree Path: /var/satellite/distros/centos-6.3-x86_64
       + Base Channel: CentOS 6 (x86_64)
       + Installer Generation: Red Hat Enterprise Linux 6

When testing my kickstart, requesting the distribution images resulted in a
500 error delivered from Apache.
10.53.76.248 - - [11/Apr/2013:17:15:45 -0700] "GET
/cblr/svc/op/ks/profile/neo-base:3:neo HTTP/1.1" 200 25096 "-"
"Java/1.6.0_24"
129.46.73.105 - - [11/Apr/2013:17:15:44 -0700] "GET
/ks/cfg/org/3/label/neo-base HTTP/1.1" 200 25096 "-" "anaconda/13.21.176"
129.46.73.105 - - [11/Apr/2013:17:15:50 -0700] "GET
/ks/dist/centos-6.3-x86_64/images/updates.img HTTP/1.1" 500 3658 "-"
"anaconda/13.21.176"
129.46.73.105 - - [11/Apr/2013:17:15:50 -0700] "GET
/ks/dist/centos-6.3-x86_64/images/product.img HTTP/1.1" 500 3658 "-"
"anaconda/13.21.176"
129.46.73.105 - - [11/Apr/2013:17:15:50 -0700] "GET
/ks/dist/centos-6.3-x86_64/images/install.img HTTP/1.1" 500 3658 "-"
"anaconda/13.21.176"

I then found this (only showing the top of the stack trace) in my
/var/log/tomcat6/catalina.out file:
2013-04-11 17:37:50,875 [TP-Processor1] WARN
 org.apache.struts.action.RequestProcessor - Unhandled Exception thrown:
class org.hibernate.NonUniqueResultExcepti
on
2013-04-11 17:37:50,879 [TP-Processor1] ERROR
com.redhat.rhn.frontend.servlets.SessionFilter - Error during transaction.
Rolling back
javax.servlet.ServletException: org.hibernate.NonUniqueResultException:
query did not return a unique result: 2

>From that clue, I end up modifying my distribution label and things
proceeded fine.

-- Jon Miller
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20130411/8aa0a154/attachment.htm>


More information about the Spacewalk-list mailing list