A long time ago, I wanted to install CSI plugin to our Nomad cluster. This did not go well, and the solution was abandoned in favor of docker volume mounts. However, there are stale data in Nomad that have survived multiple docker version upgrades for a year now.
You can also see my error with ${..}
trying to apply shell expansion to ID
with bad result.
$ nomad operator api /v1/plugins?type=csi | jq
[
{
"ID": "${env[\"server_name\"]}",
"Provider": "st-zfs03-h2",
"ControllerRequired": true,
"ControllersHealthy": 0,
"ControllersExpected": 1,
"NodesHealthy": 0,
"NodesExpected": 0,
"CreateIndex": 291850,
"ModifyIndex": 292917
},
{
"ID": "${server_name}",
"Provider": "st-zfs03-h1-b",
"ControllerRequired": true,
"ControllersHealthy": 0,
"ControllersExpected": 1,
"NodesHealthy": 0,
"NodesExpected": 0,
"CreateIndex": 291829,
"ModifyIndex": 292917
},
{
"ID": "org.democratic-csi.nfs",
"Provider": "org.democratic-csi.nfs",
"ControllerRequired": true,
"ControllersHealthy": 0,
"ControllersExpected": 1,
"NodesHealthy": 0,
"NodesExpected": 0,
"CreateIndex": 264484,
"ModifyIndex": 292917
}
]
There are no volumes in nomad volume status
, becuase I have deregistered them. None of these plugins are used and democratic csi is not running for a long time.
How to remove the plugins completely?
I also see the following messages in nomad server logs, however I do not know or understand if they are related:
Mar 05 10:39:31 nomad[1966370]: 2024-03-05T10:39:31.382-0500 [ERROR] nomad.csi_plugin: csi raft apply failed: error="plugin in use"
method=delete
Mar 05 10:39:31 nomad[1966370]: 2024-03-05T10:39:31.405-0500 [ERROR] nomad.csi_plugin: csi raft apply failed: error="plugin in use"
method=delete
Mar 05 10:39:31 nomad[1966370]: 2024-03-05T10:39:31.433-0500 [ERROR] nomad.csi_plugin: csi raft apply failed: error="plugin in use"
method=delete
Mar 05 10:39:53 nomad[1966370]: 2024-03-05T10:39:53.893-0500 [ERROR] nomad.csi_plugin: csi raft apply failed: error="plugin in use"
method=delete
Mar 05 10:39:53 nomad[1966370]: 2024-03-05T10:39:53.929-0500 [ERROR] nomad.csi_plugin: csi raft apply failed: error="plugin in use"
method=delete
Mar 05 10:39:53 nomad[1966370]: 2024-03-05T10:39:53.960-0500 [ERROR] nomad.csi_plugin: csi raft apply failed: error="plugin in use"
method=delete
Mar 05 10:40:04 nomad[1966370]: 2024-03-05T10:40:04.309-0500 [ERROR] nomad.csi_plugin: csi raft apply failed: error="plugin in use"
method=delete
Mar 05 10:40:04 nomad[1966370]: 2024-03-05T10:40:04.332-0500 [ERROR] nomad.csi_plugin: csi raft apply failed: error="plugin in use"
method=delete
Mar 05 10:40:04 nomad[1966370]: 2024-03-05T10:40:04.356-0500 [ERROR] nomad.csi_plugin: csi raft apply failed: error="plugin in use"
method=delete
Thanks.