Bug 743185
| Summary: | migration to version 23 failed | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Laurent Licour <llx> |
| Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | Keywords: | Triaged |
| Target Milestone: | --- | ||
| Target Release: | Sprint 29 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-06 08:11:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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 It's OK thanks |
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'