Comment 1 for bug 1707162

Revision history for this message
Samantha Jian-Pielak (samantha-jian) wrote :

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"}}}])