v3 API endpoint not documented properly
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'
#4 Updated by email@example.com almost 6 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.
#7 Updated by bmbouter over 2 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.
Please register to edit this issue