Я установил Ubuntu 14.04 и когда я запустил
maas root node-groups import-boot-images
все, что я получаю, это
root@maas:~# maas xxxx node-groups import-boot-images
usage: /usr/lib/python2.7/dist-packages/maascli/__main__.py [-h] COMMAND ...
/usr/lib/python2.7/dist-packages/maascli/__main__.py: error: argument COMMAND: invalid choice: u'xxxx' (choose from u'list', u'login', u'logout', u'refresh')
при запуске maas-import-pxe-files
получаю такую ошибку:
root@maas:~# maas-import-pxe-files
usage: maas-import-pxe-files [-h] --sources-file SOURCES_FILE
maas-import-pxe-files: error: argument --sources-file is required
root@maas:~# maas-import-pxe-files --sources-file /etc/maas/bootresources.yaml
2014-10-28 14:16:05,919 ERROR Unhandled exception; unable to continue.
Traceback (most recent call last):
File "/usr/sbin/maas-import-pxe-files", line 30, in <module>
main(args)
File "/usr/lib/python2.7/dist-packages/provisioningserver/import_images/boot_resources.py", line 269, in main
sources = read_sources(args.sources_file)
File "/usr/lib/python2.7/dist-packages/provisioningserver/import_images/boot_resources.py", line 197, in read_sources
return BootSources.load(filename=sources_yaml)
File "/usr/lib/python2.7/dist-packages/provisioningserver/config.py", line 349, in load
return cls.parse(stream)
File "/usr/lib/python2.7/dist-packages/provisioningserver/config.py", line 343, in parse
return cls.sources.to_python(yaml.safe_load(stream))
File "/usr/lib/python2.7/dist-packages/formencode/api.py", line 439, in to_python
value = tp(value, state)
File "/usr/lib/python2.7/dist-packages/formencode/compound.py", line 58, in _to_python
to_python)
File "/usr/lib/python2.7/dist-packages/formencode/foreach.py", line 102, in attempt_convert
error_list=errors)
Invalid: Errors:
The input must be dict-like (not a <type 'str'>: 'boot')
и у меня нет никаких изображений, то же самое касается и веб-интерфейса.
Есть идеи?
решение1
Первый вход в систему с консоли с помощьюэта ссылка.
Затем из консоли:
sudo maas root node-groups import-boot-images
Import of boot images started on all cluster controllers