LINBIT / linstor-gateway

Manages Highly-Available iSCSI targets, NVMe-oF targets, and NFS exports via LINSTOR
GNU General Public License v3.0
28 stars 6 forks source link

compatible with pacemaker 2.0? #4

Closed meilihao closed 2 years ago

meilihao commented 3 years ago

env:

linstor-iscsi start does not work with no error.

linstor-iscsi: 图片

crm configure: 图片

chrboe commented 3 years ago

That crm config looks about right. What drbd/drbd-utils versions are you running? Maybe they don't support promotion scores yet. drbdadm --version should give you that information.

crm status would also be helpful.

meilihao commented 3 years ago

图片

chrboe commented 3 years ago

Can you try again with the latest master? I'm reasonably certain this should be fixed with 0d257a998be276f3ce281fc69237320444f6ba9c.

Thanks for the report!

meilihao commented 3 years ago

@chrboe I updated and tried, but it does't work. crm resources is still stopped after linstor-iscsi start.

chrboe commented 3 years ago

Yes, that is expected. linstor-gateway only generates the CIB once (on the linstor-iscsi create ... command), and does not touch it again afterwards.

Maybe we need a linstor-iscsi adjust ... command which re-writes the CIB.

In the meantime, you'll either have to re-create your target or manually edit the constraints (crm conf edit and change all inf to Mandatory for the order constraints)

meilihao commented 3 years ago

@chrboe I created a new target and checked CIB, but the new linstor-iscsi didn't work.

截图录屏_选择区域_20210318132944

chrboe commented 3 years ago

Can you post your /var/log/pacemaker.log somewhere? (e.g. pastebin)

meilihao commented 3 years ago

I'am sorry, my env is secure network, and no sending files to the public network.

meilihao commented 3 years ago

tail -f /var/log/pacemaker/pacemaker.log + linstor-iscsi start: 截图录屏_选择区域_20210319114503 截图录屏_选择区域_20210319114526

chrboe commented 2 years ago

This is stale anyways, but closing because we now no longer use pacemaker.