Description of problem: satellite-sync gives an SQL error (not sure at what state - was running unattended) and emails following: --- 08:34:40 SYNC ERROR: unhandled exception occurred: Exception reported from smqe-sat11.lab.eng.brq.redhat.com Time: Wed Aug 25 08:34:40 2010 Exception type server.rhnSQL.sql_base.SQLError Exception Handler Information Traceback (most recent call last): File "/usr/bin/satellite-sync", line 143, in main return satsync.Runner().main() File "/usr/share/rhn/satellite_tools/satsync.py", line 218, in main ret = method() File "/usr/share/rhn/satellite_tools/satsync.py", line 342, in _step_errata schedule_errata_cache_update(self._affected_channels) File "/usr/share/rhn/server/importlib/errataCache.py", line 32, in schedule_errata_cache_update h.executemany(label=channels) File "/usr/share/rhn/server/rhnSQL/sql_base.py", line 177, in executemany return apply(self._execute_wrapper, (self._executemany, ) + p, kw) File "/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py", line 118, in _execute_wrapper raise apply(sql_base.SQLError, ret) SQLError: (1400, 'ORA-01400: cannot insert NULL into ("SMQE_SAT11"."RHNTASKQUEUE"."ORG_ID")\n', "insert into rhnTaskQueue (org_id, task_name, task_data, priority, earliest) select c.org_id, 'update_errata_cache_by_channel', c.id, 0, SYSDATE from rhnChannel c where c.label = :label") --- Version-Release number of selected component (if applicable): Satellite iso: Satellite-5.4.0-RHEL5-re20100820.0-x86_64.iso How reproducible: 1 from 1 attempt Steps to Reproduce: 1. satellite-sync -c rhel-i386-server-vt-5 -c rhn-tools-rhel-i386-server-5 -c rhel-i386-server-5 2. 3. Actual results: Exception in console: -- Downloading:######################################## - complete 08:34:33 Importing *relevant* errata: rhel-i386-server-vt-5 (50) ________________________________________ Downloading:######################################## - complete 08:34:39 Importing *relevant* errata: rhn-tools-rhel-i386-server-5 (4) ________________________________________ Downloading:######################################## - complete +++ sending log as an email +++ SYNC ERROR: unhandled exception occurred: (Check logs/email for potentially more detail) (1400, 'ORA-01400: cannot insert NULL into ("SMQE_SAT11"."RHNTASKQUEUE"."ORG_ID")\n', "insert into rhnTaskQueue (org_id, task_name, task_data, priority, earliest) select c.org_id, 'update_errata_cache_by_channel', c.id, 0, SYSDATE from rhnChannel c where c.label = :label") You have new mail in /var/spool/mail/root -- Expected results: no tracebacks, no exception emails. Additional info:
*** This bug has been marked as a duplicate of bug 627933 ***