<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 12, 2014 at 6:13 PM, Paulo Rômulo <span dir="ltr"><<a href="mailto:p.romuloo@gmail.com" target="_blank">p.romuloo@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"><div><div style="font-family:arial,sans-serif;font-size:13px">My name is Paulo, I'm a software engineer from Brazil and just getting started with OpenStack development using <i>devstack</i>. I'm working on a project which one the goals is to monitor resource usage (at first <i>cpu_util</i>), considering both VM instances and their hosts.</div>
</div></div></blockquote><div><br></div><div>Welcome!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">
<span style="font-size:13px">I'm using Ubuntu server 12.04. I've tried to build </span><i style="font-size:13px">healthnmon</i><span style="font-size:13px"> from git, but the generated Debian package depends on python-novaclient and python-glance, whose </span><i style="font-size:13px">devstack</i><span style="font-size:13px"> already installs. Dpkg doesn't detect the </span><i style="font-size:13px">devstack</i><span style="font-size:13px"> installation of nova and glance, so I'm not sure of how can I enable </span><i style="font-size:13px">healthnmon</i><span style="font-size:13px"> services from </span><i style="font-size:13px">devstack</i><span style="font-size:13px"> (maybe editing </span><i style="font-size:13px">stack.sh</i><span style="font-size:13px"> by hand?).</span></div>
</div></blockquote><div><br></div><div>DevStack builds everything supplied by OpenStack and Stackforge projects from source, so anything extra that you want to use with dependencies on OpenStack projects will also have to be installed in a similar manner.</div>
<div><br></div><div>One approach would be to build a file in devstack/lib to do the install, configure and startup steps for healthmon.  You can use lib/template as a starting point and refer to the other service files for reference.  lib/glance is one of the simpler ones.  You would also need a file in devstack/extras.d to hook into stack.sh, again use one of the existing files as a starting point, they are all very similar.</div>
<div><br></div><div>You will need at a minimum to</div><div>- check out the source repo - install_XXX()</div><div>- do any configuration - configure_XXX()</div><div>- start the service - maybe init_XXX(), definitely start_XXX()</div>
<div>- stop the service - stop_XXX()</div><div><br></div><div>The dispatch file in extras.d should start with >80 so it runs last, that way all of the dependencies that come from the OpenStack repos will be in place already.</div>
<div><br></div><div>You should be able to just drop these files into an existing DevStack checkout and go.</div></div><div class="gmail_extra"><br></div>dt<br clear="all"><div><br></div>-- <br><br>Dean Troyer<br><a href="mailto:dtroyer@gmail.com">dtroyer@gmail.com</a><br>

</div></div>