Ask Your Question

jfzhang1984's profile - activity

2014-12-02 05:13:30 -0500 received badge  Famous Question (source)
2014-06-07 09:37:09 -0500 received badge  Notable Question (source)
2014-03-31 01:08:20 -0500 received badge  Popular Question (source)
2013-08-30 03:10:53 -0500 answered a question can not start cluster

I want to known, Does savanna must be installed in the virtual enviroment?

When I create the virtal enviroment, should i assign the argument --no-site-packages ?

2013-08-09 08:20:37 -0500 answered a question Savanna with Quantum Network

I also have this problem, and modify the source code in service/networks.py and instances.py

2013-08-09 08:09:35 -0500 asked a question can not start cluster

when I start a cluster, sometimes it can be turn to active state, but sometimes it throws an error as follows:

2013-08-09 10:35:53.936 23506 WARNING savanna.service.instances [-] Can't start cluster 'asd' (reason: [Errno 111] ECONNREFUSED) 2013-08-09 10:35:53.939 23506 WARNING savanna.plugins.vanilla.config_helper [-] Plugin recieved wrong applicable target 'general' for xml configs 2013-08-09 10:35:53.941 23506 WARNING savanna.plugins.vanilla.config_helper [-] Plugin recieved wrong applicable target 'general' in environmental configs 2013-08-09 10:35:53.941 23506 WARNING savanna.plugins.vanilla.config_helper [-] Plugin recieved wrong applicable target 'general' for xml configs 2013-08-09 10:35:53.942 23506 WARNING savanna.plugins.vanilla.config_helper [-] Plugin recieved wrong applicable target 'general' in environmental configs Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/eventlet-0.13.0-py2.7.egg/eventlet/hubs/poll.py", line 99, in wait writers.get(fileno, noop).cb(fileno) File "/usr/local/lib/python2.7/dist-packages/eventlet-0.13.0-py2.7.egg/eventlet/greenthread.py", line 194, in main result = function(args, *kwargs) File "/usr/local/lib/python2.7/dist-packages/savanna-0.2.1-py2.7.egg/savanna/context.py", line 127, in wrapper func(args, *kwargs) File "/usr/local/lib/python2.7/dist-packages/savanna-0.2.1-py2.7.egg/savanna/service/api.py", line 115, in _provision_cluster plugin.configure_cluster(cluster) File "/usr/local/lib/python2.7/dist-packages/savanna-0.2.1-py2.7.egg/savanna/plugins/vanilla/plugin.py", line 81, in configure_cluster self._push_configs_to_nodes(cluster) File "/usr/local/lib/python2.7/dist-packages/savanna-0.2.1-py2.7.egg/savanna/plugins/vanilla/plugin.py", line 192, in _push_configs_to_nodes 'sudo chown -R $USER:$USER /etc/hadoop' File "/usr/local/lib/python2.7/dist-packages/savanna-0.2.1-py2.7.egg/savanna/utils/remote.py", line 142, in execute_command return execute_command(self.ssh_connection(), cmd) File "/usr/local/lib/python2.7/dist-packages/savanna-0.2.1-py2.7.egg/savanna/utils/remote.py", line 133, in ssh_connection self._ssh = self.helper.ssh_connection() File "/usr/local/lib/python2.7/dist-packages/savanna-0.2.1-py2.7.egg/savanna/utils/remote.py", line 96, in ssh_connection self.instance.node_group.cluster.private_key) File "/usr/local/lib/python2.7/dist-packages/savanna-0.2.1-py2.7.egg/savanna/utils/remote.py", line 31, in setup_ssh_connection ssh.connect(host, username=username, pkey=private_key) File "/usr/local/lib/python2.7/dist-packages/paramiko-1.11.0-py2.7.egg/paramiko/client.py", line 305, in connect retry_on_signal(lambda: sock.connect(addr)) File "/usr/local/lib/python2.7/dist-packages/paramiko-1.11.0-py2.7.egg/paramiko/util.py", line 278, in retry_on_signal return function() File "/usr/local/lib/python2.7/dist-packages/paramiko-1.11.0-py2.7.egg/paramiko/client.py", line 305, in <lambda> retry_on_signal(lambda: sock.connect(addr)) File "/usr/local/lib/python2.7/dist-packages/eventlet-0.13.0-py2.7.egg/eventlet/greenio.py", line 194, in connect socket_checkerr(fd) File "/usr/local/lib/python2.7/dist-packages/eventlet-0.13.0-py2.7.egg/eventlet/greenio.py", line 46, in socket_checkerr raise socket.error(err, errno.errorcode[err]) error: [Errno 111] ECONNREFUSED Removing descriptor: 5

2013-07-19 10:07:03 -0500 answered a question savanna db create

I have fixed the db-problem thanks

2013-07-19 10:02:20 -0500 answered a question savanna db create

OperationalError: (OperationalError) no such column: NodeGroupTemplate.image_id u'SELECT "NodeGroupTemplate".created AS "NodeGroupTemplate_created", "NodeGroupTemplate".updated AS "NodeGroupTemplate_updated", "NodeGroupTemplate".id AS "NodeGroupTemplate_id", "NodeGroupTemplate".description AS "NodeGroupTemplate_description", "NodeGroupTemplate".tenant_id AS "NodeGroupTemplate_tenant_id", "NodeGroupTemplate".plugin_name AS "NodeGroupTemplate_plugin_name", "NodeGroupTemplate".hadoop_version AS "NodeGroupTemplate_hadoop_version", "NodeGroupTemplate".name AS "NodeGroupTemplate_name", "NodeGroupTemplate".flavor_id AS "NodeGroupTemplate_flavor_id", "NodeGroupTemplate".image_id AS "NodeGroupTemplate_image_id", "NodeGroupTemplate".node_processes AS "NodeGroupTemplate_node_processes", "NodeGroupTemplate".node_configs AS "NodeGroupTemplate_node_configs", "NodeGroupTemplate".volumes_per_node AS "NodeGroupTemplate_volumes_per_node", "NodeGroupTemplate".volumes_size AS "NodeGroupTemplate_volumes_size", "NodeGroupTemplate".volume_mount_prefix AS "NodeGroupTemplate_volume_mount_prefix" \nFROM "NodeGroupTemplate" \nWHERE "NodeGroupTemplate".tenant_id = ?' (u'1d1938bbda474b5386c6f86dd7746c6e',)

2013-07-19 09:54:11 -0500 answered a question savanna db create

you can follow this guide to install savanna v0.2: https://savanna.readthedocs.org/en/latest/userdoc/installation.guide.html (https://savanna.readthedocs.org/en/la...)

As you said, I followed the steps and installed savanna successful, I run savanna-api --config-file /etc/savanna/savanna.conf and find that no db is created. and I use the command to test the savanna like this

http $SAVANNA_URL/node-group-templates X-Auth-Token:$AUTH_TOKEN < ng_master_template_create.json

root@node1:~/zjf# http http://10.0.0.1:8386/v1.0/1d1938bbda474b5386c6f86dd7746c6e/node-group-templates (http://10.0.0.1:8386/v1.0/1d1938bbda4...) X-Auth-Token:c4480b411f2542d8b7e15b9ca104de32 < ng_master_template_create.json HTTP/1.1 500 INTERNAL SERVER ERROR Content-Length: 111 Content-Type: application/json Date: Fri, 19 Jul 2013 09:53:06 GMT

{ "error_code": 500, "error_message": "Error occurred during validation", "error_name": "INTERNAL_SERVER_ERROR" }

so i want to known in this program, when to call savanna-db-manage to create db. thanks ?

2013-07-19 08:16:13 -0500 asked a question 'module' object has no attribute 'FormatChecker'

after I install the savanna using the setup.py. I start the savanna by

savanna-api --config-file /etc/savanna/savanna.conf

it seems some wrong.

kylin@node1:~$ savanna-api --config-file /etc/savanna/savanna.conf Traceback (most recent call last): File "/usr/local/bin/savanna-api", line 5, in <module> pkg_resources.run_script('savanna==0.2', 'savanna-api') File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script execfile(script_filename, namespace, namespace) File "/usr/local/lib/python2.7/dist-packages/savanna-0.2-py2.7.egg/EGG-INFO/scripts/savanna-api", line 35, in <module> import savanna.main as server File "/usr/local/lib/python2.7/dist-packages/savanna-0.2-py2.7.egg/savanna/main.py", line 22, in <module> from savanna.api import v10 as api_v10 File "/usr/local/lib/python2.7/dist-packages/savanna-0.2-py2.7.egg/savanna/api/v10.py", line 18, in <module> from savanna.service import validation as v File "/usr/local/lib/python2.7/dist-packages/savanna-0.2-py2.7.egg/savanna/service/validation.py", line 23, in <module> from savanna.utils import api_validator File "/usr/local/lib/python2.7/dist-packages/savanna-0.2-py2.7.egg/savanna/utils/api_validator.py", line 24, in <module> @jsonschema.FormatChecker.cls_checks('valid_name') AttributeError: 'module' object has no attribute 'FormatChecker'

how should i do ? thanks

2013-07-18 09:59:46 -0500 answered a question savanna db create

sorry i am not understand clearly

the url is to test savanna in command line, in version 0.1 i use it to test savanna

but now I have another question, in version 0.2 , it copy savanna-api and savanna-db-manage to /usr/local/bin

so my question are:

  1. Does the savanna-db-manage need to execute in the savanna installation ?
  2. If need to execute , how to run this script
  3. if not ,when does this programm to create the db and how does this program create the db ?

thanks very much.

2013-07-18 09:38:39 -0500 asked a question savanna db create

when intalling savanna, I found some problem to create the savanna database

in version 0.1 the db is created by

savanna--manage --config-file /etc/savanna/savanna.conf reset-db --with-gen-templates

it can scussefu created the db. it can also give some exist node-templetes in the hadoop.

but in the newer version, we use

savanna-db-manage --config-file /etc/savanna/savanna.conf revision -m "description of revision" --autogenerate

to create the database and find something may wrong.

  1. there are no exist node-templetes in the new database 2 I can create the node-templetes through the horizon

So I want to known how should I use the savanna-db-manage to create the new db for savanna ?

thanks

2013-07-18 08:20:41 -0500 answered a question install savanna error

I have fixed it, thanks.

2013-07-18 07:45:41 -0500 asked a question install savanna error

I have installed the savanna-stable-0.1 version

now i want to try the version 0.2, I have downlaod the source code savanna-0.2.tar.gz from the website

after unpacking this tar, I try to install it using the same method as i installed the version 0.1

python setup.py install

but some excepitons are thrown as follows:

Traceback (most recent call last): File "setup.py", line 26, in <module> version=common_setup.get_version(project, '0.2'), File "/root/zjf/savanna-0.2/savanna/openstack/common/setup.py", line 368, in get_version raise Exception("Versioning for this project requires either an sdist" Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository.

how should I do ?