Project

Profile

Help

Issue #2481

Vagrant up on 2.10-dev+ is broken with a missing dependency

Added by bmbouter about 5 years ago. Updated almost 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 12
Quarter:

Description

Assume that you check out pulp/devel at the head of master, checkout all of pulp onto 2.10-dev, and vagrant up as follow:

[bmbouter@localhost devel]$ cd ~/devel/devel/
[bmbouter@localhost devel]$ git fetch pulp
[bmbouter@localhost devel]$ git checkout pulp/master
HEAD is now at 34c4d05... Merge pull request #20 from daviddavis/temp/20161115140857      
[bmbouter@localhost devel]$ source ~/.virtualenvs/pulp_checkout/bin/activate
(pulp_checkout) [bmbouter@localhost devel]$ python scripts/checkout.py --version 2.10-dev
HEAD is now at 5ee849d... Add fc24 to dist list
HEAD is now at 3c39a9f... Merge remote-tracking branch 'pulp/2.9-dev' into HEAD
HEAD is now at f664334... Blobs with manifest references should not be removed.
HEAD is now at 7f15af2... Merge branch '1.1-release' into 1.1-dev
HEAD is now at 390d45f... Merge branch '2.10-release' into 2.10-dev
HEAD is now at a0031b4... Add fc24 to dist list
HEAD is now at 0a487d3... Reduce number of writes to db during sync
(pulp_checkout) [bmbouter@localhost devel]$ vagrant destroy
(pulp_checkout) [bmbouter@localhost devel]$ vagrant up

At the end of vagrant up there are many errors. One in particular is that the kobo module cannot be found. For example when starting pulp_resource_manager I receive the following:

Dec 10 17:50:52 dev pulp[32442]: pulp.server.initialization:ERROR: One or more plugins failed to initialize. If a new type has been added, run pulp-ma
nage-db to load the type into the database and restart the application. Error message: No module named kobo.shortcuts
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416) Unrecoverable error: ImportError('No module named kobo.shortcuts',)
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416) Traceback (most recent call last):
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/usr/lib/python2.7/site-packages/celery/worker/__init__.py", line 206, in 
start
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     self.blueprint.start(self)
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/usr/lib/python2.7/site-packages/celery/bootsteps.py", line 119, in start
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     self.on_start()
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/usr/lib/python2.7/site-packages/celery/apps/worker.py", line 158, in on_start
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     sender=self.hostname, instance=self, conf=self.app.conf,
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/usr/lib/python2.7/site-packages/celery/utils/dispatch/signal.py", line 166, in send
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     response = receiver(signal=self, sender=sender, **named)
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/home/vagrant/devel/pulp/server/pulp/server/async/app.py", line 75, in initialize_worker
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     initialization.initialize()
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/home/vagrant/devel/pulp/server/pulp/server/initialization.py", line 36, in initialize
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     plugin_api.initialize()
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/home/vagrant/devel/pulp/server/pulp/plugins/loader/api.py", line 55, in initialize
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     loading.load_plugins_from_entry_point(*entry_point)
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/home/vagrant/devel/pulp/server/pulp/plugins/loader/loading.py", line 60, in load_plugins_from_entry_point
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     cls, cfg = entry_point.load()()
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2380, in load
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     return self.resolve()
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2386, in resolve
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     module = __import__(self.module_name, fromlist=['__name__'], level=0)
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/home/vagrant/devel/pulp_docker/plugins/pulp_docker/plugins/distributors/distributor_web.py", line 11, in <module>
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     from pulp_docker.plugins.distributors.publish_steps import WebPublisher
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/home/vagrant/devel/pulp_docker/plugins/pulp_docker/plugins/distributors/publish_steps.py", line 8, in <module>
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     from pulp.plugins.rsync.publish import Publisher, RSyncPublishStep
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)   File "/home/vagrant/devel/pulp/server/pulp/plugins/rsync/publish.py", line 8, in <module>
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416)     import kobo.shortcuts
Dec 10 17:50:52 dev pulp[32442]: celery.worker:ERROR: (32442-52416) ImportError: No module named kobo.shortcuts

Associated revisions

Revision 0eab669a View on GitHub
Added by dkliban@redhat.com about 5 years ago

Problem: upstream Pulp repositories not enabled on Vagrant box

Solution: Stop checking version of Fedora running on the dev machine when deciding whether or not to enable the upstream repositories

closes #2489 https://pulp.plan.io/issues/2489

closes #2481 https://pulp.plan.io/issues/2481

History

#1 Updated by bmbouter about 5 years ago

  • Subject changed from Vagrant up on 2.10-dev is broken with a missing dependency to Vagrant up on 2.10-dev+ is broken with a missing dependency

Kobo was introduced as a dependency with 2.10.0 and is available via rpm[0] and PyPI[1]. Pulp only expresses the dependency as a spec file dependency[2], which I think is why it's missing from the dev environment.

[0]: https://apps.fedoraproject.org/packages/kobo
[1]: https://pypi.python.org/pypi/kobo
[2]: https://github.com/pulp/pulp/commit/60e85bf4383a8c0bc5ef054c42bfc3928777fd80

#2 Updated by bmbouter about 5 years ago

  • Status changed from NEW to POST
  • Assignee set to bmbouter
  • Sprint/Milestone set to 30

#3 Updated by dkliban@redhat.com about 5 years ago

  • Assignee changed from bmbouter to dkliban@redhat.com

#4 Updated by dkliban@redhat.com about 5 years ago

  • Status changed from POST to CLOSED - CURRENTRELEASE

#5 Updated by bmbouter almost 4 years ago

  • Sprint set to Sprint 12

#6 Updated by bmbouter almost 4 years ago

  • Sprint/Milestone deleted (30)

#7 Updated by bmbouter almost 3 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF