Actions
Bug #17034
openforeman crashes when generating capsule with space in the name
Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman Proxy Content
Target version:
-
Description
When generating a capsule in 3.1 and erronously adding an extra whitespace in the name, foreman crashes.
The web ui gives an error 500 and foreman tasks takes until the timeout of 10 minutes to restart.
The task gives an error "undefined method `strip' for nil:NilClass"
capsule-certs-generate --capsule-fqdn " capsule-test.netbulae.test"\
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 40:/usr/share/katello-installer-base/modules/certs/manifests/apache.pp--certs-tar "~/capsule-test.netbulae.test.tar"
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 40:/usr/share/katello-installer-base/modules/certs/manifests/apache.pp
/Stage[main]/Certs::Apache/Cert[ capsule-test.netbulae.test-apache]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 40:/usr/share/katello-installer-base/modules/certs/manifests/apache.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 28:/usr/share/katello-installer-base/modules/certs/manifests/qpid.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 28:/usr/share/katello-installer-base/modules/certs/manifests/qpid.pp
/Stage[main]/Certs::Qpid/Cert[ capsule-test.netbulae.test-qpid-broker]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 28:/usr/share/katello-installer-base/modules/certs/manifests/qpid.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 32:/usr/share/katello-installer-base/modules/certs/manifests/puppet.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 32:/usr/share/katello-installer-base/modules/certs/manifests/puppet.pp
/Stage[main]/Certs::Puppet/Cert[ capsule-test.netbulae.test-puppet-client]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 32:/usr/share/katello-installer-base/modules/certs/manifests/puppet.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 28:/usr/share/katello-installer-base/modules/certs/manifests/qpid_client.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 28:/usr/share/katello-installer-base/modules/certs/manifests/qpid_client.pp
/Stage[main]/Certs::Qpid_client/Cert[ capsule-test.netbulae.test-qpid-client-cert]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 28:/usr/share/katello-installer-base/modules/certs/manifests/qpid_client.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 50:/usr/share/katello-installer-base/modules/certs/manifests/qpid_router.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 50:/usr/share/katello-installer-base/modules/certs/manifests/qpid_router.pp
/Stage[main]/Certs::Qpid_router/Cert[ capsule-test.netbulae.test-qpid-router-client]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 50:/usr/share/katello-installer-base/modules/certs/manifests/qpid_router.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 31:/usr/share/katello-installer-base/modules/certs/manifests/foreman.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 31:/usr/share/katello-installer-base/modules/certs/manifests/foreman.pp
/Stage[main]/Certs::Foreman/Cert[ capsule-test.netbulae.test-foreman-client]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 31:/usr/share/katello-installer-base/modules/certs/manifests/foreman.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 33:/usr/share/katello-installer-base/modules/certs/manifests/qpid_router.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 33:/usr/share/katello-installer-base/modules/certs/manifests/qpid_router.pp
/Stage[main]/Certs::Qpid_router/Cert[ capsule-test.netbulae.test-qpid-router-server]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 33:/usr/share/katello-installer-base/modules/certs/manifests/qpid_router.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 66:/usr/share/katello-installer-base/modules/certs/manifests/foreman_proxy.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 66:/usr/share/katello-installer-base/modules/certs/manifests/foreman_proxy.pp
/Stage[main]/Certs::Foreman_proxy/Cert[ capsule-test.netbulae.test-foreman-proxy-client]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 66:/usr/share/katello-installer-base/modules/certs/manifests/foreman_proxy.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 48:/usr/share/katello-installer-base/modules/certs/manifests/foreman_proxy.pp
Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 48:/usr/share/katello-installer-base/modules/certs/manifests/foreman_proxy.pp
/Stage[main]/Certs::Foreman_proxy/Cert[ capsule-test.netbulae.test-foreman-proxy]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined method `strip' for nil:NilClass at 48:/usr/share/katello-installer-base/modules/certs/manifests/foreman_proxy.pp
Installing Done [100%] [................................................................................................................................]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/capsule-certs-generate.log
Actions