Bug 760958 - DB Migration to 0.254 gives a validation error
Summary: DB Migration to 0.254 gives a validation error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-07 12:51 UTC by Peter Meier
Modified: 2015-03-23 01:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Peter Meier 2011-12-07 12:51:25 UTC
Description of problem:

After updating from 0.244 to 0.254 pulp-migrate gives a validation error:

# pulp-migrate 
data model in use matches the current version
4 errors on validation, see /var/log/pulp/db.log for details


# tail /var/log/pulp/db.log 
model validation failure in Repo for model centos6-x86_64: field notes is <type 'NoneType'> not <type 'dict'>
model validation failure in Repo for model fedora-15-x86_64: field notes is <type 'NoneType'> not <type 'dict'>
model validation failure in Repo for model rhel6-pulp-x86_64: field notes is <type 'NoneType'> not <type 'dict'>
model validation failure in Repo for model epel-6-x86_64: field notes is <type 'NoneType'> not <type 'dict'>

Version-Release number of selected component (if applicable):

# rpm -qa | grep pulp
python-isodate-0.4.4-3.pulp.fc15.noarch
pulp-common-0.0.254-1.fc15.noarch
pulp-0.0.254-1.fc15.noarch
pulp-selinux-server-0.0.254-1.fc15.noarch
pulp-admin-0.0.254-1.fc15.noarch
mod_wsgi-3.2-6.pulp.fc15.i686
python-oauth2-1.5.170-2.pulp.fc15.noarch
m2crypto-0.21.1.pulp-5.fc15.i686
pulp-client-lib-0.0.254-1.fc15.noarch


How reproducible:

Always.

Steps to Reproduce:
1. Run pulp-migrate
2. Get error
  
Actual results:

Migration mentiones validation errors

Expected results:

Migration should work.

Additional info:

pulp.log shows the following *after* the migration:

2011-12-07 13:50:52,396 3990:-1217071280: pulp.server.db.connection:INFO: connection:46 Attempting Database connection with seeds = localhost
2011-12-07 13:50:52,397 3990:-1217071280: pulp.server.db.connection:INFO: connection:51 Database connection established with: seeds = localhost, name = pulp_database
2011-12-07 13:50:52,736 3990:-1217071280: pulp:CRITICAL: version:158 data model version is up to date, but has not been validated
2011-12-07 13:50:52,736 3990:-1217071280: pulp:CRITICAL: version:159 use the 'pulp-migrate' tool to fix this before restarting the web server

Comment 1 Sayli Karmarkar 2011-12-08 09:39:11 UTC
Fixed. 

commit f802eff555b7e9f54476b0b9d5950c4dae4fe9b6
Author: Sayli Karmarkar <skarmark>
Date:   Thu Dec 8 00:44:46 2011 -0800

    760958 - Fixing DB validation error

Comment 2 Jeff Ortel 2011-12-08 15:25:33 UTC
build: 0.254-2

Comment 3 Preethi Thomas 2011-12-08 17:18:08 UTC
verified db version 28 to 31
[root@pulp-f15 ~]# pulp-migrate
database migration to version 31 complete
[root@pulp-f15 ~]#

Comment 4 Preethi Thomas 2012-02-24 20:17:30 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 5 Preethi Thomas 2012-02-24 20:18:30 UTC
Pulp v1.0 is released.


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