Re: [ClusterLabs] Cluster does not start resources

2022-08-24 Thread Lentes, Bernd

- On 24 Aug, 2022, at 16:26, kwenning kwenn...@redhat.com wrote:

>>
>> if I get Ulrich right - and my fading memory of when I really used crmsh the
>> last time is telling me the same thing ...
>>

I get the impression many people prefer pcs to crm. Is there any reason for 
that ?
And can i use pcs on Suse ? If yes, how ?

Bernd

smime.p7s
Description: S/MIME Cryptographic Signature
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Cluster does not start resources

2022-08-24 Thread Lentes, Bernd

- On 24 Aug, 2022, at 16:26, kwenning kwenn...@redhat.com wrote:



> 
> Guess the resources running now are those you tried to enable before
> while they were globally stopped 
> 

No. First i set stop-all-resources to false. Then SOME resources started.
Then i tried several times to start some VirtualDomains using "crm resource 
start"
which didn't succeed. Some time later i tried it again and it succeeded ...

Bernd

smime.p7s
Description: S/MIME Cryptographic Signature
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Cluster does not start resources

2022-08-24 Thread Klaus Wenninger
On Wed, Aug 24, 2022 at 4:24 PM Klaus Wenninger  wrote:
>
> On Wed, Aug 24, 2022 at 2:40 PM Lentes, Bernd
>  wrote:
> >
> >
> > - On 24 Aug, 2022, at 07:21, Reid Wahl nw...@redhat.com wrote:
> >
> >
> > > As a result, your command might start the virtual machines, but
> > > Pacemaker will still show that the resources are "Stopped (disabled)".
> > > To fix that, you'll need to enable the resources.
> >
> > How do i achieve that ?
>
> crm resource start ...
>
> if I get Ulrich right - and my fading memory of when I really used crmsh the
> last time is telling me the same thing ...
>

Guess the resources running now are those you tried to enable before
while they were globally stopped 

> Klaus
> >
> > Bernd___
> > Manage your subscription:
> > https://lists.clusterlabs.org/mailman/listinfo/users
> >
> > ClusterLabs home: https://www.clusterlabs.org/

___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Cluster does not start resources

2022-08-24 Thread Klaus Wenninger
On Wed, Aug 24, 2022 at 2:40 PM Lentes, Bernd
 wrote:
>
>
> - On 24 Aug, 2022, at 07:21, Reid Wahl nw...@redhat.com wrote:
>
>
> > As a result, your command might start the virtual machines, but
> > Pacemaker will still show that the resources are "Stopped (disabled)".
> > To fix that, you'll need to enable the resources.
>
> How do i achieve that ?

crm resource start ...

if I get Ulrich right - and my fading memory of when I really used crmsh the
last time is telling me the same thing ...

Klaus
>
> Bernd___
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/

___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Antw: [EXT] Re: Cluster does not start resources

2022-08-24 Thread Lentes, Bernd


- On 24 Aug, 2022, at 16:01, Ulrich Windl ulrich.wi...@rz.uni-regensburg.de 
wrote:


>> Now with "crm resource start" all resources started. I didn't change
>> anything !?!
> 
> I guess that command set the roles of all resources to "started", so you 
> changed
> something ;-)

I did it before and nothing happened ...

Bernd

smime.p7s
Description: S/MIME Cryptographic Signature
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


[ClusterLabs] Antw: [EXT] Re: Cluster does not start resources

2022-08-24 Thread Ulrich Windl
>>> "Lentes, Bernd"  schrieb am 24.08.2022 
>>> um
15:14 in Nachricht
<2097315299.169939002.1661346840678.javamail.zim...@helmholtz-muenchen.de>:
> Hi,
> 
> 
> Now with "crm resource start" all resources started. I didn't change 
> anything !?!

I guess that command set the roles of all resources to "started", so you 
changed something ;-)

> 
> Bernd




___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Cluster does not start resources

2022-08-24 Thread Lentes, Bernd
Hi,


Now with "crm resource start" all resources started. I didn't change anything 
!?!

Bernd

smime.p7s
Description: S/MIME Cryptographic Signature
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Cluster does not start resources

2022-08-24 Thread Lentes, Bernd

- On 24 Aug, 2022, at 07:21, Reid Wahl nw...@redhat.com wrote:


> As a result, your command might start the virtual machines, but
> Pacemaker will still show that the resources are "Stopped (disabled)".
> To fix that, you'll need to enable the resources.

How do i achieve that ?

Bernd

smime.p7s
Description: S/MIME Cryptographic Signature
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Antw: [EXT] Re: Cluster does not start resources

2022-08-24 Thread Lentes, Bernd


- On 24 Aug, 2022, at 08:17, Reid Wahl nw...@redhat.com wrote:
> I'm not sure off the top of my head what (if anything) gets sent to
> the logs. Do note that Bernd is using pacemaker v1, which hasn't been
> receiving new features for quite a while.

An Update is recommended ?

Bernd

smime.p7s
Description: S/MIME Cryptographic Signature
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Antw: [EXT] Re: Cluster does not start resources

2022-08-24 Thread Lentes, Bernd


- On 24 Aug, 2022, at 08:10, Ulrich Windl ulrich.wi...@rz.uni-regensburg.de 
wrote:


> 
> Bernd,
> 
> that command would simply set the role to "started", but I guess it already 
> is.
> Obviously to be effective stop-all-resources must habve precedence. You see?
> 
> Regards,
> Ulrich

Yes, but i set stop-all-resources to false.
Some resources started afterwards, some didn't.
And the target-role for all "disabled" VirtualDomains is still stopped.

Bernd

smime.p7s
Description: S/MIME Cryptographic Signature
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Cluster does not start resources

2022-08-24 Thread Lentes, Bernd


> 
> There is no resource with the name "virtual_domain" in your list. All
> non-active resources in your list are either disabled or unmanaged.
> Without actual commands that list resource state before "crm resource
> start", "crm resource start" itself and once more resource state after
> this command any answer will be just a wild guess.

"crm resource start virtual_domain" is just an example, virtual_domain is a 
placeholder for the name of the VM.

Bernd

smime.p7s
Description: S/MIME Cryptographic Signature
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Cluster does not start resources

2022-08-24 Thread Lentes, Bernd


- On 24 Aug, 2022, at 07:22, Reid Wahl nw...@redhat.com wrote:


> Are the VMs running after your start command?

No.

Bernd

smime.p7s
Description: S/MIME Cryptographic Signature
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Antw: [EXT] Re: Cluster does not start resources

2022-08-24 Thread Reid Wahl
On Tue, Aug 23, 2022 at 11:08 PM Ulrich Windl
 wrote:
>
> >>> Reid Wahl  schrieb am 24.08.2022 um 05:33 in Nachricht
> :
> > On Tue, Aug 23, 2022 at 7:10 PM Lentes, Bernd
> >  wrote:
>
> ...
> > The stop‑all‑resources cluster property is set to true. Is that
> intentional?
> ...
>
> Independent of the problem, I suggest that a better log message is created.
> Maybe like this:
> "(all resources stopped due to stop-all-resources being true)"
>
> It could repeat every cluster check interval ;-)

crm_mon already does this, as of two years ago:
https://github.com/ClusterLabs/pacemaker/commit/daa36877197bb9e4bf819d29e166f8729eb7351a#diff-ee3cc5319dc16418a09d00d115d8ecfc17e0176cc4480b4cf8f96e2583a48335

I'm not sure off the top of my head what (if anything) gets sent to
the logs. Do note that Bernd is using pacemaker v1, which hasn't been
receiving new features for quite a while.

>
> Regards,
> Ulrich
>
>
> ___
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/



-- 
Regards,

Reid Wahl (He/Him)
Senior Software Engineer, Red Hat
RHEL High Availability - Pacemaker

___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


[ClusterLabs] Antw: [EXT] Re: Cluster does not start resources

2022-08-24 Thread Ulrich Windl
>>> "Lentes, Bernd"  schrieb am 24.08.2022 
>>> um
07:13 in Nachricht
<718962332.169073979.1661318038326.javamail.zim...@helmholtz-muenchen.de>:

> 
> - On 24 Aug, 2022, at 07:03, arvidjaar arvidj...@gmail.com wrote:
> 
>> On 24.08.2022 07:34, Lentes, Bernd wrote:
>>> 
>>> 
>>> - On 24 Aug, 2022, at 05:33, Reid Wahl nw...@redhat.com wrote:
>>> 
>>> 
 The stop-all-resources cluster property is set to true. Is that 
 intentional?
>>> OMG. Thanks Reid !
>>> 
>>> But unfortunately not all virtual domains are running:
>>> 
>> 
>> what exactly is not clear in this output? All these resources are
>> explicitly disabled (target-role=stopped) and so will not be started.
>> 
> That's clear. But a manual "crm resource start virtual_domain" should start 
> them,
> but it doesn't.

Bernd,

that command would simply set the role to "started", but I guess it already is. 
Obviously to be effective stop-all-resources must habve precedence. You see?

Regards,
Ulrich


> 
> Bernd




___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


[ClusterLabs] Antw: [EXT] Re: Cluster does not start resources

2022-08-24 Thread Ulrich Windl
>>> Reid Wahl  schrieb am 24.08.2022 um 05:33 in Nachricht
:
> On Tue, Aug 23, 2022 at 7:10 PM Lentes, Bernd
>  wrote:

...
> The stop‑all‑resources cluster property is set to true. Is that
intentional?
...

Independent of the problem, I suggest that a better log message is created.
Maybe like this:
"(all resources stopped due to stop-all-resources being true)"

It could repeat every cluster check interval ;-)

Regards,
Ulrich


___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/