Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-1032

VIM_SSH.pm::get_config_option_info very slow when using run_ssh_command

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.2
    • 2.5
    • vcld (backend)
    • None

    Description

      VIM_SSH.pm::get_config_option_info causes vim-cmd solo/querycfgopt to be executed on an ESXi host. The output is rather complex.

      When utils.pm::run_ssh_command is used to execute the command (rather than OS.pm::execute_new), there is a 1-2 minute or more pause as the following lines are executed:

      $ssh_output =~ s/.*ssh-askpass:[^\n]*//igs;
      $ssh_output =~ s/.*bad permissions:[^\n]*//igs;
      

      The problem is due to the /s parameter. Removing it speeds processing these lines up.

      Attachments

        Activity

          People

            arkurth Andrew Kurth
            arkurth Andrew Kurth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: