[ClusterLabs] VirtualDomain - started but... not really

Ken Gaillot kgaillot at redhat.com
Thu Dec 16 09:55:27 EST 2021


On Sat, 2021-12-11 at 13:49 +0000, lejeczek via Users wrote:
> 
> On 10/12/2021 21:17, Ken Gaillot wrote:
> > On Fri, 2021-12-10 at 16:33 +0000, lejeczek via Users wrote:
> > > Hi guys.
> > > 
> > > I quite often.. well, to frequently in my mind, see a VM
> > > which cluster says:
> > > -> $ pcs resource status | grep -v disabled
> > > ...
> > >     * c8kubermaster2    (ocf::heartbeat:VirtualDomain):
> > >    Started dzien
> > > ..
> > > 
> > > but that is false, also cluster itself confirms it:
> > > -> $ pcs resource debug-monitor c8kubermaster2
> > > crm_resource: Error performing operation: Not running
> > > Operation force-check for c8kubermaster2
> > > (ocf:heartbeat:VirtualDomain) returned: 'not running' (7)
> > > 
> > > What is the issue here, might be & how best to troubleshoot it?
> > Is there a recurring monitor configured for the resource?
> I have already shown the config for there resource. Is there 
> not?

Ah somehow I overlooked that section ... no there isn't. There's a
timeout set for probes (monitor with interval=0s). Add a monitor with a
positive interval.

> > > -> $ pcs resource config c8kubermaster2
> > >    Resource: c8kubermaster2 (class=ocf provider=heartbeat
> > > type=VirtualDomain)
> > >     Attributes:
> > > config=/var/lib/pacemaker/conf.d/c8kubermaster2.xml
> > > hypervisor=qemu:///system migration_transport=ssh
> > >     Meta Attrs: allow-migrate=true failure-timeout=30s
> > >     Operations: migrate_from interval=0s timeout=180s
> > > (c8kubermaster2-migrate_from-interval-0s)
> > >                 migrate_to interval=0s timeout=180s
> > > (c8kubermaster2-migrate_to-interval-0s)
> > >                 monitor interval=30s
> > > (c8kubermaster2-monitor-interval-30s)
> > >                 start interval=0s timeout=90s
> > > (c8kubermaster2-start-interval-0s)
> > >                 stop interval=0s timeout=90s
> > > (c8kubermaster2-stop-interval-0s)
> > > 
> > > many thanks, L.
> 
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
> 
> ClusterLabs home: https://www.clusterlabs.org/
> 
-- 
Ken Gaillot <kgaillot at redhat.com>



More information about the Users mailing list