A lot of users at Veritas have tried the same and its failing for them with a couple of different errors(Please note that for some Users it succeeded at first, but failed later). From what we figured we are only observing issues with “hyperscale-controller” charm (cs:~vtas-hyperscale-ci/hyperscale-controller). It seems that issue is occurring only for charm which has “terms” defined in metadata.
From our side, we have tried with to deploy/pull the charms with:
1. Users who have already agreed the terms. For this we see errors below
# juju deploy cs:~vtas-hyperscale-ci/hyperscale-controller --resource install=****** --to lxd:0 --series=xenial
Opening an authorization web page in your browser.
If it does not open, please open this URL: https://api.jujucharms.com/identity/v1/login?waitid=0a3be524dcb6617d9f068b33a8231a25
[31465:31465:0727/143447.408207:ERROR:sandbox_linux.cc(343)] InitializeSandbox() called with multiple threads in process gpu-process.
[31425:31425:0727/143458.660844:ERROR:desktop_window_tree_host_x11.cc(1148)] Not implemented reached in virtual void views::DesktopWindowTreeHostX11::InitModalType(ui::ModalType)
ERROR storing charm for URL "cs:~vtas-hyperscale-ci/hyperscale-controller-2": cannot get discharge from "https://api.jujucharms.com/terms": third party refused discharge: verification failed: no macaroon
cookies in request
2. Users who are trying to agree the terms. For this we see error as below
# juju agree vtas-hso/eula/1 -B --debug
15:23:07 INFO juju.cmd supercommand.go:63 running juju [2.0.2 gc go1.6.2]
15:23:07 DEBUG juju.cmd supercommand.go:64 args: []string{"juju", "agree", "vtas-hso/eula/1", "-B", "--debug"}
15:23:07 DEBUG httpbakery client.go:244 client do GET https://api.jujucharms.com/terms/v1/agreement?Terms=vtas-hso%2Feula%2F1 {
15:23:07 DEBUG httpbakery client.go:592 postFormJSON to https://api.jujucharms.com/identity/v1/discharger/discharge; vals: url.Values{"id":[]string{"eyJUaGlyZFBhcnR5UHVibGljS2V5IjoiaG1IYVBnQ0MxVWZ1aFlIVVNYNSthaWhTQVplc3FwVmRqUnYwbWdmSXdqbz0iLCJGaXJzdFBhcnR5UHVibGljS2V5IjoiTGVVME14cU05VzNNNkN1cTZxNm5sd3ArU1c4R2hXTUpNNUtNSmY2QkxSaz0iLCJOb25jZSI6InpMcU9mZS9iL2VkS2E2SFNYaEVUOTdDNWtrOWc4aGdqIiwiSWQiOiIrVkhxKzRjUk41VFRGT04xWXBqbi83M0MyRnZISDhnZXBWV2c2YXk4WGtZSE5EK1lYOUg4akJQM2VQdFhkL0t3RlpXU3gwTkJRQXE0RU13R1lnV0xvdDZYbjBtMkxNdVdoMGgvbkk5TEExNUdGTmlHN3krSDdMZ21wWWdBZzBqcFpmcjMvTk9iZ28zczJNTWpDNmN6MXhlRGlDOEcrdFArR3ZsbzBQc0gifQ=="}, "location":[]string{"omnibus"}}
15:23:07 DEBUG httpbakery client.go:244 client do POST https://api.jujucharms.com/identity/v1/discharger/discharge {
15:23:08 DEBUG httpbakery client.go:246 } -> error <nil>
15:23:08 DEBUG httpbakery client.go:246 } -> error <nil>
15:23:08 ERROR cmd supercommand.go:458 failed to retrieve terms: failed to get unsigned terms: 401 Unauthorized: {"Code":"macaroon discharge required","Message":"verification failed: no macaroon cookies in request","Info":{"Macaroon":{"caveats":[{"cid":"eyJUaGlyZFBhcnR5UHVibGljS2V5IjoiaG1IYVBnQ0MxVWZ1aFlIVVNYNSthaWhTQVplc3FwVmRqUnYwbWdmSXdqbz0iLCJGaXJzdFBhcnR5UHVibGljS2V5IjoiTGVVME14cU05VzNNNkN1cTZxNm5sd3ArU1c4R2hXTUpNNUtNSmY2QkxSaz0iLCJOb25jZSI6IjZ0YkVlZ2VMNTJtOWNBNnNtbGo3bUo0OTlzODhSbHZrIiwiSWQiOiJ2bEwwNHdwSU91c3pTSGlkRDJIMktFcGtRSUg5eU5yVkRqL3FJOEV4bzVrSm85QTF0YjVYY2kyNW5GVC9sTjVIUjVteGJ3a1FNb1lpbithYStqQ2xwc3gwamFWcC9zN0Z6ekJYOHQ0M3pJUTFUSnBFQ09GNTMrMUFZZmJ0cEx2OU1oa3Noc0xNdjdzck53QkpxZEd6cVVsRldRRHJMTGNYYm4rV0hZYzgifQ==","vid":"mwxJtLs20Gegrb3FXdf4Mr2v8uDyFkEJyZXS8aExUTfhs3WaRXoDBLR-36rF4RhnQS2v_ZwYFLbmcIb_J1kFtp6ox7Z9Jh1m","cl":"https://api.jujucharms.com/identity/v1/discharger"},{"cid":"allow user-access"},{"cid":"deny group-access terms-access"},{"cid":"time-before 2017-07-27T07:58:54.459119072Z"}],"location":"omnibus","identifier":"ba2e530be03e1abd86f273b88c0b954ee9b0fde737caa6f0","signature":"74fd9de417697c29eda52132e6f7e144aa5cfd378d31f22ae9cd908d41d2ca94"},"MacaroonPath":"../","CookieNameSuffix":"authn"}}
15:23:08 DEBUG cmd supercommand.go:459 (error details: [{github.com/juju/juju/cmd/juju/romulus/agree/agree.go:135: failed to retrieve terms} {github.com/juju/terms-client/api/api.go:328: failed to get unsigned terms: 401 Unauthorized: {"Code":"macaroon discharge required","Message":"verification failed: no macaroon cookies in request","Info":{"Macaroon":{"caveats":[{"cid":"eyJUaGlyZFBhcnR5UHVibGljS2V5IjoiaG1IYVBnQ0MxVWZ1aFlIVVNYNSthaWhTQVplc3FwVmRqUnYwbWdmSXdqbz0iLCJGaXJzdFBhcnR5UHVibGljS2V5IjoiTGVVME14cU05VzNNNkN1cTZxNm5sd3ArU1c4R2hXTUpNNUtNSmY2QkxSaz0iLCJOb25jZSI6IjZ0YkVlZ2VMNTJtOWNBNnNtbGo3bUo0OTlzODhSbHZrIiwiSWQiOiJ2bEwwNHdwSU91c3pTSGlkRDJIMktFcGtRSUg5eU5yVkRqL3FJOEV4bzVrSm85QTF0YjVYY2kyNW5GVC9sTjVIUjVteGJ3a1FNb1lpbithYStqQ2xwc3gwamFWcC9zN0Z6ekJYOHQ0M3pJUTFUSnBFQ09GNTMrMUFZZmJ0cEx2OU1oa3Noc0xNdjdzck53QkpxZEd6cVVsRldRRHJMTGNYYm4rV0hZYzgifQ==","vid":"mwxJtLs20Gegrb3FXdf4Mr2v8uDyFkEJyZXS8aExUTfhs3WaRXoDBLR-36rF4RhnQS2v_ZwYFLbmcIb_J1kFtp6ox7Z9Jh1m","cl":"https://api.jujucharms.com/identity/v1/discharger"},{"cid":"allow user-access"},{"cid":"deny group-access terms-access"},{"cid":"time-before 2017-07-27T07:58:54.459119072Z"}],"location":"omnibus","identifier":"ba2e530be03e1abd86f273b88c0b954ee9b0fde737caa6f0","signature":"74fd9de417697c29eda52132e6f7e144aa5cfd378d31f22ae9cd908d41d2ca94"},"MacaroonPath":"../","CookieNameSuffix":"authn"}}}])
A lot of users at Veritas have tried the same and its failing for them with a couple of different errors(Please note that for some Users it succeeded at first, but failed later). From what we figured we are only observing issues with “hyperscale- controller” charm (cs:~vtas- hyperscale- ci/hyperscale- controller) . It seems that issue is occurring only for charm which has “terms” defined in metadata.
From our side, we have tried with to deploy/pull the charms with:
1. Users who have already agreed the terms. For this we see errors below
# juju deploy cs:~vtas- hyperscale- ci/hyperscale- controller --resource install=****** --to lxd:0 --series=xenial /api.jujucharms .com/identity/ v1/login? waitid= 0a3be524dcb6617 d9f068b33a8231a 25 31465:0727/ 143447. 408207: ERROR:sandbox_ linux.cc( 343)] InitializeSandbox() called with multiple threads in process gpu-process. 31425:0727/ 143458. 660844: ERROR:desktop_ window_ tree_host_ x11.cc( 1148)] Not implemented reached in virtual void views:: DesktopWindowTr eeHostX11: :InitModalType( ui::ModalType) hyperscale- ci/hyperscale- controller- 2": cannot get discharge from "https:/ /api.jujucharms .com/terms": third party refused discharge: verification failed: no macaroon
Opening an authorization web page in your browser.
If it does not open, please open this URL:
https:/
[31465:
[31425:
ERROR storing charm for URL "cs:~vtas-
cookies in request
2. Users who are trying to agree the terms. For this we see error as below
# juju agree vtas-hso/eula/1 -B --debug /api.jujucharms .com/terms/ v1/agreement? Terms=vtas- hso%2Feula% 2F1 { /api.jujucharms .com/identity/ v1/discharger/ discharge; vals: url.Values{ "id":[] string{ "eyJUaGlyZFBhcn R5UHVibGljS2V5I joiaG1IYVBnQ0Mx VWZ1aFlIVVNYNSt haWhTQVplc3FwVm RqUnYwbWdmSXdqb z0iLCJGaXJzdFBh cnR5UHVibGljS2V 5IjoiTGVVME14cU 05VzNNNkN1cTZxN m5sd3ArU1c4R2hX TUpNNUtNSmY2Qkx Saz0iLCJOb25jZS I6InpMcU9mZS9iL 2VkS2E2SFNYaEVU OTdDNWtrOWc4aGd qIiwiSWQiOiIrVk hxKzRjUk41VFRGT 04xWXBqbi83M0My RnZISDhnZXBWV2c 2YXk4WGtZSE5EK1 lYOUg4akJQM2VQd FhkL0t3RlpXU3gw TkJRQXE0RU13R1l nV0xvdDZYbjBtMk xNdVdoMGgvbkk5T EExNUdGTmlHN3kr SDdMZ21wWWdBZzB qcFpmcjMvTk9iZ2 8zczJNTWpDNmN6M XhlRGlDOEcrdFAr R3ZsbzBQc0gifQ= ="}, "location" :[]string{ "omnibus" }} /api.jujucharms .com/identity/ v1/discharger/ discharge { ,"Message" :"verification failed: no macaroon cookies in request" ,"Info" :{"Macaroon" :{"caveats" :[{"cid" :"eyJUaGlyZFBhc nR5UHVibGljS2V5 IjoiaG1IYVBnQ0M xVWZ1aFlIVVNYNS thaWhTQVplc3FwV mRqUnYwbWdmSXdq bz0iLCJGaXJzdFB hcnR5UHVibGljS2 V5IjoiTGVVME14c U05VzNNNkN1cTZx Nm5sd3ArU1c4R2h XTUpNNUtNSmY2Qk xSaz0iLCJOb25jZ SI6IjZ0YkVlZ2VM NTJtOWNBNnNtbGo 3bUo0OTlzODhSbH ZrIiwiSWQiOiJ2b EwwNHdwSU91c3pT SGlkRDJIMktFcGt RSUg5eU5yVkRqL3 FJOEV4bzVrSm85Q TF0YjVYY2kyNW5G VC9sTjVIUjVteGJ 3a1FNb1lpbithYS tqQ2xwc3gwamFWc C9zN0Z6ekJYOHQ0 M3pJUTFUSnBFQ09 GNTMrMUFZZmJ0cE x2OU1oa3Noc0xNd jdzck53QkpxZEd6 cVVsRldRRHJMTGN YYm4rV0hZYzgifQ ==","vid" :"mwxJtLs20Gegr b3FXdf4Mr2v8uDy FkEJyZXS8aExUTf hs3WaRXoDBLR- 36rF4RhnQS2v_ ZwYFLbmcIb_ J1kFtp6ox7Z9Jh1 m","cl" :"https:/ /api.jujucharms .com/identity/ v1/discharger"},{"cid":"allow user-access" },{"cid" :"deny group-access terms-access" },{"cid" :"time- before 2017-07- 27T07:58: 54.459119072Z" }],"location" :"omnibus" ,"identifier" :"ba2e530be03e1 abd86f273b88c0b 954ee9b0fde737c aa6f0", "signature" :"74fd9de417697 c29eda52132e6f7 e144aa5cfd378d3 1f22ae9cd908d41 d2ca94" },"MacaroonPath ":"../" ,"CookieNameSuf fix":"authn" }} com/juju/ juju/cmd/ juju/romulus/ agree/agree. go:135: failed to retrieve terms} {github. com/juju/ terms-client/ api/api. go:328: failed to get unsigned terms: 401 Unauthorized: {"Code":"macaroon discharge required" ,"Message" :"verification failed: no macaroon cookies in request" ,"Info" :{"Macaroon" :{"caveats" :[{"cid" :"eyJUaGlyZFBhc nR5UHVibGljS2V5 IjoiaG1IYVBnQ0M xVWZ1aFlIVVNYNS thaWhTQVplc3FwV mRqUnYwbWdmSXdq bz0iLCJGaXJzdFB hcnR5UHVibGljS2 V5IjoiTGVVME14c U05VzNNNkN1cTZx Nm5sd3ArU1c4R2h XTUpNNUtNSmY2Qk xSaz0iLCJOb25jZ SI6IjZ0YkVlZ2VM NTJtOWNBNnNtbGo 3bUo0OTlzODhSbH ZrIiwiSWQiOiJ2b EwwNHdwSU91c3pT SGlkRDJIMktFcGt RSUg5eU5yVkRqL3 FJOEV4bzVrSm85Q TF0YjVYY2kyNW5G VC9sTjVIUjVteGJ 3a1FNb1lpbithYS tqQ2xwc3gwamFWc C9zN0Z6ekJYOHQ0 M3pJUTFUSnBFQ09 GNTMrMUFZZmJ0cE x2OU1oa3Noc0xNd jdzck53QkpxZEd6 cVVsRldRRHJMTGN YYm4rV0hZYzgifQ ==","vid" :"mwxJtLs20Gegr b3FXdf4Mr2v8uDy FkEJyZXS8aExUTf hs3WaRXoDBLR- 36rF4RhnQS2v_ ZwYFLbmcIb_ J1kFtp6ox7Z9Jh1 m","cl" :"https:/ /api.jujucharms .com/identity/ v1/discharger"},{"cid":"allow user-access" },{"cid" :"deny group-access terms-access" },{"cid" :"time- before 2017-07- 27T07:58: 54.459119072Z" }],"location" :"omnibus" ,"identifier" :"ba2e530be03e1 abd86f273b88c0b 954ee9b0fde737c aa6f0", "signature" :"74fd9de417697 c29eda52132e6f7 e144aa5cfd378d3 1f22ae9cd908d41 d2ca94" },"MacaroonPath ":"../" ,"CookieNameSuf fix":"authn" }}}])
15:23:07 INFO juju.cmd supercommand.go:63 running juju [2.0.2 gc go1.6.2]
15:23:07 DEBUG juju.cmd supercommand.go:64 args: []string{"juju", "agree", "vtas-hso/eula/1", "-B", "--debug"}
15:23:07 DEBUG httpbakery client.go:244 client do GET https:/
15:23:07 DEBUG httpbakery client.go:592 postFormJSON to https:/
15:23:07 DEBUG httpbakery client.go:244 client do POST https:/
15:23:08 DEBUG httpbakery client.go:246 } -> error <nil>
15:23:08 DEBUG httpbakery client.go:246 } -> error <nil>
15:23:08 ERROR cmd supercommand.go:458 failed to retrieve terms: failed to get unsigned terms: 401 Unauthorized: {"Code":"macaroon discharge required"
15:23:08 DEBUG cmd supercommand.go:459 (error details: [{github.