Ask Your Question

xianghui's profile - activity

2017-01-13 07:59:12 -0500 received badge  Teacher (source)
2014-09-19 15:09:22 -0500 received badge  Popular Question (source)
2014-07-15 01:04:00 -0500 received badge  Popular Question (source)
2013-11-24 15:58:03 -0500 answered a question VM instance can not obtain IP address under neutron

try to config :

[securitygroup]
# Firewall driver for realizing neutron security group function.
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

in file: /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.in

2013-10-24 07:56:53 -0500 answered a question Looking for job banaries examples link

Thanks Sergey Lukjanov, that solved my question.

2013-10-24 05:02:00 -0500 asked a question Looking for job banaries examples link

Hi folks,

Does anyone know or give me a job banaries example link to run a job on savanna? Or any help docs?

Thanks a lot.

2013-10-23 14:32:53 -0500 answered a question What's the plan of configuring database for savanna

Thanks Dmitry Mescheryakov, that solved my question.

2013-10-23 14:32:42 -0500 answered a question What's the plan of configuring database for savanna

Thanks Mattew, but like Dmitry said, the default value is "sqlite:////savanna/openstack/common/db/$sqlite_db" from code, thank you for your nice help ^^.

2013-10-23 14:19:28 -0500 answered a question What's the plan of configuring database for savanna

@Matthew, Hmm.. it works even when I comment the line connection=sqlite:////var/lib/savanna/savanna-server.db, and found that the savanna.sqlite exists under directory savanna-venv/lib/python2.6/site-packages/savanna/openstack/common/db/.

2013-10-22 02:37:50 -0500 asked a question What's the plan of configuring database for savanna

Hi team,

I noticed that there is one configuration item involved with database in savanna.conf, it used to be : # URL for sqlalchemy database (string value) connection=sqlite:////var/lib/savanna/savanna-server.db connection=sqlite:////tmp/savanna-server.db

but in the latest build "openstack-savanna-0.3-2.el6.noarch" seems savanna works by setting as below: #connection=sqlite:////savanna/openstack/common/db/$sqlite_db

Are there any history concerns on the savanna db? Thanks for any help.

2013-10-22 02:29:15 -0500 answered a question Failed to open DataSource/Plugins.. page in savanna dashboard

Thanks Dmitry and Matthew, after updating from openstack-savanna-0.3-0.22.el6.noarch to openstack-savanna-0.3-2.el6.noarch, the savanna-dashboard works well.

@Matthew, I will open a new question for the db configuration, thanks a lot.

2013-10-22 02:27:09 -0500 answered a question Failed to open DataSource/Plugins.. page in savanna dashboard

Thanks Dmitry Mescheryakov, that solved my question.

2013-10-20 13:45:06 -0500 answered a question Failed to open DataSource/Plugins.. page in savanna dashboard

Is there something wrong with the db configuration?

[database]

URL for sqlalchemy database (string value)

connection=sqlite:////var/lib/savanna/savanna-server.db

2013-10-20 13:30:15 -0500 answered a question Failed to open DataSource/Plugins.. page in savanna dashboard

Thanks Matthew for the quick response, after changing to v1.1 (create cluster can work with v1.0)

vi /etc/openstack-dashboard/local_settings

The Ubuntu package includes pre-compressed JS and compiled CSS to allow

offline compression by default. To enable online compression, install

the node-less package and enable the following option.

COMPRESS_OFFLINE = True SAVANNA_URL = 'http://localhost:8386/v1.1' SAVANNA_USE_NEUTRON = True

still has the following error log :

[Sun Oct 20 13:27:28 2013] [error] DeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PATHS setting instead.DeprecationWarning: Authentication backends without a supports_inactive_user attribute are deprecated. Please define it in <class 'openstack_auth.backend.keystonebackend'="">.ERROR:django.request:Internal Server Error: /dashboard/savanna/plugins/ [Sun Oct 20 13:27:28 2013] [error] Traceback (most recent call last): [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 136, in get_response [Sun Oct 20 13:27:28 2013] [error] response = response.render() [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/response.py", line 104, in render [Sun Oct 20 13:27:28 2013] [error] self._set_content(self.rendered_content) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/response.py", line 81, in rendered_content [Sun Oct 20 13:27:28 2013] [error] content = template.render(context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render [Sun Oct 20 13:27:28 2013] [error] return self._render(context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render [Sun Oct 20 13:27:28 2013] [error] return self.nodelist.render(context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render [Sun Oct 20 13:27:28 2013] [error] bit = self.render_node(node, context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node [Sun Oct 20 13:27:28 2013] [error] return node.render(context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 123, in render [Sun Oct 20 13:27:28 2013] [error] return compiled_parent._render(context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render [Sun Oct 20 13:27:28 2013] [error] return self.nodelist.render(context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render [Sun Oct 20 13:27:28 2013] [error] bit = self.render_node(node, context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node [Sun Oct 20 13:27:28 ... (more)

2013-10-20 08:46:20 -0500 asked a question Failed to open DataSource/Plugins.. page in savanna dashboard

Hi team,

my env: RHEL6.4 OpenStack version : Havana

[root@xianghui openstack_dashboard]# rpm -qa|grep savanna python-django-savanna-0.3-0.2.el6.noarch python-savannaclient-0.3-0.2.noarch openstack-savanna-0.3-0.2.el6.noarch

My configurations are as below: [DEFAULT] verbose=True debug=True log_dir=/var/log/savanna log_file=savanna.log

REST API config

#port=8386

Address and credentials that will be used to check auth tokens

os_auth_host=127.0.0.1 os_auth_port=35357 os_admin_username=admin os_admin_password=79e82b9223d34a56 os_admin_tenant_name=admin

plugins=vanilla,hdp [plugin:vanilla] plugin_class=savanna.plugins.vanilla.plugin:VanillaProvider [plugin:hdp] plugin_class=savanna.plugins.hdp.ambariplugin:AmbariPlugin

[database]

URL for sqlalchemy database (string value)

connection=sqlite:////var/lib/savanna/savanna-server.db

After all the configuration are completed, a cluster can be created, but the following items in savanna dashboard can't be opened. Jobs Job Binaries Data Sources Plugins

When opening "Plugins", it reports:

[Sun Oct 20 08:27:08 2013] [error] DeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PA THS setting instead.DeprecationWarning: Authentication backends without a supports_inactive_user attribute are deprecated. Please defi ne it in <class 'openstack_auth.backend.keystonebackend'="">.ERROR:django.request:Internal Server Error: /dashboard/savanna/plugins/ [Sun Oct 20 08:27:08 2013] [error] Traceback (most recent call last): [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 136, in get_response [Sun Oct 20 08:27:08 2013] [error] response = response.render() [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/response.py", line 104, in render [Sun Oct 20 08:27:08 2013] [error] self._set_content(self.rendered_content) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/response.py", line 81, in rendered_content [Sun Oct 20 08:27:08 2013] [error] content = template.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render [Sun Oct 20 08:27:08 2013] [error] return self._render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render [Sun Oct 20 08:27:08 2013] [error] return self.nodelist.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render [Sun Oct 20 08:27:08 2013] [error] bit = self.render_node(node, context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node [Sun Oct 20 08:27:08 2013] [error] return node.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 123, in render [Sun Oct 20 08:27:08 2013] [error] return compiled_parent._render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134 ... (more)

2013-10-18 14:40:19 -0500 answered a question Failed find the "Data Sources page" in savanna dashboard.

Thanks Matthew Farrellee, that solved my question.

2013-10-18 03:08:11 -0500 asked a question Failed find the "Data Sources page" in savanna dashboard.

ENV : Redhat 6.4 64-bit RDO rdo-release-havana-6.noarch openstack-savanna-0.3-0.1.a274.gabf778f.el6.noarch python-django-savanna-0.3-0.1.a10.g87e1e22.el6.noarch (python-django-savanna-0.3-0.1.a10.g87e1e22.el6.noarch.rpm 18-Sep-2013 17:09 126K)

The OpenStack dashboard installed successfully and could create a cluster with savanna board. But the data resources page is not found, does the edp is not merged into code for this python-djanggo version? I saw there is a new version of openstack-dashboard, do I need to turn to use it? Any steps and requirements needed? openstack-dashboard-2013.2-0.12.rc1.el6.noarch.rpm 10-Oct-2013 08:21 1.9M

Thanks for any help.

2013-10-15 02:37:48 -0500 answered a question savanna-api can't be started while setting logging in conf

Thanks Alexander Rubtsov, that solved my question.

2013-10-15 02:37:32 -0500 answered a question savanna-api can't be started while setting logging in conf

@Dmitry, after setting logging as you referred, savanna-api still failed to be started :( , but thanks for your efforts to give my advices, appreciated. [root@oc2603148815 ~]# vi /etc/savanna/savanna.conf #log_dir=/var/log/savanna log_file=/var/log/savanna/savanna.log

[root@oc2603148815 ~]# vi /etc/savanna/savanna.conf

[root@oc2603148815 ~]# service openstack-savanna-api restart Stopping openstack-savanna-api: [FAILED] Starting openstack-savanna-api: [ OK ] [root@oc2603148815 ~]# ps -ef|grep savanna root 23347 22043 0 21:31 pts/4 00:00:00 grep --color=auto savanna

@Alexander, thank you, that works : ) [root@oc2603148815 ~]# [root@oc2603148815 ~]# vi /etc/savanna/savanna.conf log_dir=/var/log/savanna log_file=savanna.log

[root@oc2603148815 ~]# chown savanna:savanna /var/log/savanna/savanna.log [root@oc2603148815 ~]# service openstack-savanna-api restart Stopping openstack-savanna-api: [FAILED] Starting openstack-savanna-api: [ OK ] [root@oc2603148815 ~]# ps -ef|grep savanna savanna 24157 1 8 21:32 ? 00:00:00 /usr/bin/python /usr/bin/savanna-api --config-file /etc/savanna/savanna.conf root 24245 22043 0 21:32 pts/4 00:00:00 grep --color=auto savanna

2013-10-14 09:30:50 -0500 answered a question savanna-api can't be started while setting logging in conf

Thanks for Dmitry's response,

The following is the entire steps I configure savanna logging based on rdo:

savanna-api can be started by removing log_dir/log_file, but failed to start while adding them.

[root@oc2603148815 ~(keystone_admin)]# ps -ef|grep savanna savanna 10359 1 1 04:17 ? 00:00:00 /usr/bin/python /usr/bin/savanna-api --config-file /etc/savanna/savanna.conf root 11022 1260 0 04:18 pts/2 00:00:00 grep --color=auto savanna [root@oc2603148815 ~(keystone_admin)]# mkdir /var/log/savanna

Edit savanna.conf

[root@oc2603148815 ~(keystone_admin)]# vi /etc/savanna/savanna.conf

[DEFAULT] log_dir=/var/log/savanna log_file=savanna.log

REST API config

#port=8386

Address and credentials that will be used to check auth tokens

os_auth_host=127.0.0.1 os_auth_port=35357 os_admin_username=admin os_admin_password=79e82b9223d34a56 os_admin_tenant_name=admin

When set to false, Savanna uses only internal IP of VMs.

When set to true, Savanna expects OpenStack to auto-

assign floating IPs to cluster nodes. Internal IPs will

be used for inter-cluster communication, while floating

ones will be used by Savanna to configure nodes. Also

floating IPs will be exposed in service URLs. This option

is ignored when "use_neutron" is set to True (boolean value)

use_floating_ips=False

The suffix of the node's FQDN. In nova-network that is

dhcp_domain config parameter (string value)

#node_domain=novalocal

Use Neutron or Nova Network (boolean value)

#use_neutron=false

List of plugins to be loaded. Savanna preserves the order of

the list when returning it. (list value)

plugins=vanilla,hdp

[plugin:vanilla] plugin_class=savanna.plugins.vanilla.plugin:VanillaProvider

[plugin:hdp] plugin_class=savanna.plugins.hdp.ambariplugin:AmbariPlugin

[database] [DEFAULT] log_dir=/var/log/savanna log_file=savanna.log

REST API config

#port=8386

Address and credentials that will be used to check auth tokens

os_auth_host=127.0.0.1 os_auth_port=35357 os_admin_username=admin os_admin_password=79e82b9223d34a56 os_admin_tenant_name=admin

When set to false, Savanna uses only internal IP of VMs.

When set to true, Savanna expects OpenStack to auto-

assign floating IPs to cluster nodes. Internal IPs will

be used for inter-cluster communication, while floating

ones will be used by Savanna to configure nodes. Also

floating IPs will be exposed in service URLs. This option

is ignored when "use_neutron" is set to True (boolean value)

use_floating_ips=False

The suffix of the node's FQDN. In nova-network that is

dhcp_domain config parameter (string value)

#node_domain=novalocal

Use Neutron or Nova Network (boolean value)

#use_neutron=false

List of plugins to be loaded. Savanna preserves the order of

the list when returning it. (list value)

plugins=vanilla,hdp

[plugin:vanilla] plugin_class=savanna.plugins.vanilla.plugin:VanillaProvider

[plugin:hdp] plugin_class=savanna.plugins.hdp.ambariplugin:AmbariPlugin

[database]

URL for sqlalchemy database (string value)

connection=sqlite:////tmp/savanna-server.db

[root@oc2603148815 ~(keystone_admin)]# service openstack-savanna-api restart Stopping openstack-savanna-api: [ OK ] Starting openstack-savanna-api: [ OK ] [root@oc2603148815 ~(keystone_admin)]# ps -ef|grep savanna root 11967 1260 0 04:19 pts/2 00:00:00 grep --color=auto savanna

But invoking savanna-api directly log-file works fine~

[root@oc2603148815 ~(keystone_admin)]# /usr/bin/python /usr/bin/savanna-api --config-file /etc/savanna/savanna.conf --log-file ... (more)

2013-10-14 03:22:04 -0500 asked a question savanna-api can't be started while setting logging in conf

Hi team,

ENV : Redhat 6.4 64-bit RDO rdo-release-havana-6.noarch openstack-savanna-0.3-0.1.a274.gabf778f.el6.noarch python-django-savanna-0.3-0.1.a10.g87e1e22.el6.noarch

I want to log savanna, but after setting the following items into /etc/savanna/savanna.conf, the command service openstack-savanna-api start didn't work, didn't find any clue.

#log_dir=/var/log/savanna/ #log_file=savanna.log

Any help is appreciated, thanks.

2013-09-18 08:37:17 -0500 answered a question How iptables works when ping instance from controller in all-in-one environment

If you want to ping vm, add this security-group-rule:

nova secgroup-add-rule default icmp -1 -1 CIDR(for example 56.0.0.0/24) default is the default security group.

2013-09-16 08:53:56 -0500 answered a question Are there guides about how to deploy savanna?

Ruslan Kamaldinov (ruhe) , I think you are also solved my question, but seems I failed to assign the points to you two, sorry about that.

2013-09-16 08:47:41 -0500 answered a question Are there guides about how to deploy savanna?

Thanks Sergey Lukjanov, that solved my question.

2013-09-16 05:28:14 -0500 answered a question Are there guides about how to deploy savanna?

Thanks to Ruslan, on more question, do you know how to use the python-savannaclient? If any experience is great help for me.

2013-09-16 05:28:11 -0500 answered a question Are there guides about how to deploy savanna?

Thanks to Ruslan, on more question, do you know how to use the python-savannaclient? If any experience is great help for me.

2013-09-15 14:56:44 -0500 answered a question Are there guides about how to deploy savanna?

After install savanna according to the guide https://savanna.readthedocs.org/en/latest/userdoc/installation.guide.html (https://savanna.readthedocs.org/en/la...) as below:

$ savanna-venv/bin/pip install savanna $/opt/stack/savanna-venv/bin/python savanna-venv/bin/savanna-api --config-file /etc/savanna/savanna.conf --log-file /var/log/savanna/api.log -d

The savanna-api process is up, but I didn't find how to use savanna api except the REST API, is the python-savannaclient a command line to use savanna, how to use it?

Thanks a lot.

2013-09-11 09:58:05 -0500 asked a question Are there guides about how to deploy savanna?

I just found an installation guide, but no configurations included. https://savanna.readthedocs.org/en/latest/userdoc/installation.guide.html (https://savanna.readthedocs.org/en/la...)

Are there guides with more detailed deployment on savanna?

Thanks advance.

2013-07-11 09:58:26 -0500 answered a question why my controller node in hypervisor-list

I think dashboard don't support this feature now.

2013-07-11 08:11:52 -0500 answered a question why my controller node in hypervisor-list

use availability zone to select a specified host to launch compute node, an example is like : nova boot --image 6cc22762-d684-42de-a3da-d8acd770d346 --flavor 1 --availability-zone nova:node1 test

where the 'nova' in '--availability-zone nova:node1' is the <zone> your host belongs to, default is equal to nova, you can check by run #nova-manage service list nova-compute XH nova enabled :-) 2013-07-11 08:11:11 and the 'node1' is your host name to launch a vm.

2013-07-10 08:27:49 -0500 answered a question nova live-migrartion failed

set debug=True on /etc/nova/nova.conf to track the error, then up the log.

2013-07-10 06:51:48 -0500 answered a question How to Create or Modify Availability Zone Programmably
  1. Seems there's not Availability Zone by api, maybe it will be considered to be added into the extension, I think the reason is it is not one of the most import api at first.

  2. I don't know which openstack version you are using now? "node_availability_zone" is used on folsom, set default_availability_zone=<zone-name> in /etc/nova/nova.conf on compute node works on havana, you can try it on grizzly.

2013-07-10 02:42:37 -0500 answered a question OpenStack VMs are unable to communicate with Outer World

Hi Amogh,

Sorry, I have misunderstood your question before.

So your Controller & Compute Hosts which in 10 series can ping its vms which in 192.168 series, but other 10 series server cann't , right? and you want other servers can ping these vms each other.

There's two way: 1. If the other servers in 10 series are in the same switch with your Controller & Compute Hosts, you can just simply assign these other servers an 192.168 series ip to the ethernet card , then you can ping the vms of our Controller & Compute Hosts.

2. assign a floating ip to the vms, of course, the ip is 10 series, which means, the vms have two ips, one is in 192.168.x, another is 10.x, and I don't know if nova-network can support the floating ip fuction, but quantum(neutron) have supported this floating ip feature by using quantum-l3-agent.
2013-07-10 02:32:04 -0500 answered a question nova live-migrartion failed

If you are using nfs, the live-migration with shared storage is active,

make sure you have prepare the env referred by http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-migrations.html (http://docs.openstack.org/trunk/opens...)

  1. check NOVA-INST-DIR/instances are same on all your hosts
  2. run 'chown nova:nova NOVA-INST-DIR/instances' on all your hosts to solve the user group problem.

If still got some problems, up the erros.

2013-07-09 15:17:47 -0500 answered a question OpenStack VMs are unable to communicate with Outer World

what the network type? flat, vlan, local, which one did you created?

2013-07-09 14:56:01 -0500 answered a question nova live-migrartion failed

Did you test the live-migration with shared storage? did you set 'instances_shared_storage = true' and 'instance_path=$shared' in the conf, please put the config files here.

2013-07-01 07:52:51 -0500 answered a question libvirtError: opening backend "file" failed

I have encountered the same question lately, but finally resolve it by reboot the compute nodes, after that can boot vm successfully, and seems the console.log need to work as a qemu user.

-rw-rw----. 1 qemu qemu 25496 Jul 1 02:35 console.log -rw-r--r--. 1 qemu qemu 1441792 Jul 1 02:35 disk -rw-r--r--. 1 nova nova 1488 Jul 1 02:33 libvirt.xml

2013-06-30 00:53:14 -0500 answered a question Could IP packets be exchanged between different subnetwork in Nova Network FLATDHCP mode?

You can make different subnetworks packets to be exchanged by using and configuring quantum-l3-agent, which can works as a router, so your private networks can ping each other successfully.

2013-06-27 04:05:22 -0500 answered a question Cannot get ip from DHCP server

hi, Suggest turn off firewall on all nodes first and then have a try. Stop service quantum-l3-agent if you use a RHEL OS and put quantum-l3-agent and quantum-dhcp-agent together, because RHEL has a limitation now, then restart quantum-dhcp-agent. Make sure dhcp interface->linux-bridge->ethernet works well both on network node and compute node. If not, show these detail information. The "pri" network you created is a typer of vlan, which needs the physical layer support the specified "segmentation_id" when you use multi-nodes.

2013-06-27 03:38:00 -0500 answered a question ERROR attaching volume to vm on compute node

Hi diul,

The error " VolumeNotFound:" means can not find the volume you specified to attach, did you create an available volume yet?put more detail info here, like volume , pv,vg,lv.