<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 11, 2013 at 11:34 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Thanks, the ceilometer seems to lack some default options in configuration files and the official guidance. (<a href="http://docs.openstack.org/developer/ceilometer/configuration.html" target="_blank">http://docs.openstack.org/developer/ceilometer/configuration.html</a>)</div>
</blockquote><div><br></div><div style>I have opened a bug to address the missing details in the configuration documentation. <a href="https://bugs.launchpad.net/ceilometer/+bug/1168375">https://bugs.launchpad.net/ceilometer/+bug/1168375</a></div>
<div style><br>Doug</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>

<br></div><div>So maybe it is not ready for users yet?</div></div><div class=""><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 8:28 PM, Doug Hellmann <span dir="ltr"><<a href="mailto:doug.hellmann@dreamhost.com" target="_blank">doug.hellmann@dreamhost.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">
<div><div>On Wed, Apr 10, 2013 at 6:10 AM, 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Actually this is not over.<div><br></div><div>
The main reason of service failure is that central/manager.py and service.py use different vairables:</div>


<div><br></div><div>central/manager.py<br>

</div><div><div> 70     def interval_task(self, task):</div><div> 71         self.keystone = ksclient.Client(</div><div> 72             username=cfg.CONF.<b>os_username</b>,</div><div> 73             password=cfg.CONF.os_password,</div>





<div> 74             tenant_id=cfg.CONF.os_tenant_id,</div><div> 75             tenant_name=cfg.CONF.os_tenant_name,</div><div> 76             auth_url=cfg.CONF.os_auth_url)</div><div><br></div><div><div>44 CLI_OPTIONS = [</div>





<div> 45     cfg.StrOpt('<b>os-username</b>',</div><div> 46                default=os.environ.get('OS_USERNAME', 'ceilometer'),</div><div> 47                help='Username to use for openstack service access'),</div>





<div> 48     cfg.StrOpt('os-password',</div><div> 49                default=os.environ.get('OS_PASSWORD', 'admin'),</div><div> 50                help='Password to use for openstack service access'),</div>





<div> 51     cfg.StrOpt('os-tenant-id',</div><div> 52                default=os.environ.get('OS_TENANT_ID', ''),</div><div> 53                help='Tenant ID to use for openstack service access'),</div>





<div> 54     cfg.StrOpt('os-tenant-name',</div><div> 55                default=os.environ.get('OS_TENANT_NAME', 'admin'),</div><div> 56                help='Tenant name to use for openstack service access'),</div>





<div> 57     cfg.StrOpt('os_auth_url',</div><div> 58                default=os.environ.get('OS_AUTH_URL',</div><div> 59                                       '<a href="http://localhost:5000/v2.0'" target="_blank">http://localhost:5000/v2.0'</a>),</div>





</div><div><br></div><div>So after I change all "-" to "_" and modify all options in /etc/ceilometer/ceilometer.conf, the service starts OK.</div></div></div></blockquote><div><br></div></div></div><div>


The thing that fixed it was changing "-" to "_" in your configuration file. The options library allows option names to have "-" in them so they look nice as command line switches, but the option name uses the "_".</div>



<div><br></div><div>Doug</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">
<div><div><br></div></div></div><div>
<div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 2:02 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<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>2 add some lines to /etc/ceilometer/ceilometer.conf:</div><div><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" target="_blank">http://controller:5000/v2.0</a></div>






</div><div><br></div></div><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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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>
</div></div></blockquote></div><br></div>
</div></div><br></div></div>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>