全新安装,无法导入图像。我在 maas.log 中看到以下内容:
Nov 9 13:00:26 bme-maas maas.import-images: [INFO] Downloading image descriptions from http://images.maas.io/ephemeral-v2/daily/
Nov 9 13:00:30 bme-maas maas.bootsources: [INFO] Updated boot sources cache.
Nov 9 13:00:30 bme-maas maas.bootresources: [INFO] Started importing of boot images from 1 source(s).
Nov 9 13:00:30 bme-maas maas.import-images: [INFO] Downloading image descriptions from http://images.maas.io/ephemeral-v2/daily/
Nov 9 13:00:32 bme-maas maas.bootresources: [INFO] Importing images from source: http://images.maas.io/ephemeral-v2/daily/
Nov 9 13:16:17 bme-maas maas.import-images: [INFO] Started importing boot images.
Nov 9 13:16:17 bme-maas maas.import-images: [INFO] Downloading image descriptions from http://localhost:5240/MAAS/images-stream/streams/v1/index.json
Nov 9 13:16:32 bme-maas maas.import-images: [INFO] Finished importing boot images, the region does not have any new images.
Nov 9 13:36:18 bme-maas maas.import-images: [INFO] Started importing boot images.
Nov 9 13:36:18 bme-maas maas.import-images: [INFO] Downloading image descriptions from http://localhost:5240/MAAS/images-stream/streams/v1/index.json
Nov 9 13:36:19 bme-maas maas.import-images: [INFO] Finished importing boot images, the region does not have any new images.
编辑:在 Ubuntu 16.04 上使用 MAAS 2.0 从 GUI 启动它。我尝试从头开始重新安装整个操作系统,但遇到了同样的问题。然后我开始尝试通过创建本地副本来做到这一点,但最终又回到尝试从 images.maas.io URL 获取它。
如果有帮助的话,这是一份 sosreporthttps://drive.google.com/open?id=0BzkCl-Znx04SVVZBbENiYk5XWTQ
答案1
我将尝试使用 CLI 进行导入,看看它是否可以为您提供有关问题的更多见解,或者是否可能解决您的问题。
能够使用 CLI 也是一个不错的主意,有时使用起来更容易、更快捷。首先,我们开始安装maas-cli
。该maas-region
命令将返回指定用户的 API 密钥。然后,我们将使用用户名/个人资料名称登录,并检索 API 密钥。我们执行操作version read
只是为了确保我们已登录并准备就绪。然后,我们最终发出命令boot-resources import
,对于 2.0,它将自动导入 16.04。
sudo apt-get install maas-cli
sudo maas-region apikey --username root
maas login username http://10.10.0.1/MAAS/api/2.0/ '<key>'
maas username version read
maas username boot-resources import