LINBIT / linstor-server

High Performance Software-Defined Block Storage for container, cloud and virtualisation. Fully integrated with Docker, Kubernetes, Openstack, Proxmox etc.
https://docs.linbit.com/docs/linstor-guide/
GNU General Public License v3.0
955 stars 76 forks source link

Failure while trying to create a resource when one node is down #180

Closed chiraganand closed 2 years ago

chiraganand commented 4 years ago
$ linstor n l
╭────────────────────────────────────────────────────────────────╮
┊ Node        ┊ NodeType  ┊ Addresses                  ┊ State   ┊
╞════════════════════════════════════════════════════════════════╡
┊ drbd-node1  ┊ SATELLITE ┊ 172.16.23.236:3366 (PLAIN) ┊ Online  ┊
┊ drbd-node2  ┊ SATELLITE ┊ 172.16.23.238:3366 (PLAIN) ┊ Online  ┊
┊ drbd-node3  ┊ SATELLITE ┊ 172.16.23.241:3366 (PLAIN) ┊ OFFLINE ┊
┊ XXX         ┊ SATELLITE ┊ 172.16.22.117:3366 (PLAIN) ┊ Online  ┊
╰────────────────────────────────────────────────────────────────╯
$ linstor r c --auto-place 2 test1
ERROR:
Description:
    Satellite 'drbd-node3' does not support the following layers: [DRBD]
Details:
    Auto-placing resource: test1
Show reports:
    linstor error-reports show 5F46591B-00000-000009

ErrorReport-5F46591B-00000-000009.log

Originally posted by @chiraganand in https://github.com/LINBIT/linstor-server/issues/173#issuecomment-681865730

Steps to reproduce

  1. Create 3 Linstor/DRBD nodes.
  2. Create resource definitions and volume defs which will get created without a problem.
  3. On one of the nodes switch off satellite: systemctl stop linstor-satellite.service
  4. Check Linstor node is offline with linstor node list
  5. Create a new resource definition: linstor rd c test
  6. Create volume definition: linstor vd c test 1G. This operation doesn't fail or throw any error but also doesn't create the resource.
  7. Creating the resource manually throws an exception: linstor resource create --auto-place 2 test
rp- commented 2 years ago

just tested and this works now