Project

General

Profile

Actions

Support #4184

closed

undefined method 'mask' for Safemode::Jail (NilClass)

Added by Chad Camp over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Triaged:
Fixed in Releases:
Found in Releases:

Description

I tried both host and generic and getting the same error about undefined mask.

I used a copy of the default script foreman script.
  • Invoke bootdisk:generate:host (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute bootdisk:generate:host
    rake aborted!
    undefined method 'mask' for Safemode::Jail (NilClass)
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/jail.rb:17:in `method_missing'
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode.rb:79:in `bind'
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode.rb:51:in `eval'
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode.rb:51:in `eval'
    /usr/share/foreman/lib/foreman/renderer.rb:9:in `render_safe'
    /usr/share/foreman/lib/foreman/renderer.rb:52:in `unattended_render'
    /opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-1.2.1/app/models/concerns/bootdisk/host_ext.rb:10:in `bootdisk_template_render'
    /opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-1.2.1/lib/tasks/bootdisk.rake:6:in `block (3 levels) in <top (required)>'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `call'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `block in execute'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `each'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `execute'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in `block in invoke_with_call_chain'
    /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in `invoke_with_call_chain'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in `invoke'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in `invoke_task'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block (2 levels) in top_level'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `each'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block in top_level'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:in `top_level'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in `block in run'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in `run'
    /opt/rh/ruby193/root/usr/bin/rake:32:in `<main>'
    Tasks: TOP => bootdisk:generate:host
    [root@svadm80 ~]# man isohybrid
    No manual entry for isohybrid
    [root@svadm80 ~]# foreman-rake bootdisk:generate:generic OUTPUT=/root/svops15.iso --trace
  • Invoke bootdisk:generate:generic (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute bootdisk:generate:generic
    rake aborted!
    Safemode doesn't allow to access 'constant' on URI
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/parser.rb:123:in `raise_security_error'
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/parser.rb:118:in `process_const'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:in `block (2 levels) in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:in `error_handler'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:217:in `block in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:in `in_context'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in `process'
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/parser.rb:131:in `process_call_receiver'
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/parser.rb:36:in `process_call'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:in `block (2 levels) in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:in `error_handler'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:217:in `block in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:in `in_context'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in `process'
    /opt/rh/ruby193/root/usr/share/gems/gems/ruby2ruby-2.0.1/lib/ruby2ruby.rb:558:in `process_lasgn'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:in `block (2 levels) in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:in `error_handler'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:217:in `block in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:in `in_context'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in `process'
    /opt/rh/ruby193/root/usr/share/gems/gems/ruby2ruby-2.0.1/lib/ruby2ruby.rb:152:in `process_block'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:in `block (2 levels) in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:in `error_handler'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:217:in `block in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:in `in_context'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in `process'
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/parser.rb:131:in `process_call_receiver'
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/parser.rb:36:in `process_call'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:in `block (2 levels) in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:in `error_handler'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:217:in `block in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:in `in_context'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in `process'
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/parser.rb:144:in `process_call_args'
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/parser.rb:38:in `process_call'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:in `block (2 levels) in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:in `error_handler'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:217:in `block in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:in `in_context'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in `process'
    /opt/rh/ruby193/root/usr/share/gems/gems/ruby2ruby-2.0.1/lib/ruby2ruby.rb:152:in `process_block'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:in `block (2 levels) in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:in `error_handler'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:217:in `block in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:in `in_context'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in `process'
    /opt/rh/ruby193/root/usr/share/gems/gems/ruby2ruby-2.0.1/lib/ruby2ruby.rb:508:in `process_iter'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:in `block (2 levels) in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:in `error_handler'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:217:in `block in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:in `in_context'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in `process'
    /opt/rh/ruby193/root/usr/share/gems/gems/ruby2ruby-2.0.1/lib/ruby2ruby.rb:152:in `process_block'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:in `block (2 levels) in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:in `error_handler'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:217:in `block in process'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:in `in_context'
    /opt/rh/ruby193/root/usr/share/gems/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in `process'
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/parser.rb:10:in `jail'
    /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode.rb:49:in `eval'
    /usr/share/foreman/lib/foreman/renderer.rb:9:in `render_safe'
    /opt/rh/ruby193/root/usr/share/gems/gems/foreman-katello-engine-0.0.17/lib/foreman_katello_engine/renderer.rb:11:in `unattended_render'
    /opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-1.2.1/app/services/bootdisk/renderer.rb:9:in `generic_template_render'
    /opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-1.2.1/lib/tasks/bootdisk.rake:17:in `block (3 levels) in <top (required)>'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `call'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `block in execute'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `each'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `execute'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in `block in invoke_with_call_chain'
    /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in `invoke_with_call_chain'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in `invoke'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in `invoke_task'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block (2 levels) in top_level'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `each'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block in top_level'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:in `top_level'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in `block in run'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in `run'
    /opt/rh/ruby193/root/usr/bin/rake:32:in `<main>'
    Tasks: TOP => bootdisk:generate:generic
foreman-rake bootdisk:generate:host NAME=svops15.wishard.edu OUTPUT=/root/svops15.iso --trace

Is there any other info I should post to help?


Related issues 2 (1 open1 closed)

Related to Foreman - Bug #2948: Whitelist additional Provisioning Template MacrosClosedLukas Zapletal08/19/2013Actions
Related to Boot disk - Bug #4195: Bootdisk fails to provision if root url is setNewActions
Actions

Also available in: Atom PDF