Ask Your Question

yaoshenshen+1's profile - activity

2017-12-29 04:14:54 -0500 received badge  Commentator
2017-12-29 04:14:54 -0500 commented answer I created several instances, but now I have delete them, but in the Hypervisors there still have the Memory Usage and Local Disk Usage in ocata.

how about in controll [root@control ~]# source admin-openrc [root@control ~]# nova list

2017-12-26 01:34:16 -0500 answered a question I created several instances, but now I have delete them, but in the Hypervisors there still have the Memory Usage and Local Disk Usage in ocata.

check mysql table nova

2017-12-25 21:48:16 -0500 answered a question How to get info about deleted instance?

Logs can help you

2017-12-04 05:35:17 -0500 received badge  Popular Question (source)
2017-12-04 05:35:17 -0500 received badge  Famous Question (source)
2017-12-04 05:35:17 -0500 received badge  Notable Question (source)
2017-06-02 02:38:20 -0500 received badge  Notable Question (source)
2017-06-02 02:38:20 -0500 received badge  Famous Question (source)
2017-06-02 02:38:20 -0500 received badge  Popular Question (source)
2017-06-02 02:32:53 -0500 received badge  Popular Question (source)
2017-06-02 02:32:53 -0500 received badge  Famous Question (source)
2017-06-02 02:32:53 -0500 received badge  Notable Question (source)
2017-03-10 08:01:34 -0500 received badge  Famous Question (source)
2017-01-18 06:58:46 -0500 received badge  Notable Question (source)
2017-01-18 06:58:46 -0500 received badge  Popular Question (source)
2017-01-11 15:13:38 -0500 received badge  Famous Question (source)
2017-01-05 21:45:25 -0500 received badge  Teacher (source)
2016-12-19 21:33:58 -0500 answered a question Cannot configure StorageObject because device (newton)
解决办法:
删除/var/lib/iscsi  删除之前做好备份。重启控制节点和计算节点
2016-12-19 21:33:32 -0500 asked a question Cannot configure StorageObject because device (newton)
 因为公司服务器断电,断电后使用块设备的服务器无法启动。具体错误如下

root@node ~]# systemctl status  target.service                               
● target.service - Restore LIO kernel target configuration
   Loaded: loaded (/usr/lib/systemd/system/target.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since 一 2016-12-19 12:26:27 CST; 4min 28s ago
  Process: 1180 ExecStart=/usr/bin/targetctl restore (code=exited, status=1/FAILURE)
 Main PID: 1180 (code=exited, status=1/FAILURE)

12月 19 12:26:27 node target[1180]: so_obj = so_cls(**kwargs)
12月 19 12:26:27 node`enter code here` target[1180]: File "/usr/lib/python2.7/site-packages/rtslib/tcm.py", line 669, in __init__
12月 19 12:26:27 node target[1180]: self._configure(dev, wwn, readonly)
12月 19 12:26:27 node target[1180]: File "/usr/lib/python2.7/site-packages/rtslib/tcm.py", line 682, in _configure
12月 19 12:26:27 node target[1180]: + "device %s is already in use." % dev)
12月 19 12:26:27 node target[1180]: rtslib.utils.RTSLibError: Cannot configure StorageObject because device /dev/cinder-volumes/volume-8646116b-dd7f-46dc...dy in use.
12月 19 12:26:27 node systemd[1]: target.service: main process exited, code=exited, status=1/FAILURE
12月 19 12:26:27 node systemd[1]: Failed to start Restore LIO kernel target configuration.
12月 19 12:26:27 node systemd[1]: Unit target.service entered failed state.
12月 19 12:26:27 node systemd[1]: target.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@node ~]# 


解决办法:
删除/var/lib/iscsi  删除之前做好备份。重启控制节点和计算节点
2016-12-19 21:29:16 -0500 answered a question magnum: command not found
 安装
python-magnumclient-doc.noarch 
python-magnumclient-tests.noarch   
python2-magnumclient.noarch
python-magnum-tests.noarch 

这四个包就有magnum命令了
2016-12-16 19:55:57 -0500 commented answer openstack trove instances

Hello Lili Zhang,How about send me a sucessful mysql qow2 images,the url http://tarballs.openstack.org/trove/images/ (http://tarballs.openstack.org/trove/i...) is not login and the images mysql is not working. how about send me your useing images for me,my mailbox is 532741480@qq.com,thank you very much

2016-12-16 19:27:43 -0500 commented answer openstack trove instances

Thanks very much Lili Zhang

2016-12-16 19:24:52 -0500 commented answer Trove Error creating security group for instance(Newton)

I have slove my problem,in the trove-taskmanager.conf I send network_driver = trove.network.nova.NovaNetwork ,The Correct method is network_driver=trove.network.neutron.NeutronDriver Thanks very much Lili Zhang

2016-12-14 00:33:13 -0500 received badge  Enthusiast
2016-12-13 09:17:16 -0500 received badge  Notable Question (source)
2016-12-13 06:16:23 -0500 received badge  Notable Question (source)
2016-12-13 00:28:47 -0500 commented answer Trove Error creating security group for instance(Newton)

I insert log it is 149 to_port=to_port, 150 cidr=cidr, 151 context=context) 152 print from_port 153 f = open('/tmp/aaaaa', 'w') 154 f.write(from_port) 155 f.write(id,protocol,from_port,to_port,cidr,contex

2016-12-12 23:58:41 -0500 commented answer Trove Error creating security group for instance(Newton)

in /usr/lib/python2.7/site-packages/trove/extensions/security_group/models.py I insert LOG.info,but print from_port is NULL.

2016-12-12 23:19:11 -0500 commented answer Trove Error creating security group for instance(Newton)

Thanks very much,i will try adding an LOG.info

2016-12-12 22:43:41 -0500 received badge  Popular Question (source)
2016-12-12 06:43:42 -0500 commented question my horizon dashboard not login

Newton Centos7 platform

2016-12-12 06:43:13 -0500 received badge  Popular Question (source)
2016-12-12 01:59:04 -0500 asked a question The http://tarballs.openstack.org/trove/images/ubuntu/ URL mysql.qow2 password

I want to know http://tarballs.openstack.org/trove/images/ubuntu/mysql.qow2 (http://tarballs.openstack.org/trove/i...) The ubuntu password ,please help me。

2016-12-11 20:52:55 -0500 asked a question my horizon dashboard not login

when I visit http://192.168.0.144/dashboard ,It is not login

The log is here:

==> keystone_access.log <==

192.168.0.144 - - [12/Dec/2016:10:48:17 +0800] "GET /v3/auth/tokens HTTP/1.1" 200 9723 "-" "python-keystoneclient"

==> error_log <==

[Mon Dec 12 02:49:30.728029 2016] [:error] [pid 4555] Load condition failed for panel: identity_providers
[Mon Dec 12 02:49:30.728544 2016] [:error] [pid 4555] Load condition failed for panel: mappings
[Mon Dec 12 02:49:30.728662 2016] [:error] [pid 4555] Could not process panel theme_preview: Dashboard with slug "developer" is not registered.
[Mon Dec 12 02:49:30.728760 2016] [:error] [pid 4555] Could not process panel resource_browser: Dashboard with slug "developer" is not registered.
[Mon Dec 12 02:49:31.599363 2016] [:error] [pid 4555] WARNING:py.warnings:RemovedInDjango19Warning: The use of the language code 'zh-cn' is deprecated. Please use the 'zh-hans' translation instead.

==> access_log <==
192.168.15.102 - - [12/Dec/2016:10:49:29 +0800] "GET /dashboard HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:31 +0800] "GET /dashboard/auth/login/?next=/dashboard/ HTTP/1.1" 200 8662 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:31 +0800] "GET /dashboard/static/dashboard/css/34f8a8f8d5e5.css HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:31 +0800] "GET /dashboard/static/dashboard/css/d2a8234ba899.css HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:31 +0800] "GET /dashboard/static/dashboard/js/c670971f389f.js HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/dashboard/img/logo-splash.png HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/dashboard/js/61f9b6ab011c.js HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/dashboard/js/b567e54e8366.js HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT ...
(more)
2016-12-09 23:03:04 -0500 edited question openstack-trove-taskmanager.service NotFound: The resource could not be found. (HTTP 404)

when I run systemctl status openstack-trove-taskmanager.service -l have a error,please halping me,thanks everyone

[root@control trove]# systemctl status openstack-trove-taskmanager.service -l       
● openstack-trove-taskmanager.service - OpenStack Trove taskmanager service
   Loaded: loaded (/usr/lib/systemd/system/openstack-trove-taskmanager.service; enabled; vendor preset: disabled)
   Active: active (running) since 六 2016-12-10 09:46:57 CST; 3h 13min ago
 Main PID: 14847 (trove-taskmanag)
   CGroup: /system.slice/openstack-trove-taskmanager.service
           └─14847 /usr/bin/python2 /usr/bin/trove-taskmanager

12月 10 12:59:59 control trove-taskmanager[14847]: 2016-12-10 12:59:59.503 14847 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 684, in _v2_auth
12月 10 12:59:59 control trove-taskmanager[14847]: 2016-12-10 12:59:59.503 14847 ERROR oslo_service.periodic_task     return self._authenticate(url, body)
12月 10 12:59:59 control trove-taskmanager[14847]: 2016-12-10 12:59:59.503 14847 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 697, in _authenticate
12月 10 12:59:59 control trove-taskmanager[14847]: 2016-12-10 12:59:59.503 14847 ERROR oslo_service.periodic_task     **kwargs)
12月 10 12:59:59 control trove-taskmanager[14847]: 2016-12-10 12:59:59.503 14847 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 431, in _time_request
12月 10 12:59:59 control trove-taskmanager[14847]: 2016-12-10 12:59:59.503 14847 ERROR oslo_service.periodic_task     resp, body = self.request(url, method, **kwargs)
12月 10 12:59:59 control trove-taskmanager[14847]: 2016-12-10 12:59:59.503 14847 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 425, in request
12月 10 12:59:59 control trove-taskmanager[14847]: 2016-12-10 12:59:59.503 14847 ERROR oslo_service.periodic_task     raise exceptions.from_response(resp, body, url, method)
12月 10 12:59:59 control trove-taskmanager[14847]: 2016-12-10 12:59:59.503 14847 ERROR oslo_service.periodic_task NotFound: The resource could not be found. (HTTP 404)
12月 10 12:59:59 control trove-taskmanager[14847]: 2016-12-10 12:59:59.503 14847 ERROR oslo_service.periodic_task
2016-12-09 22:56:09 -0500 received badge  Editor (source)
2016-12-09 21:03:13 -0500 commented answer openstack trove instances

Thanks Lili Zhang, i want to know how to config The trove-guestagent

2016-12-09 19:30:10 -0500 edited answer Trove Error creating security group for instance
I  have the seem problem  

 +-------------------+-------------------------------------------------------------------------------------------------------+
| Property          | Value                                                                                                 |
+-------------------+-------------------------------------------------------------------------------------------------------+
| created           | 2016-12-09T10:16:06                                                                                   |
| datastore         | mysql                                                                                                 |
| datastore_version | mysql-5.6                                                                                             |
| fault             | Error creating security group for instance:                                                           |
|                   |     7af68e2e-6fc8-4d34-afb3-f53d2b3d8c13                                                              |
|                   | From port must be an integer.                                                                         |
| fault_date        | 2016-12-09T10:16:06                                                                                   |
| fault_details     | Server type: taskmanager                                                                              |
|                   | Traceback (most recent call last):                                                                    |
|                   |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 386, in create_instance  |
|                   |     locality)                                                                                         |
|                   |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 366, in _create_instance |
|                   |     scheduler_hints)                                                                                  |
|                   |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 393, in create_instance   |
|                   |     self._log_and_raise(e, msg, err)                                                                  |
|                   |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 861, in _log_and_raise    |
|                   |     raise TroveError(message=full_message)                                                            |
|                   | TroveError:                                                                                           |
|                   |     Error creating security group for instance:                                                       |
|                   |     7af68e2e-6fc8-4d34-afb3-f53d2b3d8c13                                                              |
|                   | From port must be an integer.                                                                         |
|                   |                                                                                                       |
| flavor            | 6                                                                                                     |
| id                | 7af68e2e-6fc8-4d34-afb3-f53d2b3d8c13                                                                  |
| name              | mysql                                                                                                 |
| status            | ERROR                                                                                                 |
| updated           | 2016-12-09T10:16:06                                                                                   |
| volume            | 5                                                                                                     |
+-------------------+-------------------------------------------------------------------------------------------------------+
2016-12-09 19:29:01 -0500 commented question Trove Error creating security group for instance

but trove_security_groups_support to false ,trove create is Error

2016-12-09 19:21:28 -0500 answered a question Trove Error creating security group for instance(Newton)
        The trove show mysql_instance_1   output:
+-------------------+--------------------------------------+
[root@control ~]# trove show mysql_instance_1
+-------------------+-------------------------------------------------------------------------------------------------------+
| Property          | Value                                                                                                 |
+-------------------+-------------------------------------------------------------------------------------------------------+
| created           | 2016-12-13T06:40:40                                                                                   |
| datastore         | mysql                                                                                                 |
| datastore_version | mysql-5.6                                                                                             |
| fault             | Error creating security group for instance:                                                           |
|                   |     c4fee7b7-26bc-4146-af8b-04608b32a47c                                                              |
|                   | From port must be an integer.                                                                         |
| fault_date        | 2016-12-13T06:40:41                                                                                   |
| fault_details     | Server type: taskmanager                                                                              |
|                   | Traceback (most recent call last):                                                                    |
|                   |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 386, in create_instance  |
|                   |     locality)                                                                                         |
|                   |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 366, in _create_instance |
|                   |     scheduler_hints)                                                                                  |
|                   |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 393, in create_instance   |
|                   |     self._log_and_raise(e, msg, err)                                                                  |
|                   |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 861, in _log_and_raise    |
|                   |     raise TroveError(message=full_message)                                                            |
|                   | TroveError:                                                                                           |
|                   |     Error creating security group for instance:                                                       |
|                   |     c4fee7b7-26bc-4146-af8b-04608b32a47c                                                              |
|                   | From port must be an integer.                                                                         |
|                   |                                                                                                       |
| flavor            | 6                                                                                                     |
| id                | c4fee7b7-26bc-4146-af8b-04608b32a47c                                                                  |
| name              | mysql_instance_1                                                                                      |
| status            | ERROR                                                                                                 |
| updated           | 2016-12-13T06:40:41                                                                                   |
| volume            | 5                                                                                                     |
+-------------------+-------------------------------------------------------------------------------------------------------+
[root@control ~]#
2016-12-09 19:21:27 -0500 asked a question Trove Error creating security group for instance(Newton)
**when i create database use "trove create mysql_instance_1 6 --size 5 --databases myDB     --users userA:password --datastore_version mysql-5.6     --datastore mysql"**

    my trove version is
     [root@control ~]# trove --version
    2.5.0

    my contronl  version is Centos7.2  

trove-taskmanager.log







    2016-12-09 22:22:38.473 5294 DEBUG oslo_messaging._drivers.amqpdriver [-] received message with unique_id: 6daa191c8e364f49a3e465206a4cd312 __call__ /usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py:196
    2016-12-09 22:22:38.509 5294 DEBUG trove.instance.models [-] Instance 9aa9c3a3-22e8-4225-8e7d-2626459abf99 service status is new. load_instance /usr/lib/python2.7/site-packages/trove/instance/models.py:526
    2016-12-09 22:22:38.517 5294 INFO trove.taskmanager.models [-] Creating instance 9aa9c3a3-22e8-4225-8e7d-2626459abf99.
    2016-12-09 22:22:38.647 5294 DEBUG trove.db.models [-] Saving SecurityGroup: {u'updated': datetime.datetime(2016, 12, 9, 14, 22, 38, 647132), '_sa_instance_state': <sqlalchemy.orm.state.InstanceState object at 0x40c3bd0>, u'description': u'Security Group for 9aa9c3a3-22e8-4225-8e7d-2626459abf99', u'created': datetime.datetime(2016, 12, 9, 14, 22, 38, 646961), u'deleted': False, u'tenant_id': u'3855a36ccf2e48be90bd63ac187977a9', 'errors': {}, u'user': u'0aeab4d682344a6b9a8c4ec17d6111db', u'id': u'3699be8b-3347-4f5c-8444-29fec138d21b', u'name': u'SecGroup_9aa9c3a3-22e8-4225-8e7d-2626459abf99'} save /usr/lib/python2.7/site-packages/trove/db/models.py:62
    2016-12-09 22:22:38.667 5294 DEBUG trove.db.models [-] Saving SecurityGroupInstanceAssociation: {u'updated': datetime.datetime(2016, 12, 9, 14, 22, 38, 667258), '_sa_instance_state': <sqlalchemy.orm.state.InstanceState object at 0x40c31d0>, u'created': datetime.datetime(2016, 12, 9, 14, 22, 38, 667141), u'deleted': False, u'security_group_id': u'3699be8b-3347-4f5c-8444-29fec138d21b', u'instance_id': u'9aa9c3a3-22e8-4225-8e7d-2626459abf99', 'errors': {}, u'id': 'b27591a1-6bd9-488c-a32a-d2996111b9d0'} save /usr/lib/python2.7/site-packages/trove/db/models.py:62
    2016-12-09 22:22:38.881 5294 DEBUG trove.db.models [-] Saving SecurityGroupRule: {u'updated': datetime.datetime(2016, 12, 9, 14, 22, 38, 881423), '_sa_instance_state': <sqlalchemy.orm.state.InstanceState object at 0x428ead0>, u'protocol': 'tcp', 'errors': {}, u'created': datetime.datetime(2016, 12, 9, 14, 22, 38, 881243), u'deleted': False, u'to_port': 3306, u'from_port': 3306, u'cidr': '0.0.0.0/0', u'group_id': u'3699be8b-3347-4f5c-8444-29fec138d21b', u'id': u'9a57180a-2813-4051-b6be-ec3a2f2662e2'} save /usr/lib/python2.7/site-packages/trove/db/models.py:62
    2016-12-09 22:22:38.901 5294 ERROR trove.taskmanager.models [-] Error creating security group for instance: 9aa9c3a3-22e8-4225-8e7d-2626459abf99
    From port must be an integer.
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 388, in create_instance
        security_groups = self._create_secgroup(datastore_manager)
      File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 1015, in _create_secgroup
        self._create_rules(security_group, None, 'icmp')
      File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 1036, in _create_rules
        cidr, self.context)
      File "/usr/lib/python2.7/site-packages/trove/extensions/security_group/models.py", line 151, in create_sec_group_rule
        context=context)
      File "/usr/lib/python2.7/site-packages/trove/extensions/security_group/models.py", line 243, in add_rule
        sec_group_id, protocol, from_port, to_port, cidr)
      File "/usr/lib/python2.7/site-packages/trove/network/nova.py", line 68, in add_security_group_rule
        cidr=cidr)
      File "/usr/lib/python2.7/site-packages/novaclient/api_versions.py", line 443, in wrapped
        return decorated(*a, **k)
      File "/usr/lib/python2.7/site-packages/novaclient/api_versions.py", line 402, in substitution ...
(more)