# HAE auto create cli-ban location rule cause problem

**URL:** <https://forums.suse.com/t/hae-auto-create-cli-ban-location-rule-cause-problem/28961>\
**Category:** SLES High Availability Extension\
**Created:** [November 13, 2016, 5:18pm UTC](https://forums.suse.com/t/hae-auto-create-cli-ban-location-rule-cause-problem/28961 "2016-11-13T17:18:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lywwing](https://avatars.discourse-cdn.com/v4/letter/l/c4cdca/32.png) [@lywwing](https://forums.suse.com/u/lywwing)\
**Post date:** [November 13, 2016, 5:18pm UTC](https://forums.suse.com/t/hae-auto-create-cli-ban-location-rule-cause-problem/28961/1 "2016-11-13T17:18:23Z")

</div>

hi Guys,

I am testing SLES 12 SP1 with HAE, I manually migrate resources between node, and notice that there have auto create "cli-ban- location constraints in cluster, it cause unable to manually manual migrate resource, I need to delete delete it.

Is it working as design? if no, can disable auto create “cli-ban” constraints?

![](https://postimg.org/image/z6b3pyi9p/)

Regards  
Thanks…KEN

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [November 14, 2016, 4:19am UTC](https://forums.suse.com/t/hae-auto-create-cli-ban-location-rule-cause-problem/28961/2 "2016-11-14T04:19:35Z")

</div>

After you forcefully migrate from one node to another you need to “clean”  
things up in order to remove the constraint that caused the cluster to  
move the resource. The cluster software doesn’t just move the resource  
casually, but does so by inserting that constraint, so once done cleaning  
will remove it and you can then have failover work as expected.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

**Author:** ![lywwing](https://avatars.discourse-cdn.com/v4/letter/l/c4cdca/32.png) [@lywwing](https://forums.suse.com/u/lywwing)\
**Post date:** [November 14, 2016, 5:04am UTC](https://forums.suse.com/t/hae-auto-create-cli-ban-location-rule-cause-problem/28961/3 "2016-11-14T05:04:25Z")

</div>

hi ab,  
Thanks for your reply.

Does it just click the button “Cleanup” in the resource group will clean up the constraints as shown as below?

![](https://s18.postimg.org/cvgzmnrft/Screenshot_11_14_2016_10_53_20_AM.jpg)

Or it need click the “Edit” and remove the individual “cli-ban” constraint?

I tested only test delete the constraint under the “Edit” link in order to delete the “cli-ban” constraint.

Regards  
Thanks…KEN

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [November 14, 2016, 3:03pm UTC](https://forums.suse.com/t/hae-auto-create-cli-ban-location-rule-cause-problem/28961/4 "2016-11-14T15:03:57Z")

</div>

“Cleanup” is meant to do this for you.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

**Author:** ![rcorrea](https://avatars.discourse-cdn.com/v4/letter/r/58f4c7/32.png) [@rcorrea](https://forums.suse.com/u/rcorrea)\
**Post date:** [July 23, 2017, 4:52am UTC](https://forums.suse.com/t/hae-auto-create-cli-ban-location-rule-cause-problem/28961/5 "2017-07-23T04:52:25Z")

</div>

Script to clear resources stopped

# / Bin / bash

# Referencia: Guía de despliegue de SuSE.

# Un recurso se reiniciará automáticamente si falla, pero cada error aumenta el contador de

# Errores de recurso. Por protección se ha establecido un umbral de migración para el recurso,

# El nodo dejará de expulsar el recurso cuando el número de errores llegue al umbral de migración.

# Para limpiar el recurso permitir que el este la experiencia de nuevo en el nodo, restablezca el

# Contador de errores. Puede limpiar recursos individuales utilizando la interfaz Web de Hawk.

# Este ubica todos los recursos detenidos y procede a limpiarlos.

# Reference: SuSE Deployment Guide.

# A resource will automatically restart if it fails, but each error increases the

# Resource Errors. For protection a migration threshold for the resource has been established,

# The node will stop expelling the resource when the number of errors reaches the migration threshold.

# To clear the resource allow the user to experience the node again, reset the

# Error counter. You can clean individual resources using the Hawk Web interface.

# This locates all detained resources and proceeds to clean them.

crm\_resource -o | awk ‘/\tStopped |Timed Out/ { print $1 }’ | xargs -r -n1 crm resource cleanup
