Bug 674853 - pulp-migrate generates an error
Summary: pulp-migrate generates an error
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-03 14:47 UTC by dgao
Modified: 2011-07-18 06:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-31 20:46:55 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.