Excerpts from Jaroslav Kortus's message of 2012-10-20 01:04:47 +1000:
I've discovered one error during importing of cloned job (appears in the box on the
Failed to import job because of: (OperationalError) (1048, "Column 'job_id'
null") 'INSERT INTO recipe_set (job_id, priority, queue_time, result, status,
lab_controller_id, ttasks, ptasks, wtasks, ftasks, ktasks) VALUES (%s, %s, %s, %s, %s,
%s, %s, %s, %s, %s)' (None, 'Urgent', datetime.datetime(2012, 10, 19, 14, 59,
'New', 'New', None, 0, 0, 0, 0, 0)
I've traced it down to TestPackage.lazy_create(package='%s'...) call where it
triggers session.commit() and this produces this error.
This happens only if my cloned job contains '<packages><package
name="postfix"/></packages>' snip. The original job had
'<packages/>'. Package name does
Reproducible on my beaker instance with 9.3 and 9.4 releases.
Can anyone here tell me what's going wrong?
It's a bug. The real fix is that we should not be calling session.add in
MappedObject.__init__ but unfortunately that would be a very drastic
I've filed it in Bugzilla:
See comment 3 for some suggested workarounds.
Dan Callaghan <dcallagh(a)redhat.com>
Software Engineer, Infrastructure Engineering and Development
Red Hat, Inc.