Ask Your Question

xinwenzeng's profile - activity

2016-08-29 11:32:37 -0600 received badge  Famous Question (source)
2016-08-29 11:32:37 -0600 received badge  Notable Question (source)
2016-08-29 11:32:37 -0600 received badge  Popular Question (source)
2015-10-08 03:44:31 -0600 commented answer Unable to create trove db instances from Dashboard

I have solve this problem:Flavor's ID must like this"1 2 3 4 ...",could not as the UUID(When we create flavor,if you did't assign a ID,the system would use the uuid as the ID default)

2015-10-03 03:16:21 -0600 answered a question trove instance creation problem

I have see some problem,i solved it follow below setup:

1,In controller

export OS_DATABASE_API_VERSION="1.0"

2,create endpoint like this:

image description

you can run "trove --debug list" to see the error log

2015-10-02 22:13:57 -0600 answered a question Unable to create trove db instances from Dashboard

Hi! If you instance's status is alway "BULID"´╝îfollow my step,have a try(My openstack is icehouse):

1,In controller node

export OS_DATABASE_API_VERSION="1.0"

2,create endpoint like this: image description

What is show in my server when "trove list"

image description

===================================================================================================

Then I tell my problem:I can create instance mysql-user and mysql-database by CLI(trove create/ trove user-create),but I can't open databases in dashboard.When I click databases,the http tell me wrong,like this:

image description image description

The http error log is:

image description

image description

2015-10-02 21:58:34 -0600 received badge  Editor (source)
2015-10-02 21:57:48 -0600 answered a question Trove instance status is BLOCKED

I have slove this problem: The guestagent instances must give privileges to trove,edit the /etc/sudoers,like below:

image description

2015-10-02 21:40:23 -0600 received badge  Enthusiast
2015-09-30 23:06:25 -0600 asked a question Trove instance status is BLOCKED

Hi All !I have install trove-server in Controller node(Centos 6.5),and make a mysql image(installed trove-guestagent,Centos6.5).When I create a database instance,the instance status is BLOCKED,it confued me a week,please help me.All trove-api trove-conductor trove-taskmanager rabbitmq-server and trove-guestagent is ok.My openstack version is IceHouse.

[root@controller ~]# trove list
+--------------------------------------+------------------------+-----------+-------------------+---------+-----------+------+ | id | name | datastore | datastore_version | status | flavor_id | size | +--------------------------------------+------------------------+-----------+-------------------+---------+-----------+------+ | 09c4dedc-564e-493f-ab9c-612787872c8e | trove-mysql-instance-4 | mysql | mysql-5.1 | BLOCKED | 2 | 2 | +--------------------------------------+------------------------+-----------+-------------------+---------+-----------+------+

[root@controller trove]# trove datastore-list +--------------------------------------+-------+ | id | name | +--------------------------------------+-------+ | ae0feb3e-56b5-49bb-88a0-30859ef6fe90 | mysql | +--------------------------------------+-------+

Below is the configuration and log in trove-server:

[root@controller trove]# cat api-paste.ini

[composite:trove]

use = call:trove.common.wsgi:versioned_urlmap /: versions /v1.0: troveapi

[app:versions]

paste.app_factory = trove.versions:app_factory

[pipeline:troveapi]

pipeline = faultwrapper authtoken authorization contextwrapper ratelimit extensions troveapp [filter:extensions]

paste.filter_factory = trove.common.extensions:factory

[filter:authtoken]

signing_dir = /var/cache/trove admin_password = hello123 admin_user = trove admin_tenant_name = service admin_token = eb7ff63f3a03285f9414 paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory auth_host = 10.133.130.111 auth_port = 35357 auth_protocol = http

[filter:authorization]

paste.filter_factory = trove.common.auth:AuthorizationMiddleware.factory

[filter:contextwrapper]

paste.filter_factory = trove.common.wsgi:ContextMiddleware.factory

[filter:faultwrapper]

paste.filter_factory = trove.common.wsgi:FaultWrapper.factory

[filter:ratelimit]

paste.filter_factory = trove.common.limits:RateLimitingMiddleware.factory

[app:troveapp]

paste.app_factory = trove.common.api:app_factory

[filter:debug]

paste.filter_factory = trove.common.wsgi:Debug

[root@controller trove]# cat trove.conf

[DEFAULT]

trove_api_workers = 2 use_syslog = False debug = False verbose = True default_datastore = mysql sql_connection = mysql://trove:hello123@10.133.130.111/trove?charset=utf8 rabbit_password = guest rabbit_host = 10.133.130.111 rabbit_port = 5673 api_extensions_path = /usr/lib/python2.6/site-packages/trove/extensions/routes add_addresses = True default_neutron_networks = cb807ed8-5f63-42ae-ac4f-9dd0e2da97d7

[root@controller trove]# cat trove-taskmanager.conf

[DEFAULT]

use_syslog = False debug = True trove_auth_url = http://10.133.130.111:35357/v1.0 nova_proxy_admin_pass = hello123 nova_proxy_admin_tenant_name = admin nova_proxy_admin_user = admin sql_connection = mysql://trove:hello123@10.133.130.111/trove?charset=utf8 taskmanager_manager = trove.taskmanager.manager.Manager rabbit_password = guest rabbit_host = 10.133.130.111 rabbit_port = 5673

nova_compute_url = http://10.133.130.111:8774/v2 cinder_url = http://10.133.130.111:8776/v1 swift_url = http://10.133.130.111:8080/v1 trove_volume_support = False

[root@controller trove]# cat trove-conductor.conf

[DEFAULT]

use_syslog = False debug = True control_exchange = trove trove_auth_url = http://10.133.130.111:35357/v1.0 nova_proxy_admin_pass = hello123 nova_proxy_admin_tenant_name = admin nova_proxy_admin_user = admin sql_connection = mysql://trove:hello123@10.133.130.111/trove?charset=utf8 rabbit_password = guest rabbit_host = 10.133.130.111 rabbit_port = 5673

[root@controller trove]# cat /usr/share/trove/trove-dist-paste.ini

[composite:trove]

use = call:trove.common.wsgi:versioned_urlmap /: versions /v1.0: troveapi

[app:versions]

paste.app_factory = trove.versions:app_factory

[pipeline:troveapi]

pipeline = faultwrapper authtoken authorization contextwrapper ratelimit extensions troveapp

[filter:extensions]

paste.filter_factory = trove.common.extensions:factory

[filter:authtoken]

paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory admin_password = hello123 admin_user = trove admin_tenant_name = service auth_host = 10.133.130.111 auth_port = 35357 auth_protocol = http

[filter:authorization]

paste.filter_factory = trove.common.auth:AuthorizationMiddleware.factory

[filter:contextwrapper]

paste.filter_factory = trove.common.wsgi:ContextMiddleware.factory

[filter:faultwrapper]

paste.filter_factory = trove.common.wsgi:FaultWrapper.factory

[filter:ratelimit]

paste.filter_factory = trove.common.limits:RateLimitingMiddleware.factory

[app:troveapp]

paste.app_factory = trove.common ... (more)

2015-05-19 06:41:29 -0600 received badge  Teacher (source)
2015-05-18 22:52:31 -0600 answered a question nova image-list returns HTTP 500
  1. Try "nova endpoints" to confirm the nova whether is connetcted to keystone.
  2. Try"systemctl status openstack-keystone" to confirm keystone is ok.
  3. Try"netstat -tunlp".Find if 35357 is used by phython?
2015-05-17 12:44:06 -0600 answered a question Keystone socket error "[Errno 98] Address already in use"

I have the same problem about you . I find the port 5000 and 35357 is used by apache netstat -tunlp | grep 35357 tcp6 0 0 :::35357 :::* LISTEN 6784/httpd

apache use port 35357 because: the docs tell us edit /etc/httpd/conf.d/wsgi-keystone.conf Listen 5000 Listen 35357

<virtualhost *:5000=""> WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone display-name=%{GROUP} WSGIProcessGroup keystone-public WSGIScriptAlias / /var/www/cgi-bin/keystone/main WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On LogLevel info ErrorLogFormat "%{cu}t %M" ErrorLog /var/log/httpd/keystone-error.log CustomLog /var/log/httpd/keystone-access.log combined </virtualhost>

<virtualhost *:35357=""> WSGIDaemonProcess keystone-admin processes=5 threads=1 user=keystone display-name=%{GROUP} WSGIProcessGroup keystone-admin WSGIScriptAlias / /var/www/cgi-bin/keystone/admin WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On LogLevel info ErrorLogFormat "%{cu}t %M" ErrorLog /var/log/httpd/keystone-error.log CustomLog /var/log/httpd/keystone-access.log combined </virtualhost>

so the openstack-keystone could not start. I do not know how to solve this problem. I just stop apache service then start openstack-keystone,it is ok. But apache is top.

Best regards!

2015-05-17 12:44:04 -0600 answered a question Kilo on CentOS7: keystone throws HTTP 500 except when using OS_TOKEN

Hi,Kris! I meet same problem about you. I disable selinux, but it did not solve problem. And I find some thing wrong in "http://docs.openstack.org/kilo/install-guide/install/yum/content/keystone-install.html".The docs do not tell me when and how get start the openstack-keystone, it only tell me start apache at the end.

kernel:centos 7     Linux controller 3.10.0-229.4.2.el7.x86_64
openstack relase:Kilo
command:openstack service create --name keystone --description "OpenStack Identity" identity
error:ERROR: openstack An unexpected error prevented the server from fulfilling your request. (HTTP 500)
erro log from /var/log/keystone/keystone.log:
ERROR keystone.common.wsgi [-] (OperationalError) (1045, "Access denied for user 'keystone'@'localhost' (using password: YES)") None None
2015-05-17 19:18:13.704 5792 TRACE keystone.common.wsgi OperationalError: (OperationalError) (1045, "Access denied for user 'keystone'@'localhost' (using password: YES)") None None

below are what i solving the problem

-1. confirm the keystone passwd

mysql -u keystone -p 
show databases;

if all above is ok, so it is not the the password problem.

-2. confirm "/etc/keystone/keystone.conf" about [database] section

connection = mysql://keystone:news@controller/keystone

it is right, I can ping controller.

-3,

systemctl stop firewalld

disable selinux reboot the problem is aslo exsit!!!

-4.

systemctl status openstack-keystone
openstack-keystone.service: main process exited, code=exited, status=1/FAILURE
Failed to start OpenStack Identity Service (code-named Keystone).
systemctl start openstack-keystone
error log:keystone error: [Errno 98] Address already in use
Could not bind to 0.0.0.0:35357

netstat -tunlp | grep 5000
tcp6       0      0 :::5000                 :::*                    LISTEN      6784/httpd
netstat -tunlp | grep 35357
tcp6       0      0 :::35357                :::*                    LISTEN      6784/httpd

the port 35357 and 5000 is used by apache
so i stop apache,and restart openstack-keystone,the openstack-keystone is ok
and  "openstack service create  --name keystone" is ok.

so, the real quetion is: Are the docs right? docs actually do not tell us to start openstack-keystone. And the apache conflict with the openstack-keystone.

Any help would be great!...Zeng

2015-05-17 12:44:04 -0600 answered a question Unable to create service entity for the Identity service

hi,the error locate at "openstack Could not find token: a79beaf1503904fce33b",pls comfirm the token which is setted in the "/etc/keystone/keystone.conf" [DEFAULT] ... admin_token = a79beaf1503904fce33b