Ask Your Question

chansonzhang's profile - activity

2018-03-12 06:32:07 -0600 received badge  Famous Question (source)
2017-08-08 23:29:38 -0600 received badge  Popular Question (source)
2017-08-08 23:29:38 -0600 received badge  Famous Question (source)
2017-08-08 23:29:38 -0600 received badge  Notable Question (source)
2017-03-13 10:41:51 -0600 received badge  Popular Question (source)
2017-03-13 10:41:51 -0600 received badge  Famous Question (source)
2017-03-13 10:41:51 -0600 received badge  Notable Question (source)
2017-02-24 01:15:57 -0600 received badge  Famous Question (source)
2017-02-17 01:23:38 -0600 received badge  Critic (source)
2017-02-15 19:09:14 -0600 commented question Messages received from OpenStack after Live Migration

hi,have you solved this question?

2017-02-10 09:14:06 -0600 received badge  Notable Question (source)
2017-01-09 09:48:23 -0600 received badge  Notable Question (source)
2016-12-30 09:59:36 -0600 received badge  Nice Answer (source)
2016-12-06 02:10:31 -0600 asked a question aodh-api: aodh-api: error: unrecognized arguments: --logfile /var/log/aodh/api.log

When I try to run systemctl start openstack-aodh-api.service it gave no error on the console.

But the systemctl status openstack-aodh-api.service show the following status:

    ● openstack-aodh-api.service - OpenStack Alarm API service
   Loaded: loaded (/usr/lib/systemd/system/openstack-aodh-api.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Tue 2016-12-06 16:01:04 CST; 6min ago
  Process: 14809 ExecStart=/usr/bin/aodh-api --logfile /var/log/aodh/api.log (code=exited, status=2)
 Main PID: 14809 (code=exited, status=2)

Dec 06 16:01:04 controller systemd[1]: Unit openstack-aodh-api.service entered failed state.
Dec 06 16:01:04 controller systemd[1]: openstack-aodh-api.service failed.
Dec 06 16:01:04 controller systemd[1]: openstack-aodh-api.service holdoff time over, scheduling restart.
Dec 06 16:01:04 controller systemd[1]: start request repeated too quickly for openstack-aodh-api.service
Dec 06 16:01:04 controller systemd[1]: Failed to start OpenStack Alarm API service.
Dec 06 16:01:04 controller systemd[1]: Unit openstack-aodh-api.service entered failed state.
Dec 06 16:01:04 controller systemd[1]: openstack-aodh-api.service failed.

And, I found a error line in /var/log/messages:

Dec  6 14:59:33 controller aodh-api: aodh-api: error: unrecognized arguments: --logfile /var/log/aodh/api.log

Does anyone know what't the matter. Thank you first!

2016-11-30 02:17:55 -0600 received badge  Popular Question (source)
2016-11-25 08:46:21 -0600 received badge  Famous Question (source)
2016-11-23 12:36:06 -0600 received badge  Popular Question (source)
2016-11-18 02:00:02 -0600 received badge  Popular Question (source)
2016-11-18 01:56:45 -0600 marked best answer ceilometer statistics -m image.download -p 60 show nothing

I followed this guide, when I run ceilometer meter-listafter glance image-download "cirros-0.3.2-x86_64" > cirros.img,i haven't see image.download and image.serve in the output. And as the title mentioned,ceilometer statistics -m image.download -p 60only show a empty table as follow:

+--------+--------------+------------+-----+-----+-----+-----+-------+----------+----------------+--------------+
| Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |
+--------+--------------+------------+-----+-----+-----+-----+-------+----------+----------------+--------------+
+--------+--------------+------------+-----+-----+-----+-----+-------+----------+----------------+--------------+
2016-11-18 01:56:37 -0600 edited answer ceilometer statistics -m image.download -p 60 show nothing

I finally solved this problem by chance, i add a linecontrol_exchange=glance in the file /etc/glance/glance-api.conf. I find in /etc/ceilometer/ceilometer.conf there is a line like glance_control_exchange= glance, which may be corresponding with the line i added. though the line in ceilometer.conf have been commented, but glance may be its default value.

2016-11-18 01:50:37 -0600 received badge  Scholar (source)
2016-11-18 01:50:16 -0600 commented answer HTTPNotFound (HTTP 404) error when run ceilometer meter-list

hi linyihan, i am not very clear about wheather it is a problem in official ducuments, it you find out, feel free to tell me.

2016-11-17 20:53:40 -0600 asked a question Does wsme support dynamic data type?

In class OldSample(base.Base): there is lines like counter_volume = wsme.wsattr(float, mandatory=True)

I am wondering if I can use a some what dynamic type to replace the specific one such as float, so that I can give any type of value to this attribute?

2016-11-17 02:23:49 -0600 received badge  Self-Learner (source)
2016-11-17 02:20:38 -0600 received badge  Notable Question (source)
2016-11-15 23:12:45 -0600 commented answer How can I get Non-numeric samples with ceilometer?

Thank you for your advice, I will try it.

2016-11-14 19:31:27 -0600 commented answer How can I get Non-numeric samples with ceilometer?

I want to get an event list of each instance with ceilometer. Is there any work around?

2016-11-14 19:31:27 -0600 received badge  Commentator
2016-11-14 19:30:05 -0600 received badge  Popular Question (source)
2016-11-10 01:15:40 -0600 asked a question How to add new meter in ceilomter without reinstall the ceilometer?

All the documents I found till now tell me that when I add a new meter, I should add the entry_points in setup.cfg, rebuild and then run the setup.py to reinstall the ceilometer. However, I am in a production environment where there is no setup.cfg. I am wondering if there is any solution for me to add a meter without this setup.cfg. Or Some other workrounds?

2016-11-10 00:58:48 -0600 asked a question How can I get Non-numeric samples with ceilometer?

As far as I know, ceilometer can only get those samples with numeric values. I am wondering if I can get some non-numeric samples(e.g. a list) with ceilometer?

2016-11-09 21:51:21 -0600 received badge  Popular Question (source)
2016-11-07 04:04:42 -0600 commented answer [newton] ceilometer-api cgi-bin path

I also met the No limit value provided, result set will be limited to 100 error. Have you find the solution?

2016-11-07 03:58:23 -0600 answered a question HTTPNotFound (HTTP 404) error when run ceilometer meter-list

I found an solution in the internet.

mkdir -p /var/www/cgi-bin/ceilometer
cp /usr/lib/python2.7/site-packages/ceilometer/api/app.wsgi /var/www/cgi-bin/ceilometer/app

that solved my problem!

2016-11-07 03:23:42 -0600 asked a question HTTPNotFound (HTTP 404) error when run ceilometer meter-list

Hi, When I run the command ceilometer meter-list,there is an HTTPNotFound (HTTP 404) error. I checked the log entry in /var/log/httpd/ceilometer_error.log, which give an error message below:

Target WSGI script not found or unable to stat: /var/www/cgi-bin/ceilometer

so I checked this directory, it's empty. But all the services include

openstack-ceilometer-notification.service   openstack-ceilometer-central.service   openstack-ceilometer-collector.service httpd.service

are all in runing state.

can anyone tell me what's the matter?

2016-11-06 01:23:15 -0600 answered a question TemplateDoesNotExist error when adding a new dashboard

I may have some thing wrong in my newly added panel, but I can't find out. So I try to copy an entire panel directory from exist admin dashboard, and make some modifications correspondingly. Then all things get ok.

I still wonder what's the real cause of this problem. And if anyone can give me some document about how horizon.loaders.TemplateLoader work, I will appreciate it very much!

2016-11-04 02:53:40 -0600 asked a question TemplateDoesNotExist error when adding a new dashboard

Hello, When I add an dashboard into /usr/share/openstack-dashboard/openstack_dashboard/dashboards add I create configure files in /usr/share/openstack-dashboard/openstack_dashboard/local/enabled The details are appended in the end. But When I restart the httpd.service and memcached.service, and try to open the dashboard in browser, It gave an "TemplateDoesNotExist" error.

TemplateDoesNotExist at /monitor/
monitor/info/index.html
……
Template-loader postmortem

Django tried loading these templates, in this order:
Using loader horizon.themes.ThemeTemplateLoader:
/usr/share/openstack-dashboard/openstack_dashboard/themes/default/templates/monitor/info/index.html (File does not exist)
Using loader django.template.loaders.filesystem.Loader:
/usr/share/openstack-dashboard/openstack_dashboard/templates/monitor/info/index.html (File does not exist)
Using loader django.template.loaders.app_directories.Loader:
/usr/share/openstack-dashboard/openstack_dashboard/templates/monitor/info/index.html (File does not exist)
/usr/lib/python2.7/site-packages/django/contrib/auth/templates/monitor/info/index.html (File does not exist)
/usr/lib/python2.7/site-packages/compressor/templates/monitor/info/index.html (File does not exist)
/usr/lib/python2.7/site-packages/horizon/templates/monitor/info/index.html (File does not exist)
Using loader horizon.loaders.TemplateLoader:

_5000_monitor_settings.py

 # The name of the dashboard to be added to HORIZON['dashboards']. Required.
DASHBOARD = 'monitor'

# If set to True, this dashboard will not be added to the settings.
DISABLED = False


ADD_INSTALLED_APPS = [
    'openstack_dashboard.dashboards.monitor',
]

ADD_ANGULAR_MODULES = [
    'horizon.dashboard.monitor',
]

AUTO_DISCOVER_STATIC_FILES = True

_5140_monitor_info_panel.py

 PANEL = 'monitor_info_panel'
  PANEL_DASHBOARD = 'monitor'
  PANEL_GROUP = 'monitor'
  ADD_PANEL = 'openstack_dashboard.dashboards.monitor.info.panel.Info'
  DEFAULT_PANEL = 'monitor_info_panel'

dashboard.py

#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.

from django.utils.translation import ugettext_lazy as _

from openstack_auth import utils

import horizon

from django.conf import settings


class Monitor(horizon.Dashboard):
    name = _("Monitor")
    slug = "monitor"
    if getattr(settings, 'POLICY_CHECK_FUNCTION', None):
        policy_rules = (('monitor_info_panel', 'admin_required'),)
    else:
        permissions = (tuple(utils.get_admin_permissions()),)
horizon.register(Monitor)

panel.py

from django.utils.translation import ugettext_lazy as _

import horizon


class Info(horizon.Panel):
    name = _("Monitoring Information")
    slug = 'monitor_info_panel'
2016-11-03 22:35:39 -0600 commented question Allow template loading on custom added panel?

hi, Have you solved this problem? I also met the same thing, may you please give me some advice about that? thanks.

2016-11-03 22:35:25 -0600 answered a question Allow template loading on custom added panel?

hi, Have you solved this problem? I also met the same thing, may you please give me some advice about that? thanks.

2016-10-31 13:42:36 -0600 received badge  Self-Learner (source)
2016-10-31 13:42:11 -0600 received badge  Notable Question (source)
2016-10-28 01:19:30 -0600 commented question openstack server list always show ERROR status of instance

thank you! I finally solved this problem, the dashboard unexpectedly gave an unreal stack trace. After a day, when I try to launch the instance again, the dashboard show the real reason, which indicate that the image may be broken. So I changed image, and all get OK.

2016-10-26 22:27:53 -0600 received badge  Popular Question (source)
2016-10-26 09:21:28 -0600 asked a question openstack server list always show ERROR status of instance

Hello, When I follow the guide Launch an instance, the status of the instance is always "ERROR"

  [root@controller ~]# openstack server list
+------------------+------------------+--------+----------+--------------------+
| ID               | Name             | Status | Networks | Image Name         |
+------------------+------------------+--------+----------+--------------------+
| f1d3769c-        | provider-        | ERROR  |          | cirros-0.3.4-x86_6 |
| d7d2-4419-b1bd-  | instance1        |        |          | 4-uec              |
| 2f450b45558d     |                  |        |          |                    |
+------------------+------------------+--------+----------+--------------------+

In Dashboard I saw the following info:

名称
provider-instance1
ID
f1d3769c-d7d2-4419-b1bd-2f450b45558d
状态
错误
可用域
-
已创建
2016年10月26日 14:02
创建后的时间
1 分钟
主机
-
故障

消息
object of type 'int' has no len()
编码
500
详情
File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 484, in build_instances context, request_spec, filter_properties) File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 555, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 370, in wrapped return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 126, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call retry=self.retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 97, in _send timeout=timeout, retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 464, in send retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 450, in _send msg=msg, timeout=timeout, retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1278, in topic_send retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1162, in _ensure_publishing self.ensure(method, retry=retry, error_callback=_error_callback) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 791, in ensure ret, channel = autoretry_method() File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 436, in _ensured return fun(*args, **kwargs) File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 508, in __call__ return fun(*args, channel=channels[0], **kwargs), channels[0] File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 767, in execute_method method() File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1193, in _publish compression=self.kombu_compression) File "/usr/lib/python2.7/site-packages/kombu/messaging.py", line 168, in publish routing_key, mandatory, immediate, exchange, declare) File "/usr/lib/python2.7/site-packages/kombu/messaging.py", line 184, in _publish mandatory=mandatory, immediate=immediate, File "/usr/lib/python2.7/site-packages/amqp/channel.py", line 2130, in basic_publish_confirm self.wait([(60, 80)]) File "/usr/lib/python2.7/site-packages/amqp/channel.py", line 2123, in _basic_publish basic_publish = _basic_publish File "/usr/lib/python2.7/site-packages/amqp/abstract_channel.py", line 56, in _send_method self.channel_id, method_sig, args, content, File "/usr/lib/python2.7/site-packages/amqp/method_framing.py ...
(more)
2016-10-22 10:56:20 -0600 edited question ImportError: No module named keystone.cmd.manage
[root@newton ~]# keystone-manage
Traceback (most recent call last):
  File "/usr/bin/keystone-manage", line 6, in <module>
    from keystone.cmd.manage import main
ImportError: No module named keystone.cmd.manage