Project

Profile

Help

Issue #1378

closed

v3 API endpoint not documented properly

Added by dkliban@redhat.com over 8 years ago. Updated almost 5 years ago.

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

Description

pulp-admin puppet repo create --repo-id=forge-repo
pulp-admin puppet repo uploads upload --repo-id=forge-repo --file=puppetlabs-ciscopuppet-1.1.0.tar.gz
pulp-admin puppet repo publish run --repo-id=forge-repo
puppet module --module_repository http://localhost/pulp_puppet/forge/forge-repo install puppetlabs-ciscopuppet --verbose --debug
Debug: Runtime environment: puppet_version=4.1.0, ruby_version=2.2.3, run_mode=user, default_encoding=UTF-8
Notice: Preparing to install into /home/fedora/.puppet/code/modules ...
Notice: Downloading from http://localhost/pulp_puppet/forge/forge-repo ...
Debug: HTTP GET http://localhost/pulp_puppet/forge/forge-repo/v3/releases?module=puppetlabs-ciscopuppet
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (cache ttl: 0)
Debug: Failed to load library 'pe_license' for feature 'pe_license'
Error: Request to Puppet Forge failed.
  The server being queried was http://localhost/v3/releases?module=puppetlabs-ciscopuppet
  The HTTP response we received was '401 UNAUTHORIZED'
Actions #1

Updated by dkliban@redhat.com over 8 years ago

  • Version set to 2.7.0 Beta
  • Platform Release set to 2.7.1
Actions #2

Updated by dkliban@redhat.com over 8 years ago

  • Version changed from 2.7.0 Beta to 2.7.0
Actions #3

Updated by mhrivnak over 8 years ago

  • Priority changed from Normal to High
  • Triaged changed from No to Yes
Actions #4

Updated by dkliban@redhat.com over 8 years ago

  • Subject changed from v3 API endpoint returns 401 to v3 API endpoint not documented properly
  • Triaged changed from Yes to No
  • Tags Documentation added

I just realized that in my example above, I was using the forge API incorrectly. Following command actually works with the latest API:

pulp-admin puppet repo create --repo-id=forge-repo
pulp-admin puppet repo uploads upload --repo-id=forge-repo --file=puppetlabs-ciscopuppet-1.1.0.tar.gz
pulp-admin puppet repo publish run --repo-id=forge-repo
puppet module --module_repository http://repository:forge-repo@localhost/v3/releases install puppetlabs-ciscopuppet --verbose --debug --debug

We should probably provide correct documentation [0-1] on using the new style forge API.

[0] http://pulp-puppet.readthedocs.org/en/2.7-release/tech-reference/forge_api.html
[1] http://pulp-puppet.readthedocs.org/en/latest/user-guide/recipes.html#install-modules

Actions #5

Updated by jortel@redhat.com over 8 years ago

  • Triaged changed from No to Yes
Actions #6

Updated by amacdona@redhat.com over 8 years ago

  • Platform Release changed from 2.7.1 to 2.7.2
Actions #7

Updated by bmbouter almost 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #8

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF