Как определить время ожидания шлюза 504 при создании сетей qemu?

Ниже приведен файл executor.php, который используется для создания сетей qemu с использованием run_init.

<?php
include('Net/SSH2.php');
$cmd_list = array(
"cmd_1" => array(
"cmd"          => "cd $path; git clone ssh://git@rtr-swtl-git.abc.net.local:7999/iprepo/common_tools.git",
"desc"         => "Clone common_tools repo",
"exit_onerror" => 0,
),
"cmd_2" => array(
"cmd"          => "cd $path/common_tools; git checkout master; git checkout .; git pull ; git checkout master",
"timeout"      => 60,
"desc"         => "Checking out stable version of common_tools",
),
"cmd_3" => array(
"cmd"          => "$path/common_tools/bin/run_init -lt",
"timeout"      => 300,
"desc"         => "Display the list of all running qemu instances in host",
"exec_type"    => "list",
),
"cmd_4" => array(
"cmd"          => "$path/common_tools/bin/run_init -s all",
"timeout"      => 300,
"desc"         => "Delete all running qemu instances in host",
"exec_type"    => "shutdown",
),
"cmd_5" => array(
"cmd"          => "echo \"$topology\" > $path/$fname; echo \"$topology_data\" > $path/$data_fname",
"desc"         => "Move the topology files to remote host",
"exec_type"    => "setup",
),
"cmd_6" => array(
"cmd"          => "$path/common_tools/bin/run_init -t $path/$fname -l $path/$data_fname",
"timeout"      => 12000,
"desc"         => "Setup Qemu network",
"exec_type"    => "setup",
),
);


//SSH block
$ssh = new Net_SSH2($server);
if (!$ssh->login($username,$password)) {
exit('Login Failed');
}
$response['text'] .= "$username is loggedd into $server\n";

foreach($cmd_list as $item){
$status = 0;
$timeout     = array_key_exists("timeout", $item) ? $item['timeout'] : 0;


// Set command timeout , if present
if($timeout) { $ssh->setTimeout($timeout); }

$output = $ssh->exec($item['cmd']);

?>

Когда я выполняю, я получаю следующую ошибку

     504 gateway timeout error

Как исправить эту проблему? Я получаю ошибку тайм-аута 504 шлюза … Я пытаюсь создать сеть QEMU …

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector