Open jbnance opened 7 years ago
Here are the logs when adding a single module to a CV using the web UI:
==> /var/log/httpd/foreman-ssl_access_ssl.log <==
172.16.246.242 - - [23/Jan/2017:15:31:19 -0600] "POST /katello/api/v2/content_views/24/content_view_puppet_modules?organization_id=1 HTTP/1.1" 403 261 "https://localhost:4443/content_views/24/puppet_modules/stdlib/versions" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
172.16.246.242 - - [23/Jan/2017:15:31:19 -0600] "POST /katello/api/v2/content_views/24/content_view_puppet_modules?organization_id=1 HTTP/1.1" 200 61 "https://localhost:4443/content_views/24/puppet_modules/stdlib/versions" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
172.16.246.242 - - [23/Jan/2017:15:31:19 -0600] "GET /katello/api/v2/content_views/24/content_view_puppet_modules?organization_id=1&page=1&search= HTTP/1.1" 200 195 "https://localhost:4443/content_views/24/puppet_modules" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
==> /var/log/httpd/foreman-ssl_error_ssl.log <==
[Mon Jan 23 15:31:19.014026 2017] [ssl:error] [pid 1592] [client 172.16.246.242:33770] AH02261: Re-negotiation handshake failed: Not accepted by client!?, referer: https://localhost:4443/content_views/24/puppet_modules/stdlib/versions
[Mon Jan 23 15:31:19.032694 2017] [ssl:warn] [pid 2490] [client 172.16.246.242:33772] AH02227: Failed to set r->user to 'SSL_CLIENT_S_DN_CN', referer: https://localhost:4443/content_views/24/puppet_modules/stdlib/versions
[Mon Jan 23 15:31:19.232183 2017] [ssl:warn] [pid 2490] [client 172.16.246.242:33772] AH02227: Failed to set r->user to 'SSL_CLIENT_S_DN_CN', referer: https://localhost:4443/content_views/24/puppet_modules
==> /var/log/foreman/production.log <==
2017-01-23 15:31:19 c617ae9d [app] [I] Started POST "/katello/api/v2/content_views/24/content_view_puppet_modules?organization_id=1" for 172.16.246.242 at 2017-01-23 15:31:19 -0600
2017-01-23 15:31:19 c617ae9d [app] [I] Processing by Katello::Api::V2::ContentViewPuppetModulesController#create as JSON
2017-01-23 15:31:19 c617ae9d [app] [I] Parameters: {"contentViewId"=>"24", "uuid"=>nil, "author"=>"puppetlabs", "name"=>"stdlib", "organization_id"=>"1", "api_version"=>"v2", "content_view_id"=>"24", "content_view_puppet_module"=>{"name"=>"stdlib", "author"=>"puppetlabs", "uuid"=>nil}}
2017-01-23 15:31:19 c617ae9d [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.1.1/app/views/katello/api/v2/content_view_puppet_modules/create.json.rabl within katello/api/v2/layouts/resource (1.6ms)
2017-01-23 15:31:19 c617ae9d [app] [I] Completed 200 OK in 100ms (Views: 11.2ms | ActiveRecord: 51.3ms)
2017-01-23 15:31:19 c617ae9d [app] [I] Started GET "/katello/api/v2/content_views/24/content_view_puppet_modules?organization_id=1&page=1&search=" for 172.16.246.242 at 2017-01-23 15:31:19 -0600
2017-01-23 15:31:19 c617ae9d [app] [I] Processing by Katello::Api::V2::ContentViewPuppetModulesController#index as JSON
2017-01-23 15:31:19 c617ae9d [app] [I] Parameters: {"organization_id"=>"1", "page"=>"1", "search"=>"", "api_version"=>"v2", "content_view_id"=>"24"}
2017-01-23 15:31:19 c617ae9d [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.1.1/app/views/katello/api/v2/content_view_puppet_modules/index.json.rabl within katello/api/v2/layouts/collection (23.5ms)
2017-01-23 15:31:19 c617ae9d [app] [I] Completed 200 OK in 35ms (Views: 22.1ms | ActiveRecord: 4.1ms)
Neither
ContentView.create()
norContentView.update()
successfully adds Puppet modules to a content view.Array holding the module:
The current content view:
Add the modules (they don't actually add):
(note that
puppet_module
is an empty array, and if you look in the web UI the modules aren't there)Foreman logs:
Same results if you include the modules during
create()
.