The mongo engine upgrade to wiredTiger fails with error "`execute': wrong number of arguments (given 1, expected 3) (ArgumentError)" in Satellite 6.9

Solution Verified - Updated -

Issue

  • On Satellite\Capsule 6.9, the mongodb engine upgrade to weirdTiger fails with following error.

    2021-05-18 10:01:59 [DEBUG ] [pre] Hook /usr/share/foreman-installer/hooks/pre/30-el7_upgrade_postgresql.rb returned nil
    2021-05-18 10:01:59 [INFO  ] [pre] Stopping Pulp services except MongoDB
    2021-05-18 10:01:59 [DEBUG ] [pre] Getting running services
    2021-05-18 10:01:59 [DEBUG ] [pre] Found running services ["rh-mongodb34-mongod.service"]
    2021-05-18 10:01:59 [DEBUG ] [pre] Stopping running services rh-mongodb34-mongod.service
    2021-05-18 10:01:59 [DEBUG ] [pre] Starting services rh-mongodb34-mongod
    2021-05-18 10:02:00 [INFO  ] [pre] Starting mongodump to /var/tmp/mongodb_engine_upgrade
    2021-05-18 10:02:00 [DEBUG ] [root] Installer finished in 8.035169454 seconds
    Traceback (most recent call last):
           16: from /usr/sbin/satellite-installer:8:in `<main>'
           15: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.2.1/lib/kafo/kafo_configure.rb:50:in `run'
           14: from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
           13: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.2.1/lib/kafo/kafo_configure.rb:169:in `run'
           12: from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
           11: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.2.1/lib/kafo/kafo_configure.rb:205:in `execute'
           10: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.2.1/lib/kafo/kafo_configure.rb:454:in `run_installation'
            9: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.2.1/lib/kafo/hooking.rb:56:in `execute'
            8: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.2.1/lib/kafo/hooking.rb:56:in `each'
            7: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.2.1/lib/kafo/hooking.rb:58:in `block in execute'
            6: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.2.1/lib/kafo/hook_context.rb:19:in `execute'
            5: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.2.1/lib/kafo/hook_context.rb:19:in `instance_eval'
            4: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.2.1/lib/kafo/hooking.rb:35:in `block (4 levels) in load'
            3: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.2.1/lib/kafo/hooking.rb:35:in `instance_eval'
            2: from /usr/share/foreman-installer/katello/hooks/pre/31-mongo_storage_engine.rb:61:in `block (4 levels) in load'
            1: from /usr/share/foreman-installer/katello/hooks/pre/31-mongo_storage_engine.rb:18:in `migration'
    /usr/share/foreman-installer/hooks/boot/01-kafo-hook-extensions.rb:130:in `execute': wrong number of arguments (given 1, expected 3) (ArgumentError)
    

Environment

  • Red Hat Satellite 6.9
  • Red Hat Capsule 6.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In