<p dir="auto" style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">Hey guys! I found some problem with <code>/usr/lib/ocf/resource.d/heartbeat/lxc</code> :<br></p><p dir="auto">OS: Debian 11 (And debian 10)</p><p dir="auto">Kernel: 5.10.0-15-amd64<br></p><p dir="auto">
Env: resource-agents 1:4.7.0-1~bpo10+1, pacemaker 2.0.5-2, corosync 3.1.2-2, lxc 1:4.0.6-2</p><p dir="auto">Just trying to add new resource</p><div><pre><code><br>lxc-start -n front-2.fr
pcs resource create front-2.fr ocf:heartbeat:lxc config=/mnt/cluster_volumes/lxc2/front-2.fr/config container=front-2.fr
</code></pre></div><p dir="auto"><br></p><p dir="auto">After ~5min want to remove it</p><p dir="auto"><br></p><p dir="auto"><code>pcs resource remove front-2.fr --force</code><br></p><p dir="auto"><br>
</p><p dir="auto">got an error and cluster starts to migrate<br></p><p dir="auto"><code><br></code></p><p dir="auto"><code>Mar 29 23:28:51 cse2.fr lxc(front-2.fr)[2103391]: ERROR: LXC container name not set!</code></p><p dir="auto">as i can see in <code>/usr/lib/ocf/resource.d/heartbeat/lxc</code> the error spawns when agent can't get <code>OCF_RESKEY_container</code> variable.<br>
This bug is only on clusters who work without reboot a long time. For 
example after fencing i can add/remove lxc resources and everything will
 be fine for a while.</p><p dir="auto">The question is: why? And how to debug it?</p><br>