Juju 部署 charm juju-gui 因连接超时而失败

Juju 部署 charm juju-gui 因连接超时而失败

我使用的是 Juju 1.18.4。环境已启动,下面是 符咒状态 environment: maas machines: "0": agent-state: started agent-version: 1.18.4 dns-name: poLap8.pvt.domain.net instance-id: /MAAS/api/1.0/nodes/node-9e78ad8c-5465-11e4-90b6-c80aa9bbfa5a/ series: trusty services: {}

我正在尝试使用此命令在 machine:0(又名 poLap8.pvt.domain.net)上安装 juju-gui juju 部署--to 0 juju-gui--debug 2014-10-16 12:18:47 INFO juju.cmd supercommand.go:302 running juju-1.18.4-trusty -amd64 [gc] 2014-10-16 12:18:47 DEBUG juju api.go:171 trying cached API connection settings 2014-10-16 12:18:47 INFO juju api.go:242 connecting to API addresses: [poLap8.pv t.kaseya.net:17070] 2014-10-16 12:18:47 INFO juju apiclient.go:114 state/api: dialing "wss://poLap8. pvt.kaseya.net:17070/" 2014-10-16 12:18:47 INFO juju apiclient.go:124 state/api: connection established 2014-10-16 12:20:55 ERROR juju.cmd supercommand.go:305 cannot download charm "cs:trusty/juju-gui-10": Cannot access the charm store. Are you connected to the internet? Error details: Get https://store.juju.ubuntu.com/charm-info?charms=cs%3Atrusty%2Fjuju-gui-10: dial tcp 91.189.95.66:443: connection timed out

我运行 juju 命令的服务器 [MasterShifu] 有双网卡 - 一个以太网和一个 wlan。以太网接口连接到私有网络 [192.168.0.0] 并为网络运行 DHCP、DNS 和代理服务器。Wlan 接口连接到外部可路由网络并可以访问互联网。我可以从这台机器访问 juju 商店,以下是输出 curl store.juju.ubuntu.com/charm-info?charms=cs%3Atrusty%2Fjuju-gui-10 {"cs:trusty/juju-gui-10":{"canonical-url":"cs:trusty/juju-gui-10","revision":10,"sha256":"5b78eeea39c5425d8e9f95db85054fe34df932424a393af6c98a8577ef05f94f","digest":"[email protected]"}}

机器:0 又名 poLap8.pvt.domain.net 刚刚启用以太网接口,并在 192.168.0.108 网络中 - 已将 http_proxy 和 https_proxy 配置为 [MasterShifu] 服务器。我也可以从这台机器访问 juju 商店网址,以下是输出 export | grep http declare -x http_proxy="192.168.0.1:3128" declare -x https_proxy="192.168.0.1:3128"

curl https://store.juju.ubuntu.com/charm-info?charms=cs%3Atrusty%2Fjuju-gui-10 {"cs:trusty/juju-gui-10":{"canonical-url":"cs:trusty/juju-gui-10","revision":10,"sha256":"5b78eeea39c5425d8e9f95db85054fe34df932424a393af6c98a8577ef05f94f","digest":"[email protected]"}}ubuntu@poLap8:~$

我仍然不知道问题的原因。请提供一些提示,告诉我在哪里可以进一步检查以修复此问题。

答案1

遇到了同样的问题。试过.bashrc、、,/etc/environment.juju/environments.yaml.juju/environments/maas.jenv不起作用。

juju set-env 工作.并在所有机器上设置了代理。

这是我测试的方法。而不是在主机上使用 curl。

  • juju run "curl https://store.juju.ubuntu.com/charm-info?charms=cs%3Ajuju-gui" --all并且所有节点都失败了。
  • juju run "env | grep proxy" --all在所有机器上都看不到任何设置代理相关的环境变量。
  • juju set-env http-proxy=http://PROXY_IP:8080/https-proxy
  • juju run "env | grep proxy" --all现在返回所有机器中设置的代理变量

相关内容