发起问题

Hasina 的档案 - activity

2014-09-16 23:43:01 -0500 获得奖牌  学生 (source)
2014-04-09 19:58:53 -0500 获得奖牌  著名问题 (source)
2014-04-02 08:17:33 -0500 获得奖牌  著名问题 (source)
2014-03-30 23:57:16 -0500 获得奖牌  热门的问题 (source)
2014-03-20 01:42:44 -0500 回答问题 Need HElp: Ceilometer on Compute node not working: HTTPConnectionPool(host='127.0.0.1', port=8774):
2014-03-19 23:40:50.034 22517 ERROR ceilometer.nova_client [-] HTTPConnectionPool(host='127.0.0.1', port=8774): Max retries exceeded with url: /v2/ffa2f3c863ce4282b4e530147abf5b14/servers/detail?host=NESTED-CN&all_tenants=True (Caused by <class 'socket.error'>: [Errno 111] ECONNREFUSED)
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client Traceback (most recent call last):
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client   File "/usr/lib/python2.7/dist-packages/ceilometer/nova_client.py", line 35, in with_logging
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client     return func(*args, **kwargs)
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client   File "/usr/lib/python2.7/dist-packages/ceilometer/nova_client.py", line 106, in instance_get_all_by_host
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client     search_opts=search_opts))
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client   File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 404, in list
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client     return self._list("/servers%s%s" % (detail, query_string), "servers")
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client   File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 61, in _list
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client     _resp, body = self.api.client.get(url)
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 232, in get
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client     return self._cs_request(url, 'GET', **kwargs)
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 216, in _cs_request
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client     **kwargs)
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 198, in _time_request
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client     resp, body = self.request(url, method, **kwargs)
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 169, in request
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client     **kwargs)
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 335, in request
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client     resp = self.send(prep, **send_kwargs)
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 438, in send
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client     r = adapter.send(request, **kwargs)
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client   File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 327, in send
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client     raise ConnectionError(e)
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8774): Max retries exceeded with url: /v2/ffa2f3c863ce4282b4e530147abf5b14/servers/detail?host=NESTED-CN&all_tenants=True (Caused by <class 'socket.error'>: [Errno 111] ECONNREFUSED)
2014-03-19 23:40:50.034 22517 TRACE ceilometer.nova_client
2014-03-19 23:40:50.036 22517 ERROR ceilometer ...
(more)
2014-03-20 01:25:39 -0500 获得奖牌  热门的问题 (source)
2014-03-19 08:16:52 -0500 获得奖牌  受欢迎的问题 (source)
2014-03-19 05:30:46 -0500 获得奖牌  编辑 (source)
2014-03-19 04:15:41 -0500 获得奖牌  受欢迎的问题 (source)
2014-03-17 05:43:22 -0500 回答问题 Problem on setting up Ceilometer

you need to ensure you give the rabbit_host ip and the pwd correctly in ur ceilometer.conf file on your controller node.

2014-03-17 05:36:23 -0500 问了问题 Need HElp: Ceilometer on Compute node not working: HTTPConnectionPool(host='127.0.0.1', port=8774):

My nova.conf file in compute node:

[DEFAULT]
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lib/nova/tmp
verbose=True
api_paste_config=/etc/nova/api-paste.ini
scheduler_driver=nova.scheduler.multi.MultiScheduler
rabbit_host=100.120.0.91
nova_url=http://100.120.0.91:8774/v1.1/
sql_connection=mysql://nova:procurve@100.120.0.91/nova
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
enabled_apis=ec2,osapi_compute,metadata
rpc_backend=nova.rpc.impl_kombu
instance_usage_audit = True
instance_usage_audit_period = hour
notify_on_state_change = vm_and_task_state
notification_driver = nova.openstack.common.notifier.rpc_notifier
notification_driver = ceilometer.compute.nova_notifier

# Auth
use_deprecated_auth=false
auth_strategy=keystone

# Imaging service
glance_api_servers=100.120.0.91:9292
image_service=nova.image.glance.GlanceImageService

# Vnc configuration
novnc_enabled=true
novncproxy_base_url=http://100.120.0.91:6080/vnc_auto.html
novncproxy_port=6080
vncserver_proxyclient_address=127.0.0.1
vncserver_listen=0.0.0.0

# Network settings
network_api_class=nova.network.neutronv2.api.API
neutron_url=http://100.120.0.91:9696
neutron_auth_strategy=keystone
neutron_admin_tenant_name=service
neutron_admin_username=neutron
neutron_admin_password=procurve
neutron_admin_auth_url=http://100.120.0.91:35357/v2.0
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
#libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtOpenVswitchDriver
#linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
#If you want Quantum + Nova Security groups
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=neutron
#If you want Nova Security groups only, comment the two lines above and uncomment line -1-.
#firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver

#Metadata
service_quantum_metadata_proxy = True
quantum_metadata_proxy_shared_secret = helloOpenStack

# Compute #
libvirt_type=kvm
compute_driver=libvirt.LibvirtDriver

# Cinder #
volume_api_class=nova.volume.cinder.API
osapi_volume_listen_port=5900

/etc/ceilometer/ceilometer.conf file  on compute node:-
-----------------------------------------------------------------
You must set the secret key that you defined previously. The Telemetry service nodes share this key as a shared secret:

Edit the /etc/ceilometer/ceilometer.conf file and change these lines in the [DEFAULT] section. Replace ADMIN_TOKEN with the admin token that you created previously:

Select Text
1
2
3
4
5
...
[publisher_rpc]
# Secret value for signing metering messages (string value)
metering_secret = <token is been given same as on controller node ceilometer.conf file>
...
Configure the RabbitMQ access:

Edit the /etc/ceilometer/ceilometer.conf file and update the [DEFAULT] section:

Select Text
1
2
3
[DEFAULT]
rabbit_host = 100.120.0.91
rabbit_password = guest
Add the Identity service credentials:

Edit the /etc/ceilometer/ceilometer.conf file and change the [keystone_authtoken] section:

Select Text
1
2
3
4
5
6
7
[keystone_authtoken]
auth_host = 100.120.0.91
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = ceilometer
admin_password = procurve
Also set the [service_credentials] section:

Select Text
1
2
3
4
5
[service_credentials]
os_auth_url = http://100.120.0.91:5000/v2.0
os_username = ceilometer
os_tenant_name = service
os_password = procurve
Configure the log directory.

Edit the /etc/ceilometer/ceilometer.conf file and update the [DEFAULT] section:

Select Text
1
2
[DEFAULT]
log_dir = /var/log/ceilometer
Restart the service with its new settings:

Additional information on controller node-

root@ubuntu-OSC:~# keystone endpoint-list
     +----------------------------------+-----------+----------------------------------------+----------------------------------------+----------------------------------------+----------------------------------+
|                id                |   region  |               publicurl                |              internalurl               |                adminurl                |            service_id            |
+----------------------------------+-----------+----------------------------------------+----------------------------------------+----------------------------------------+----------------------------------+
| 205e67f970b24794abcc583bf36f8505 | RegionOne | http://127.0.0.1:8774/v2/$(tenant_id)s | http://127.0.0.1:8774/v2/$(tenant_id)s | http://127.0.0.1:8774/v2/$(tenant_id)s | d9c3c7b005f94ab88085882aab09d606 |
| 3d82c44b566640f2979d55ca8086273b | regionOne |         http://127.0.0.1 ...
(more)
2014-03-17 05:32:28 -0500 回答问题 Issue with ceilometer authentication

The issue is resolved after i created the mongo db with 127.0.0.1 and also replacing all the ip address wtih 127.0.0.1 in ceilometer.conf file. and created the service end points with 127.0.0.1 it worked. thanks for the reply.

2014-03-14 10:29:02 -0500 问了问题 Issue with ceilometer authentication

I have configured the ceilometer configuration on controller as per the below document. I tried to restart the services but the ceilometer-api service is in stopped state as user is not getting authenticated with keystone.

Configured the mongodb with the ceilometer database.I tried creating service endpoints for the Ceilometer. Unfortunately I am still facing the issue. Would request if anyone can help me to unblock this issue. It would be really helpful.

http://docs.openstack.org/havana/inst...

I configured the auth_host providing both 127.0.0.1 as well as ip address of the controller.

root@ubuntu-OSC:~# ceilometer meter-list
Error communicating with http://100.120.0.91:8777 [Errno 111] Connection refused

Error message seeing on ceilometer-api.log:-

Log error message:-

2014-03-13 08:10:49.223 25493 INFO keystoneclient.middleware.auth_token [-] Starting keystone auth_token middleware
2014-03-13 08:10:49.224 25493 INFO keystoneclient.middleware.auth_token [-] Using /tmp/keystone-signing-xXgcWq as cache directory for signing certificate
2014-03-13 08:10:49.264 25493 CRITICAL ceilometer [-] command SON([('authenticate', 1), ('user', u'ceilometer'), ('nonce', u'a8ae3d14dd4e26d6'), ('key', u'672175228da91fc0867bbc3877456ebc')]) failed: auth fails

root@ubuntu-OSC:~# mongo --host 100.120.0.91
MongoDB shell version: 2.4.6
connecting to: 100.120.0.91:27017/test
>
>
>
> show databases;
local   0.078125GB
test    (empty)
>

>
>
> db.addUser( { user: "ceilometer",
...               pwd: "procurve",
...               roles: [ "readWrite", "dbAdmin" ]
...             } )
{
        "user" : "ceilometer",
        "pwd" : "f3d467485108a73402451b348a1ae854",
        "roles" : [
                "readWrite",
                "dbAdmin"
        ],
        "_id" : ObjectId("53220e347af4a99b142f78b5")
}

Please let me know how to overcome this issue. in /etc/hosts/ i have 127.0.0.1 localhost and 100.120.0.91 ubuntu-OSK as my hostnames.

root@ubuntu-OSC:~# keystone endpoint-list
+----------------------------------+-----------+----------------------------------------+----------------------------------------+----------------------------------------+----------------------------------+
|                id                |   region  |               publicurl                |              internalurl               |                adminurl                |            service_id            |
+----------------------------------+-----------+----------------------------------------+----------------------------------------+----------------------------------------+----------------------------------+
| 205e67f970b24794abcc583bf36f8505 | RegionOne | http://127.0.0.1:8774/v2/$(tenant_id)s | http://127.0.0.1:8774/v2/$(tenant_id)s | http://127.0.0.1:8774/v2/$(tenant_id)s | d9c3c7b005f94ab88085882aab09d606 |
| 3ed9eb95349146469be8ffc78e469d49 | RegionOne |         http://127.0.0.1:9292/         |         http://127.0.0.1:9292/         |         http://127.0.0.1:9292/         | 236d4824a70b4fe1a05d5572917f1258 |
| 586e164bbf0f46f0b4bc497643c25afb | RegionOne |  http://127.0.0.1:8773/services/Cloud  |  http://127.0.0.1:8773/services/Cloud  |  http://127.0.0.1:8773/services/Admin  | beb05b627f514126909f83a535506c44 |
| 9387a0400317494583b4473c621fd301 | RegionOne |       http://127.0.0.1:5000/v2.0       |       http://127.0.0.1:5000/v2.0       |      http://127.0.0.1:35357/v2.0       | 45dd4baabd5b49a6add05b462bc81b44 |
| cad49a6466464c42a498bca295beddc3 | RegionOne | http://127.0.0.1:8776/v1/$(tenant_id)s | http://127.0.0.1:8776/v1/$(tenant_id)s | http://127.0.0.1:8776/v1/$(tenant_id)s | 46f5d4c1d72f4243a6741acb299b6770 |
| ce1d59faa015437d881a1fd2e4bf0bdc | regionOne |        http://:8777        |        http://100.120.0.91:8777        |        http://100.120.0.91:8777        | 9ee294aed3ab4791bbf45ea6eec4772f |
| e661acb362ad4231aa4f42d390538af7 | RegionOne |         http://127.0.0.1:9696/         |         http://127.0.0.1:9696/         |         http://127.0.0.1:9696/         | d69a6e2e977248d4852a3ba2cc7ded40 |
+----------------------------------+-----------+----------------------------------------+----------------------------------------+----------------------------------------+----------------------------------+

root@ubuntu-OSC:~# keystone service-list
+----------------------------------+------------+----------+------------------------------+
|                id                |    name    |   type   |         description          |
+----------------------------------+------------+----------+------------------------------+
| 9ee294aed3ab4791bbf45ea6eec4772f | ceilometer | metering | Ceilometer Telemetry Service |
| 46f5d4c1d72f4243a6741acb299b6770 |   cinder   |  volume  |   OpenStack Volume Service   |
| beb05b627f514126909f83a535506c44 |    ec2     |   ec2    |    OpenStack EC2 service     |
| 236d4824a70b4fe1a05d5572917f1258 |   glance   |  image   |   OpenStack Image Service    |
| 45dd4baabd5b49a6add05b462bc81b44 |  keystone  | identity |      OpenStack Identity      |
| d69a6e2e977248d4852a3ba2cc7ded40 |  neutron   | network  | OpenStack Networking service |
| d9c3c7b005f94ab88085882aab09d606 |    nova    | compute  |  OpenStack Compute Service   |
+----------------------------------+------------+----------+------------------------------+

ceilometer.conf file :

[DEFAULT]

#
# Options defined in ceilometer.middleware
#

# Exchanges name to ...
(more)
2014-03-14 10:15:11 -0500 回答问题 ceilometer is not up

even i am facing the same issue:-