Ask Your Question

zhonghuabaima0913's profile - activity

2017-02-06 23:58:28 -0500 received badge  Famous Question (source)
2017-02-06 23:58:28 -0500 received badge  Notable Question (source)
2016-01-05 02:43:05 -0500 received badge  Popular Question (source)
2014-09-22 07:49:24 -0500 received badge  Famous Question (source)
2014-09-18 03:01:21 -0500 received badge  Notable Question (source)
2014-07-15 02:35:37 -0500 received badge  Popular Question (source)
2012-05-02 07:04:46 -0500 answered a question connetc instance from dashboard by novncproxy failed

There is only need one consloeauth and novncproxy.and vncserver_listen=compute's IP vncserver_proxyclient_address=compute's IP

2012-04-28 07:50:33 -0500 asked a question connetc instance from dashboard by novncproxy failed

dear all, i have a question that i cannot connect an instance from dashboard by novncproxy.

i cannot connect the instance from dashboard. I have 11 machines to build the cloud.keystone,glance,dashboard,mysql and nova were installed on the controller(192.168.80.10/192.168.78.10) . And glance ,nova are also are installed other machines. my question is that nova-consoleauth is needed to install on every machine???

And nova-novncproxy is also needed to install on every machine???

That is the machine's (192.168.80.11/192.168.78.11)nova.conf

[DEFAULT] verbose=True auth_strategy=keystone allow_resize_to_same_host=True compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler dhcpbridge_flagfile=/etc/nova/nova.conf fixed_range=10.0.3.0/24 flat_network_dhcp_start=10.0.3.2 s3_host=192.168.78.10 network_manager=nova.network.manager.FlatDHCPManager volume_group=nova-volumes volume_name_template=volume-%08x iscsi_helper=tgtadm iscsi_ip_prefix=192.168.80. osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions my_ip=192.168.78.10 public_interface=eth0 flat_interface=eth0 floating_range=192.168.81.0/24 flat_network_bridge=br100 sql_connection=mysql://nova:nova@192.168.78.10/nova libvirt_type=kvm instance_name_template=instance-%08x novncproxy_base_url=http://192.168.80.10:6080/vnc_auto.html xvpvncproxy_base_url=http://192.168.80.10:6081/console vncserver_listen=192.168.80.10 vncserver_proxyclient_address=192.168.80.10 api_paste_config=/etc/nova/api-paste.ini image_service=nova.image.glance.GlanceImageService ec2_dmz_host=192.168.78.10 rabbit_host=192.168.78.10 rabbit_password=guest glance_api_servers=192.168.78.10:9292 force_dhcp_release=True connection_type=libvirt firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver logdir=/var/log/nova multi_host=true

and my /etc/init/nova-novncproxy.conf was wrote "exec /opt/stack/noVNC/utils/nova-novncproxy --config_file /etc/nova/nova.conf --web /opt/stack/noVNC -d --debug"

What is wrong with me ??? Thankyou!

2012-04-27 03:51:22 -0500 answered a question I can't get vnc console

dear all, i have the same question.

i cannot connect the instance from dashboard. I have 11 machines to build the cloud.keystone,glance,dashboard,mysql and nova were installed on the controller(192.168.80.10/192.168.78.10) . And glance ,nova are also are installed other machines. my question is that nova-consoleauth is needed to install on every machine???

And nova-novncproxy is also needed to install on every machine???

That is the machine's (192.168.80.11/192.168.78.11)nova.conf

[DEFAULT] verbose=True auth_strategy=keystone allow_resize_to_same_host=True compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler dhcpbridge_flagfile=/etc/nova/nova.conf fixed_range=10.0.3.0/24 flat_network_dhcp_start=10.0.3.2 s3_host=192.168.78.10 network_manager=nova.network.manager.FlatDHCPManager volume_group=nova-volumes volume_name_template=volume-%08x iscsi_helper=tgtadm iscsi_ip_prefix=192.168.80. osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions my_ip=192.168.78.10 public_interface=eth0 flat_interface=eth0 floating_range=192.168.81.0/24 flat_network_bridge=br100 sql_connection=mysql://nova:nova@192.168.78.10/nova libvirt_type=kvm instance_name_template=instance-%08x novncproxy_base_url=http://192.168.80.10:6080/vnc_auto.html xvpvncproxy_base_url=http://192.168.80.10:6081/console vncserver_listen=192.168.80.10 vncserver_proxyclient_address=192.168.80.10 api_paste_config=/etc/nova/api-paste.ini image_service=nova.image.glance.GlanceImageService ec2_dmz_host=192.168.78.10 rabbit_host=192.168.78.10 rabbit_password=guest glance_api_servers=192.168.78.10:9292 force_dhcp_release=True connection_type=libvirt firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver logdir=/var/log/nova multi_host=true

and my /etc/init/nova-novncproxy.conf was wrote "exec /opt/stack/noVNC/utils/nova-novncproxy --config_file /etc/nova/nova.conf --web /opt/stack/noVNC -d --debug"

What is wrong with me ??? Thankyou!

2012-04-12 10:14:57 -0500 answered a question glance index error 111 connection refused

dear, i worked out it. I deleted the service of glance in keystone.And add it again.

Thank you.

2012-04-12 08:46:57 -0500 asked a question glance index error 111 connection refused

dear all ,

when i used the command "glance index" .There is an error : Failed to show index. Got error: There was an error connecting to a server Details: [Errno 111] Connection refused

My glance-api.conf [DEFAULT]

Show more verbose log output (sets INFO log level output)

verbose = True

Show debugging output in logs (sets DEBUG log level output)

debug = False

Which backend store should Glance use by default is not specified

in a request to add a new image to Glance? Default: 'file'

Available choices are 'file', 'swift', and 's3'

default_store = swift

Address to bind the API server

bind_host = 0.0.0.0

Port the bind the API server to

bind_port = 9292

Log to this file. Make sure you do not set the same log

file for both the API and registry servers!

log_file = /var/log/glance/api.log

Backlog requests when creating socket

backlog = 4096

Number of Glance API worker processes to start.

On machines with more than one CPU increasing this value

may improve performance (especially if using SSL with

compression turned on). It is typically recommended to set

this value to the number of CPUs present on your machine.

workers = 0

Role used to identify an authenticated user as administrator

#admin_role = admin

================= Syslog Options ============================

Send logs to syslog (/dev/log) instead of to file specified

by log_file

use_syslog = False

Facility to use. If unset defaults to LOG_USER.

syslog_log_facility = LOG_LOCAL0

================= SSL Options ===============================

Certificate file to use when starting API server securely

cert_file = /path/to/certfile

Private key file to use when starting API server securely

key_file = /path/to/keyfile

================= Security Options ==========================

AES key for encrypting store 'location' metadata, including

-- if used -- Swift or S3 credentials

Should be set to a random string of length 16, 24 or 32 bytes

metadata_encryption_key = <16, 24 or 32 char registry metadata key>

============ Registry Options ===============================

Address to find the registry server

registry_host = 0.0.0.0

Port the registry server is listening on

registry_port = 9191

What protocol to use when connecting to the registry server?

Set to https for secure HTTP communication

registry_client_protocol = http

The path to the key file to use in SSL connections to the

registry server, if any. Alternately, you may set the

GLANCE_CLIENT_KEY_FILE environ variable to a filepath of the key file

registry_client_key_file = /path/to/key/file

The path to the cert file to use in SSL connections to the

registry server, if any. Alternately, you may set the

GLANCE_CLIENT_CERT_FILE environ variable to a filepath of the cert file

registry_client_cert_file = /path/to/cert/file

The path to the certifying authority cert file to use in SSL connections

to the registry server, if any. Alternately, you may set the

GLANCE_CLIENT_CA_FILE environ variable to a filepath of the CA cert file

registry_client_ca_file = /path/to/ca/file

============ Notification System Options =====================

Notifications can be sent when images are create, updated or deleted.

There are three methods of sending notifications, logging (via the

log_file directive), rabbit (via a rabbitmq queue), qpid (via a Qpid

message queue), or noop (no notifications sent, the default)

notifier_strategy ... (more)

2012-04-11 06:42:01 -0500 answered a question Error uploading image: (SSLError): [Errno 1] _ssl.c:499: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

dear , you should write the value of disk_format and container_format ,

hope to help you .

2012-04-10 07:24:56 -0500 answered a question Dashboard without nova-volume?

How did you make it ???? My endpoint is saved in mysql database.

2012-04-10 07:05:28 -0500 answered a question glance image upload fails during installation

i also have this question.

2012-04-10 07:05:19 -0500 answered a question glance image upload fails during installation

i also have this question.

2012-04-06 08:11:52 -0500 answered a question keystone cannot use the command curl

hello, i droped the database,and it worked.

2012-04-06 06:48:21 -0500 answered a question keystone cannot use the command curl

hello,i used your command ,it also got same error,

"error": { "code": 500, "message": "An unexpected error prevented the server from fulfilling your request. unsupported format character 't' (0x74) at index 33", "title": "Internal Server Error" } }

2012-04-06 06:32:36 -0500 answered a question keystone cannot use the command curl

i can use the command keystone user-list,service-list,endpoint-list and so on

2012-04-06 06:31:33 -0500 asked a question keystone cannot use the command curl

dear all:

i installed keystone using clone,when i use the command of

curl -d '{"auth": {"tenantName": "service", "passwordCredentials":{"username": "glance", "password": "mypasswd"}}}' -H "Content-type: application/json" http://192.168.77.105:35357/v2.0/tokens | python -mjson.tool

there is an error,{ "error": { "code": 500, "message": "An unexpected error prevented the server from fulfilling your request. unsupported format character 't' (0x74) at index 33", "title": "Internal Server Error" } } this is my keystone.conf [DEFAULT] #bind_host = 0.0.0.0 public_port = 5000 admin_port = 35357 admin_token = openstack compute_port = 8774 verbose = True debug = True #log_config = ./etc/logging.conf.sample

================= Syslog Options ============================

Send logs to syslog (/dev/log) instead of to file specified

by log-file

use_syslog = False

Facility to use. If unset defaults to LOG_USER.

syslog_log_facility = LOG_LOCAL0

[sql] connection = mysql://keystone:keystone@192.168.78.105/keystone idle_timeout = 200

[ldap] #url = ldap://localhost #tree_dn = dc=example,dc=com #user_tree_dn = ou=Users,dc=example,dc=com #role_tree_dn = ou=Roles,dc=example,dc=com #tenant_tree_dn = ou=Groups,dc=example,dc=com #user = dc=Manager,dc=example,dc=com #password = freeipa4all #suffix = cn=example,cn=com

[identity] driver = keystone.identity.backends.sql.Identity

[catalog]

dynamic, sql-based backend (supports API/CLI-based management commands)

driver = keystone.catalog.backends.sql.Catalog

static, file-based backend (does NOT support any management commands)

#driver = keystone.catalog.backends.templated.TemplatedCatalog #template_file = /etc/keystone/default_catalog.templates

[token] #driver = keystone.token.backends.kvs.Token driver = keystone.token.backends.sql.Token

Amount of time a token should remain valid (in seconds)

expiration = 86400

[policy] driver = keystone.policy.backends.rules.Policy

[ec2] driver = keystone.contrib.ec2.backends.kvs.Ec2

[filter:debug] paste.filter_factory = keystone.common.wsgi:Debug.factory

[filter:token_auth] paste.filter_factory = keystone.middleware:TokenAuthMiddleware.factory

[filter:admin_token_auth] paste.filter_factory = keystone.middleware:AdminTokenAuthMiddleware.factory

[filter:xml_body] paste.filter_factory = keystone.middleware:XmlBodyMiddleware.factory

[filter:json_body] paste.filter_factory = keystone.middleware:JsonBodyMiddleware.factory

[filter:crud_extension] paste.filter_factory = keystone.contrib.admin_crud:CrudExtension.factory

[filter:ec2_extension] paste.filter_factory = keystone.contrib.ec2:Ec2Extension.factory

[app:public_service] paste.app_factory = keystone.service:public_app_factory

[app:admin_service] paste.app_factory = keystone.service:admin_app_factory

[pipeline:public_api] pipeline = token_auth admin_token_auth xml_body json_body debug ec2_extension public_service

[pipeline:admin_api] pipeline = token_auth admin_token_auth xml_body json_body debug ec2_extension crud_extension admin_service

[app:public_version_service] paste.app_factory = keystone.service:public_version_app_factory

[app:admin_version_service] paste.app_factory = keystone.service:admin_version_app_factory

[pipeline:public_version_api] pipeline = xml_body public_version_service

[pipeline:admin_version_api] pipeline = xml_body admin_version_service

[composite:main] use = egg:Paste#urlmap /v2.0 = public_api / = public_version_api

[composite:admin] use = egg:Paste#urlmap /v2.0 = admin_api / = admin_version_api

Thanks.

2012-04-01 03:47:56 -0500 answered a question rc1 glance and keystone

Thank you,gongysh.That solved my question.

2012-04-01 03:40:43 -0500 answered a question Error uploading image: (SSLError): [Errno 1] _ssl.c:499: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Does anyone resolve this question??? I didn't use swift.

2012-03-31 01:27:08 -0500 answered a question rc1 glance and keystone

Dear all, First,i prepared to get ppa:glance-core/trunk,and i used apt-get to install glance.Does it not get the newer version??

Thanks.

2012-03-31 01:26:51 -0500 answered a question rc1 glance and keystone

Dear all, First,i prepared to get ppa:glance-core/trunk,and i used apt-get to install glance.Does it not get the newer version??

Thanks.

2012-03-31 00:32:46 -0500 answered a question rc1 glance and keystone

Dear gongysh,

 Thank you for your answer.But i still don't  understand that how can i get the new paste.ini. I modified the glance-api.conf that it added [paste_deploy]=caching.The service of glance-api can start.

Thanks again.

2012-03-30 06:22:59 -0500 asked a question rc1 glance and keystone

i added ppa :nova-core/trunk and keystone-core/trunk.And the service keystone could run properly.But when i installed glance,and intergrated with keystone,the services of glance-api and glance-registry cannot start. The glance-api.conf [DEFAULT]

Show more verbose log output (sets INFO log level output)

verbose = True

Show debugging output in logs (sets DEBUG log level output)

debug = False

Which backend store should Glance use by default is not specified

in a request to add a new image to Glance? Default: 'file'

Available choices are 'file', 'swift', and 's3'

default_store = file

Address to bind the API server

bind_host = 0.0.0.0

Port the bind the API server to

bind_port = 9292

Log to this file. Make sure you do not set the same log

file for both the API and registry servers!

log_file = /var/log/glance/api.log

Backlog requests when creating socket

backlog = 4096

Number of Glance API worker processes to start.

On machines with more than one CPU increasing this value

may improve performance (especially if using SSL with

compression turned on). It is typically recommended to set

this value to the number of CPUs present on your machine.

workers = 0

================= Syslog Options ============================

Send logs to syslog (/dev/log) instead of to file specified

by log_file

use_syslog = False

Facility to use. If unset defaults to LOG_USER.

syslog_log_facility = LOG_LOCAL0

================= SSL Options ===============================

Certificate file to use when starting API server securely

cert_file = /path/to/certfile

Private key file to use when starting API server securely

key_file = /path/to/keyfile

================= Security Options ==========================

AES key for encrypting store 'location' metadata, including

-- if used -- Swift or S3 credentials

Should be set to a random string of length 16, 24 or 32 bytes

metadata_encryption_key = <16, 24 or 32 char registry metadata key>

============ Registry Options ===============================

Address to find the registry server

registry_host = 0.0.0.0

Port the registry server is listening on

registry_port = 9191

What protocol to use when connecting to the registry server?

Set to https for secure HTTP communication

registry_client_protocol = http

The path to the key file to use in SSL connections to the

registry server, if any. Alternately, you may set the

GLANCE_CLIENT_KEY_FILE environ variable to a filepath of the key file

registry_client_key_file = /path/to/key/file

The path to the cert file to use in SSL connections to the

registry server, if any. Alternately, you may set the

GLANCE_CLIENT_CERT_FILE environ variable to a filepath of the cert file

registry_client_cert_file = /path/to/cert/file

The path to the certifying authority cert file to use in SSL connections

to the registry server, if any. Alternately, you may set the

GLANCE_CLIENT_CA_FILE environ variable to a filepath of the CA cert file

registry_client_ca_file = /path/to/ca/file

============ Notification System Options =====================

Notifications can be sent when images are create, updated or deleted.

There are three methods of sending notifications, logging (via the

log_file directive), rabbit (via a rabbitmq queue), qpid (via a Qpid

message queue), or noop (no notifications sent, the default)

notifier_strategy = noop

Configuration options if sending notifications via rabbitmq (these are

the ...

(more)
2012-03-30 06:13:41 -0500 answered a question glance add problem:NotAuthorized: None

Dear yong, i did it under you introduction,but glance service cannot start also.

Who can help me?

2012-03-29 06:10:59 -0500 answered a question python-novaclient Python API

Dear all:

  How did you install nova services by nova-2012.1~e4.tar.gz?Could you tell me the relation of nova-2012.1~e4.tar.gz and  python-novaclient-2012.1~e4.tar.gz .

Thanks

2012-03-09 02:14:11 -0500 answered a question VNC console ? does it support for KVM instance ?

Sorry,it didn't work properly either.I have tried to git https://github.com/cloudbuilders/noVNC,and (https://github.com/cloudbuilders/noVN...) done something like that:

$git clone https://github.com/cloudbuilders/noVNC.git (https://github.com/cloudbuilders/noVN...) $cd noVNC $git checkout diablo 1.配置 noVNC 服务 向/etc/nova/nova.conf 添加如下内容: #nova-vncproxy --vnc_enabled=True --vncproxy_url=http://192.168.77.105:6080 --vncproxy_wwwroot=/home/testcloud/noVNC --vncproxy_manager=nova.vnc.auth.VNCProxyAuthManager

  1. 建立 noVNC 服务启动程序软链接 ln -sv /opt/noVNC/utils/nova-wsproxy.py /usr/bin/nova-wsproxy

    1. 建立 noVNC 服务启动脚本配置文件 在/etc/init/下建立名为 nova-vncproxy.conf 文件,内容如下: description "Nova VNC proxy" author "Vishvananda Ishaya vishvananda@gmail.com"

start on (filesystem and net-device-up IFACE!=lo) stop on runlevel [016]

exec su -c "nova-wsproxy 6080 --web /opt/noVNC --flagfile=/etc/nova/nova.conf" nova 4. 建立 noVNC 启动脚本 ln -sv /lib/init/upstart-job /etc/init.d/nova-vncproxy

  1. 重启相关服务 /etc/init.d/nova-api restart /etc/init.d/nova-vncproxy start

But /etc/init.d/nova-vncproxy will automaticly stop.By the way, all the processes(keysthone,dashboard,nova-compute,nova-scheduler,glance,nova-network and so on) are usring package repository.

2012-03-08 03:09:48 -0500 answered a question VNC console ? does it support for KVM instance ?

I am very sorry to trouble you.I have the same question that vncproxy process cann't work.You said that we need to install custom noVNC.I have git https://github.com/managedit/openstack-novnc-ubuntu (https://github.com/managedit/openstac...) , but there is no anything can install.Can you help me ? nova.conf: --vnc_console_proxy_url=http://192.168.77.105:6080 --vncproxy_wwwroot=/var/lib/nova/noVNC --vnc_enabled=true --vncproxy_host=192.168.77.105

Thanks