Project

Profile

Help

Issue #959

web.py error when running pulp-manage-db

Added by cduryee over 6 years ago. Updated over 2 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

Associated revisions

Revision 3bede812 View on GitHub
Added by cduryee over 6 years ago

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

Revision 3bede812 View on GitHub
Added by cduryee over 6 years ago

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

History

#1 Updated by cduryee over 6 years ago

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

#2 Updated by cduryee over 6 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)

#3 Updated by cduryee over 6 years ago

  • Status changed from NEW to POST

#4 Updated by cduryee over 6 years ago

  • Assignee set to cduryee

#5 Updated by cduryee over 6 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#6 Updated by dkliban@redhat.com over 6 years ago

  • Platform Release set to 2.7.0

#7 Updated by ipanova@redhat.com over 6 years ago

  • Triaged changed from No to Yes

#8 Updated by dkliban@redhat.com over 6 years ago

  • Status changed from MODIFIED to 5

#9 Updated by igulina@redhat.com over 6 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

#10 Updated by amacdona@redhat.com almost 6 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#12 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF