0

我是使用 cloudify 的新手。我已经成功地在 aws ec2 上引导了一个 Cloudify 管理器。但是,我在执行 nodecellar 的安装工作流时遇到了问题。

我的环境是:cloudify-windows-cli_3.2.1、cloudify-manager-blueprints 3.2、cloudify-nodecellar-example 3.2

输入.yaml

image: 'ami-5189a661'
size: 't2.medium'
agent_user: 'ubuntu'

在执行安装工作流时,nodecellar 和 mongodb 的实例已经成功创建,但是出现了一些错误:

Executing workflow 'install' on deployment 'nodecellar' at management server 52.
19.100.72 [timeout=900 seconds]
Deployment environment creation is in progress!
Waiting for create_deployment_environment workflow execution to finish...
2015-08-25T11:31:27 CFY <nodecellar> Starting 'create_deployment_environment' wo
rkflow execution
2015-08-25T11:31:27 CFY <nodecellar> Installing deployment operations worker
2015-08-25T11:31:28 CFY <nodecellar> Sending task 'worker_installer.tasks.instal
l'
2015-08-25T11:31:28 CFY <nodecellar> Task started 'worker_installer.tasks.instal
l'
2015-08-25T11:31:28 CFY <nodecellar> Task succeeded 'worker_installer.tasks.inst
all'
2015-08-25T11:31:28 CFY <nodecellar> Starting deployment operations worker
2015-08-25T11:31:29 CFY <nodecellar> Sending task 'worker_installer.tasks.start'

2015-08-25T11:31:29 CFY <nodecellar> Task started 'worker_installer.tasks.start'

2015-08-25T11:31:34 CFY <nodecellar> Task succeeded 'worker_installer.tasks.star
t'
2015-08-25T11:31:34 CFY <nodecellar> Installing deployment operations plugins
2015-08-25T11:31:34 CFY <nodecellar> Sending task 'plugin_installer.tasks.instal
l'
2015-08-25T11:31:35 CFY <nodecellar> Task started 'plugin_installer.tasks.instal
l'
2015-08-25T11:31:43 CFY <nodecellar> Task succeeded 'plugin_installer.tasks.inst
all'
2015-08-25T11:31:50 CFY <nodecellar> Installing deployment workflows worker
2015-08-25T11:31:50 CFY <nodecellar> Sending task 'worker_installer.tasks.instal
l'
2015-08-25T11:31:50 CFY <nodecellar> Task started 'worker_installer.tasks.instal
l'
2015-08-25T11:31:52 CFY <nodecellar> Task succeeded 'worker_installer.tasks.inst
all'
2015-08-25T11:31:52 CFY <nodecellar> Starting deployment workflows worker
2015-08-25T11:31:52 CFY <nodecellar> Sending task 'worker_installer.tasks.start'

2015-08-25T11:31:52 CFY <nodecellar> Task started 'worker_installer.tasks.start'

2015-08-25T11:31:58 CFY <nodecellar> Task succeeded 'worker_installer.tasks.star
t'
2015-08-25T11:31:58 CFY <nodecellar> Starting deployment policy engine core
2015-08-25T11:31:58 CFY <nodecellar> Sending task 'riemann_controller.tasks.crea
te'
2015-08-25T11:31:58 CFY <nodecellar> Task started 'riemann_controller.tasks.crea
te'
2015-08-25T11:31:59 CFY <nodecellar> Task succeeded 'riemann_controller.tasks.cr
eate'
2015-08-25T11:31:59 CFY <nodecellar> 'create_deployment_environment' workflow ex
ecution succeeded
2015-08-25T11:32:00 CFY <nodecellar> Starting 'install' workflow execution
2015-08-25T11:32:01 CFY <nodecellar> [nodecellar_security_group_c7651] Creating
node
2015-08-25T11:32:01 CFY <nodecellar> [nodecellar_elasticip_3a4c9] Creating node
2015-08-25T11:32:01 CFY <nodecellar> [mongod_security_group_60680] Creating node

2015-08-25T11:32:01 CFY <nodecellar> [nodecellar_elasticip_3a4c9.create] Sending
 task 'ec2.elasticip.allocate'
2015-08-25T11:32:01 CFY <nodecellar> [nodecellar_security_group_c7651.create] Se
nding task 'ec2.securitygroup.create'
2015-08-25T11:32:01 CFY <nodecellar> [mongod_security_group_60680.create] Sendin
g task 'ec2.securitygroup.create'
2015-08-25T11:32:01 CFY <nodecellar> [nodecellar_elasticip_3a4c9.create] Task st
arted 'ec2.elasticip.allocate'
2015-08-25T11:32:01 CFY <nodecellar> [nodecellar_security_group_c7651.create] Ta
sk started 'ec2.securitygroup.create'
2015-08-25T11:32:01 CFY <nodecellar> [mongod_security_group_60680.create] Task s
tarted 'ec2.securitygroup.create'
2015-08-25T11:32:01 CFY <nodecellar> [nodecellar_elasticip_3a4c9.create] Task su
cceeded 'ec2.elasticip.allocate'
2015-08-25T11:32:01 CFY <nodecellar> [nodecellar_security_group_c7651.create] Ta
sk succeeded 'ec2.securitygroup.create'
2015-08-25T11:32:01 CFY <nodecellar> [nodecellar_elasticip_3a4c9] Configuring no
de
2015-08-25T11:32:01 CFY <nodecellar> [nodecellar_security_group_c7651] Configuri
ng node
2015-08-25T11:32:02 CFY <nodecellar> [nodecellar_elasticip_3a4c9] Starting node
2015-08-25T11:32:02 CFY <nodecellar> [mongod_security_group_60680.create] Task s
ucceeded 'ec2.securitygroup.create'
2015-08-25T11:32:02 CFY <nodecellar> [nodecellar_security_group_c7651] Starting
node
2015-08-25T11:32:02 CFY <nodecellar> [mongod_security_group_60680] Configuring n
ode
2015-08-25T11:32:02 CFY <nodecellar> [nodejs_host_c340b] Creating node
2015-08-25T11:32:02 CFY <nodecellar> [nodejs_host_c340b.create] Sending task 'ec
2.instance.run_instances'
2015-08-25T11:32:02 CFY <nodecellar> [nodejs_host_c340b.create] Task started 'ec
2.instance.run_instances'
2015-08-25T11:32:02 CFY <nodecellar> [mongod_security_group_60680] Starting node

2015-08-25T11:32:03 CFY <nodecellar> [mongod_host_58700] Creating node
2015-08-25T11:32:03 CFY <nodecellar> [mongod_host_58700.create] Sending task 'ec
2.instance.run_instances'
2015-08-25T11:32:03 CFY <nodecellar> [mongod_host_58700.create] Task started 'ec
2.instance.run_instances'
2015-08-25T11:32:03 CFY <nodecellar> [nodejs_host_c340b.create] Task succeeded '
ec2.instance.run_instances'
2015-08-25T11:32:03 CFY <nodecellar> [nodejs_host_c340b] Configuring node
2015-08-25T11:32:04 CFY <nodecellar> [mongod_host_58700.create] Task succeeded '
ec2.instance.run_instances'
2015-08-25T11:32:04 CFY <nodecellar> [nodejs_host_c340b] Starting node
2015-08-25T11:32:04 CFY <nodecellar> [nodejs_host_c340b.start] Sending task 'ec2
.instance.start'
2015-08-25T11:32:04 CFY <nodecellar> [nodejs_host_c340b.start] Task started 'ec2
.instance.start'
2015-08-25T11:32:04 CFY <nodecellar> [mongod_host_58700] Configuring node
2015-08-25T11:32:04 CFY <nodecellar> [mongod_host_58700] Starting node
2015-08-25T11:32:04 CFY <nodecellar> [mongod_host_58700.start] Sending task 'ec2
.instance.start'
2015-08-25T11:32:04 CFY <nodecellar> [mongod_host_58700.start] Task started 'ec2
.instance.start'
2015-08-25T11:32:05 CFY <nodecellar> [nodejs_host_c340b.start] Task rescheduled
'ec2.instance.start' -> OperationRetry('Waiting server to be running. Retrying..
.',) [attempt 1]
2015-08-25T11:32:05 CFY <nodecellar> [mongod_host_58700.start] Task rescheduled
'ec2.instance.start' -> OperationRetry('Waiting server to be running. Retrying..
.',) [attempt 1]
2015-08-25T11:32:35 CFY <nodecellar> [nodejs_host_c340b.start] Sending task 'ec2
.instance.start' [attempt 2]
2015-08-25T11:32:35 CFY <nodecellar> [nodejs_host_c340b.start] Task started 'ec2
.instance.start' [attempt 2]
2015-08-25T11:32:35 CFY <nodecellar> [mongod_host_58700.start] Sending task 'ec2
.instance.start' [attempt 2]
2015-08-25T11:32:35 CFY <nodecellar> [mongod_host_58700.start] Task started 'ec2
.instance.start' [attempt 2]
2015-08-25T11:32:35 CFY <nodecellar> [nodejs_host_c340b.start] Task succeeded 'e
c2.instance.start' [attempt 2]
2015-08-25T11:32:35 CFY <nodecellar> [nodejs_host_c340b] Installing worker
2015-08-25T11:32:35 CFY <nodecellar> [mongod_host_58700.start] Task succeeded 'e
c2.instance.start' [attempt 2]
2015-08-25T11:32:36 CFY <nodecellar> [nodejs_host_c340b.install] Sending task 'w
orker_installer.tasks.install'
2015-08-25T11:32:36 CFY <nodecellar> [nodejs_host_c340b.install] Task started 'w
orker_installer.tasks.install'
2015-08-25T11:32:36 CFY <nodecellar> [mongod_host_58700] Installing worker
2015-08-25T11:32:36 CFY <nodecellar> [mongod_host_58700.install] Sending task 'w
orker_installer.tasks.install'
2015-08-25T11:32:36 CFY <nodecellar> [mongod_host_58700.install] Task started 'w
orker_installer.tasks.install'
2015-08-25T11:32:46 CFY <nodecellar> [nodejs_host_c340b.install] Task failed 'wo
rker_installer.tasks.install' -> RecoverableError('NetworkError: Timed out tryin
g to connect to 172.31.20.80 (tried 1 time)',) [attempt 1]
2015-08-25T11:32:46 CFY <nodecellar> [mongod_host_58700.install] Task failed 'wo
rker_installer.tasks.install' -> RecoverableError('NetworkError: Timed out tryin
g to connect to 172.31.24.55 (tried 1 time)',) [attempt 1]
2015-08-25T11:33:16 CFY <nodecellar> [nodejs_host_c340b.install] Sending task 'w
orker_installer.tasks.install' [attempt 2]
2015-08-25T11:33:16 CFY <nodecellar> [nodejs_host_c340b.install] Task started 'w
orker_installer.tasks.install' [attempt 2]
2015-08-25T11:33:16 CFY <nodecellar> [mongod_host_58700.install] Sending task 'w
orker_installer.tasks.install' [attempt 2]
2015-08-25T11:33:16 CFY <nodecellar> [mongod_host_58700.install] Task started 'w
orker_installer.tasks.install' [attempt 2]
2015-08-25T11:33:24 CFY <nodecellar> [nodejs_host_c340b.install] Task succeeded
'worker_installer.tasks.install' [attempt 2]
2015-08-25T11:33:24 CFY <nodecellar> [mongod_host_58700.start] Sending task 'wor
ker_installer.tasks.start'
2015-08-25T11:33:24 CFY <nodecellar> [mongod_host_58700.start] Task started 'wor
ker_installer.tasks.start'
2015-08-25T11:33:24 CFY <nodecellar> [mongod_host_58700.install] Task succeeded
'worker_installer.tasks.install' [attempt 2]
2015-08-25T11:33:24 CFY <nodecellar> [mongod_host_58700.start] Sending task 'wor
ker_installer.tasks.start'
2015-08-25T11:33:24 CFY <nodecellar> [mongod_host_58700.start] Task started 'wor
ker_installer.tasks.start'
2015-08-25T11:33:30 CFY <nodecellar> [nodejs_host_c340b.start] Task succeeded 'w
orker_installer.tasks.start'
2015-08-25T11:33:30 CFY <nodecellar> [mongod_host_58700.start] Task succeeded 'w
orker_installer.tasks.start'
2015-08-25T11:33:30 CFY <nodecellar> [nodejs_host_c340b.install] Sending task 'p
lugin_installer.tasks.install'
2015-08-25T11:33:30 CFY <nodecellar> [nodejs_host_c340b.install] Task started 'p
lugin_installer.tasks.install'
2015-08-25T11:33:30 CFY <nodecellar> [mongod_host_58700.start] Task succeeded 'w
orker_installer.tasks.start'
2015-08-25T11:33:31 CFY <nodecellar> [mongod_host_58700] Installing host plugins

2015-08-25T11:33:31 CFY <nodecellar> [mongod_host_58700.install] Sending task 'p
lugin_installer.tasks.install'
2015-08-25T11:33:31 CFY <nodecellar> [mongod_host_58700.install] Task started 'p
lugin_installer.tasks.install'
2015-08-25T11:33:36 CFY <nodecellar> [nodejs_host_c340b.install] Task succeeded
'plugin_installer.tasks.install'
2015-08-25T11:33:36 CFY <nodecellar> [mongod_host_58700.install] Task succeeded
'plugin_installer.tasks.install'
2015-08-25T11:33:44 CFY <nodecellar> [nodejs_host_c340b.install] Sending task 'd
iamond_agent.tasks.install'
2015-08-25T11:33:44 CFY <nodecellar> [nodejs_host_c340b.install] Task started 'd
iamond_agent.tasks.install'
2015-08-25T11:33:44 CFY <nodecellar> [nodejs_host_c340b.install] Task succeeded
'diamond_agent.tasks.install'
2015-08-25T11:33:44 CFY <nodecellar> [nodejs_host_c340b.start] Sending task 'dia
mond_agent.tasks.start'
2015-08-25T11:33:44 CFY <nodecellar> [nodejs_host_c340b.start] Task started 'dia
mond_agent.tasks.start'
2015-08-25T11:33:45 CFY <nodecellar> [nodejs_host_c340b->nodecellar_elasticip_3a
4c9|establish] Sending task 'ec2.elasticip.associate'
2015-08-25T11:33:45 CFY <nodecellar> [mongod_host_58700.install] Task succeeded
'diamond_agent.tasks.install'
2015-08-25T11:33:45 CFY <nodecellar> [nodejs_host_c340b->nodecellar_elasticip_3a
4c9|establish] Task succeeded 'ec2.elasticip.associate'
2015-08-25T11:33:45 CFY <nodecellar> [nodejs_host_c340b.start] Task started 'dia
mond_agent.tasks.add_collectors'
2015-08-25T11:33:45 CFY <nodecellar> [nodejs_host_c340b->nodecellar_elasticip_3a
4c9|establish] Task started 'ec2.elasticip.associate'
2015-08-25T11:33:45 CFY <nodecellar> [mongod_host_58700.install] Sending task 'd
iamond_agent.tasks.install'
2015-08-25T11:33:45 CFY <nodecellar> [mongod_host_58700.install] Task started 'd
iamond_agent.tasks.install'
2015-08-25T11:33:45 CFY <nodecellar> [mongod_host_58700.install] Task succeeded
'diamond_agent.tasks.install'
2015-08-25T11:33:45 CFY <nodecellar> [mongod_host_58700.start] Sending task 'dia
mond_agent.tasks.start'
2015-08-25T11:33:45 CFY <nodecellar> [mongod_host_58700.start] Task started 'dia
mond_agent.tasks.start'
2015-08-25T11:33:45 CFY <nodecellar> [nodejs_host_c340b->nodecellar_elasticip_3a
4c9|establish] Task succeeded 'ec2.elasticip.associate'
2015-08-25T11:33:45 CFY <nodecellar> [mongod_host_58700.start] Task succeeded 'd
iamond_agent.tasks.start'
2015-08-25T11:33:45 CFY <nodecellar> [mongod_host_58700.start] Sending task 'dia
mond_agent.tasks.add_collectors'
2015-08-25T11:33:45 CFY <nodecellar> [mongod_host_58700.start] Task started 'dia
mond_agent.tasks.add_collectors'
2015-08-25T11:33:47 CFY <nodecellar> [nodejs_host_c340b.start] Task succeeded 'd
iamond_agent.tasks.add_collectors'
2015-08-25T11:33:47 CFY <nodecellar> [nodejs_179d0] Creating node
2015-08-25T11:33:47 CFY <nodecellar> [nodejs_179d0.create] Sending task 'script_
runner.tasks.run'
2015-08-25T11:33:47 CFY <nodecellar> [nodejs_179d0.create] Task started 'script_
runner.tasks.run'
2015-08-25T11:33:47 CFY <nodecellar> [nodejs_179d0.create] Task failed 'script_r
unner.tasks.run' -> RecoverableError('ProcessException: /bin/sh: 1: /tmp/FX2P2/i
nstall-nodejs.sh: not found\n',) [attempt 1]
2015-08-25T11:33:48 CFY <nodecellar> [mongod_host_58700.start] Task succeeded 'd
iamond_agent.tasks.add_collectors'
2015-08-25T11:33:48 CFY <nodecellar> [mongod_2751b] Creating node
2015-08-25T11:33:48 CFY <nodecellar> [mongod_2751b.create] Sending task 'script_
runner.tasks.run'
2015-08-25T11:33:48 CFY <nodecellar> [mongod_2751b.create] Task started 'script_
runner.tasks.run'
2015-08-25T11:33:49 CFY <nodecellar> [mongod_2751b.create] Task failed 'script_r
unner.tasks.run' -> RecoverableError('ProcessException: /bin/sh: 1: /tmp/6YZLJ/i
nstall-mongo.sh: not found\n',) [attempt 1]
2015-08-25T11:34:17 CFY <nodecellar> [nodejs_179d0.create] Sending task 'script_
runner.tasks.run' [attempt 2]
2015-08-25T11:34:17 CFY <nodecellar> [nodejs_179d0.create] Task started 'script_
runner.tasks.run' [attempt 2]
2015-08-25T11:34:17 CFY <nodecellar> [nodejs_179d0.create] Task failed 'script_r
unner.tasks.run' -> RecoverableError('ProcessException: /bin/sh: 1: /tmp/IMY6N/i
nstall-nodejs.sh: not found\n',) [attempt 2]
2015-08-25T11:34:19 CFY <nodecellar> [mongod_2751b.create] Sending task 'script_
runner.tasks.run' [attempt 2]
2015-08-25T11:34:19 CFY <nodecellar> [mongod_2751b.create] Task started 'script_
runner.tasks.run' [attempt 2]
2015-08-25T11:34:19 CFY <nodecellar> [mongod_2751b.create] Task failed 'script_r
unner.tasks.run' -> RecoverableError('ProcessException: /bin/sh: 1: /tmp/3H050/i
nstall-mongo.sh: not found\n',) [attempt 2]
2015-08-25T11:34:47 CFY <nodecellar> [nodejs_179d0.create] Sending task 'script_
runner.tasks.run' [attempt 3]
2015-08-25T11:34:47 CFY <nodecellar> [nodejs_179d0.create] Task started 'script_
runner.tasks.run' [attempt 3]
2015-08-25T11:34:48 CFY <nodecellar> [nodejs_179d0.create] Task failed 'script_r
unner.tasks.run' -> RecoverableError('ProcessException: /bin/sh: 1: /tmp/33K21/i
nstall-nodejs.sh: not found\n',) [attempt 3]
2015-08-25T11:34:49 CFY <nodecellar> [mongod_2751b.create] Sending task 'script_
runner.tasks.run' [attempt 3]
2015-08-25T11:34:49 CFY <nodecellar> [mongod_2751b.create] Task started 'script_
runner.tasks.run' [attempt 3]
2015-08-25T11:34:49 CFY <nodecellar> [mongod_2751b.create] Task failed 'script_r
unner.tasks.run' -> RecoverableError('ProcessException: /bin/sh: 1: /tmp/I8UV9/i
nstall-mongo.sh: not found\n',) [attempt 3]
2015-08-25T11:35:18 CFY <nodecellar> [nodejs_179d0.create] Sending task 'script_
runner.tasks.run' [attempt 4]
2015-08-25T11:35:18 CFY <nodecellar> [nodejs_179d0.create] Task started 'script_
runner.tasks.run' [attempt 4]
2015-08-25T11:35:18 CFY <nodecellar> [nodejs_179d0.create] Task failed 'script_r
unner.tasks.run' -> RecoverableError('ProcessException: /bin/sh: 1: /tmp/UYB9N/i
nstall-nodejs.sh: not found\n',) [attempt 4]
2015-08-25T11:35:19 CFY <nodecellar> [mongod_2751b.create] Sending task 'script_
runner.tasks.run' [attempt 4]
2015-08-25T11:35:19 CFY <nodecellar> [mongod_2751b.create] Task started 'script_
runner.tasks.run' [attempt 4]
2015-08-25T11:35:19 CFY <nodecellar> [mongod_2751b.create] Task failed 'script_r
unner.tasks.run' -> RecoverableError('ProcessException: /bin/sh: 1: /tmp/AU51M/i
nstall-mongo.sh: not found\n',) [attempt 4]
2015-08-25T11:35:48 CFY <nodecellar> [nodejs_179d0.create] Sending task 'script_
runner.tasks.run' [attempt 5]
2015-08-25T11:35:48 CFY <nodecellar> [nodejs_179d0.create] Task started 'script_
runner.tasks.run' [attempt 5]
2015-08-25T11:35:48 CFY <nodecellar> [nodejs_179d0.create] Task failed 'script_r
unner.tasks.run' -> RecoverableError('ProcessException: /bin/sh: 1: /tmp/GYXQI/i
nstall-nodejs.sh: not found\n',) [attempt 5]
2015-08-25T11:35:49 CFY <nodecellar> [mongod_2751b.create] Sending task 'script_
runner.tasks.run' [attempt 5]
2015-08-25T11:35:49 CFY <nodecellar> [mongod_2751b.create] Task started 'script_
runner.tasks.run' [attempt 5]
2015-08-25T11:35:50 CFY <nodecellar> [mongod_2751b.create] Task failed 'script_r
unner.tasks.run' -> RecoverableError('ProcessException: /bin/sh: 1: /tmp/BTGYZ/i
nstall-mongo.sh: not found\n',) [attempt 5]

我想知道关于这些错误我需要检查什么吗?谢谢。

4

2 回答 2

1

这真的很难说,因为你没有包括完整的日志。但是,我想到的是,这个特定错误可能是由于权限问题导致代理无法将文件写入 /tmp 文件夹而导致的。我会检查您是否正确配置了代理用户。

于 2015-08-25T07:44:00.503 回答
1

我已经设法解决了这个问题。这是关于蓝图中脚本文件的行编码。

基本上,在 Unix 系统中,行尾是换行符 (LF),而在 Windows 中,是回车符 (CR) 和换行符 (LF)。因此,当我从 GitHub 将cloudify-nodecellar-example存储库克隆到本地窗口时,脚本文件中的行编码会自动更改。因此,当我上传蓝图并执行工作流时,在.sh文件中找不到/bin/sh的错误。

基本上,您可以通过以下方式禁用行编码校正:

$ git config --global core.autocrlf true
# Configure Git on Windows to properly handle line endings

这解决了问题,感谢这个问题给了我一些想法。

于 2015-08-26T11:07:48.657 回答