Project

Profile

Help

Issue #1388

closed

pulp forge sends wrong dependencies for modules

Added by cristi.falcas@gmail.com over 8 years ago. Updated about 5 years ago.

Status:
CLOSED - NOTABUG
Priority:
High
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.7.0
Platform Release:
2.8.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

When querying the pulp forge for module dependencies, it also sends dependencies from old modules.

Let me explain:
- have moduleA, version 1.0 that depends on moduleB
- have moduleA, version 2.0 that does not depend on moduleB
- have moduleC, that depends on moduleA, version 2.0
- pulp forge will list moduleB as a dependency for moduleC

How to test:

  1. get an old module of rabbitmq (this one depends on puppetlabs-prosvc_repo) and import it in pulp
    wget https://forge.puppetlabs.com/v3/files/puppetlabs-rabbitmq-1.0.4.tar.gz
    pulp-admin puppet repo uploads upload --file ./puppetlabs-rabbitmq-1.0.4.tar.gz --repo-id test
  1. get a module that depends on newer version of rabbitmq
    puppet module install stackforge-openstacklib --target-dir /tmp/test --config /dev/null
  2. import it and all dependencies
    cd /tmp/test; ls | while read module;do puppet module build ./$module; pulp-admin puppet repo uploads upload --dir ./$module/pkg/ --repo-id test;done
  1. publish repo
    pulp-admin puppet repo publish run --repo-id test
  1. try to install module from local repo
    puppet module --module_repository http://repository:test@localhost install stackforge-openstacklib --target-dir /tmp/test1 --config /dev/null
    Notice: Preparing to install into /tmp/test1 ...
    Notice: Created target directory /tmp/test1
    Notice: Downloading from http://repository:test@localhost ...
    Error: Request to Puppet Forge failed.
    The server being queried was http://repository:test@localhost/v3/releases?module=puppetlabs-prosvc_repo
    The HTTP response we received was '404 NOT FOUND'
  1. delete old version of rabbitmq
    pulp-admin puppet repo remove --repo-id test --match "name=rabbitmq*" --match "version=1.0.4*"
    pulp-admin puppet repo publish run --repo-id test
  1. install now works
    puppet module --module_repository http://repository:test@localhost install stackforge-openstacklib --target-dir /tmp/test1 --config /dev/null

Also available in: Atom PDF