-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
puppet catalog download
produces 500 error on server
#9334
Comments
@nabertrand has this ever worked correctly? If so, could you git rebase to see when it regressed? |
I had never used the |
Thanks for tracking down which version this used to work in @nabertrand ; we will add it to our maintenance bucket. |
Migrated issue to PUP-12046 |
Describe the Bug
The
puppet catalog download
command produces a 500 error on server using the default options:Expected Behavior
A catalog is downloaded
Steps to Reproduce
Steps to reproduce the behavior:
puppet catalog download
Environment
Additional Context
The catalog rest terminus expects a
facts_for_catalog
option to be present in the request:puppet/lib/puppet/indirector/catalog/rest.rb
Line 30 in 1d188e1
But the face provides no options by default:
puppet/lib/puppet/face/catalog.rb
Line 140 in 1d188e1
From the API example provided in the
puppet catalog download
documentation, it seems like the catalog rest terminus supported providing no facts at some point, which would presumably use facts from PuppetDB instead:puppet/lib/puppet/face/catalog.rb
Lines 130 to 132 in 1d188e1
However, the command now fails when the
facts_for_catalog
option is nil as shown in the error above. Either the catalog rest terminus should allow providing no facts:Or the puppet catalog download face should be modified to include facts in the request, e.g.
The text was updated successfully, but these errors were encountered: