Bug #28691
closedforeman-cockpit fails to parse foreman-cockpit-session.yml
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1788969
Description of problem:
regression since previous snaps:
Usage of YAML.safe_load in /usr/sbin/foreman-cockpit-session prevents foreman-cockpit to parse the foreman-cockpit configuration stored in foreman-cockpit-session.yml
dirty workaround:
replace YAML.safe_load by YAML.load
Version-Release number of selected component (if applicable):
6.7.0 snap #4
How reproducible:
always
Steps to Reproduce:
1. enable remote-execution-ssh-cockpit
2. transfer foreman-proxy pub key to the authorized keys of the target host (or satellite host itself)
3. navigate to the host page and click "Web Console"
Actual results:
cockpit page shows "Sorry" error message, journal for foreman-cockpit service logs the following traceback:
Jan 07 14:50:48 sat-6-7-qa-rhel7.localhost.example.com systemd1: Started Foreman authentication service for Cockpit.
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: /usr/share/ruby/psych/class_loader.rb:96:in `find': Tried to load unspecified class: Symbol (Psych::Disa
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/class_loader.rb:27:in `load'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/class_loader.rb:38:in `block (2 levels) in <class:ClassLoader>'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/class_loader.rb:31:in `symbolize'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/class_loader.rb:81:in `symbolize'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/scalar_scanner.rb:83:in `tokenize'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:59:in `deserialize'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:120:in `visit_Psych_Nodes_Scalar'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/visitor.rb:15:in `visit'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/visitor.rb:5:in `accept'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:31:in `accept'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:291:in `block in revive_hash'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:290:in `each'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:290:in `each_slice'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:290:in `revive_hash'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:159:in `visit_Psych_Nodes_Mapping'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/visitor.rb:15:in `visit'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/visitor.rb:5:in `accept'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:31:in `accept'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:264:in `visit_Psych_Nodes_Document'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/visitor.rb:15:in `visit'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/visitor.rb:5:in `accept'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:31:in `accept'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych.rb:173:in `safe_load'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/sbin/foreman-cockpit-session:29:in `read_settings'
Jan 07 15:16:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/sbin/foreman-cockpit-session:275:in `<main>'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: /usr/share/ruby/psych/class_loader.rb:96:in `find': Tried to load unspecified class: Symbol (Psych::Disa
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/class_loader.rb:27:in `load'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/class_loader.rb:38:in `block (2 levels) in <class:ClassLoader>'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/class_loader.rb:31:in `symbolize'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/class_loader.rb:81:in `symbolize'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/scalar_scanner.rb:83:in `tokenize'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:59:in `deserialize'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:120:in `visit_Psych_Nodes_Scalar'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/visitor.rb:15:in `visit'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/visitor.rb:5:in `accept'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:31:in `accept'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:291:in `block in revive_hash'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:290:in `each'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:290:in `each_slice'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:290:in `revive_hash'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:159:in `visit_Psych_Nodes_Mapping'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/visitor.rb:15:in `visit'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/visitor.rb:5:in `accept'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:31:in `accept'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:264:in `visit_Psych_Nodes_Document'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/visitor.rb:15:in `visit'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/visitor.rb:5:in `accept'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/visitors/to_ruby.rb:31:in `accept'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych.rb:173:in `safe_load'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/sbin/foreman-cockpit-session:29:in `read_settings'
Jan 07 15:19:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/sbin/foreman-cockpit-session:275:in `<main>'
Jan 07 15:21:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: /usr/share/ruby/psych/class_loader.rb:96:in `find': Tried to load unspecified class: Symbol (Psych::Disa
Jan 07 15:21:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/class_loader.rb:27:in `load'
Jan 07 15:21:45 sat-6-7-qa-rhel7.localhost.example.com cockpit-ws22164: from /usr/share/ruby/psych/class_loader.rb:38:in `block (2 levels) in <class:ClassLoader>'
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Adam Ruzicka
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/461 added
Updated by The Foreman Bot over 5 years ago
- Fixed in Releases foreman_remote_execution 3.0.2 added
Updated by Anonymous over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_plugin|b092c8fdf3cb69a4cefb7dcf2aa65530426d744b.
Updated by Adam Ruzicka over 5 years ago
- Subject changed from foreman-cockpit fails to parse foreman-cockpit-session.yml to foreman-cockpit fails to parse foreman-cockpit-session.yml
- Fixed in Releases foreman_remote_execution 2.0.7 added