Skip to content

Instantly share code, notes, and snippets.

@zaibon
Created March 8, 2018 07:31
Show Gist options
  • Save zaibon/c27368653e29058ff08149ccad6f0d39 to your computer and use it in GitHub Desktop.
Save zaibon/c27368653e29058ff08149ccad6f0d39 to your computer and use it in GitHub Desktop.
Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)
Lifetime set to 86400 seconds
+ set +ex
+ set +ex
* None:pull:ssh://git@github.com/openvcloud/0-templates.git ->/opt/code/github/openvcloud/0-templates
* git clone ssh://git@github.com/openvcloud/0-templates.git -> /opt/code/github/openvcloud/0-templates
* mkdir -p /opt/code/github/openvcloud;cd /opt/code/github/openvcloud;git -c http.sslVerify=false clone -b master ssh://git@github.com/openvcloud/0-templates.git /opt/code/github/openvcloud/0-templates
* None:pull:https://github.com/openvcloud/0-templates.git ->/opt/code/github/openvcloud/0-templates
* git clone https://github.com/openvcloud/0-templates.git -> /opt/code/github/openvcloud/0-templates
* mkdir -p /opt/code/github/openvcloud;cd /opt/code/github/openvcloud;git -c http.sslVerify=false clone -b master https://github.com/openvcloud/0-templates.git /opt/code/github/openvcloud/0-templates
* None:pull:ssh://git@github.com/openvcloud/kubernetes.git ->/opt/code/github/openvcloud/kubernetes
* git clone ssh://git@github.com/openvcloud/kubernetes.git -> /opt/code/github/openvcloud/kubernetes
* mkdir -p /opt/code/github/openvcloud;cd /opt/code/github/openvcloud;git -c http.sslVerify=false clone -b master ssh://git@github.com/openvcloud/kubernetes.git /opt/code/github/openvcloud/kubernetes
* None:pull:https://github.com/openvcloud/kubernetes.git ->/opt/code/github/openvcloud/kubernetes
* git clone https://github.com/openvcloud/kubernetes.git -> /opt/code/github/openvcloud/kubernetes
* mkdir -p /opt/code/github/openvcloud;cd /opt/code/github/openvcloud;git -c http.sslVerify=false clone -b master https://github.com/openvcloud/kubernetes.git /opt/code/github/openvcloud/kubernetes
* data directory: /opt/code/github/zrobot/data/zrobot_data
* robot running at :6600
* Will start agent
* load ssh agent
* load ssh key: /root/.ssh/id_rsa
* Get OpenvCloud client on URL: be-gen-1.demo.greenitglobe.com
* Get OpenvCloud client on URL: be-gen-1.demo.greenitglobe.com
* Get OpenvCloud client on URL: be-gen-1.demo.greenitglobe.com
* Get OpenvCloud client on URL: be-gen-1.demo.greenitglobe.com
* Cloud space ID:213 name:worker-1 size:2 image:1 disksize:10
* Cloud space ID:213 name:master size:2 image:1 disksize:10
* machine created.
* machine created.
* EXECUTESCRIPT 192.168.103.252:22:
'''
set +ex
ls "/root/.iscontainer" > /dev/null 2>&1 && echo 'ISCONTAINER = 1' || echo 'ISCONTAINER = 0'
echo UNAME = ""$(uname -mnprs)""
if [ "$(uname)" == "Darwin" ]; then
export PATH_JSCFG="$HOME/js9host/cfg"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
export PATH_JSCFG="$HOME/js9host/cfg"
else
die "platform not supported"
fi
echo PATH_JSCFG = "$PATH_JSCFG"
echo "PATH_HOME = $HOME"
echo HOSTNAME = "$(hostname)"
lsmod > /dev/null 2>&1|grep vboxdrv |grep -v grep > /dev/null 2>&1 && echo 'VBOXDRV=1' || echo 'VBOXDRV=0'
#OS
apt-get -v > /dev/null 2>&1 && echo 'OS_TYPE="ubuntu"'
test -f /etc/arch-release > /dev/null 2>&1 && echo 'OS_TYPE="arch"'
test -f /etc/redhat-release > /dev/null 2>&1 && echo 'OS_TYPE="redhat"'
apk -v > /dev/null 2>&1 && echo 'OS_TYPE="alpine"'
brew -v > /dev/null 2>&1 && echo 'OS_TYPE="darwin"'
cat /etc/os-release | grep "VERSION_ID"
echo "CFG_JS9 = --TEXT--"
cat $PATH_JSCFG/jumpscale9.toml 2>/dev/null || echo ""
echo --TEXT--
echo "CFG_STATE = --TEXT--"
cat $PATH_JSCFG/state.toml 2> /dev/null || echo ""
echo --TEXT--
echo "BASHPROFILE = --TEXT--"
cat $HOME/.profile_js 2>/dev/null || echo ""
echo --TEXT--
echo "ENV = --TEXT--"
export
echo --TEXT--
'''
cache hit for:js9_object:config:j.clients.ssh:195-134-212-33-22-cloudscalers
addr = '192.168.103.252'
addr_priv = ''
allow_agent = false
clienttype = ''
forward_agent = true
login = 'cloudscalers'
passwd_ = '666565353933386632373238346163613864656636393662acb4f2c16783c5d9a5945fde1284b295a376c6c9f1857b4849'
port = 22
port_priv = 22
proxy = ''
sshkey = ''
stdout = true
timeout = 300
* EXECUTESCRIPT 192.168.103.252:22:
'''
set +ex
ls "/root/.iscontainer" > /dev/null 2>&1 && echo 'ISCONTAINER = 1' || echo 'ISCONTAINER = 0'
echo UNAME = ""$(uname -mnprs)""
if [ "$(uname)" == "Darwin" ]; then
export PATH_JSCFG="$HOME/js9host/cfg"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
export PATH_JSCFG="$HOME/js9host/cfg"
else
die "platform not supported"
fi
echo PATH_JSCFG = "$PATH_JSCFG"
echo "PATH_HOME = $HOME"
echo HOSTNAME = "$(hostname)"
lsmod > /dev/null 2>&1|grep vboxdrv |grep -v grep > /dev/null 2>&1 && echo 'VBOXDRV=1' || echo 'VBOXDRV=0'
#OS
apt-get -v > /dev/null 2>&1 && echo 'OS_TYPE="ubuntu"'
test -f /etc/arch-release > /dev/null 2>&1 && echo 'OS_TYPE="arch"'
test -f /etc/redhat-release > /dev/null 2>&1 && echo 'OS_TYPE="redhat"'
apk -v > /dev/null 2>&1 && echo 'OS_TYPE="alpine"'
brew -v > /dev/null 2>&1 && echo 'OS_TYPE="darwin"'
cat /etc/os-release | grep "VERSION_ID"
echo "CFG_JS9 = --TEXT--"
cat $PATH_JSCFG/jumpscale9.toml 2>/dev/null || echo ""
echo --TEXT--
echo "CFG_STATE = --TEXT--"
cat $PATH_JSCFG/state.toml 2> /dev/null || echo ""
echo --TEXT--
echo "BASHPROFILE = --TEXT--"
cat $HOME/.profile_js 2>/dev/null || echo ""
echo --TEXT--
echo "ENV = --TEXT--"
export
echo --TEXT--
'''
* ISCONTAINER = 0
* UNAME = Linux vm-1813 4.4.0-53-generic x86_64 x86_64
* PATH_JSCFG = /home/cloudscalers/js9host/cfg
* PATH_HOME = /home/cloudscalers
* HOSTNAME = vm-1813
* VBOXDRV=0
* OS_TYPE="ubuntu"
* VERSION_ID="16.04"
* CFG_JS9 = --TEXT--
*
* --TEXT--
* CFG_STATE = --TEXT--
*
* --TEXT--
* BASHPROFILE = --TEXT--
*
* --TEXT--
* ENV = --TEXT--
* declare -x HOME="/home/cloudscalers"
* declare -x LANG="en_US.UTF-8"
* declare -x LOGNAME="cloudscalers"
* declare -x MAIL="/var/mail/cloudscalers"
* declare -x OLDPWD
* declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
* declare -x PATH_JSCFG="/home/cloudscalers/js9host/cfg"
* declare -x PWD="/home/cloudscalers"
* declare -x SHELL="/bin/bash"
* declare -x SHLVL="2"
* declare -x SSH_CLIENT="192.168.103.254 60778 22"
* declare -x SSH_CONNECTION="192.168.103.254 60778 192.168.103.252 22"
* declare -x USER="cloudscalers"
* declare -x XDG_RUNTIME_DIR="/run/user/1000"
* declare -x XDG_SESSION_ID="4"
* --TEXT--
* ISCONTAINER = 0
* UNAME = Linux vm-1813 4.4.0-53-generic x86_64 x86_64
* PATH_JSCFG = /home/cloudscalers/js9host/cfg
* PATH_HOME = /home/cloudscalers
* HOSTNAME = vm-1813
* VBOXDRV=0
* OS_TYPE="ubuntu"
* VERSION_ID="16.04"
* CFG_JS9 = --TEXT--
*
* --TEXT--
* CFG_STATE = --TEXT--
*
* --TEXT--
* BASHPROFILE = --TEXT--
*
* --TEXT--
* ENV = --TEXT--
* declare -x HOME="/home/cloudscalers"
* declare -x LANG="en_US.UTF-8"
* declare -x LOGNAME="cloudscalers"
* declare -x MAIL="/var/mail/cloudscalers"
* declare -x OLDPWD
* declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
* declare -x PATH_JSCFG="/home/cloudscalers/js9host/cfg"
* declare -x PWD="/home/cloudscalers"
* declare -x SHELL="/bin/bash"
* declare -x SHLVL="2"
* declare -x SSH_CLIENT="192.168.103.254 60780 22"
* declare -x SSH_CONNECTION="192.168.103.254 60780 192.168.103.252 22"
* declare -x USER="cloudscalers"
* declare -x XDG_RUNTIME_DIR="/run/user/1000"
* declare -x XDG_SESSION_ID="5"
* --TEXT--
* RUN:getent passwd | egrep '^root:' ; true
* EXECUTE 192.168.103.252:22: [ ! -e '/home/cloudscalers/.bash_profile' ] && touch '/home/cloudscalers/.bash_profile' ;source /home/cloudscalers/.bash_profile;getent passwd | egrep '^root:' ; true
* EXECUTESCRIPT 192.168.103.252:22:
'''
set +ex
ls "/root/.iscontainer" > /dev/null 2>&1 && echo 'ISCONTAINER = 1' || echo 'ISCONTAINER = 0'
echo UNAME = ""$(uname -mnprs)""
if [ "$(uname)" == "Darwin" ]; then
export PATH_JSCFG="$HOME/js9host/cfg"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
export PATH_JSCFG="$HOME/js9host/cfg"
else
die "platform not supported"
fi
echo PATH_JSCFG = "$PATH_JSCFG"
echo "PATH_HOME = $HOME"
echo HOSTNAME = "$(hostname)"
lsmod > /dev/null 2>&1|grep vboxdrv |grep -v grep > /dev/null 2>&1 && echo 'VBOXDRV=1' || echo 'VBOXDRV=0'
#OS
apt-get -v > /dev/null 2>&1 && echo 'OS_TYPE="ubuntu"'
test -f /etc/arch-release > /dev/null 2>&1 && echo 'OS_TYPE="arch"'
test -f /etc/redhat-release > /dev/null 2>&1 && echo 'OS_TYPE="redhat"'
apk -v > /dev/null 2>&1 && echo 'OS_TYPE="alpine"'
brew -v > /dev/null 2>&1 && echo 'OS_TYPE="darwin"'
cat /etc/os-release | grep "VERSION_ID"
echo "CFG_JS9 = --TEXT--"
cat $PATH_JSCFG/jumpscale9.toml 2>/dev/null || echo ""
echo --TEXT--
echo "CFG_STATE = --TEXT--"
cat $PATH_JSCFG/state.toml 2> /dev/null || echo ""
echo --TEXT--
echo "BASHPROFILE = --TEXT--"
cat $HOME/.profile_js 2>/dev/null || echo ""
echo --TEXT--
echo "ENV = --TEXT--"
export
echo --TEXT--
'''
+ set +ex
+ set +ex
Traceback (most recent call last):
 File "/usr/local/lib/python3.5/dist-packages/zerorobot/task/task.py", line 68, in execute
 self._result = self.func()
 File "/opt/code/github/openvcloud/0-templates/templates/node/node.py", line 131, in install
 machine = self._machine_create()
 File "/opt/code/github/openvcloud/0-templates/templates/node/node.py", line 156, in _machine_create
 managed_private=self.data.get('managedPrivate', False)
 File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/clients/openvcloud/Space.py", line 297, in machine_create
 machine.authorizeSSH_private(sshkeyname=sshkeyname)
 File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/clients/openvcloud/Machine.py", line 338, in authorizeSSH_private
 sshclient.ssh_authorize(key=sshkeyname, user='root')
 File "/opt/code/github/jumpscale/core9/JumpScale9/clients/ssh/SSHClient.py", line 167, in ssh_authorize
 self.prefab.system.ssh.authorize(user=user, key=pubkey)
 File "/opt/code/github/jumpscale/prefab9/modules/system/PrefabSSH.py", line 176, in authorize
 if self.prefab.core.file_exists(keyf):
 File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 498, in file_exists
 return self._check_is_ok('test -e', location)
 File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 490, in _check_is_ok
 location = self.replace(location)
 File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 110, in replace
 args2 = self.getArgsDict()
 File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 140, in getArgsDict
 for key, var in self.dir_paths.items():
 File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 50, in dir_paths
 return self.executor.dir_paths
 File "/opt/code/github/jumpscale/core9/JumpScale9/tools/executor/ExecutorBase.py", line 448, in dir_paths
 self.state.configGet('dirs')
 File "/opt/code/github/jumpscale/core9/JumpScale9/core/State.py", line 86, in configGet
 return self._get(key=key, defval=defval, set=set, config=self._configJS, path=self.configJSPath)
 File "/opt/code/github/jumpscale/core9/JumpScale9/core/State.py", line 108, in _get
 (key, self), level=1, source="", tags="", msgpub="")
JumpScale9.errorhandling.JSExceptions.Input: ERROR: could not find config key:dirs in executor:{} ((type:input.error)
[Wed07 18:24] - task.py :78 :j.action_error_logger - CRITICAL - Stacktrace:
File "/usr/local/lib/python3.5/dist-packages/zerorobot/task/task.py", line 68, in execute
self._result = self.func()
File "/opt/code/github/openvcloud/0-templates/templates/node/node.py", line 131, in install
machine = self._machine_create()
File "/opt/code/github/openvcloud/0-templates/templates/node/node.py", line 156, in _machine_create
managed_private=self.data.get('managedPrivate', False)
File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/clients/openvcloud/Space.py", line 297, in machine_create
machine.authorizeSSH_private(sshkeyname=sshkeyname)
File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/clients/openvcloud/Machine.py", line 338, in authorizeSSH_private
sshclient.ssh_authorize(key=sshkeyname, user='root')
File "/opt/code/github/jumpscale/core9/JumpScale9/clients/ssh/SSHClient.py", line 167, in ssh_authorize
self.prefab.system.ssh.authorize(user=user, key=pubkey)
File "/opt/code/github/jumpscale/prefab9/modules/system/PrefabSSH.py", line 176, in authorize
if self.prefab.core.file_exists(keyf):
File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 498, in file_exists
return self._check_is_ok('test -e', location)
File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 490, in _check_is_ok
location = self.replace(location)
File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 110, in replace
args2 = self.getArgsDict()
File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 140, in getArgsDict
for key, var in self.dir_paths.items():
File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 50, in dir_paths
return self.executor.dir_paths
File "/opt/code/github/jumpscale/core9/JumpScale9/tools/executor/ExecutorBase.py", line 448, in dir_paths
self.state.configGet('dirs')
File "/opt/code/github/jumpscale/core9/JumpScale9/core/State.py", line 86, in configGet
return self._get(key=key, defval=defval, set=set, config=self._configJS, path=self.configJSPath)
File "/opt/code/github/jumpscale/core9/JumpScale9/core/State.py", line 108, in _get
(key, self), level=1, source="", tags="", msgpub="")
Arguments:
None
Traceback (most recent call last):
 File "/usr/local/lib/python3.5/dist-packages/zerorobot/task/task.py", line 68, in execute
 self._result = self.func()
 File "/opt/code/github/openvcloud/0-templates/templates/node/node.py", line 131, in install
 machine = self._machine_create()
 File "/opt/code/github/openvcloud/0-templates/templates/node/node.py", line 156, in _machine_create
 managed_private=self.data.get('managedPrivate', False)
 File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/clients/openvcloud/Space.py", line 297, in machine_create
 machine.authorizeSSH_private(sshkeyname=sshkeyname)
 File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/clients/openvcloud/Machine.py", line 338, in authorizeSSH_private
 sshclient.ssh_authorize(key=sshkeyname, user='root')
 File "/opt/code/github/jumpscale/core9/JumpScale9/clients/ssh/SSHClient.py", line 167, in ssh_authorize
 self.prefab.system.ssh.authorize(user=user, key=pubkey)
 File "/opt/code/github/jumpscale/prefab9/modules/system/PrefabSSH.py", line 177, in authorize
 content = self.prefab.core.file_read(keyf)
 File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 480, in file_read
 location = self.replace(location)
 File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 110, in replace
 args2 = self.getArgsDict()
 File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 140, in getArgsDict
 for key, var in self.dir_paths.items():
 File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 50, in dir_paths
 return self.executor.dir_paths
 File "/opt/code/github/jumpscale/core9/JumpScale9/tools/executor/ExecutorBase.py", line 448, in dir_paths
 self.state.configGet('dirs')
 File "/opt/code/github/jumpscale/core9/JumpScale9/core/State.py", line 86, in configGet
 return self._get(key=key, defval=defval, set=set, config=self._configJS, path=self.configJSPath)
 File "/opt/code/github/jumpscale/core9/JumpScale9/core/State.py", line 108, in _get
 (key, self), level=1, source="", tags="", msgpub="")
JumpScale9.errorhandling.JSExceptions.Input: ERROR: could not find config key:dirs in executor:{} ((type:input.error)
[Wed07 18:24] - task.py :78 :j.action_error_logger - CRITICAL - Stacktrace:
File "/usr/local/lib/python3.5/dist-packages/zerorobot/task/task.py", line 68, in execute
self._result = self.func()
File "/opt/code/github/openvcloud/0-templates/templates/node/node.py", line 131, in install
machine = self._machine_create()
File "/opt/code/github/openvcloud/0-templates/templates/node/node.py", line 156, in _machine_create
managed_private=self.data.get('managedPrivate', False)
File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/clients/openvcloud/Space.py", line 297, in machine_create
machine.authorizeSSH_private(sshkeyname=sshkeyname)
File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/clients/openvcloud/Machine.py", line 338, in authorizeSSH_private
sshclient.ssh_authorize(key=sshkeyname, user='root')
File "/opt/code/github/jumpscale/core9/JumpScale9/clients/ssh/SSHClient.py", line 167, in ssh_authorize
self.prefab.system.ssh.authorize(user=user, key=pubkey)
File "/opt/code/github/jumpscale/prefab9/modules/system/PrefabSSH.py", line 177, in authorize
content = self.prefab.core.file_read(keyf)
File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 480, in file_read
location = self.replace(location)
File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 110, in replace
args2 = self.getArgsDict()
File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 140, in getArgsDict
for key, var in self.dir_paths.items():
File "/opt/code/github/jumpscale/prefab9/JumpScale9Prefab/PrefabCore.py", line 50, in dir_paths
return self.executor.dir_paths
File "/opt/code/github/jumpscale/core9/JumpScale9/tools/executor/ExecutorBase.py", line 448, in dir_paths
self.state.configGet('dirs')
File "/opt/code/github/jumpscale/core9/JumpScale9/core/State.py", line 86, in configGet
return self._get(key=key, defval=defval, set=set, config=self._configJS, path=self.configJSPath)
File "/opt/code/github/jumpscale/core9/JumpScale9/core/State.py", line 108, in _get
(key, self), level=1, source="", tags="", msgpub="")
Arguments:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment