Hi, On Thu, Mar 18, 2010 at 03:40:54PM +0100, Alain.Moulle wrote: > HI > As Florian explained, start-delay does not solve the problem > so I workarounded it in another way, but what do you call > exactly "my RA" ? I can't see any link to resource-agent ... ?
? > I can admit that virsh should not return until the vm is really > started and reachable, but I can't change "virsh" ... Well, virsh is fine, that's how xm create works too. What you can do is add a monitor script (monitor_scripts) as, I think, Florian already suggested. The RA is going to wait then for all the monitor scripts to succeed. Perhaps something like "ssh xen0 true" would do. Thanks, Dejan > Thanks > Alain Moullé > > Hi > > > > > > I think you're right Florian. So I've workarounded the problem > > > because I can't see where to fix it as long as "virsh start vmname" > > > returns > > > immediately wheres the vm is only "starting" but not yet "started" (not > > > yet reachable by ping) . > > > Any idea to fix this properly would be fine. > > > > > > BTW : is the parameter start-delay for op monitor really deprecated ? > > > where could I have the list of parameters deprecated or always valuable ? > > > > > > Not so much deprecated as discouraged. > > If you need it, it usually means there is something wrong with your RA. > > > > > >> > > >> > Thanks > >> > Alain Moull? > >> > >>> >> IOW: start spins on monitor, and if you have a monitor script defined > >>> >> it > >>> >> must not return 0 unless the virtual domain is effectively up. > >>> >> > >>> >> However, status (but not monitor) returns 0 if the domain has been > >>> >> started as per virsh's perspective, disregarding the monitor script > >>> >> (that's why it's called a _monitor_ script, not a status script). > >>> >> > >>> >> Andrew: how is the RA broken here? Since probe uses monitor, the > >>> >> monitor > >>> >> script does apply to a probe. So that can't be the problem I suppose. > >>> >> But here Alain is talking about a status operation -- where does that > >>> >> come from, and how is it relevant? > >>> >> > >>> >> I'd be happy to fix this if and where it's broken, I just fail to see > >>> >> the breakage here. All insights appreciated. > >>> >> > >>> >> Cheers, > >>> >> Florian > >>> > >> > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
