Project

Profile

Help

Issue #959

closed

web.py error when running pulp-manage-db

Added by cduryee almost 9 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
2.7.0
OS:
CentOS 6
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

I get the following stack when running pulp-manage-db on centos 6.5:

$ pulp-manage-db 
Traceback (most recent call last):
  File "/usr/bin/pulp-manage-db", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: web.py

This is on 2.7.0 alpha 2. Package manifest is:

$ rpm -qa | grep pulp | sort
mod_wsgi-3.4-2.pulp.el6.x86_64
pulp-admin-client-2.7.0-0.2.alpha.git.187.632a884.el6.noarch
pulp-puppet-admin-extensions-2.7.0-0.2.alpha.git.24.58ea3c0.el6.noarch
pulp-puppet-plugins-2.7.0-0.2.alpha.git.24.58ea3c0.el6.noarch
pulp-rpm-admin-extensions-2.7.0-0.2.alpha.git.40.b22937c.el6.noarch
pulp-rpm-plugins-2.7.0-0.2.alpha.git.40.b22937c.el6.noarch
pulp-selinux-2.7.0-0.2.alpha.git.187.632a884.el6.noarch
pulp-server-2.7.0-0.2.alpha.git.187.632a884.el6.noarch
python-isodate-0.5.0-4.pulp.el6.noarch
python-kombu-3.0.24-7.pulp.git.270.985c711.el6.noarch
python-pulp-bindings-2.7.0-0.2.alpha.git.187.632a884.el6.noarch
python-pulp-client-lib-2.7.0-0.2.alpha.git.187.632a884.el6.noarch
python-pulp-common-2.7.0-0.2.alpha.git.187.632a884.el6.noarch
python-pulp-puppet-common-2.7.0-0.2.alpha.git.24.58ea3c0.el6.noarch
python-pulp-repoauth-2.7.0-0.2.alpha.git.187.632a884.el6.noarch
python-pulp-rpm-common-2.7.0-0.2.alpha.git.40.b22937c.el6.noarch
python-rhsm-1.8.0-2.pulp.el6.x86_64
Actions #1

Updated by cduryee almost 9 years ago

Update: if I install 2.6.1 and upgrade, it works fine. This error only occurs on fresh installs.

Actions #2

Updated by cduryee almost 9 years ago

  • Tags Easy Fix added

There is a mention of web.py in server/setup.py which is likely causing this (thanks to bmbouter for finding this issue)

Added by cduryee almost 9 years ago

Revision 3bede812 | View on GitHub

Remove web.py reference from setup.py

web.py is not available on "fresh" 2.7 installs from RPM, which causes pulp-manage-db to not run.

fixes #959

https://pulp.plan.io/issues/959

Added by cduryee almost 9 years ago

Revision 3bede812 | View on GitHub

Remove web.py reference from setup.py

web.py is not available on "fresh" 2.7 installs from RPM, which causes pulp-manage-db to not run.

fixes #959

https://pulp.plan.io/issues/959

Actions #3

Updated by cduryee almost 9 years ago

  • Status changed from NEW to POST
Actions #4

Updated by cduryee almost 9 years ago

  • Assignee set to cduryee
Actions #5

Updated by cduryee almost 9 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #6

Updated by dkliban@redhat.com almost 9 years ago

  • Platform Release set to 2.7.0
Actions #7

Updated by ipanova@redhat.com almost 9 years ago

  • Triaged changed from No to Yes
Actions #8

Updated by dkliban@redhat.com almost 9 years ago

  • Status changed from MODIFIED to 5
Actions #9

Updated by igulina@redhat.com almost 9 years ago

  • Status changed from 5 to 6

fresh centos 6.6 ami and pulp installation

>> cat /etc/*release*
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)
cpe:/o:centos:linux:6:GA

>> rpm -qa pulp-server
pulp-server-2.7.0-0.3.beta.el6.noarch
>> sudo -u apache pulp-manage-db 
Mongo database for connection is version 2.4.14
Loading content types.
Loading type descriptors [puppet.json, rpm_support.json, iso_support.json]
Parsing type descriptors
Validating type descriptor syntactic integrity
Validating type descriptor semantic integrity
Updating the database with types [puppet_module, distribution, drpm, erratum, package_group, package_category, package_environment, rpm, srpm, yum_repo_metadata_file, iso]
/usr/lib/python2.6/site-packages/pulp/server/db/connection.py:167: 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 18
Migration package pulp_puppet.plugins.migrations is up to date at version 2
Migration package pulp_rpm.plugins.migrations is up to date at version 21
Database migrations complete.

The issue #1065 about DeprecationWarning was reported earlier

Actions #10

Updated by amacdona@redhat.com over 8 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #12

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF