Bug #5435
closedHTTP 406 Error on Environment or Module Import from Puppet Master
Description
Backstory,
I had modules I downloaded from the forge and had them named as their tarballs were in the /etc/puppet/development/modules, initially things like puppetlabs-stdlib-versionsomething, I did a git mv to make them just stdlib and so on, after the puppet master did a git pull, it was no longer able to import environments or modules/classes. Most of the services appear to still be running, it's still reporting and acting as an ENC for what's there, but I can't update modules/classes/environments, or bring in anything new. If I go to Configuration->Environments and click on import from puppet-master-1 then I get the HTTP 406 error. I also get it if I go to Configuration->Puppet Classes and click on import from puppet-master-1.
This is the output from the class section.
Oops, we're sorry but something went wrong
x 406 Not Acceptable
If you feel this is an error with Foreman itself, please open a new issue with Foreman ticketing system, You would probably need to attach the Full trace and relevant log entries.
RestClient::NotAcceptable
406 Not Acceptable
lib/proxy_api/resource.rb:68:in `get'
lib/proxy_api/puppet.rb:9:in `environments'
app/services/puppet_class_importer.rb:121:in `actual_environments'
app/services/puppet_class_importer.rb:21:in `changes'
app/controllers/concerns/foreman/controller/environments.rb:10:in `import_environments'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
This is the output from the environment section
Oops, we're sorry but something went wrong
x 406 Not Acceptable
If you feel this is an error with Foreman itself, please open a new issue with Foreman ticketing system, You would probably need to attach the Full trace and relevant log entries.
RestClient::NotAcceptable
406 Not Acceptable
lib/proxy_api/resource.rb:68:in `get'
lib/proxy_api/puppet.rb:9:in `environments'
app/services/puppet_class_importer.rb:121:in `actual_environments'
app/services/puppet_class_importer.rb:21:in `changes'
app/controllers/concerns/foreman/controller/environments.rb:10:in `import_environments'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'