<div dir="ltr">I solve this problem by two steps:<div><br></div><div>1 modify /etc/init/ceilometer-agent-central.conf</div><div>exec start-stop-daemon --start --chuid ceilometer --exec /usr/local/bin/ceilometer-agent-central -- --config-file=/etc/ceilometer/ceilometer.conf</div>

<div style>2 add some lines to /etc/ceilometer/ceilometer.conf:</div><div style><div>os-username=ceilometer</div><div>os-password=nsfocus</div><div>os-tenant-name=service</div><div>os-auth-url=<a href="http://controller:5000/v2.0">http://controller:5000/v2.0</a></div>

</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 1:36 PM, Liu Wenmao <span dir="ltr"><<a href="mailto:marvelliu@gmail.com" target="_blank">marvelliu@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all:<div><br></div><div>I have just install ceilometer grizzly github version, but fail to start ceilometer-agent-central service. I think it is due to that I didn't set up the keystone user/password like other projects. but I follow the instructions(<a href="http://docs.openstack.org/developer/ceilometer/install/manual.html#configuring-keystone-to-work-with-api" target="_blank">http://docs.openstack.org/developer/ceilometer/install/manual.html#configuring-keystone-to-work-with-api</a>) but it does not include the ceilometer configuration.</div>


<div><br></div><div><div># service ceilometer-agent-central start</div><div>ceilometer-agent-central start/running, process 5679</div><div><br></div><div><div># cat /etc/init/ceilometer-agent-central.conf </div>
<div>description "ceilometer-agent-compute"</div><div>author "Chuck Short <<a href="mailto:zulcss@ubuntu.com" target="_blank">zulcss@ubuntu.com</a>>"</div><div><br></div><div>start on runlevel [2345]</div>

<div>stop on runlelvel [!2345]</div>
<div><br></div><div>chdir /var/run</div><div><br></div><div>pre-start script</div><div><span style="white-space:pre-wrap">    </span>mkdir -p /var/run/ceilometer</div><div><span style="white-space:pre-wrap">     </span>chown ceilometer:ceilometer /var/run/ceilometer</div>


<div><br></div><div><span style="white-space:pre-wrap"> </span>mkdir -p /var/lock/ceilometer</div><div><span style="white-space:pre-wrap">    </span>chown ceilometer:ceilometer /var/lock/ceilometer</div><div>end script</div>


<div><br></div><div>exec start-stop-daemon --start --chuid ceilometer --exec /usr/local/bin/ceilometer-agent-central</div></div><div><br></div><div><br></div><div>/var/log/ceilometer/ceilometer-agent-central.log<br></div>


<div><div>2013-04-10 13:01:39    ERROR [ceilometer.openstack.common.loopingcall] in looping call </div><div>Traceback (most recent call last):</div><div>  File "/usr/local/lib/python2.7/dist-packages/ceilometer-2013.1-py2.7.egg/ceilometer/openstack/common/loopingcall.py", line 67, in _inner</div>


<div>    self.f(*self.args, **<a href="http://self.kw" target="_blank">self.kw</a>)</div><div>  File "/usr/local/lib/python2.7/dist-packages/ceilometer-2013.1-py2.7.egg/ceilometer/central/manager.py", line 76, in interval_task</div>


<div>    auth_url=cfg.CONF.os_auth_url)</div><div>  File "/usr/local/lib/python2.7/dist-packages/python_keystoneclient-0.2.3.1.g3a3e254-py2.7.egg/keystoneclient/v2_0/client.py", line 134, in __init__</div><div>

    self.authenticate()</div>
<div>  File "/usr/local/lib/python2.7/dist-packages/python_keystoneclient-0.2.3.1.g3a3e254-py2.7.egg/keystoneclient/client.py", line 205, in authenticate</div><div>    token)</div><div>  File "/usr/local/lib/python2.7/dist-packages/python_keystoneclient-0.2.3.1.g3a3e254-py2.7.egg/keystoneclient/v2_0/client.py", line 174, in get_raw_token_from_identity_service    token=token)</div>


<div>  File "/usr/local/lib/python2.7/dist-packages/python_keystoneclient-0.2.3.1.g3a3e254-py2.7.egg/keystoneclient/v2_0/client.py", line 202, in _base_authN</div><div>    resp, body = self.request(url, 'POST', body=params, headers=headers)</div>


<div>  File "/usr/local/lib/python2.7/dist-packages/python_keystoneclient-0.2.3.1.g3a3e254-py2.7.egg/keystoneclient/client.py", line 366, in request</div><div>    raise exceptions.from_response(resp, resp.text)</div>


<div>Unauthorized: Unable to communicate with identity service: {"error": {"message": "Invalid user / password", "code": 401, "title": "Not Authorized"}}. (HTTP 401)</div>


<div>2013-04-10 13:01:39    ERROR [ceilometer.openstack.common.threadgroup] Unable to communicate with identity service: {"error": {"message": "Invalid user / password", "code": 401, "title": "Not Authorized"}}. (HTTP 401)</div>


</div></div></div>
</blockquote></div><br></div>