Bug 1176261
| Summary: | pulp-manage-db fails on 2.5.0 to 2.5.1 upgrade | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Randy Barlow <rbarlow> |
| Component: | z_other | Assignee: | Randy Barlow <rbarlow> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.4 Beta | CC: | bryce.pier, hull.shaun, pthomas, rbarlow |
| Target Milestone: | --- | ||
| Target Release: | 2.5.2 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1175818 | Environment: | |
| Last Closed: | 2015-02-05 21:37:49 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1175818 | ||
| Bug Blocks: | |||
|
Description
Randy Barlow
2014-12-19 21:40:15 UTC
Fixed in 2.4.4-0.3.beta. verified Installed 2.4.3 and synced the epel5 repo Updated the db to remove the "sum" attribute Now updated to 2.4.4 beta Ran pulp-manage-db > use pulp_database switched to db pulp_database > db.units_erratum.find({"pkglist.packages.sum": {$exists: 0}})[0] > > > db.units_erratum.find({"pkglist.packages.sum": {$exists: 0}})[0] > > > > > db.units_erratum.find({"id" : "FEDORA-EPEL-2010-3067"}) { "_id" : "6ff10d9d-6583-4354-a6c6-2748974f52c8", "status" : "stable", "updated" : "", "description" : "clide is a program that will colorize ASCII text on the command line using ANSI escape sequences and user defined and predefined expressions. Searches can include Perl Compatible Regular Expressions.", "issued" : "2010-07-21 19:22:09", "_last_updated" : 1419347612, "pushcount" : "", "references" : [ { "href" : "https://bugzilla.redhat.com/show_bug.cgi?id=593851", "type" : "bugzilla", "id" : "593851", "title" : null } ], "_content_type_id" : "erratum", "id" : "FEDORA-EPEL-2010-3067", "_storage_path" : null, "reboot_suggested" : false, "from" : "updates", "severity" : "", "rights" : "", "_ns" : "units_erratum", "title" : "clide-0.9-3.el5", "solution" : "", "summary" : "", "version" : "1.4", "release" : "Fedora EPEL 5", "type" : "newpackage", "pkglist" : [ { "packages" : [ { "src" : "http://download.fedoraproject.org/pub/fedora/linux/updates/5/SRPMS/clide-0.9-3.el5.src.rpm", "epoch" : "0", "version" : "0.9", "name" : "clide", "release" : "3.el5", "sum" : null, "arch" : "src", "filename" : "clide-0.9-3.el5.src.rpm" }, { "src" : "http://download.fedoraproject.org/pub/fedora/linux/updates/5/i386/clide-0.9-3.el5.noarch.rpm", "epoch" : "0", "version" : "0.9", "name" : "clide", "release" : "3.el5", "sum" : null, "arch" : "noarch", "filename" : "clide-0.9-3.el5.noarch.rpm" } ], "name" : "Fedora EPEL 5", "short" : "EL-5" } ] } > > > db.units_erratum.update({"id" : "FEDORA-EPEL-2010-3067"},{ "_id" : "6ff10d9d-6583-4354-a6c6-2748974f52c8", "status" : "stable", "updated" : "", "description" : "clide is a program that will colorize ASCII text on the command line using ANSI escape sequences and user defined and predefined expressions. Searches can include Perl Compatible Regular Expressions.", "issued" : "2010-07-21 19:22:09", "_last_updated" : 1419012998, "pushcount" : "", "references" : [ { "href" : "https://bugzilla.redhat.com/show_bug.cgi?id=593851", "type" : "bugzilla", "id" : "593851", "title" : null } ], "_content_type_id" : "erratum", "id" : "FEDORA-EPEL-2010-3067", "_storage_path" : null, "reboot_suggested" : false, "from" : "updates", "severity" : "", "rights" : "", "_ns" : "units_erratum", "title" : "clide-0.9-3.el5", "solution" : "", "summary" : "", "version" : "1.4", "release" : "Fedora EPEL 5", "type" : "newpackage", "pkglist" : [ { "packages" : [ { "src" : "http://download.fedoraproject.org/pub/fedora/linux/updates/5/SRPMS/clide-0.9-3.el5.src.rpm", "epoch" : "0", "version" : "0.9", "name" : "clide", "release" : "3.el5", "arch" : "src", "filename" : "clide-0.9-3.el5.src.rpm" }, { "src" : "http://download.fedoraproject.org/pub/fedora/linux/updates/5/i386/clide-0.9-3.el5.noarch.rpm", "epoch" : "0", "version" : "0.9", "name" : "clide", "release" : "3.el5", "arch" : "noarch", "filename" : "clide-0.9-3.el5.noarch.rpm" } ], "name" : "Fedora EPEL 5", "short" : "EL-5" } ] }) > > > > db.units_erratum.find({"pkglist.packages.sum": {$exists: 0}})[0] { "_id" : "6ff10d9d-6583-4354-a6c6-2748974f52c8", "status" : "stable", "updated" : "", "description" : "clide is a program that will colorize ASCII text on the command line using ANSI escape sequences and user defined and predefined expressions. Searches can include Perl Compatible Regular Expressions.", "issued" : "2010-07-21 19:22:09", "_last_updated" : 1419012998, "pushcount" : "", "references" : [ { "href" : "https://bugzilla.redhat.com/show_bug.cgi?id=593851", "type" : "bugzilla", "id" : "593851", "title" : null } ], "_content_type_id" : "erratum", "id" : "FEDORA-EPEL-2010-3067", "_storage_path" : null, "reboot_suggested" : false, "from" : "updates", "severity" : "", "rights" : "", "_ns" : "units_erratum", "title" : "clide-0.9-3.el5", "solution" : "", "summary" : "", "version" : "1.4", "release" : "Fedora EPEL 5", "type" : "newpackage", "pkglist" : [ { "packages" : [ { "src" : "http://download.fedoraproject.org/pub/fedora/linux/updates/5/SRPMS/clide-0.9-3.el5.src.rpm", "epoch" : "0", "version" : "0.9", "name" : "clide", "release" : "3.el5", "arch" : "src", "filename" : "clide-0.9-3.el5.src.rpm" }, { "src" : "http://download.fedoraproject.org/pub/fedora/linux/updates/5/i386/clide-0.9-3.el5.noarch.rpm", "epoch" : "0", "version" : "0.9", "name" : "clide", "release" : "3.el5", "arch" : "noarch", "filename" : "clide-0.9-3.el5.noarch.rpm" } ], "name" : "Fedora EPEL 5", "short" : "EL-5" } ] } > > > > > > > > > > > exit [root@mgmt6 ~]# [root@mgmt6 ~]# yum update Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Update Process pulp-2.4-beta | 3.6 kB 00:00 pulp-2.4-beta/primary_db | 34 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package pulp-admin-client.noarch 0:2.4.3-1.el6 will be updated ---> Package pulp-admin-client.noarch 0:2.4.4-0.3.beta.el6 will be an update ---> Package pulp-puppet-admin-extensions.noarch 0:2.4.3-1.el6 will be updated ---> Package pulp-puppet-admin-extensions.noarch 0:2.4.4-0.3.beta.el6 will be an update ---> Package pulp-puppet-plugins.noarch 0:2.4.3-1.el6 will be updated ---> Package pulp-puppet-plugins.noarch 0:2.4.4-0.3.beta.el6 will be an update ---> Package pulp-rpm-admin-extensions.noarch 0:2.4.3-1.el6 will be updated ---> Package pulp-rpm-admin-extensions.noarch 0:2.4.4-0.3.beta.el6 will be an update ---> Package pulp-rpm-plugins.noarch 0:2.4.3-1.el6 will be updated ---> Package pulp-rpm-plugins.noarch 0:2.4.4-0.3.beta.el6 will be an update ---> Package pulp-selinux.noarch 0:2.4.3-1.el6 will be updated ---> Package pulp-selinux.noarch 0:2.4.4-0.3.beta.el6 will be an update ---> Package pulp-server.noarch 0:2.4.3-1.el6 will be updated ---> Package pulp-server.noarch 0:2.4.4-0.3.beta.el6 will be an update ---> Package python-pulp-bindings.noarch 0:2.4.3-1.el6 will be updated ---> Package python-pulp-bindings.noarch 0:2.4.4-0.3.beta.el6 will be an update ---> Package python-pulp-client-lib.noarch 0:2.4.3-1.el6 will be updated ---> Package python-pulp-client-lib.noarch 0:2.4.4-0.3.beta.el6 will be an update ---> Package python-pulp-common.noarch 0:2.4.3-1.el6 will be updated ---> Package python-pulp-common.noarch 0:2.4.4-0.3.beta.el6 will be an update ---> Package python-pulp-puppet-common.noarch 0:2.4.3-1.el6 will be updated ---> Package python-pulp-puppet-common.noarch 0:2.4.4-0.3.beta.el6 will be an update ---> Package python-pulp-rpm-common.noarch 0:2.4.3-1.el6 will be updated ---> Package python-pulp-rpm-common.noarch 0:2.4.4-0.3.beta.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================================================================================================== Updating: pulp-admin-client noarch 2.4.4-0.3.beta.el6 pulp-2.4-beta 91 k pulp-puppet-admin-extensions noarch 2.4.4-0.3.beta.el6 pulp-2.4-beta 54 k pulp-puppet-plugins noarch 2.4.4-0.3.beta.el6 pulp-2.4-beta 92 k pulp-rpm-admin-extensions noarch 2.4.4-0.3.beta.el6 pulp-2.4-beta 142 k pulp-rpm-plugins noarch 2.4.4-0.3.beta.el6 pulp-2.4-beta 292 k pulp-selinux noarch 2.4.4-0.3.beta.el6 pulp-2.4-beta 70 k pulp-server noarch 2.4.4-0.3.beta.el6 pulp-2.4-beta 682 k python-pulp-bindings noarch 2.4.4-0.3.beta.el6 pulp-2.4-beta 103 k python-pulp-client-lib noarch 2.4.4-0.3.beta.el6 pulp-2.4-beta 192 k python-pulp-common noarch 2.4.4-0.3.beta.el6 pulp-2.4-beta 114 k python-pulp-puppet-common noarch 2.4.4-0.3.beta.el6 pulp-2.4-beta 39 k python-pulp-rpm-common noarch 2.4.4-0.3.beta.el6 pulp-2.4-beta 65 k Transaction Summary =================================================================================================================================================================================================================== Upgrade 12 Package(s) Total download size: 1.9 M Is this ok [y/N]: y Downloading Packages: (1/12): pulp-admin-client-2.4.4-0.3.beta.el6.noarch.rpm | 91 kB 00:00 (2/12): pulp-puppet-admin-extensions-2.4.4-0.3.beta.el6.noarch.rpm | 54 kB 00:00 (3/12): pulp-puppet-plugins-2.4.4-0.3.beta.el6.noarch.rpm | 92 kB 00:00 (4/12): pulp-rpm-admin-extensions-2.4.4-0.3.beta.el6.noarch.rpm | 142 kB 00:00 (5/12): pulp-rpm-plugins-2.4.4-0.3.beta.el6.noarch.rpm | 292 kB 00:00 (6/12): pulp-selinux-2.4.4-0.3.beta.el6.noarch.rpm | 70 kB 00:00 (7/12): pulp-server-2.4.4-0.3.beta.el6.noarch.rpm | 682 kB 00:00 (8/12): python-pulp-bindings-2.4.4-0.3.beta.el6.noarch.rpm | 103 kB 00:00 (9/12): python-pulp-client-lib-2.4.4-0.3.beta.el6.noarch.rpm | 192 kB 00:00 (10/12): python-pulp-common-2.4.4-0.3.beta.el6.noarch.rpm | 114 kB 00:00 (11/12): python-pulp-puppet-common-2.4.4-0.3.beta.el6.noarch.rpm | 39 kB 00:00 (12/12): python-pulp-rpm-common-2.4.4-0.3.beta.el6.noarch.rpm | 65 kB 00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 233 kB/s | 1.9 MB 00:08 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : python-pulp-common-2.4.4-0.3.beta.el6.noarch 1/24 Updating : python-pulp-puppet-common-2.4.4-0.3.beta.el6.noarch 2/24 Updating : pulp-server-2.4.4-0.3.beta.el6.noarch 3/24 Updating : python-pulp-rpm-common-2.4.4-0.3.beta.el6.noarch 4/24 Updating : python-pulp-client-lib-2.4.4-0.3.beta.el6.noarch 5/24 Updating : python-pulp-bindings-2.4.4-0.3.beta.el6.noarch 6/24 Updating : pulp-admin-client-2.4.4-0.3.beta.el6.noarch 7/24 Updating : pulp-puppet-admin-extensions-2.4.4-0.3.beta.el6.noarch 8/24 Updating : pulp-rpm-admin-extensions-2.4.4-0.3.beta.el6.noarch 9/24 Updating : pulp-rpm-plugins-2.4.4-0.3.beta.el6.noarch 10/24 Updating : pulp-puppet-plugins-2.4.4-0.3.beta.el6.noarch 11/24 Updating : pulp-selinux-2.4.4-0.3.beta.el6.noarch 12/24 Cleanup : pulp-puppet-plugins-2.4.3-1.el6.noarch 13/24 Cleanup : pulp-puppet-admin-extensions-2.4.3-1.el6.noarch 14/24 Cleanup : pulp-rpm-admin-extensions-2.4.3-1.el6.noarch 15/24 Cleanup : pulp-admin-client-2.4.3-1.el6.noarch 16/24 Cleanup : pulp-rpm-plugins-2.4.3-1.el6.noarch 17/24 Cleanup : pulp-server-2.4.3-1.el6.noarch 18/24 Cleanup : python-pulp-rpm-common-2.4.3-1.el6.noarch 19/24 Cleanup : python-pulp-bindings-2.4.3-1.el6.noarch 20/24 Cleanup : python-pulp-client-lib-2.4.3-1.el6.noarch 21/24 Cleanup : python-pulp-puppet-common-2.4.3-1.el6.noarch 22/24 Cleanup : python-pulp-common-2.4.3-1.el6.noarch 23/24 Cleanup : pulp-selinux-2.4.3-1.el6.noarch 24/24 Verifying : python-pulp-puppet-common-2.4.4-0.3.beta.el6.noarch 1/24 Verifying : pulp-puppet-admin-extensions-2.4.4-0.3.beta.el6.noarch 2/24 Verifying : python-pulp-client-lib-2.4.4-0.3.beta.el6.noarch 3/24 Verifying : python-pulp-common-2.4.4-0.3.beta.el6.noarch 4/24 Verifying : python-pulp-bindings-2.4.4-0.3.beta.el6.noarch 5/24 Verifying : pulp-rpm-plugins-2.4.4-0.3.beta.el6.noarch 6/24 Verifying : pulp-selinux-2.4.4-0.3.beta.el6.noarch 7/24 Verifying : pulp-server-2.4.4-0.3.beta.el6.noarch 8/24 Verifying : python-pulp-rpm-common-2.4.4-0.3.beta.el6.noarch 9/24 Verifying : pulp-admin-client-2.4.4-0.3.beta.el6.noarch 10/24 Verifying : pulp-puppet-plugins-2.4.4-0.3.beta.el6.noarch 11/24 Verifying : pulp-rpm-admin-extensions-2.4.4-0.3.beta.el6.noarch 12/24 Verifying : python-pulp-client-lib-2.4.3-1.el6.noarch 13/24 Verifying : pulp-admin-client-2.4.3-1.el6.noarch 14/24 Verifying : python-pulp-common-2.4.3-1.el6.noarch 15/24 Verifying : python-pulp-puppet-common-2.4.3-1.el6.noarch 16/24 Verifying : pulp-rpm-admin-extensions-2.4.3-1.el6.noarch 17/24 Verifying : pulp-selinux-2.4.3-1.el6.noarch 18/24 Verifying : pulp-rpm-plugins-2.4.3-1.el6.noarch 19/24 Verifying : pulp-puppet-admin-extensions-2.4.3-1.el6.noarch 20/24 Verifying : python-pulp-rpm-common-2.4.3-1.el6.noarch 21/24 Verifying : python-pulp-bindings-2.4.3-1.el6.noarch 22/24 Verifying : pulp-server-2.4.3-1.el6.noarch 23/24 Verifying : pulp-puppet-plugins-2.4.3-1.el6.noarch 24/24 Updated: pulp-admin-client.noarch 0:2.4.4-0.3.beta.el6 pulp-puppet-admin-extensions.noarch 0:2.4.4-0.3.beta.el6 pulp-puppet-plugins.noarch 0:2.4.4-0.3.beta.el6 pulp-rpm-admin-extensions.noarch 0:2.4.4-0.3.beta.el6 pulp-rpm-plugins.noarch 0:2.4.4-0.3.beta.el6 pulp-selinux.noarch 0:2.4.4-0.3.beta.el6 pulp-server.noarch 0:2.4.4-0.3.beta.el6 python-pulp-bindings.noarch 0:2.4.4-0.3.beta.el6 python-pulp-client-lib.noarch 0:2.4.4-0.3.beta.el6 python-pulp-common.noarch 0:2.4.4-0.3.beta.el6 python-pulp-puppet-common.noarch 0:2.4.4-0.3.beta.el6 python-pulp-rpm-common.noarch 0:2.4.4-0.3.beta.el6 Complete! [root@mgmt6 ~]# [root@mgmt6 ~]# [root@mgmt6 ~]# [root@mgmt6 ~]# [root@mgmt6 ~]# service pulp_workers stop celery init v10.0. Using config script: /etc/default/pulp_workers celery multi v3.1.11 (Cipater) > Stopping nodes... > reserved_resource_worker-1.lab.eng.bos.redhat.com: TERM -> 7181 > reserved_resource_worker-2.lab.eng.bos.redhat.com: TERM -> 7209 > reserved_resource_worker-0.lab.eng.bos.redhat.com: TERM -> 7159 > reserved_resource_worker-3.lab.eng.bos.redhat.com: TERM -> 7235 > Waiting for 4 nodes -> 7181, 7209, 7159, 7235........ > reserved_resource_worker-1.lab.eng.bos.redhat.com: OK > Waiting for 3 nodes -> 7209, 7159, 7235.... > reserved_resource_worker-2.lab.eng.bos.redhat.com: OK > Waiting for 2 nodes -> 7159, 7235.... > reserved_resource_worker-0.lab.eng.bos.redhat.com: OK > Waiting for 1 node -> 7235.... > reserved_resource_worker-3.lab.eng.bos.redhat.com: OK [root@mgmt6 ~]# service pulp_celerybeat stop celery init v10.0. Using configuration: /etc/default/pulp_workers, /etc/default/pulp_celerybeat Stopping pulp_celerybeat... OK [root@mgmt6 ~]# [root@mgmt6 ~]# [root@mgmt6 ~]# [root@mgmt6 ~]# service pulp_resource_manager stop celery init v10.0. Using config script: /etc/default/pulp_resource_manager celery multi v3.1.11 (Cipater) > Stopping nodes... > resource_manager.lab.eng.bos.redhat.com: TERM -> 7359 > Waiting for 1 node -> 7359..... > resource_manager.lab.eng.bos.redhat.com: OK [root@mgmt6 ~]# [root@mgmt6 ~]# [root@mgmt6 ~]# [root@mgmt6 ~]# [root@mgmt6 ~]# [root@mgmt6 ~]# sudo -u apache pulp-manage-db Loading content types. /usr/lib/python2.6/site-packages/pulp/server/db/connection.py:133: DeprecationWarning: The safe parameter is deprecated. Please use write concern options instead. return method(*args, **kwargs) Content types loaded. Ensuring the admin role and user are in place. Admin role and user are in place. Beginning database migrations. Migration package pulp.server.db.migrations is up to date at version 9 Migration package pulp_puppet.plugins.migrations is up to date at version 2 Applying pulp_rpm.plugins.migrations version 17 Migration to pulp_rpm.plugins.migrations version 17 complete. Applying pulp_rpm.plugins.migrations version 18 Migration to pulp_rpm.plugins.migrations version 18 complete. Database migrations complete. We never released 2.4.4, and it seems like we may never do that. However, this commit was included in pulp-rpm-2.5.2-1[0] and so I'm changing the target release to that and closing this bug. [0] $ git tag --contains cc3bb78 |