/srv/irclogs.ubuntu.com/2016/04/07/#juju-gui.txt

=== redir is now known as redir_eod
=== redir_eod is now known as redir_afk
freak_i have deployed juju-gui and also expose it..but when i type watch juju status i get this outputn: http://paste.ubuntu.com/15667891/11:52
freak_anyone please help11:52
rick_h_freak_: seems like it's still going. 11:53
rick_h_freak_: if it hung for some reason would have to peek at the logs by juju ssh juju-gui/011:53
rick_h_freak_: and then checking out /var/log/juju/unit-XXXXX where the XXXX is the unit log for the juju gui unit 011:54
urulama|eodrick_h_, freak_: it looks like machine is in error state ... 11:55
rick_h_urulama|eod: oh doh, yea. 11:56
=== urulama|eod is now known as urulama
rick_h_freak_: can you run juju status --format=yaml ?11:56
rick_h_freak_: this is juju 2.0? 11:56
freak_yes juju2.011:57
rick_h_freak_: on which cloud?11:57
freak_machine state is in error11:57
freak_local.maas11:57
freak_local.maas cloud11:57
rick_h_freak_: which version of maas?11:57
freak_output of juju status --format=yaml is http://paste.ubuntu.com/15668019/12:00
freak_can you tell me where this yaml file is located whose output its showing12:00
rick_h_freak_: it's generated yaml12:00
rick_h_freak_: so not a file on disk there12:01
freak_MAAS version 1.9.0+bzr4533-0ubuntu1~trusty112:01
rick_h_freak_: are any of the nodes in the 'ready' state?12:01
rick_h_freak_: it looks like the maas has no nodes in the ready state and off for Juju to take from the pool of nodes?12:02
freak_I have 1 node in deployed state which is bootstrap node 12:03
freak_i want juju-gui to be colocated with bootstrap node12:03
rick_h_freak_: did you deploy it with --to:0 ?12:04
freak_i had only 1 node in the pool so thats why i did not added --to=0 12:05
rick_h_right, but the bootstrap node is machine 012:05
rick_h_so the --to:0 will put it on that machine #012:05
freak_so how can i revert the deployment12:05
rick_h_juju destroy-service juju-gui12:06
freak_when i run command destroy-service   it shows error http://paste.ubuntu.com/15668159/12:08
freak_dear rick_h i destroyed juju-gui12:12
freak_and deployed again12:12
freak_now below is the state http://paste.ubuntu.com/15668222/12:12
rick_h_freak_: it's just --to=0 I think12:14
freak_is it --to=0 or --to:012:15
rick_h_sorry, =0 or --to 012:16
freak_in the start i did --to=0 this is the output http://paste.ubuntu.com/15668288/12:16
freak_my machine name in maas is node0.maas12:18
rick_h_freak_: sorry, I see what's up. so machine 0 is only in the admin model. You're in the default which is meant to be the place to work on things so you can destroy-model12:19
rick_h_freak_: so to deploy to the bootstrap machine, machine 0, you have to be in the admin model12:20
rick_h_freak_: so I think it might be worth doing a 12:20
rick_h_juju switch admin12:20
rick_h_juju destroy-model default12:20
rick_h_and then if you want it all on one machine you'll have to use the admin model, though it's tough because you can't remove that model without destroying the controller and rebootstrapping12:21
freak_rick_h  now this is the status after switching to admin http://paste.ubuntu.com/15668416/12:25
freak_now how can i access the juju in my browser12:25
freak_rick_h i want to change my public address in yaml file ..how can i change that12:35
freak_i can only see that through juju status --format=yaml12:36
rick_h_freak_: that IP is assigned from MAAS i believe. You can't go in and change it as it's the IP the machine has12:39
freak_dear rick_h   check this http://paste.ubuntu.com/15668791/12:47
freak_my public ip is in unresolved endpoints can this be the reason12:47
freak_because in browser 192.168.6.193/JUJU doesn't open12:47
rick_h_freak_: so if you go to https://192.168.6.193/ you don't get the GUI/12:48
rick_h_freak_: ?12:48
freak_no12:48
rick_h_freak_: do you get a 404 or 500 or ?12:48
freak_when i type 192.168.6.193 in browser it ask for username and password12:49
freak_i opened file accounts.yaml12:50
freak_and used that username and password12:50
rick_h_freak_: ah ok, but on that form in text at the bottom shold be a juju command to get your password for the GUI12:50
urulamafreak_: you should do "juju show-controller --show-passwords" 12:50
hatchhello12:51
freak_http://paste.ubuntu.com/15668875/12:52
freak_rick_h this is the output http://paste.ubuntu.com/15668875/12:52
freak_i used the admin@local and password mentioned in this url12:52
hatchfreak_: when you entered those credentials did you get in?12:53
freak_no it does loading and again show prompt for username password12:54
hatchdoes it say the username and password is invalid?12:54
freak_no it does not say invalid password or username12:56
freak_it simple do some loading and then again show prompt for username and password12:57
hatchok that's quite odd, are there any console errors?12:57
hatchwhen you say prompt do you see a page which says "Juju" on it, or is this a browser authentication input?12:57
freak_its browser authentication input which says your connection to this site is not private and then ask for username and password12:59
hatchok that's not provided by the gui12:59
rick_h_hatch: I think it might be http access to the state server or something. 12:59
hatchI am not sure where that's comign from12:59
rick_h_hatch: this is deployed on machine 0 in juju 2.012:59
hatchinto the admin model? That doesn't work 13:00
hatchat least it didn't for me yesterday on tip13:00
freak_i'm in admin model13:00
rick_h_hatch: ok, can you help him get the gui in 2.0 installed them as an alternative so the juju gui command runs properly?13:00
rick_h_freak_: what version of juju are you on exactly? juju --version13:00
freak_juju version 2.0-beta3-trusty-amd6413:02
hatchalright so for some reason on that version installing to the admin model doesn't work13:03
hatchif you run `juju list-models` you will see two models13:03
hatch`juju switch default`13:03
hatchthen deploy the gui to that one13:03
hatch`juju deploy juju-gui`13:03
freak_so how to resolve that ..earlier i was in default ....and that was not working machine was in admin and it was not deploying juju-gui13:04
rick_h_hatch: he has one machine on maas13:04
rick_h_hatch: and so we removed default and used admin13:04
hatchoh..I didn't know maas worked with one machine 13:04
hatchhah, learn something new every day13:04
hatchanyways13:04
hatchhmm13:05
hatchI unfortunately haven't had enough time to investigate why it won't deploy to admin13:05
rick_h_hatch: so the question is can you get him a working juju gui command on beta3 please13:06
hatchthat is the question...13:06
freak_actually hatch situation is like that we have one machine which is the bootstrap node we want juju-gui on same machine colocated13:06
rick_h_hatch: I thought the upgrade-gui command worked in beta3 with the tarball13:06
hatchI didn't think it landed until beta413:07
hatchthings are in heavy flux right now, hard to keep all the pieces straight :)13:08
hatchthere are only like 30 developers landing code every day ;)13:08
hatchfreak_: sorry, I'm just thinking about how this could work for you13:09
freak_hatch whenever i'm in admin my machine state is error  when i issue command juju status13:16
hatchfreak_: in a little bit here this will be a non-issue as juju 2 will ship with a gui by default :) Right now I'm just waiting for a response from another dev about this issue13:17
freak_but when i move to admin machine status changesto started13:17
hatchyeah I'm actually not sure if maas and juju 2 work with only a single machine13:17
hatchI really have no idea, never tried it13:17
hatchI had just assumed not13:17
freak_no i think you misunderstood, i have 3 machines 1 is region controller , 2nd is cluster controller and 3rd is the node which i have bootstrapped for juju13:18
freak_and on node 3 i'm colocating juju-gui13:19
hatchohh13:19
freak_so actually under cluster controller we have pool of machines in pool i have added only 1 node13:20
freak_and on that i boot strapped JUJU and want to colocate juju-gui13:20
hatchright alright, let me spin up juju 2 and see if I can deploy to admin 013:20
hatchyou might be just in a wierd time of flux :) 13:22
freak_http://paste.ubuntu.com/15669492/13:28
freak_may be this will help http://paste.ubuntu.com/15669492/13:28
hatchfreak_: yeah the gui isn't actually installed13:30
hatch"theres your problem!"13:31
hatch;)13:31
hatchbut I'm actually trying to figure out why for you first13:31
freak_no i destroyed the service juju-gui13:31
freak_and then deploy it again and expose13:31
freak_and share log with you13:31
hatchoh ok13:32
freak_still i cannot access gui through ip 13:32
hatchdoes it still say it's "Waiting for agent initialization to finish"13:32
freak_yes13:33
hatchyeah so it's not done installing, and I"m pretty sure it's hanging13:33
hatchmy new model just came up and am deploying the gui13:33
hatchI'll know shortly13:33
freak_ok13:35
hatchfreak_: ok so it looks like that issue has been resolved in juju tip13:36
hatchwith tip I'm able to deploy the gui properly into machine 0 in the admin model13:36
hatchhow familiar are you with golang? :)13:37
freak_no, and also don't know what is juju tip13:38
freak_can you explain juju tip13:38
hatchtip, head, trunk :) where everyone is landing code13:38
hatchbasically to fix the issue you're running into you need to either a) not use the admin model or b) build juju from source 13:39
hatchor c) wait until the next beta is released13:39
hatchbut c is the least fun13:39
freak_but when i do not use admin mode my machine status is error13:40
hatchyeah I'm not sure about that, that's beyond my expertise 13:40
freak_could you please guide me how to build that juju tip ?13:41
freak_you are referring to and exactly what procedure did you follow to build the juju tip that you just built ? 13:42
hatchif you're not familiar with the golang flow it's going to be a long process13:42
freak_could you please share it ? appreciate the help13:42
hatchyour best bet might be to ask in #juju about what might be going wrong with your other machines 13:43
freak_Also, would Beta 4 address this issue ? If yes, then can you share the ppa/repository to install that13:43
hatchand if that doesn't work out then you might just be in a broken spot and will need to revert back to juju 1.2513:43
hatchbeta 4 can only be built from source right now13:43
freak_ok.thanks for support13:44
freak_its better that i should revert to 1.2513:44
hatchyeah 1.25 works really well, juju 2.0 is _really_ close to a stable release :) but not quite yet and it seems like you hit one of the rare edge cases13:45
freak_any approximate or wild guess about the expected date of release ?13:50
hatchit'll be coming out with the xenial release13:50
hatchso I think that's April 2113:50
freak_thanks for help a great deal. Appreciate it ! 13:51
freak_have a good one !13:51
freak_see you around 13:51
hatchno problem, have a good day!13:52
urulamafreak_: beta4 is just around the corner, it'll be out next week. the PPA to use, check out this page https://jujucharms.com/docs/devel/reference-releases#development13:53
urulamafreak_: and that one will also include gui, so you'll just run "juju gui" and that's it, no need to deploy gui charm anymore13:54
=== redir_afk is now known as redir
=== redir is now known as redir_afk

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!