Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-32535

Curator invocation on remote EC2 host not referencing sudo properly

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.1
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • TIG 2018-1-29

      The invocation of curator on a remote EC@ host is not properly invoked using sudo:

                  cmds="$cmds; cmd=\"@reboot cd \$HOME && ${sudo} ./curator stat system >> ${monitor_system_file}\""
                  cmds="$cmds; (crontab -l ; echo \"\$cmd\") | crontab -"
                  cmds="$cmds; cmd=\"@reboot cd \$HOME && ${sudo} ./curator stat process-all >> ${monitor_proc_file}\""
                  cmds="$cmds; (crontab -l ; echo \"\$cmd\") | crontab -"
                  cmds="$cmds; crontab -l"
                  cmds="$cmds; { ${sudo} \$HOME/curator stat system --file ${monitor_system_file} > /dev/null 2>&1 & ${sudo} \$HOME/curator stat process-all --file ${monitor_proc_file} > /dev/null 2>&1 & } & disown"
      

      The reference to ${sudo} should be changed to $sudo

            Assignee:
            eddie.louie Eddie Louie
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: