Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Dev

Re: [Openais] An OCF agent for LXC (Linux Containers) - Linux-HA-Dev Digest, Vol 90, Issue 8

 

 

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded


darrent at akurit

May 5, 2011, 5:26 AM

Post #1 of 5 (329 views)
Permalink
Re: [Openais] An OCF agent for LXC (Linux Containers) - Linux-HA-Dev Digest, Vol 90, Issue 8

Florian/Team

Comments in-line...



On Thu, 2011-05-05 at 05:47 -0600,
linux-ha-dev-request [at] lists wrote:

> Darren,
>
> can you please subscribe to the list as a normal subscriber rather
> than
> to just the digest, so we can keep this discussion in one thread?


Ok, done... The digest mode was "a good idea at the time"...


>
> On 2011-05-05 04:47, Darren Thompson wrote:
> > Florian/Team
> >
> > There was an error in the GIT-Hub version that was causing my
> re-base
> > attempts to fail, so I was forced to try to bring my "last known
> good"
> > version to the same configuration (mostly successful).
> >
> > I have since found the error in the GIT-Hub version (the
> initialisation
> > section was wrong, the meta-data error was a 'red herring') so have
> been
> > found and resolved so I have done an actual re-base now based on the
> > GIT-Hub version.
> >
> > Changes:
> >
> > 1. Corrected error in utilisation causing ocf to fail in HB_GUI.
>
> That is not an error; the Github version is correct. The path to the
> ocf-shellfuncs library was recently changed upstream; your installed
> version is apparently still using the old path. For the Github version
> to work on your system, you will have to apply the attached patch
> after
> you check out.


If I had any idea how to use GIT and apply patches, this whole
conversation would never be happening ;-)

Did I mention that I'm not normally a "coder/developer"?


> Note that normally people would be building the whole resource-agents
> package from a git checkout and use _that_ on their test system, but
> you're not using git, so that option is out for you. Have I mentioned
> that starting to use git would be a good option?

Did I ever claim to be "normal"...

Mind you, if I told my partner... "normally people would be building the
whole resource-agents package from a git checkout and use _that_ on
their test system"... she would laugh her head off... I suppose it
depends on your definition of "normality"... ;-)

Using git would probably be a good option, but "my" requirement is for
this to work under "SLES11SP1 with the HA option pack", none of which is
consistent with "building the whole resource-agent package", although I
do intend to raise a SR with Attachmate/Novell/SuSE for them to come
in-line with these standards; as to support their environment on clients
sites would be a PITA if they vary too much from the agreed standards.


>
> > 2. Added "information" to stop section, to provide more feedback
> on
> > container shutdown/stop (and to assist with future development of
> > "containers using alternate 'init' systems").
>
> Applied and pushed to my lxc branch.


Thank you. Yes I can see that in the on-line version.


>
> Can you confirm that the current version is working for you and passes
> ocf-tester on your system?


What is an ocf-tester???

I have been testing this "the hard way" by actually creating and running
the agents against actual LXC containers in a running cluster... If
there is a simple way of streamlining this testing I'd love to hear more
about it. (Did I mention that I'm not normally a "coder/developer"? -
Yes I know that's getting repetitive ;-) )

But, back on topic... I can confirm that this agent is working correctly
in a "live fire" environment.

Darren
Attachments: face-wink.png (0.89 KB)


florian.haas at linbit

May 5, 2011, 6:07 AM

Post #2 of 5 (329 views)
Permalink
Re: [Openais] An OCF agent for LXC (Linux Containers) - Linux-HA-Dev Digest, Vol 90, Issue 8 [In reply to]

On 2011-05-05 14:26, Darren Thompson wrote:
>> Can you confirm that the current version is working for you and passes
>> ocf-tester on your system?
>
> What is an ocf-tester???

http://www.linux-ha.org/doc/dev-guides/_testing_installing_and_packaging_resource_agents.html

> I have been testing this "the hard way" by actually creating and running
> the agents against actual LXC containers in a running cluster... If
> there is a simple way of streamlining this testing I'd love to hear more
> about it. (Did I mention that I'm not normally a "coder/developer"? -
> Yes I know that's getting repetitive ;-) )
>
> But, back on topic... I can confirm that this agent is working correctly
> in a "live fire" environment.

That's good to know. ocf-tester doesn't shoot blanks either (it operates
on an actual incarnation of the resource), but it might run some tests
that you manually do not, so it's always a wise idea to use it.

Cheers,
Florian
Attachments: signature.asc (0.26 KB)


florian.haas at linbit

May 11, 2011, 7:49 AM

Post #3 of 5 (314 views)
Permalink
Re: [Openais] An OCF agent for LXC (Linux Containers) - Linux-HA-Dev Digest, Vol 90, Issue 8 [In reply to]

Darren,

On 2011-05-05 15:07, Florian Haas wrote:
> On 2011-05-05 14:26, Darren Thompson wrote:
>>> Can you confirm that the current version is working for you and passes
>>> ocf-tester on your system?
>>
>> What is an ocf-tester???
>
> http://www.linux-ha.org/doc/dev-guides/_testing_installing_and_packaging_resource_agents.html
>
>> I have been testing this "the hard way" by actually creating and running
>> the agents against actual LXC containers in a running cluster... If
>> there is a simple way of streamlining this testing I'd love to hear more
>> about it. (Did I mention that I'm not normally a "coder/developer"? -
>> Yes I know that's getting repetitive ;-) )
>>
>> But, back on topic... I can confirm that this agent is working correctly
>> in a "live fire" environment.
>
> That's good to know. ocf-tester doesn't shoot blanks either (it operates
> on an actual incarnation of the resource), but it might run some tests
> that you manually do not, so it's always a wise idea to use it.

Any news regarding running ocf-tester on your lxc agent?

Cheers,
Florian
Attachments: signature.asc (0.26 KB)


darrent at akurit

May 11, 2011, 2:52 PM

Post #4 of 5 (298 views)
Permalink
Re: [Openais] An OCF agent for LXC (Linux Containers) - Linux-HA-Dev Digest, Vol 90, Issue 8 [In reply to]

Florian

Could you send me an "actual file" so I can use that as a template.

I still do not have my head around what the actual requirements are.

Darren

On Wed, 2011-05-11 at 16:49 +0200, Florian Haas wrote:

> Darren,
>
> On 2011-05-05 15:07, Florian Haas wrote:
> > On 2011-05-05 14:26, Darren Thompson wrote:
> >>> Can you confirm that the current version is working for you and passes
> >>> ocf-tester on your system?
> >>
> >> What is an ocf-tester???
> >
> > http://www.linux-ha.org/doc/dev-guides/_testing_installing_and_packaging_resource_agents.html
> >
> >> I have been testing this "the hard way" by actually creating and running
> >> the agents against actual LXC containers in a running cluster... If
> >> there is a simple way of streamlining this testing I'd love to hear more
> >> about it. (Did I mention that I'm not normally a "coder/developer"? -
> >> Yes I know that's getting repetitive ;-) )
> >>
> >> But, back on topic... I can confirm that this agent is working correctly
> >> in a "live fire" environment.
> >
> > That's good to know. ocf-tester doesn't shoot blanks either (it operates
> > on an actual incarnation of the resource), but it might run some tests
> > that you manually do not, so it's always a wise idea to use it.
>
> Any news regarding running ocf-tester on your lxc agent?
>
> Cheers,
> Florian
>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/


dejanmm at fastmail

May 23, 2011, 4:36 AM

Post #5 of 5 (262 views)
Permalink
Re: [Openais] An OCF agent for LXC (Linux Containers) - Linux-HA-Dev Digest, Vol 90, Issue 8 [In reply to]

Hi Darren,

On Thu, May 12, 2011 at 07:22:46AM +0930, Darren Thompson wrote:
> Florian
>
> Could you send me an "actual file" so I can use that as a template.

There is no file you need with ocf-tester. Just do:

# ocf-tester -n myrsc -o p1=v1 -o p2=v2 ... /.../lxc

Replace pn with parameter names and vn with values for which the
RA is supposed to be able to start the resource (in this case an
lxc container).

Thanks,

Dejan

> I still do not have my head around what the actual requirements are.
>
> Darren
>
> On Wed, 2011-05-11 at 16:49 +0200, Florian Haas wrote:
>
> > Darren,
> >
> > On 2011-05-05 15:07, Florian Haas wrote:
> > > On 2011-05-05 14:26, Darren Thompson wrote:
> > >>> Can you confirm that the current version is working for you and passes
> > >>> ocf-tester on your system?
> > >>
> > >> What is an ocf-tester???
> > >
> > > http://www.linux-ha.org/doc/dev-guides/_testing_installing_and_packaging_resource_agents.html
> > >
> > >> I have been testing this "the hard way" by actually creating and running
> > >> the agents against actual LXC containers in a running cluster... If
> > >> there is a simple way of streamlining this testing I'd love to hear more
> > >> about it. (Did I mention that I'm not normally a "coder/developer"? -
> > >> Yes I know that's getting repetitive ;-) )
> > >>
> > >> But, back on topic... I can confirm that this agent is working correctly
> > >> in a "live fire" environment.
> > >
> > > That's good to know. ocf-tester doesn't shoot blanks either (it operates
> > > on an actual incarnation of the resource), but it might run some tests
> > > that you manually do not, so it's always a wise idea to use it.
> >
> > Any news regarding running ocf-tester on your lxc agent?
> >
> > Cheers,
> > Florian
> >
> > _______________________________________________________
> > Linux-HA-Dev: Linux-HA-Dev [at] lists
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > Home Page: http://linux-ha.org/

> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.