0
我需要一个脚本来收集必须通过bx login -a
在区域之间切换的日志。我正在使用bluemix cli,以便我可以使用apikey登录。bx cf日志在切换区域时给出“错误拨号流量控制器服务器”
但是,当我切换区域bx cf logs app_name
变得不合时宜。
[Ops]$ bx cf logs AppName
Invoking 'cf logs AppName'...
FAILED
Error dialing traffic controller server: websocket: bad handshake.
Please ask your Cloud Foundry Operator to check the platform configuration (traffic controller is wss://doppler.eu-gb.bluemix.net:443).
[Ops]$ bx api
API endpoint: https://api.ng.bluemix.net (API version: 2.54.0)
见我的API是如何纳克但多普勒是英国EU-GB。如果我在英国地区运行cf logs
,它工作正常。
版本:
[Ops]$ bx --version
bx version 0.5.4+ae22935-2017-05-18T03:55:55+00:00
[Ops]$ bx update
Checking for updates...
No update required. Your CLI is already up-to-date.
[Ops]$ bx cf --version
Invoking 'cf --version'...
cf version 6.18.0+b22884b9c-2017-02-27
我发现this和至少相关的估计,但注意它的固定在CF 6.26和嵌入在BX版本是6.18。
任何解决方法?使用-a登出/登录不会帮助我。我不想直接使用cf,因为我需要通过apikey登录。
我写了一个插件来处理跨多个CF地区做的东西:https://github.com/data- henrik/cf-multi-instance这对你有用吗? –
@data_henrik,可爱的小东西,但我不认为它会帮助我,我不知道如何从中获取日志。它需要一个我们试图避免的cf登录。 – amadain