[Spacewalk-list] spacewalk-clone-by-date

Franky Van Liedekerke liedekef at telenet.be
Thu Mar 8 09:35:50 UTC 2012


Hi,

I just updated to 1.7 and wanted to try out the new 
spacewalk-clone-by-date command, but it ended with a "unique constraint" 
error. This error is also seen when trying to remove a package via the 
webitf from the channel I used below (but nobody could give me a 
solution there either, I posted that question some time ago). Here's the 
output:


spacewalk-clone-by-date -u myuser -l rhel5-x86_64 testrhel5 -l 
products-x86_64 testproducts -d 2012-01-18
Password:
Reading repository information.

By continuing the following channels will be created:
testrhel5
testproducts

Continue with channel creation (y/n)?y

Cloning products-x86_64 to testproducts with original package set.
Copying repodata, please wait.
Solving Dependencies (178):
________________________________________
######################################## - complete
Processing Dependencies:
________________________________________
######################################## - complete
Traceback (most recent call last):
   File "/usr/bin/spacewalk-clone-by-date", line 205, in ?
     sys.exit(abs(main() or 0))
   File "/usr/bin/spacewalk-clone-by-date", line 195, in main
     return cloneByDate.main(args)
   File "/usr/share/rhn/utils/cloneByDate.py", line 155, in main
     cloner.create_channels(options.skip_depsolve)
   File "/usr/share/rhn/utils/cloneByDate.py", line 255, in 
create_channels
     self.dep_solve(nvreas, labels=(to_create.keys() + 
[self.src_parent]))
   File "/usr/share/rhn/utils/cloneByDate.py", line 334, in dep_solve
     self.process_deps(dep_results)
   File "/usr/share/rhn/utils/cloneByDate.py", line 375, in process_deps
     cloner.process_deps(needed)
   File "/usr/share/rhn/utils/cloneByDate.py", line 453, in process_deps
     self.remote_api.add_packages(self.to_label, needed_ids)
   File "/usr/share/rhn/utils/cloneByDate.py", line 627, in add_packages
     self.client.channel.software.addPackages(self.auth_token, label, 
pkg_set)
   File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
     return self.__send(self.__name, args)
   File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
     verbose=self.__verbose
   File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
     return self._parse_response(h.getfile(), sock)
   File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in 
_parse_response
     return u.close()
   File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
     raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled 
internal exception: ORA-00001: unique constraint 
(SPACEWALK_BCK_MAIN.RHN_CNP_CID_NID_UQ) violated\nORA-06512: at 
"SPACEWALK_BCK_MAIN.RHN_CHANNEL", line 1094\nORA-06512: at line 1\n'>


So, my question is: is there any way to resolve this constraint 
violation?

Franky




More information about the Spacewalk-list mailing list