Bug 674853

Summary: pulp-migrate generates an error
Product: [Retired] Pulp Reporter: dgao
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED NOTABUG QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jason.dobies, skarmark, tsanders
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-31 20:46:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description dgao 2011-02-03 14:47:30 UTC
Upgraded to the latest qe build: 0.0.134

[root@pulp-qe pulp]# pulp-migrate --force
/usr/lib/python2.6/site-packages/pulp/server/api/consumer.py:17: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha as SHA
clearing previous versions
4227 errors on validation, see /var/log/pulp/db.log for details


[root@pulp-qe pulp]# tail /var/log/pulp/db.log 
model validation failure in ConsumerHistoryEvent for model 756fb03d-720b-4e53-892a-53f675394992: field timestamp is not a <type 'str'>
model validation failure in ConsumerHistoryEvent for model 629d0e94-4831-4a16-9696-fe7ea54e6ebe: field timestamp is not a <type 'str'>
model validation failure in ConsumerHistoryEvent for model 974f4e3e-4ce5-4a17-95bd-e0d663d10449: field timestamp is not a <type 'str'>
model validation failure in ConsumerHistoryEvent for model 555ab16d-4eb4-40da-bb87-c64e5be1cc2b: field timestamp is not a <type 'str'>
model validation failure in ConsumerHistoryEvent for model c69e40d5-e0d9-4955-9510-000f52f80245: field timestamp is not a <type 'str'>
model validation failure in ConsumerHistoryEvent for model f59c55ac-9ad3-4d81-8af7-5570393e3eb2: field timestamp is not a <type 'str'>
model validation failure in ConsumerHistoryEvent for model 1aa3368d-d6fb-4f7d-a4f2-554dcb6fa11a: field timestamp is not a <type 'str'>
model validation failure in ConsumerHistoryEvent for model 5b3812a8-319c-4f25-96e7-3617407ef2dc: field timestamp is not a <type 'str'>
model validation failure in ConsumerHistoryEvent for model de89a237-8380-4ea2-ba40-c64c25267628: field timestamp is not a <type 'str'>
model validation failure in ConsumerHistoryEvent for model 68955383-50bd-4f29-a9d6-fca95f280056: field timestamp is not a <type 'str'>

Comment 1 Jay Dobies 2011-02-03 15:42:48 UTC
The type of data stored for consumer history events changed from a datetime instance to a string. Pulp-migrate will somehow have to account for this and migrate any existing data.

Comment 2 dgao 2011-03-31 20:46:55 UTC
As of 0.0.159, this no longer seems to be an issue.