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

Curator invocation on remote EC2 host not referencing sudo properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.1
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      TIG 2018-1-29

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: