我使用下面的命令创建了本地minidcos vagrant集群。
$ sudo minidcos vagrant create ./dcos_generate_config.sh --agents 0
上述命令不成功。由于No space left on device
突然失败。
当我列出群集时,我看到群集存在。
$ sudo minidcos vagrant list
default
我无法使用sudo minidcos vagrant web
访问群集。当我试图破坏集群时,我得到同样的错误,如下所示 -
$ sudo minidcos vagrant destroy
Traceback (most recent call last):
File "/usr/local/bin/minidcos", line 10, in <module>
sys.exit(minidcos())
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/dcos_e2e_cli/dcos_vagrant/commands/destroy.py", line 59, in destroy
cluster_vms.destroy()
File "/usr/local/lib/python3.7/site-packages/dcos_e2e_cli/dcos_vagrant/commands/_common.py", line 294, in destroy
self.vagrant_client.destroy()
File "/usr/local/lib/python3.7/site-packages/dcos_e2e_cli/dcos_vagrant/commands/_common.py", line 274, in vagrant_client
item for item in self.workspace_dir.iterdir()
File "/usr/local/lib/python3.7/site-packages/dcos_e2e_cli/dcos_vagrant/commands/_common.py", line 274, in <listcomp>
item for item in self.workspace_dir.iterdir()
File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pathlib.py", line 1074, in iterdir
for name in self._accessor.listdir(self):
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/acaa37838a534dc0ae51c3fcc059f650'
如何成功删除群集?
这里的问题是工作区目录已被删除,但仍然检测到了VM。工作区可根据the documentation进行配置。
这可能是因为在VM运行时以某种方式删除了工作空间目录,但是当主机关闭时也会发生这种情况(假设使用了默认工作空间临时目录)。
此行为现在已更改为minidcos
版本2019.04.08.1
。特别是,minidcos vagrant list
不再列出未处于运行状态的VM。还有一个新的minidcos vagrant clean
命令可以清除所有虚拟机和剩余虚拟机。