Project

General

Profile

Bug #17034

foreman crashes when generating capsule with space in the name

Added by Jorick Astrego over 2 years ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman Proxy Content
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

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"\

--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
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

History

#1 Updated by Justin Sherrill over 2 years ago

  • Legacy Backlogs Release (now unused) set to 114

Also available in: Atom PDF