{"action":"created","issue":{"url":"https://api.github.com/repos/LINBIT/linstor-server/issues/25","repository_url":"https://api.github.com/repos/LINBIT/linstor-server","labels_url":"https://api.github.com/repos/LINBIT/linstor-server/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/LINBIT/linstor-server/issues/25/comments","events_url":"https://api.github.com/repos/LINBIT/linstor-server/issues/25/events","html_url":"https://github.com/LINBIT/linstor-server/issues/25","id":368349750,"node_id":"MDU6SXNzdWUzNjgzNDk3NTA=","number":25,"title":"Linstor sometimes double-books DRBD ports","user":{"login":"elonen","id":2125766,"node_id":"MDQ6VXNlcjIxMjU3NjY=","avatar_url":"https://avatars1.githubusercontent.com/u/2125766?v=4","gravatar_id":"","url":"https://api.github.com/users/elonen","html_url":"https://github.com/elonen","followers_url":"https://api.github.com/users/elonen/followers","following_url":"https://api.github.com/users/elonen/following{/other_user}","gists_url":"https://api.github.com/users/elonen/gists{/gist_id}","starred_url":"https://api.github.com/users/elonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elonen/subscriptions","organizations_url":"https://api.github.com/users/elonen/orgs","repos_url":"https://api.github.com/users/elonen/repos","events_url":"https://api.github.com/users/elonen/events{/privacy}","received_events_url":"https://api.github.com/users/elonen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-09T18:56:44Z","updated_at":"2018-10-09T22:35:18Z","closed_at":null,"author_association":"NONE","body":"While deleting and recreating resources on different nodes, Linstor somehow got into a state where it tries to reuse another resource's network port every time, and fails on `drbdadm`. No idea how to reproduce this, unfortunately. Here's the error report:\r\n\r\n```\r\nERROR REPORT 5BBCF6F0-2E931-000000\r\n\r\n============================================================\r\n\r\nApplication:                        LINBIT® LINSTOR\r\nModule:                             Satellite\r\nVersion:                            0.6.4\r\nBuild ID:                           464f6e5b198002e0d82122d84c27e1b06ec0400c\r\nBuild time:                         2018-09-14T09:11:03+00:00\r\nError time:                         2018-10-09 21:44:05\r\nNode:                               mox-a\r\n\r\n============================================================\r\n\r\nReported error:\r\n===============\r\n\r\nDescription:\r\n    Operations on resource 'vm-103-disk-1' were aborted\r\nCause:\r\n    Verification of resource file failed\r\nAdditional information:\r\n    The error reported by the runtime environment or operating system is:\r\n    The external command 'drbdadm' exited with error code 10\r\n\r\nCategory:                           LinStorException\r\nClass name:                         ResourceException\r\nClass canonical name:               com.linbit.linstor.core.DrbdDeviceHandler.ResourceException\r\nGenerated at:                       Method 'createResourceConfiguration', Source file 'DrbdDeviceHandler.java', Line #1349\r\n\r\nError message:                      Generated resource file for resource 'vm-103-disk-1' is invalid.\r\n\r\nError context:\r\n    Generated resource file for resource 'vm-103-disk-1' is invalid.\r\n\r\nCall backtrace:\r\n\r\n    Method                                   Native Class:Line number\r\n    createResourceConfiguration              N      com.linbit.linstor.core.DrbdDeviceHandler:1349\r\n    createResource                           N      com.linbit.linstor.core.DrbdDeviceHandler:1058\r\n    dispatchResource                         N      com.linbit.linstor.core.DrbdDeviceHandler:313\r\n    run                                      N      com.linbit.linstor.core.DeviceManagerImpl$DeviceHandlerInvocation:1337\r\n    run                                      N      com.linbit.WorkerPool$WorkerThread:179\r\n\r\nCaused by:\r\n==========\r\n\r\nDescription:\r\n    Execution of the external command 'drbdadm' failed.\r\nCause:\r\n    The external command exited with error code 10.\r\nCorrection:\r\n    - Check whether the external program is operating properly.\r\n    - Check whether the command line is correct.\r\n      Contact a system administrator or a developer if the command line is no longer valid\r\n      for the installed version of the external program.\r\nAdditional information:\r\n    The full command line executed was:\r\n    drbdadm --config-to-test /var/lib/linstor.d/vm-103-disk-1.res_tmp --config-to-exclude /var/lib/linstor.d/vm-103-disk-1.res sh-nop\r\n\r\n    The external command sent the following output data:\r\n\r\n\r\n    The external command sent the follwing error information:\r\n    /var/lib/linstor.d/vm-103-disk-1.res_tmp:44: in resource vm-103-disk-1\r\n        ipv4:172.17.0.1:7002 is also used /var/lib/drbd.d/drbdmanage_vm-201-disk-1.res:0 (resource vm-201-disk-1)\r\n    command sh-nop exited with code 10\r\n\r\n\r\nCategory:                           LinStorException\r\nClass name:                         ExtCmdFailedException\r\nClass canonical name:               com.linbit.extproc.ExtCmdFailedException\r\nGenerated at:                       Method 'execute', Source file 'DrbdAdm.java', Line #445\r\n\r\nError message:                      The external command 'drbdadm' exited with error code 10\r\n\r\n\r\nCall backtrace:\r\n\r\n    Method                                   Native Class:Line number\r\n    execute                                  N      com.linbit.drbd.DrbdAdm:445\r\n    execute                                  N      com.linbit.drbd.DrbdAdm:431\r\n    checkResFile                             N      com.linbit.drbd.DrbdAdm:334\r\n    createResourceConfiguration              N      com.linbit.linstor.core.DrbdDeviceHandler:1342\r\n    createResource                           N      com.linbit.linstor.core.DrbdDeviceHandler:1058\r\n    dispatchResource                         N      com.linbit.linstor.core.DrbdDeviceHandler:313\r\n    run                                      N      com.linbit.linstor.core.DeviceManagerImpl$DeviceHandlerInvocation:1337\r\n    run                                      N      com.linbit.WorkerPool$WorkerThread:179\r\n\r\n\r\nEND OF ERROR REPORT.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/LINBIT/linstor-server/issues/comments/428376566","html_url":"https://github.com/LINBIT/linstor-server/issues/25#issuecomment-428376566","issue_url":"https://api.github.com/repos/LINBIT/linstor-server/issues/25","id":428376566,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODM3NjU2Ng==","user":{"login":"raltnoeder","id":13529237,"node_id":"MDQ6VXNlcjEzNTI5MjM3","avatar_url":"https://avatars0.githubusercontent.com/u/13529237?v=4","gravatar_id":"","url":"https://api.github.com/users/raltnoeder","html_url":"https://github.com/raltnoeder","followers_url":"https://api.github.com/users/raltnoeder/followers","following_url":"https://api.github.com/users/raltnoeder/following{/other_user}","gists_url":"https://api.github.com/users/raltnoeder/gists{/gist_id}","starred_url":"https://api.github.com/users/raltnoeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raltnoeder/subscriptions","organizations_url":"https://api.github.com/users/raltnoeder/orgs","repos_url":"https://api.github.com/users/raltnoeder/repos","events_url":"https://api.github.com/users/raltnoeder/events{/privacy}","received_events_url":"https://api.github.com/users/raltnoeder/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T22:35:18Z","updated_at":"2018-10-09T22:35:18Z","author_association":"MEMBER","body":"LINSTOR did not double-book it (that would be very unlikely even if the Controller attempted a duplicate allocation, due to a `UNIQUE` constraint on the corresponding column in the database used by the Controller), but your installation is unclean. It collides with a DRBD resource configuration file written by an old drbdmanage installation, which contains the same port number (7002) as the one used by a newer DRBD resource configuration file written by LINSTOR.\r\nThe `/var/lib/drbd.d/drbdmanage_*.res` files should be removed to avoid such collisions."}}
{"actor":{"display_login":"raltnoeder"}}