Re: [ClusterLabs] network fencing - azure arm

2018-11-22 Thread Oyvind Albrigtsen

On 21/11/18 22:23 +0100, thomas.berr...@gmx.de wrote:

Hi,


It's a boolean, so you can set it with e.g. network-fencing=1 or true.


Already tried, but it didn't worked. The resource was unable to start.

Try running it without arguments and feeding them one pr line followed
by Ctrl-D on an empty line to see what's wrong. And add verbose=1 if
it doesnt give enough info.


Regards,
Thomas

-Ursprüngliche Nachricht-
Von: Users  Im Auftrag von Oyvind Albrigtsen
Gesendet: Mittwoch, 21. November 2018 09:07
An: Cluster Labs - All topics related to open-source clustering welcomed

Betreff: Re: [ClusterLabs] network fencing - azure arm

On 21/11/18 07:57 +0100, Thomas Berreis wrote:

Hello,



I have a question about stonith configuration within azure and I hope I'm
using the correct mailing list.



I've installed two virtual machines with pacemaker 1.1.18, pcs 0.9.162 and
fence-agents-azure-arm 4.0.11.86.

Now I'm unable to create a stonith configuration via pcs by using
network-fencing. Without network-fencing everything works fine.



The following command is working as expected (without network-fencing):

# pcs stonith create stonith.node1 fence_azure_arm login=$az_login
passwd=$az_passwd resourceGroup=$az_rg subscriptionId=$az_sid
tenantId=$az_tenant retry_on=0 pcmk_host_list=node1



If I add "network-fencing" to the list, pcs throws an error:

Error: missing value of 'network-fencing' option

It's a boolean, so you can set it with e.g. network-fencing=1 or true.




I don't know what's wrong because network-fencing doesn't require any

value.


# fence_azure_arm -h | grep -A2 network-fencing

  --network-fencing   Use network fencing. See NOTE-section of

  metadata for required Subnet/Network Security

  Group configuration.



Also network-fencing="on", "true" or "0" wasn't working. If I use
fence_azure_arm with network-fencing option manually everything is working
as expected.

Unfortunately this fence agent is very rare documented and I didn't found
any example for network-fencing.



Thanks for your help!



Best Regards,

Thomas B.




___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] network fencing - azure arm

2018-11-21 Thread thomas.berreis
Hi,

> It's a boolean, so you can set it with e.g. network-fencing=1 or true.

Already tried, but it didn't worked. The resource was unable to start.

Regards,
Thomas

-Ursprüngliche Nachricht-
Von: Users  Im Auftrag von Oyvind Albrigtsen
Gesendet: Mittwoch, 21. November 2018 09:07
An: Cluster Labs - All topics related to open-source clustering welcomed

Betreff: Re: [ClusterLabs] network fencing - azure arm

On 21/11/18 07:57 +0100, Thomas Berreis wrote:
>Hello,
>
>
>
>I have a question about stonith configuration within azure and I hope I'm
>using the correct mailing list.
>
>
>
>I've installed two virtual machines with pacemaker 1.1.18, pcs 0.9.162 and
>fence-agents-azure-arm 4.0.11.86.
>
>Now I'm unable to create a stonith configuration via pcs by using
>network-fencing. Without network-fencing everything works fine.
>
>
>
>The following command is working as expected (without network-fencing):
>
># pcs stonith create stonith.node1 fence_azure_arm login=$az_login
>passwd=$az_passwd resourceGroup=$az_rg subscriptionId=$az_sid
>tenantId=$az_tenant retry_on=0 pcmk_host_list=node1
>
>
>
>If I add "network-fencing" to the list, pcs throws an error:
>
>Error: missing value of 'network-fencing' option
It's a boolean, so you can set it with e.g. network-fencing=1 or true.
>
>
>
>I don't know what's wrong because network-fencing doesn't require any
value.
>
># fence_azure_arm -h | grep -A2 network-fencing
>
>   --network-fencing   Use network fencing. See NOTE-section of
>
>   metadata for required Subnet/Network Security
>
>   Group configuration.
>
>
>
>Also network-fencing="on", "true" or "0" wasn't working. If I use
>fence_azure_arm with network-fencing option manually everything is working
>as expected.
>
>Unfortunately this fence agent is very rare documented and I didn't found
>any example for network-fencing.
>
>
>
>Thanks for your help!
>
>
>
>Best Regards,
>
>Thomas B.
>

>___
>Users mailing list: Users@clusterlabs.org
>https://lists.clusterlabs.org/mailman/listinfo/users
>
>Project Home: http://www.clusterlabs.org
>Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>Bugs: http://bugs.clusterlabs.org

___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] network fencing - azure arm

2018-11-21 Thread Oyvind Albrigtsen

On 21/11/18 07:57 +0100, Thomas Berreis wrote:

Hello,



I have a question about stonith configuration within azure and I hope I'm
using the correct mailing list.



I've installed two virtual machines with pacemaker 1.1.18, pcs 0.9.162 and
fence-agents-azure-arm 4.0.11.86.

Now I'm unable to create a stonith configuration via pcs by using
network-fencing. Without network-fencing everything works fine.



The following command is working as expected (without network-fencing):

# pcs stonith create stonith.node1 fence_azure_arm login=$az_login
passwd=$az_passwd resourceGroup=$az_rg subscriptionId=$az_sid
tenantId=$az_tenant retry_on=0 pcmk_host_list=node1



If I add "network-fencing" to the list, pcs throws an error:

Error: missing value of 'network-fencing' option

It's a boolean, so you can set it with e.g. network-fencing=1 or true.




I don't know what's wrong because network-fencing doesn't require any value.

# fence_azure_arm -h | grep -A2 network-fencing

  --network-fencing   Use network fencing. See NOTE-section of

  metadata for required Subnet/Network Security

  Group configuration.



Also network-fencing="on", "true" or "0" wasn't working. If I use
fence_azure_arm with network-fencing option manually everything is working
as expected.

Unfortunately this fence agent is very rare documented and I didn't found
any example for network-fencing.



Thanks for your help!



Best Regards,

Thomas B.




___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


[ClusterLabs] network fencing - azure arm

2018-11-20 Thread Thomas Berreis
Hello,

 

I have a question about stonith configuration within azure and I hope I'm
using the correct mailing list.

 

I've installed two virtual machines with pacemaker 1.1.18, pcs 0.9.162 and
fence-agents-azure-arm 4.0.11.86.

Now I'm unable to create a stonith configuration via pcs by using
network-fencing. Without network-fencing everything works fine.

 

The following command is working as expected (without network-fencing):

# pcs stonith create stonith.node1 fence_azure_arm login=$az_login
passwd=$az_passwd resourceGroup=$az_rg subscriptionId=$az_sid
tenantId=$az_tenant retry_on=0 pcmk_host_list=node1

 

If I add "network-fencing" to the list, pcs throws an error:

Error: missing value of 'network-fencing' option

 

I don't know what's wrong because network-fencing doesn't require any value.

# fence_azure_arm -h | grep -A2 network-fencing

   --network-fencing   Use network fencing. See NOTE-section of

   metadata for required Subnet/Network Security

   Group configuration.

 

Also network-fencing="on", "true" or "0" wasn't working. If I use
fence_azure_arm with network-fencing option manually everything is working
as expected.

Unfortunately this fence agent is very rare documented and I didn't found
any example for network-fencing.

 

Thanks for your help!

 

Best Regards,

Thomas B.

___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org