cloudify-cosmo / cloudify-openstack-plugin

Cloudify OpenStack Plugin
20 stars 66 forks source link

The "userdata" key of cloudify.openstack.nodes.Server doesn't work #58

Closed liuweiii closed 9 years ago

liuweiii commented 9 years ago

this is my blueprint yaml: -------------------begin------------------------- inputs: ..image: ....description: > ......Image to be used when launching agent VM's ..flavor: ....description: > ......Flavor of the agent VM's ..agent_user: ....description: > ......User for connecting to agent VM's ..userdata: node_types: ..nodecellar.nodes.MonitoredServer: ....derived_from: cloudify.openstack.nodes.Server ....properties: ......cloudify_agent: ........default: ..........user: { get_input: agent_user } ......server: ........default: ..........image: { get_input: image } ..........flavor: { get_input: flavor } ..........userdata: ............type: http ............url: { get_input: userdata } -----------------end--------------------- this is my input file: ----------------begin------------------- { ...."image": "71d939f6-2690-4c13-8324-942950392d2f", ...."flavor": "3", ...."agent_user": "root", ...."userdata": "http://10.107.248.232:8181/script/config-agent.sh" } ----------------end-------------------- after the VM created,"config-agent.sh" doesn't work on it.and there are no error message in the cli console.I use cloudify 3.1.

ran-z commented 9 years ago

Hi Please create a post on the Cloudify-users google group for this matter, here: https://groups.google.com/forum/#!forum/cloudify-users

Could you also provide the execution logs? Also, your blueprint seems like an invalid yaml from the way you posted it here - note that your "userdata" input begins a dictionary but then there are no values, and immediately you move on to the "node_types:" section

liuweiii commented 9 years ago

I'm sorry I can't visit google group for the GFW(Great Firewall of China). yesterday I forget to write the value of "userdata" input.in fact,my yaml is: ---------------------begin--------------------------- inputs: ..image: ....description: > ......Image to be used when launching agent VM's ..flavor: ....description: > ......Flavor of the agent VM's ..agent_user: ....description: > ......User for connecting to agent VM's ..userdata: ....description: > ......execute after VM is created node_types: ..nodecellar.nodes.MonitoredServer: ....derived_from: cloudify.openstack.nodes.Server ....properties: ......cloudify_agent: ........default: ..........user: { get_input: agent_user } ......server: ........default: ..........image: { get_input: image } ..........flavor: { get_input: flavor } ..........userdata: ............type: http ............url: { get_input: userdata } (The following is omitted.the same as nodecellar sample) --------------------end----------------------- i have upload the blueprint and created the deployment, when i execute the install workflow,new VM is created successfully on my openstack,but the "config-agent.sh" doesn't work on it.my "config-agent.sh" has 2 lines -----begin------

!/bin/bash

mkdir liuweiaaa ----end------- I didn't find any folder named "liuweiaaa" in the new vm.

liuweiii commented 9 years ago

When i execute the install workflow by cli command,i can see many "event" message but no "log" message printed on the console with out any error message.Could you tell me where are the execution logs located?on the manager or cli or agent?And which folder?

ran-z commented 9 years ago

execution logs are located on the manager. to retrieve them during an executions or after it, use the "-l" flag e.g. cfy executions start -d my-deployment -w my-workflow -l or cfy events list -e my-execution-id -l

ran-z commented 9 years ago

Regarding the mkdir command - note that the folder should get created under the root folder, not under the home folder. make sure you're looking in the right place.

liuweiii commented 9 years ago

I have used the "-l" flag,and here is the log: (cloudify)root@ubuntu:~/cloudify-nodecellar-example# cfy executions start -d lw-nc-1202-scriptd-3-2 -w install -l Executing workflow 'install' on deployment 'lw-nc-1202-scriptd-3-2' at management server 10.107.248.220 [timeout=900 seconds] 2015-03-16T17:24:07 CFY Starting 'install' workflow execution 2015-03-16T17:24:08 CFY [mongod_security_group_03378] Creating node 2015-03-16T17:24:08 CFY [nodecellar_floatingip_70f7f] Creating node 2015-03-16T17:24:08 CFY [nodecellar_security_group_6b562] Creating node 2015-03-16T17:24:08 CFY [nodecellar_security_group_6b562.create] Sending task 'neutron_plugin.security_group.create' 2015-03-16T17:24:08 CFY [nodecellar_floatingip_70f7f.create] Sending task 'neutron_plugin.floatingip.create' 2015-03-16T17:24:08 CFY [mongod_security_group_03378.create] Sending task 'neutron_plugin.security_group.create' 2015-03-16T17:24:08 CFY [nodecellar_security_group_6b562.create] Task started 'neutron_plugin.security_group.create' 2015-03-16T17:24:08 CFY [nodecellar_floatingip_70f7f.create] Task started 'neutron_plugin.floatingip.create' 2015-03-16T17:24:09 CFY [nodecellar_security_group_6b562.create] Task succeeded 'neutron_plugin.security_group.create' 2015-03-16T17:24:09 CFY [mongod_security_group_03378.create] Task started 'neutron_plugin.security_group.create' 2015-03-16T17:24:09 CFY [nodecellar_security_group_6b562] Configuring node 2015-03-16T17:24:09 CFY [mongod_security_group_03378.create] Task succeeded 'neutron_plugin.security_group.create' 2015-03-16T17:24:09 CFY [mongod_security_group_03378] Configuring node 2015-03-16T17:24:09 CFY [nodecellar_security_group_6b562] Starting node 2015-03-16T17:24:09 CFY [nodecellar_floatingip_70f7f.create] Task succeeded 'neutron_plugin.floatingip.create' 2015-03-16T17:24:09 CFY [mongod_security_group_03378] Starting node 2015-03-16T17:24:09 CFY [nodecellar_floatingip_70f7f] Configuring node 2015-03-16T17:24:10 LOG [mongod_host_b6016.create] INFO: Creating VM with parameters: {'files': None, 'userdata': u'#!/bin/sh\nctx logger info "Hello to this world"\nmkdir liuweiaaa;\nsed -i s/cn.archive.ubuntu.com/10.107.248.125/g /etc/apt/sources.list;\nsed -i s/security.ubuntu.com/10.107.248.125/g /etc/apt/sources.list;\ncd /root;\nmkdir .pip;\ncd .pip\ntouch pip.conf\necho "[global]">>.pip/pip.conf;\necho "index-url=http://10.107.248.220:8001/pypi/web/simple/">>.pip/pip.conf;\napt-get update;\n', 'name': 'server_lw-nc-1202-scriptd-3-2_mongod_host_b6016', 'availability_zone': None, 'key_name': u'cloudify', 'image': u'71d939f6-2690-4c13-8324-942950392d2f', 'block_device_mapping': None, 'max_count': None, 'nics': [{'net-id': u'6fe99fb4-248c-4782-b526-31683bb1d290'}], 'meta': {'cloudify_management_network_name': u'cloudify', 'cloudify_management_network_id': u'6fe99fb4-248c-4782-b526-31683bb1d290'}, 'block_device_mapping_v2': None, 'min_count': None, 'flavor': u'3', 'reservation_id': None, 'security_groups': [u'cloudify-sg-agents']} 2015-03-16T17:24:10 CFY [mongod_host_b6016] Creating node 2015-03-16T17:24:10 CFY [mongod_host_b6016.create] Sending task 'nova_plugin.server.create' 2015-03-16T17:24:10 CFY [mongod_host_b6016.create] Task started 'nova_plugin.server.create' 2015-03-16T17:24:10 LOG [mongod_host_b6016.create] INFO: Creating VM with parameters: {'files': None, 'userdata': u'#!/bin/sh\nctx logger info "Hello to this world"\nmkdir liuweiaaa;\nsed -i s/cn.archive.ubuntu.com/10.107.248.125/g /etc/apt/sources.list;\nsed -i s/security.ubuntu.com/10.107.248.125/g /etc/apt/sources.list;\ncd /root;\nmkdir .pip;\ncd .pip\ntouch pip.conf\necho "[global]">>.pip/pip.conf;\necho "index-url=http://10.107.248.220:8001/pypi/web/simple/">>.pip/pip.conf;\napt-get update;\n', 'name': 'server_lw-nc-1202-scriptd-3-2_mongod_host_b6016', 'availability_zone': None, 'key_name': u'cloudify', 'image': u'71d939f6-2690-4c13-8324-942950392d2f', 'block_device_mapping': None, 'max_count': None, 'nics': [{'net-id': u'6fe99fb4-248c-4782-b526-31683bb1d290'}], 'meta': {'cloudify_management_network_name': u'cloudify', 'cloudify_management_network_id': u'6fe99fb4-248c-4782-b526-31683bb1d290'}, 'block_device_mapping_v2': None, 'min_count': None, 'flavor': u'3', 'reservation_id': None, 'security_groups': [u'cloudify-sg-agents']} 2015-03-16T17:24:10 CFY [nodejs_host_caaf4] Creating node 2015-03-16T17:24:10 CFY [nodejs_host_caaf4.create] Sending task 'nova_plugin.server.create' 2015-03-16T17:24:10 CFY [nodejs_host_caaf4.create] Task started 'nova_plugin.server.create' 2015-03-16T17:24:10 LOG [nodejs_host_caaf4.create] INFO: Creating VM with parameters: {'files': None, 'userdata': u'#!/bin/sh\nctx logger info "Hello to this world"\nmkdir liuweiaaa;\nsed -i s/cn.archive.ubuntu.com/10.107.248.125/g /etc/apt/sources.list;\nsed -i s/security.ubuntu.com/10.107.248.125/g /etc/apt/sources.list;\ncd /root;\nmkdir .pip;\ncd .pip\ntouch pip.conf\necho "[global]">>.pip/pip.conf;\necho "index-url=http://10.107.248.220:8001/pypi/web/simple/">>.pip/pip.conf;\napt-get update;\n', 'name': 'server_lw-nc-1202-scriptd-3-2_nodejs_host_caaf4', 'availability_zone': None, 'key_name': u'cloudify', 'image': u'71d939f6-2690-4c13-8324-942950392d2f', 'block_device_mapping': None, 'max_count': None, 'nics': [{'net-id': u'6fe99fb4-248c-4782-b526-31683bb1d290'}], 'meta': {'cloudify_management_network_name': u'cloudify', 'cloudify_management_network_id': u'6fe99fb4-248c-4782-b526-31683bb1d290'}, 'block_device_mapping_v2': None, 'min_count': None, 'flavor': u'3', 'reservation_id': None, 'security_groups': [u'cloudify-sg-agents']} 2015-03-16T17:24:12 CFY [mongod_host_b6016.create] Task succeeded 'nova_plugin.server.create' 2015-03-16T17:24:12 CFY [mongod_host_b6016] Configuring node 2015-03-16T17:24:12 CFY [nodejs_host_caaf4.create] Task succeeded 'nova_plugin.server.create' 2015-03-16T17:24:12 CFY [nodejs_host_caaf4] Configuring node 2015-03-16T17:24:12 CFY [mongod_host_b6016] Starting node 2015-03-16T17:24:12 CFY [mongod_host_b6016.start] Sending task 'nova_plugin.server.start' 2015-03-16T17:24:12 CFY [mongod_host_b6016.start] Task started 'nova_plugin.server.start' 2015-03-16T17:24:13 CFY [nodejs_host_caaf4] Starting node 2015-03-16T17:24:13 LOG [mongod_host_b6016.start] INFO: Server is already started 2015-03-16T17:24:13 CFY [mongod_host_b6016.start] Task succeeded 'nova_plugin.server.start' 2015-03-16T17:24:13 CFY [mongod_host_b6016.get_state] Sending task 'nova_plugin.server.get_state' 2015-03-16T17:24:13 CFY [nodejs_host_caaf4.start] Sending task 'nova_plugin.server.start' 2015-03-16T17:24:13 CFY [mongod_host_b6016.get_state] Task started 'nova_plugin.server.get_state' 2015-03-16T17:24:13 CFY [nodejs_host_caaf4.start] Task started 'nova_plugin.server.start' 2015-03-16T17:24:13 CFY [mongod_host_b6016.get_state] Task succeeded 'nova_plugin.server.get_state (False)' 2015-03-16T17:24:13 LOG [nodejs_host_caaf4.start] INFO: Server is already started 2015-03-16T17:24:14 CFY [nodejs_host_caaf4.start] Task succeeded 'nova_plugin.server.start' 2015-03-16T17:24:14 CFY [nodejs_host_caaf4.get_state] Sending task 'nova_plugin.server.get_state' 2015-03-16T17:24:14 CFY [nodejs_host_caaf4.get_state] Task started 'nova_plugin.server.get_state' 2015-03-16T17:24:14 CFY [nodejs_host_caaf4.get_state] Task succeeded 'nova_plugin.server.get_state (False)' 2015-03-16T17:24:43 CFY [mongod_host_b6016.get_state] Sending task 'nova_plugin.server.get_state' [attempt 2/4] 2015-03-16T17:24:44 CFY [nodejs_host_caaf4.get_state] Sending task 'nova_plugin.server.get_state' [attempt 2/4] 2015-03-16T17:24:44 CFY [mongod_host_b6016.get_state] Task started 'nova_plugin.server.get_state' [attempt 2/4] 2015-03-16T17:24:44 CFY [mongod_host_b6016.get_state] Task succeeded 'nova_plugin.server.get_state (True)' [attempt 2/4] 2015-03-16T17:24:44 CFY [nodejs_host_caaf4.get_state] Task started 'nova_plugin.server.get_state' [attempt 2/4] 2015-03-16T17:24:44 CFY [mongod_host_b6016] Installing worker 2015-03-16T17:24:45 CFY [mongod_host_b6016.install] Sending task 'worker_installer.tasks.install' 2015-03-16T17:24:45 CFY [nodejs_host_caaf4.get_state] Task succeeded 'nova_plugin.server.get_state (True)' [attempt 2/4] 2015-03-16T17:24:45 CFY [mongod_host_b6016.install] Task started 'worker_installer.tasks.install' 2015-03-16T17:24:45 CFY [nodejs_host_caaf4] Installing worker 2015-03-16T17:24:45 CFY [nodejs_host_caaf4.install] Sending task 'worker_installer.tasks.install' 2015-03-16T17:24:45 LOG [mongod_host_b6016.install] INFO: Installing cloudify agent mongod_host_b6016. Connection details --> {'host': u'192.168.110.90', 'user': u'root', 'key': u'~/.ssh/agent_key.pem'} 2015-03-16T17:24:48 CFY [mongod_host_b6016.install] Task succeeded 'worker_installer.tasks.install' 2015-03-16T17:24:48 CFY [nodejs_host_caaf4.install] Task started 'worker_installer.tasks.install' 2015-03-16T17:24:49 CFY [mongod_host_b6016.start] Sending task 'worker_installer.tasks.start' 2015-03-16T17:24:49 LOG [nodejs_host_caaf4.install] INFO: Installing cloudify agent nodejs_host_caaf4. Connection details --> {'host': u'192.168.110.91', 'user': u'root', 'key': u'~/.ssh/agent_key.pem'} 2015-03-16T17:24:50 CFY [mongod_host_b6016.start] Task started 'worker_installer.tasks.start' 2015-03-16T17:24:50 LOG [mongod_host_b6016.start] INFO: Starting cloudify agent mongod_host_b6016. Connection details --> {'host': u'192.168.110.90', 'user': u'root', 'key': u'~/.ssh/agent_key.pem'} 2015-03-16T17:24:52 CFY [nodejs_host_caaf4.install] Task succeeded 'worker_installer.tasks.install' 2015-03-16T17:24:52 CFY [nodejs_host_caaf4.start] Sending task 'worker_installer.tasks.start' 2015-03-16T17:24:52 CFY [nodejs_host_caaf4.start] Task started 'worker_installer.tasks.start' 2015-03-16T17:24:53 LOG [nodejs_host_caaf4.start] INFO: Starting cloudify agent nodejs_host_caaf4. Connection details --> {'host': u'192.168.110.91', 'user': u'root', 'key': u'~/.ssh/agent_key.pem'} 2015-03-16T17:24:56 CFY [mongod_host_b6016.start] Task succeeded 'worker_installer.tasks.start' 2015-03-16T17:24:56 CFY [mongod_host_b6016] Installing host plugins 2015-03-16T17:24:56 CFY [mongod_host_b6016.install] Sending task 'plugin_installer.tasks.install' 2015-03-16T17:24:58 CFY [nodejs_host_caaf4.start] Task succeeded 'worker_installer.tasks.start' 2015-03-16T17:24:58 CFY [nodejs_host_caaf4] Installing host plugins 2015-03-16T17:24:58 CFY [nodejs_host_caaf4.install] Sending task 'plugin_installer.tasks.install' 2015-03-16T17:25:21 CFY [mongod_host_b6016.install] Task started 'plugin_installer.tasks.install' 2015-03-16T17:25:22 LOG [mongod_host_b6016.install] INFO: Installing diamond 2015-03-16T17:25:22 CFY [mongod_host_b6016.install] Task succeeded 'plugin_installer.tasks.install' 2015-03-16T17:25:24 CFY [nodejs_host_caaf4.install] Task started 'plugin_installer.tasks.install' 2015-03-16T17:25:24 LOG [nodejs_host_caaf4.install] INFO: Installing diamond 2015-03-16T17:25:24 CFY [nodejs_host_caaf4.install] Task succeeded 'plugin_installer.tasks.install' 2015-03-16T17:25:25 LOG [mongod_host_b6016.restart] INFO: Restarting cloudify agent mongod_host_b6016. Connection details --> {'host': u'192.168.110.90', 'user': u'root', 'key': u'~/.ssh/agent_key.pem'} 2015-03-16T17:25:33 CFY [mongod_host_b6016.install] Sending task 'diamond_agent.tasks.install' 2015-03-16T17:25:33 LOG [nodejs_host_caaf4.restart] INFO: Restarting cloudify agent nodejs_host_caaf4. Connection details --> {'host': u'192.168.110.91', 'user': u'root', 'key': u'~/.ssh/agent_key.pem'} 2015-03-16T17:25:41 CFY [nodejs_host_caaf4.install] Sending task 'diamond_agent.tasks.install' 2015-03-16T17:25:58 CFY [mongod_host_b6016.install] Task started 'diamond_agent.tasks.install' 2015-03-16T17:25:58 CFY [mongod_host_b6016.install] Task succeeded 'diamond_agent.tasks.install' 2015-03-16T17:25:58 CFY [mongod_host_b6016.start] Sending task 'diamond_agent.tasks.start' 2015-03-16T17:25:58 CFY [mongod_host_b6016.start] Task started 'diamond_agent.tasks.start' 2015-03-16T17:25:58 CFY [mongod_host_b6016.start] Task succeeded 'diamond_agent.tasks.start' 2015-03-16T17:25:58 CFY [mongod_host_b6016.start] Sending task 'diamond_agent.tasks.add_collectors' 2015-03-16T17:25:58 CFY [mongod_host_b6016->mongod_security_group_03378|establish] Sending task 'nova_plugin.server.connect_security_group' 2015-03-16T17:25:58 CFY [mongod_host_b6016.start] Task started 'diamond_agent.tasks.add_collectors' 2015-03-16T17:26:00 CFY [mongod_host_b6016.start] Task succeeded 'diamond_agent.tasks.add_collectors' 2015-03-16T17:26:06 CFY [nodejs_host_caaf4.install] Task started 'diamond_agent.tasks.install' 2015-03-16T17:26:06 CFY [nodejs_host_caaf4.install] Task succeeded 'diamond_agent.tasks.install' 2015-03-16T17:26:06 CFY [nodejs_host_caaf4.start] Sending task 'diamond_agent.tasks.start' 2015-03-16T17:26:06 CFY [nodejs_host_caaf4.start] Task started 'diamond_agent.tasks.start' 2015-03-16T17:26:06 CFY [nodejs_host_caaf4.start] Task succeeded 'diamond_agent.tasks.start' 2015-03-16T17:26:06 CFY [nodejs_host_caaf4->nodecellar_security_group_6b562|establish] Sending task 'nova_plugin.server.connect_security_group' 2015-03-16T17:26:06 CFY [nodejs_host_caaf4.start] Sending task 'diamond_agent.tasks.add_collectors' 2015-03-16T17:26:06 CFY [nodejs_host_caaf4->nodecellar_floatingip_70f7f|establish] Sending task 'nova_plugin.server.connect_floatingip' 2015-03-16T17:26:06 CFY [mongod_host_b6016->mongod_security_group_03378|establish] Task started 'nova_plugin.server.connect_security_group' 2015-03-16T17:26:06 CFY [nodejs_host_caaf4.start] Task started 'diamond_agent.tasks.add_collectors' 2015-03-16T17:26:06 CFY [nodejs_host_caaf4->nodecellar_security_group_6b562|establish] Task started 'nova_plugin.server.connect_security_group' 2015-03-16T17:26:07 CFY [nodejs_host_caaf4->nodecellar_security_group_6b562|establish] Task succeeded 'nova_plugin.server.connect_security_group' 2015-03-16T17:26:07 CFY [nodejs_host_caaf4->nodecellar_floatingip_70f7f|establish] Task started 'nova_plugin.server.connect_floatingip' 2015-03-16T17:26:07 CFY [mongod_host_b6016->mongod_security_group_03378|establish] Task succeeded 'nova_plugin.server.connect_security_group' 2015-03-16T17:26:07 CFY [mongod_bc206] Creating node 2015-03-16T17:26:07 CFY [mongod_bc206.create] Sending task 'script_runner.tasks.run' 2015-03-16T17:26:07 CFY [mongod_bc206.create] Task started 'script_runner.tasks.run' 2015-03-16T17:26:07 CFY [nodejs_host_caaf4->nodecellar_floatingip_70f7f|establish] Task succeeded 'nova_plugin.server.connect_floatingip' 2015-03-16T17:26:08 LOG [mongod_bc206.create] INFO: Downloaded scripts/mongo/install-mongo.sh to /tmp/PDQP2/install-mongo.sh 2015-03-16T17:26:08 LOG [mongod_bc206.create] INFO: Executing: /tmp/PDQP2/install-mongo.sh 2015-03-16T17:26:08 LOG [mongod_bc206.create] INFO: before install-mongodb.sh download** 2015-03-16T17:26:08 LOG [mongod_bc206.create] INFO: Downloading http://10.107.248.232:8181/package/mongodb/mongodb-linux-x86_64-2.4.9.tgz to /tmp/mongodb-linux-x86_64-2.4.9.tgz 2015-03-16T17:26:08 LOG [mongod_bc206.create] INFO: Downloading http://10.107.248.232:8181/package/mongodb/mongodb-linux-x86_64-2.4.9.tgz to /tmp/mongodb-linux-x86_64-2.4.9.tgz 2015-03-16T17:26:08 CFY [nodejs_4c89b] Creating node 2015-03-16T17:26:08 CFY [nodejs_4c89b.create] Sending task 'script_runner.tasks.run' 2015-03-16T17:26:08 CFY [nodejs_4c89b.create] Task started 'script_runner.tasks.run' 2015-03-16T17:26:09 LOG [nodejs_4c89b.create] INFO: Downloaded scripts/nodejs/install-nodejs.sh to /tmp/JEFIT/install-nodejs.sh 2015-03-16T17:26:09 LOG [nodejs_4c89b.create] INFO: Executing: /tmp/JEFIT/install-nodejs.sh 2015-03-16T17:26:09 LOG [nodejs_4c89b.create] INFO: before install-nodejs.sh download** 2015-03-16T17:26:09 LOG [nodejs_4c89b.create] INFO: Downloading http://10.107.248.232:8181/package/nodejs/node-v0.10.26-linux-x64.tar.gz to /tmp/node-v0.10.26-linux-x64.tar.gz 2015-03-16T17:26:10 LOG [mongod_bc206.create] INFO: after install-mongodb.sh download** 2015-03-16T17:26:10 LOG [nodejs_4c89b.create] INFO: after install-nodejs.sh download** 2015-03-16T17:26:10 LOG [nodejs_4c89b.create] INFO: Untaring node-v0.10.26-linux-x64.tar.gz 2015-03-16T17:26:10 LOG [nodejs_4c89b.create] INFO: Moving node-v0.10.26-linux-x64 to /tmp/7953e55c-0453-4df4-aa9e-85b3d373af6f/nodejs/nodejs-binaries 2015-03-16T17:26:11 CFY [nodejs_4c89b.create] Task succeeded 'script_runner.tasks.run' 2015-03-16T17:26:11 LOG [nodejs_4c89b.create] INFO: Sucessfully installed NodeJS 2015-03-16T17:26:11 LOG [nodejs_4c89b.create] INFO: Execution done (return_code=0): /tmp/JEFIT/install-nodejs.sh 2015-03-16T17:26:11 CFY [nodejs_4c89b] Configuring node 2015-03-16T17:26:11 CFY [nodejs_4c89b] Starting node 2015-03-16T17:26:12 LOG [mongod_bc206.create] INFO: Untaring mongodb-linux-x86_64-2.4.9.tgz 2015-03-16T17:26:14 LOG [mongod_bc206.create] INFO: Moving mongodb-linux-x86_64-2.4.9 to /tmp/7953e55c-0453-4df4-aa9e-85b3d373af6f/mongodb/mongodb-binaries 2015-03-16T17:26:14 LOG [mongod_bc206.create] INFO: Creating MongoDB data directory in /tmp/7953e55c-0453-4df4-aa9e-85b3d373af6f/mongodb/data 2015-03-16T17:26:15 CFY [mongod_bc206.create] Task succeeded 'script_runner.tasks.run' 2015-03-16T17:26:15 CFY [mongod_bc206] Configuring node 2015-03-16T17:26:15 CFY [mongod_bc206.configure] Sending task 'script_runner.tasks.run' 2015-03-16T17:26:15 CFY [mongod_bc206.configure] Task started 'script_runner.tasks.run' 2015-03-16T17:26:15 LOG [mongod_bc206.create] INFO: Sucessfully installed MongoDB 2015-03-16T17:26:15 LOG [mongod_bc206.create] INFO: Execution done (return_code=0): /tmp/PDQP2/install-mongo.sh 2015-03-16T17:26:16 LOG [mongod_bc206.configure] INFO: Downloaded scripts/mongo/install-pymongo.sh to /tmp/2OD0A/install-pymongo.sh 2015-03-16T17:26:16 LOG [mongod_bc206.configure] INFO: Executing: /tmp/2OD0A/install-pymongo.sh 2015-03-16T17:26:16 LOG [mongod_bc206.configure] INFO: Installing pymongo

liuweiii commented 9 years ago

my "config-agent.sh" now is -----begin------

!/bin/sh

ctx logger info "Hello to this world" mkdir liuweiaaa; sed -i s/cn.archive.ubuntu.com/10.107.248.125/g /etc/apt/sources.list; sed -i s/security.ubuntu.com/10.107.248.125/g /etc/apt/sources.list; cd /root; mkdir .pip; cd .pip touch pip.conf echo "[global]">>.pip/pip.conf; echo "index-url=http://10.107.248.220:8001/pypi/web/simple/">>.pip/pip.conf; apt-get update; ----end-------

liuweiii commented 9 years ago

The problem is resolved. my ubuntu 12.04 image has the problem.I use ubuntu 14.04 image instead