我从 jujucharms 收到几个 API 错误:
GET https://api.jujucharms.com/charmstore/v5/~kubernetes/trusty/kubernetes-11/icon.svg 401 (Unauthorized)
直接输入网址时,我得到以下信息:
{ 消息:“用户“ejperezf”的访问被拒绝”,代码:“未经授权”}
这是使用 Maas 进行的全新 Juju 安装。我无法添加捆绑包。
我也收到此错误:
Access to XMLHttpRequest at 'https://api.jujucharms.com/charmstore/v5/~admin/default/meta/any?include=bundle-metadata&include=bundle-machine-count&include=charm-config&include=charm-metadata&include=charm-metrics&include=common-info&include=extra-info&include=id-revision&include=manifest&include=owner&include=published&include=resources&include=revision-info&include=stats&include=supported-series&include=tags' from origin 'https://10.110.25.37:17070' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
在尝试添加捆绑包时:
cannot fetch the entity no entity data returned, can you access the charmstore?
GET https://api.jujucharms.com/charmstore/v5/bundle/openstack-base-61/meta/any?include=bundle-metadata&include=bundle-machine-count&include=charm-config&include=charm-metadata&include=charm-metrics&include=common-info&include=extra-info&include=id-revision&include=manifest&include=owner&include=published&include=resources&include=revision-info&include=stats&include=supported-series&include=tags net::ERR_FAILED
这是 GUI 版本 2.14.0 中 API 调用的问题。它已在 v2.15.0 中修复。使用升级 GUI
juju upgrade-gui
看起来只是过时的链接。您需要使用更新的受支持的魅力才能获得有效的图标。
https://github.com/juju/juju-gui/issues/2948