On 06/09/2011 06:46 AM, Mark McLoughlin wrote:
On Wed, 2011-06-08 at 16:20 -0400, Perry Myers wrote:
> On 06/08/2011 04:16 PM, Mark McLoughlin wrote:
>> On Wed, 2011-06-08 at 14:59 +0200, Andrew Beekhof wrote:
>>> On 06/03/2011 05:57 PM, Perry Myers wrote:
>>>>> <services>
>>>>> <service name="service1">
>>>>> <scripts>
>>>>> <script href="...."></script>
>>>>> <script>
>>>>> <contents><![CDATA[
>>>>> #!/bin/bash
>>>>> ...
>>>>> ]]</contents>
>>>>> </script>
>>>>> </scripts>
>>>>> <parameter type="string"
name="redmine_admin">
>>>>> <value>#{admin_user}</value>
>>>>> </parameter>
>>>>> <return name="http_port"/>
>>>>> </service>
>>>>> </services>
>>>>
>>>> I was talking with asalkeld about this recently, and one of the things
>>>> he mentioned is that the XML for services probably needs to include
>>>> information about 'how to start and stop the service', since
there may
>>>> be different ways to do so.
>>>
>>> Could someone expand on this?
>>
>> Does this not cover it?
>>
>>
https://fedorahosted.org/pipermail/aeolus-devel/2011-June/002071.html
>>
>> Perhaps the confusion here is over the term "service"
>>
>> We're not using that term here to mean an init script
>>
>> It is simply a boot-time configuration script which can do everything
>> from changing some config files, installing some packages, enabling
>> some init services etc.
>>
>> (Yes, I think "service" is a poor name for this)
>
> wow, yes, that is an exceedingly bad name
>
> What are we going to call true services later in this XML?
I think there might be a bit of a disconnect here?
A deployable gives conductor instructions on how to launch multiple VMs.
It contains a number of assemblies, each of which is the instructions on
how to launch an individual VM. Each assembly lists the image used to
launch and a number of boot-time configuration scripts which we're
calling services.
Sure, that is consistent with what I understood (except that I didn't
realize that boot-time config scripts would be called services, since
that name is completely non-intuitive with the function)
A template describes how to build an image. It's like a kickstart
file.
It can list some build-time configuration scripts, which we're also
calling services.
People don't think it'll be problematic to have both run time config
scripts and build time config scripts called the same thing?
i.e. a "service script" (it could be a bash script, puppet
manifest or
chef recipe) is just a configuration script.
So, we might have a matahari service script which, when executed, would
ensure that the matahari packages and its dependencies are install, that
its configured appropriately and started.
makes complete sense
The idea is that you could include the service in the template,
thereby
ensuring that matahari is installed and configured in the image. Or you
could include it in the deployable/assembly, in which case matahari
would be configured at boot-time when the VM is launched.
Does that help clarify things?
Yes, but what we haven't accounted for yet is...
I've got Deployable with 3 Assemblies, and I want to monitor specific
services/daemons for availability (a web server, a database, etc)
The template defines things like "install httpd on this assembly" and
the build/boot 'services' may do things like "configure httpd to run on
the assembly", but nowhere is there a specification for
* what daemons/services to I continually monitor on the running VM?
* what script do I use to monitor that daemon/service?
+ by default might be an init script on Linux, but could also be a
Resource Agent
+ By default would be 'net status' command on Windows, but might need
a different command for certain applications
So it seems like what we need are 3 things:
* build time configuration scripts (called 'services' already)
* post-boot configuration scripts (called 'services' already)
* runtime services that need to be monitored for availability
+ this could be called a service or a resource, so if we want to
differentiate here we could just use the term resource which is
what it's called in most cluster stacks anyhow)
Perry