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

Environment

  • Red Hat Satellite 6.9
  • Red Hat Capsule 6.9

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)
    

Resolution

  • This issue has been reported to the Red Hat Engineering team via This content is not included.Bugzilla 1961770 and expected to be fixed in an upcoming minor release of Satellite 6.9.

  • For now, Upgrading to wiredTiger engine is not a mandatory step to perform. One can continue using the mmapv1 mongo engine as usual while on Satellite\Capsule 6.9.

    • In this situation, simply restart the services of the affected server and continue working with the same.

      # foreman-maintain service restart
      # sleep 20 && hammer ping
      
  • But if it's still an end-user requirement to upgrade to wiredTiger mongo engine, please contact This content is not included.Red Hat Technical Support to work around the issue properly and continue with the upgrade.

For more KB articles/solutions related to Red Hat Satellite 6.x MongoDB Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x MongoDB-related Issues

SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.