<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 29, 2013 at 6:42 PM, Riki Arslan <span dir="ltr"><<a href="mailto:riki.arslan@cloudturk.net" target="_blank">riki.arslan@cloudturk.net</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 thought it might help if mentioned little more:<div>
<br></div><div>/etc/ceilometer.conf file has the following parameters added:</div><div><br></div><div><div>os_username=ceilometer</div>
<div>os_password=$PASSWORD</div><div>os_tenant_name=service</div><div>os_auth_url=<a href="http://localhost:5000/v2.0/" target="_blank">http://localhost:5000/v2.0/</a></div><div><br></div><div>I checked CLI_OPTIONS in service.py and it looks allright:</div>

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

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

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

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

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

<div>               help='Auth URL to use for openstack service access'),</div><div>] </div><div><br></div><div>But still, according to the error I am getting, it can not parse _parse_cli_opts:<br>
</div><div class="im"><div><br></div><div>Traceback (most recent call last):</div><div>  File "/usr/local/bin/ceilometer-api", line 5, in <module></div><div>    pkg_resources.run_script('ceilometer==0.0.0', 'ceilometer-api')</div>

<div>  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script</div><div>    self.require(requires)[0].run_script(script_name, ns)</div><div>  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script</div>

<div>    execfile(script_filename, namespace, namespace)</div><div>  File "/usr/local/lib/python2.7/dist-packages/ceilometer-0.0.0-py2.7.egg/EGG-INFO/scripts/ceilometer-api", line 38, in <module></div><div>

    service.prepare_service()</div><div>  File "/usr/local/lib/python2.7/dist-packages/ceilometer-0.0.0-py2.7.egg/ceilometer/service.py", line 80, in prepare_service</div><div>    cfg.CONF(argv[1:], project='ceilometer')</div>

<div>  File "/usr/local/lib/python2.7/dist-packages/ceilometer-0.0.0-py2.7.egg/ceilometer/openstack/common/cfg.py", line 1024, in __call__</div><div>    self._cli_values, leftovers = self._parse_cli_opts(args)</div>

<div>  File "/usr/local/lib/python2.7/dist-packages/ceilometer-0.0.0-py2.7.egg/ceilometer/openstack/common/cfg.py", line 1527, in _parse_cli_opts</div><div>    opt._add_to_cli(self._oparser, group)</div><div>  File "/usr/local/lib/python2.7/dist-packages/oslo.config-1.1.0-py2.7.egg/oslo/config/cfg.py", line 591, in _add_to_cli</div>

<div>    container = self._get_argparse_container(parser, group)</div><div>  File "/usr/local/lib/python2.7/dist-packages/oslo.config-1.1.0-py2.7.egg/oslo/config/cfg.py", line 633, in _get_argparse_container</div>

<div>    return group._get_argparse_group(parser)</div><div>AttributeError: 'OptGroup' object has no attribute '_get_argparse_group' </div><div><br></div></div><div>I am really puzzled as <span style="font-family:arial,sans-serif;font-size:13px">Collector, Computer Agent and Central Agent are working fine and Api Server is not.</span></div>
</div></div></blockquote><div><br></div><div style>I don't see a 2013.1~g2.tar.gz tarball listed under <a href="http://tarballs.openstack.org/ceilometer/">http://tarballs.openstack.org/ceilometer/</a>. Where did you get the source you are working with?</div>
<div style><br></div><div style>You may have a bad snapshot, since it is trying to combine ceilometer/openstack/common/cfg.py with oslo.config.</div><div style><br></div><div style>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>
</div></div><div class=""><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 30, 2013 at 12:56 AM, Riki Arslan <span dir="ltr"><<a href="mailto:riki.arslan@cloudturk.net" target="_blank">riki.arslan@cloudturk.net</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 Doug,<div><br></div><div>I have followed the document. The only thing that is different from the docs is that I did not copy the yaml file (it does not exist in tarball):</div>

<div><br></div><div>
cp etc/ceilometer/*.yaml /etc/ceilometer<br></div><div><br></div><div>However, the tarball is the g2 version, which is the last version that was supposed to work with Folsom.</div><div><br></div><div>
It seems like Collector, Computer Agent and Central Agent are working. I only can't get the Api Server working.</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Apr 26, 2013 at 6:19 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">It sounds like you haven't completed the installation instructions. I don't know if the manual steps listed at <a href="http://docs.openstack.org/developer/ceilometer/install/manual.html" target="_blank">http://docs.openstack.org/developer/ceilometer/install/manual.html</a> work with the tarball, but they should be close.<span><font color="#888888"><div>



<br></div><div>Doug</div></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 3:46 AM, Riki Arslan <span dir="ltr"><<a href="mailto:riki.arslan@cloudturk.net" target="_blank">riki.arslan@cloudturk.net</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"><div>The command line I am using is: "sudo /usr/local/bin/ceilometer-api".</div>
<div><br></div>


<div>However, the ceilometer.ini file is missing. The version of Ceilometer I am using is "<span style="font-size:13px;font-family:arial,sans-serif">ceilometer-2013.1~g2.</span><span style="font-size:13px;font-family:arial,sans-serif">tar.gz". And, </span><span style="font-family:arial,sans-serif;font-size:13px">I only have the following configuration files:</span></div>




<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">/etc/ceilometer/ceilometer.conf</font><br></div><div><span style="font-family:arial,sans-serif">/etc/ceilometer/</span><font face="arial, sans-serif">policy.json<br>




</font></div><div><span style="font-family:arial,sans-serif">/etc/ceilometer/</span><font face="arial, sans-serif">sources.json</font><span style="font-family:arial,sans-serif"><br></span></div><div><font face="arial, sans-serif"><br>




</font></div><div><font face="arial, sans-serif">Thanks.</font></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 1:10 AM, 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>On Thu, Apr 25, 2013 at 8:37 AM, Riki Arslan <span dir="ltr"><<a href="mailto:riki.arslan@cloudturk.net" target="_blank">riki.arslan@cloudturk.net</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 thought Ceilometer did not set a dependency on any DB drivers. I have installed the driver Mongo using "sudo pip install pymongo".</div>





</blockquote><div><br></div></div><div>Ceilometer does use a database. You have to install the right driver. If you want Mongo, then it sounds like you've done the right thing. It's possible mako is also being used somewhere else, I'm not sure.</div>




<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>Regarding the current problem; the traceback is as follows:</div>

<div><br></div><div><div>Traceback (most recent call last):</div><div>  File "/usr/local/bin/ceilometer-api", line 5, in <module></div><div>    pkg_resources.run_script('ceilometer==0.0.0', 'ceilometer-api')</div>






<div>  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script</div><div>    self.require(requires)[0].run_script(script_name, ns)</div><div>  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script</div>






<div>    execfile(script_filename, namespace, namespace)</div><div>  File "/usr/local/lib/python2.7/dist-packages/ceilometer-0.0.0-py2.7.egg/EGG-INFO/scripts/ceilometer-api", line 38, in <module></div><div>






    service.prepare_service()</div><div>  File "/usr/local/lib/python2.7/dist-packages/ceilometer-0.0.0-py2.7.egg/ceilometer/service.py", line 80, in prepare_service</div><div>    cfg.CONF(argv[1:], project='ceilometer')</div>






<div>  File "/usr/local/lib/python2.7/dist-packages/ceilometer-0.0.0-py2.7.egg/ceilometer/openstack/common/cfg.py", line 1024, in __call__</div><div>    self._cli_values, leftovers = self._parse_cli_opts(args)</div>






<div>  File "/usr/local/lib/python2.7/dist-packages/ceilometer-0.0.0-py2.7.egg/ceilometer/openstack/common/cfg.py", line 1527, in _parse_cli_opts</div><div>    opt._add_to_cli(self._oparser, group)</div><div>  File "/usr/local/lib/python2.7/dist-packages/oslo.config-1.1.0-py2.7.egg/oslo/config/cfg.py", line 591, in _add_to_cli</div>






<div>    container = self._get_argparse_container(parser, group)</div><div>  File "/usr/local/lib/python2.7/dist-packages/oslo.config-1.1.0-py2.7.egg/oslo/config/cfg.py", line 633, in _get_argparse_container</div>






<div>    return group._get_argparse_group(parser)</div><div><div>AttributeError: 'OptGroup' object has no attribute '_get_argparse_group'</div></div></div></div></blockquote><div><br></div></div><div>
That is coming from oslo.config. Can you post the ceilometer.ini file and command line you are using to start the service?</div><span><font color="#888888"><div><br></div><div>Doug</div></font></span><div>
<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><div><div><br></div></div><div>Thank for the help.</div></div></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Apr 25, 2013 at 3:27 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><br><br>On Thursday, April 25, 2013, Riki Arslan  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"><div>I have encountered other problems too.<br>






</div><div><br></div><div>First of all, when starting the Central Agent I have had Glance endpoint 404 not found errors. As, Julien pointed out (<a href="https://bugs.launchpad.net/ceilometer/+bug/1083104" target="_blank">https://bugs.launchpad.net/ceilometer/+bug/1083104</a>), I have removed the "v1" from the Glance URLs and it worked well.</div>








<div><br></div><div>Secondly, when starting the API Server, I have received "ImportError: No module named mako.template" error. Thus, I have installed python-mako module (sudo apt-get install python-mako), and the error disappeared.</div>







</div></blockquote><div><br></div></div><div>Mako is a dependency do sqlalchemy, I think. Are you using the sqlalchemy storage driver for ceilometer?</div><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>Now, I am receiving another error within the API Server. The error is as follows:</div><div>"AttributeError: 'OptGroup' object has no attribute '_get_argparse_group'"</div></div>







</blockquote><div><br></div></div><div>That sounds like a problem with the config module. Was there a full traceback? If not, try adding the --debug option when starting the service. </div><span><font color="#888888"><div>






<br></div><div>Doug<span></span></div></font></span><div><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>Do you think it has something to do with mod_wsgi (<a href="http://docs.openstack.org/developer/ceilometer/install/mod_wsgi.html" target="_blank">http://docs.openstack.org/developer/ceilometer/install/mod_wsgi.html</a>)?</div>








<div><br></div><div>I would appreciate your help on this.</div><div><br></div><div>Thanks.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 25, 2013 at 12:27 AM, Riki Arslan <span dir="ltr"><<a>riki.arslan@cloudturk.net</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 Doug,<div><br></div><div>Your email helped me. It was actually glanceclient version 0.5.1 that was causing the conflict. After updating it, the conflict error disappeared.</div>








<div><br></div>
<div>I hope this would help someone else too.</div><div><br></div><div>Thanks again.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Wed, Apr 24, 2013 at 11:49 PM, Doug Hellmann <span dir="ltr"><<a>doug.hellmann@dreamhost.com</a>></span> wrote:<br>









</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"><br><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div>On Wed, Apr 24, 2013 at 9:17 AM, Riki Arslan <span dir="ltr"><<a>riki.arslan@cloudturk.net</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"><div style="font-family:arial,sans-serif;font-size:13px">
Hi,</div><div style="font-family:arial,sans-serif;font-size:13px">









<br></div><div style="font-family:arial,sans-serif;font-size:13px">We are trying to install "ceilometer-2013.1~g2.tar.gz" which presumably has Folsom compatibility.<br>
 <br>The requirment is "python-keystoneclient>=0.2,<0.3" and we have the version 2.3.<br><br>But, still, setup quits with the following message:<br><br>"error: Installed distribution python-keystoneclient 0.2.3 conflicts with requirement python-keystoneclient>=0.1.2,<0.2"<br>











<br>The funny thing is, although pip-requires states "python-keystoneclient>=0.2,<0.3", the error message complains that it is not "python-keystoneclient>=0.1.2,<0.2".<br></div></div></blockquote>










<div><br></div></div></div><div>Something else you have installed already wants an older version of the keystone client, so the installation of ceilometer is not able to upgrade to the version we need.</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 dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">
<br>
Your help is greatly appreciated.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thank you in advance.</div></div>
<br></div>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a>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></div></div><br></div>
</blockquote></div><br></div>
</blockquote>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>