Bug 743185 - migration to version 23 failed
Summary: migration to version 23 failed
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 29
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-04 06:18 UTC by Laurent Licour
Modified: 2011-10-06 08:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-06 08:11:32 UTC
Embargoed:


Attachments (Terms of Use)

Description Laurent Licour 2011-10-04 06:18:03 UTC
Description of problem:

After upgrading pulp from pulp-0.0.230-3.el6.noarch
to pulp-0.0.237-2.el6.src.rpm (testing),

i try to restart pulp but it failed
httpd traces :

[Tue Oct 04 07:09:13 2011] [error] [client 172.21.1.6] mod_wsgi (pid=19345): Target WSGI script '/srv/pulp/webservices.wsgi' cannot be loaded as Python module.
[Tue Oct 04 07:09:13 2011] [error] [client 172.21.1.6] mod_wsgi (pid=19345): Exception occurred processing WSGI script '/srv/pulp/webservices.wsgi'.
[Tue Oct 04 07:09:13 2011] [error] [client 172.21.1.6] Traceback (most recent call last):
[Tue Oct 04 07:09:13 2011] [error] [client 172.21.1.6]   File "/srv/pulp/webservices.wsgi", line 20, in <module>
[Tue Oct 04 07:09:13 2011] [error] [client 172.21.1.6]     application = wsgi_application()
[Tue Oct 04 07:09:13 2011] [error] [client 172.21.1.6]   File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 127, in wsgi_application
[Tue Oct 04 07:09:13 2011] [error] [client 172.21.1.6]     _initialize_pulp()
[Tue Oct 04 07:09:13 2011] [error] [client 172.21.1.6]   File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 98, in _initialize_pulp
[Tue Oct 04 07:09:13 2011] [error] [client 172.21.1.6]     check_version()
[Tue Oct 04 07:09:13 2011] [error] [client 172.21.1.6]   File "/usr/lib/python2.6/site-packages/pulp/server/db/version.py", line 160, in check_version
[Tue Oct 04 07:09:13 2011] [error] [client 172.21.1.6]     raise RuntimeError(msg)
[Tue Oct 04 07:09:13 2011] [error] [client 172.21.1.6] RuntimeError: data model version mismatch: 22 in use, but needs to be 23





then i start : service pulp-server init to upgrade data model.

But this failed with the following log :

...
migration to data model version 20 started
migration to data model version 20 complete
migration to data model version 21 started
migration to data model version 21 complete
migration to data model version 22 started
migration to data model version 22 complete
migration to data model version 23 started
No option 'variant' in section: 'general'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pulp/server/db/migrate/script.py", line 84, in datamodel_migration
    mod.migrate()
  File "/usr/lib/python2.6/site-packages/pulp/server/db/migrate/versions/twentythree.py", line 43, in migrate
    _migrate_distribution()
  File "/usr/lib/python2.6/site-packages/pulp/server/db/migrate/versions/twentythree.py", line 31, in _migrate_distribution
    treeinfo = parse_treeinfo(treecfg)
  File "/usr/lib/python2.6/site-packages/pulp/server/api/synchronizers.py", line 1217, in parse_treeinfo
    treeinfo_dict[field] = cfgparser.get('general', field) or None
  File "/usr/lib64/python2.6/ConfigParser.py", line 541, in get
    raise NoOptionError(option, section)
NoOptionError: No option 'variant' in section: 'general'

Comment 1 Pradeep Kilambi 2011-10-05 17:04:00 UTC
fixed! 6a988dce2900f449cbaf153bdd541f88367a1e78

if variant/family or version is not part of treeinfo, defaults to None with a message like so during migration.

tail /var/log/pulp/db.log
migration to data model version 23 started
No field with name [variant] found in treeinfo file; defaulting to None
migration to data model version 23 complete

Comment 2 Laurent Licour 2011-10-06 08:11:32 UTC
It's OK

thanks


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