我已经使用下面的命令创建了本地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'
如何成功删除群集?
1条答案
按热度按时间a11xaf1n1#
这里的问题是工作区目录被删除了,但是虚拟机仍然被检测到。工作区可根据文档进行配置。
这可能是因为在vms运行时工作区目录以某种方式被删除了,但是在主机关闭时也会发生这种情况(假设使用了默认的工作区临时目录)。
现在,行为已更改为
minidcos
版本2019.04.08.1
. 特别地,minidcos vagrant list
不再列出未处于运行状态的虚拟机。还有一个新的minidcos vagrant clean
清除所有虚拟机和剩余虚拟机的命令。