=== zz_CyberJacob is now known as CyberJacob === CyberJacob is now known as zz_CyberJacob [16:39] hi .. how to restart juju machine/services once change the setting/configuration ? [16:47] ejat: juju help run [16:48] ok thanks [16:49] ejat: it would be something like - juju run --unit nova-compute/0 "service nova-compute restart" [16:49] im trying to deploy charm openstack base [16:50] once completed .. i cant login [16:51] ejat: ensure you are using the credentials you specified for admin-password in your charmconf.yaml [16:52] ejat: for keystone [16:52] i just use default [16:53] its redirected to /horizon/admin but timeout [16:53] so are you extrapolating the randomly generated password from the keystone service in that case? [16:54] ejat: your horizon default login should be un: admin, pw: [16:54] https://jujucharms.com/keystone/trusty/28 [16:55] the default pw : openstack right ? [16:55] ejat: why would you think that? [16:55] its in services config [16:55] ejat: oh...are you deploying a bundle than I take it? [16:55] ahh gotcha [16:56] can you paste the url you are using? [16:56] yeah the bundle [16:57] url for my deployment or the url for the bundle ? [16:57] ejat: also can you paste the url generated by running the command "juju status --format=tabular | pastebinit" [16:57] for the bundle [16:57] https://jujucharms.com/openstack-base/36 [16:58] ejat: ok, I see what you are saying. [16:58] bdx : http://paste.ubuntu.com/12503691/ [16:59] i have to set /etc/hosts in openstack-dashboard the internal IP [17:00] because inside openstack-dashboard putting the public dns to connect to keystone [17:01] ejat: can you run "juju resolved nova-cloud-compute/0 --retry" and then "juju status --format=tabular | pastebinit" [17:01] and paste me the url [17:02] i try several time to retry .. its up then down again [17:03] fenris@macbuntu:~$ juju resolved nova-cloud-compute/0 --retry [17:03] ERROR unit "nova-cloud-compute/0" not found [17:03] fenris@macbuntu:~$ juju status nova-cloud-compute [17:03] environment: azure2 [17:03] machines: {} [17:03] services: {} [17:04] ok .. its up .. wait [17:05] http://paste.ubuntu.com/12503779/ [17:06] tried to login dashboard : The connection was reset [17:07] ejat: ok, ...I just wanted to get rid of the error state of the hook on the nova-cloud-controller before we move forward [17:08] ejat: Your telling me you can login now? [17:08] nope [17:08] ok [17:08] still cant login [17:09] ejat: what if any config modifications are you making to openstack-dashboard concerning dns? [17:10] * ejat not modify .. just adding the host in /etc/hosts [17:10] keystone host in dashboard /etc/hosts [17:11] ok [17:11] keystone/0 [17:11] IP Address: 10.0.0.46 [17:11] Status: started [17:11] Public Address: 10.0.0.46 [17:12] its doesnt get the right public dns : juju-azure2-j41rc8jcm9.cloudapp.net [17:14] ah ok, so whats going on here is you also need to add the entry for openstack-dashboard in keystone [17:14] vise versa ? [17:15] so do the same thing you did for keystone but for openstack-dashboard, does that make sense? [17:15] ya [17:15] let me try [17:16] once you have made the change, run "juju run --unit openstack-dashboard/0 "service apache2 restart"" [17:20] un : admin , pw: openstack ? [17:20] yea [17:21] still ... connecting ........... [17:21] redirected to /horizon/admin with The connection was reset [17:22] is it need to define all machine the local/internal IP ? [17:22] :( [17:26] bdx : [17:26] can you paste the url from "juju run --unit openstack-dashboard/0 "apt install pastebinit > /dev/null 2>&1 && cat /etc/openstack-dashboard/local_settings.py | pastebinit"" [17:26] ejat: possibly [17:27] hopefully not, we will see [17:28] http://paste.ubuntu.com/12504087/ [17:29] ejat: also, what happens if you run "juju run --unit openstack-dashboard/0 "host juju-azure2-j41rc8jcm9.cloudapp.net"" [17:30] juju run --unit openstack-dashboard/0 "host juju-azure2-j41rc8jcm9.cloudapp.net" [17:30] juju-azure2-j41rc8jcm9.cloudapp.net has address 207.46.155.248 [17:32] if i didnt add inside /etc/hosts ... dashboard cant ping to that address [17:34] ejat, hmmm did you add "207.46.155.248 juju-azure2-j41rc8jcm9.cloudapp.net" to /etc/hosts? [17:34] in dashboard ? [17:34] or the internal 10.0.0 ? [17:35] 10.0.0.x [17:35] yea? [17:35] not public [17:35] u want me to add that ? [17:35] ok, lets try using the public ip in the hosts files on for keystone and openstack-dashboard [17:36] one second [17:37] then restart apache2? [17:37] so in keystone /etc/hosts -> "23.99.125.58 juju-azure2-3a6jyl44mj.cloudapp.net" [17:37] and in openstack-dashboard /etc/hosts "207.46.155.248 juju-azure2-j41rc8jcm9.cloudapp.net" [17:38] once you have made the change, run "juju run --unit openstack-dashboard/0 "service apache2 restart"" [17:39] done .. trying to login the dashboard [17:40] still the same [17:40] redirected to /horizon/admin then timed out [17:41] darn [17:41] if you are not opposed, we can redeploy the dashboard [17:42] mean .. destroy n redeploy? [17:42] "juju destroy-service openstack-dashboard && juju destroy-machine 26 --force" [17:42] yea [17:42] :) [17:42] ok [17:42] then [17:42] im ok .. [17:43] lets specify a charmconf.yaml for openstack-dashboard before we redeploy [17:43] ok .. [17:44] got sample for charmconf.yaml ? [17:44] yea omp [17:44] omp ? [17:44] on manual page ? [17:45] dont destroying the dashboard [17:45] this is a kilo deploy right? [17:45] done* [17:45] ok [17:45] not sure what r the charm get the version [17:46] http://paste.ubuntu.com/12504309/ [17:47] put that into a file e.g. charmconf.yaml [17:47] then run these commands [17:47] "juju deploy openstack-dashboard --config charmconf.yaml && juju add-relation openstack-dashboard keystone" [17:48] or command I should say :-) [17:50] and then paste me the url from "juju status --format=tabular | pastebinit" [17:52] http://paste.ubuntu.com/12504424/ [17:52] then expose ? [17:52] ummm [17:52] hold on [17:53] okie [17:53] run this again "juju status --format=tabular | pastebinit" [17:54] http://paste.ubuntu.com/12504545/ [17:54] waiting agnet [17:54] agent* [17:54] ok [17:55] let me know when its finished and in idle state, then paste me the url [17:55] sorry [17:55] ok [17:55] no worries .. thanks for ya assistant :) [17:56] np [17:57] run this this time "juju status | pastebinit" [18:01] and? [18:02] http://paste.ubuntu.com/12504742/ [18:02] not yet :) [18:02] darn... [18:02] ha [18:03] installing charm software [18:04] basic instanse hware [18:04] its up [18:04] expose? [18:04] run this this time "juju status | pastebinit" [18:05] http://paste.ubuntu.com/12504940/ [18:05] run this this time "juju status | pastebinit" [18:05] http://paste.ubuntu.com/12504948/ [18:06] ok yea now expose [18:07] http://paste.ubuntu.com/12504988/ [18:07] what is the pw ? [18:08] it should be un: admin, pw: openstack [18:08] but im trying to login atm...no dice [18:09] :( [18:09] what are the internal ips for keystone and openstack-dashboard? [18:10] openstack-dashboard/0 [18:10] IP Address: 10.0.0.52 | Ports 80/tcp, 443/tcp [18:10] Status: started [18:10] Public Address: juju-azure2-6yl2jtw74n.cloudapp.net | Ports 80/tcp, 443/tcp [18:10] also, lets try this in /etc/openstack-dashboard/local_settings.py I want you to modify OPENSTACK_HOST to be the 10.0.0.x ip for keystone [18:10] hmm .. now its get the right public dns [18:10] and keyston? [18:10] keystone/0 [18:10] IP Address: 10.0.0.46 [18:10] Status: started [18:10] Public Address: 10.0.0.46 [18:11] is it the bundle charm not updated ? [18:11] ok, so set OPENSTACK_HOST=10.0.0.46 [18:11] ok [18:11] in local_settings.py [18:11] ok [18:11] and then "juju run --unit openstack-dashboard/0 "service apache2 restart"" [18:14] yea? [18:14] done restart [18:14] ok [18:15] do you have the openrc file? [18:16] http://paste.ubuntu.com/12505116/ [18:16] nope .. i think .. [18:16] havent get the openrc yet [18:16] and scp it [18:16] if so, can you "juju scp openrc keystone/0:~/ && juju run --unit keystone/0 "source openrc && keystone user-list" [18:17] ok so now on your local machine run "ssh-keygen -f "/root/.ssh/known_hosts" -R 10.0.0.52" [18:17] then try again [18:18] mkstemp: Permission denied [18:18] ssh-keygen -f "/root/.ssh/known_hosts" -R 10.0.0.52 ? [18:19] oooh [18:19] your are root? [18:19] err [18:19] ok [18:19] so [18:19] sudo ssh-keygen -f "/root/.ssh/known_hosts" -R 10.0.0.52 [18:19] openrc i dont have :) [18:19] ohh ok [18:20] $ sudo ssh-keygen -f "/root/.ssh/known_hosts" -R 10.0.0.52 [18:20] mkstemp: No such file or directory [18:21] ok [18:21] so lets do this as a normal user [18:21] not root [18:22] tenant name = admin [18:23] keystone = internal ip ? [18:23] for the openrc ? [18:23] ok [18:23] I know exactly whats up [18:24] if you want horizon to be able to use keystone's public url you have to expose it [18:24] lol [18:24] horizon expose ? [18:24] or keystone? [18:25] both ? [18:25] otherwise you need to set OPENSTACK_HOST=10.0.0.46 in local_settings.py on the openstack-dashboard [18:25] horizon is already exposed [18:25] but notice in local_settings.py it is trying to talk to keystone's public address which is not exposed [18:25] so [18:26] if you want public access to your api endpoints (which I'm sure you probably will) then expose keystone [18:27] $ juju scp openrc keystone/0:~/ && juju run --unit keystone/0 "source openrc && keystone user-list" [18:27] /tmp/juju-exec096226571/script.sh: line 1: openrc: No such file or directory [18:27] ERROR subprocess encountered error code 1 [18:27] ok [18:27] the openrc is in the path [18:27] I know [18:27] its [18:27] ok [18:27] my bad [18:28] if so, can you "juju scp openrc keystone/0:/home/ubuntu/ && juju run --unit keystone/0 "source /home/ubuntu/openrc && keystone user-list" [18:28] but that wont work until you expose keystones public endpoint [18:29] \0/ user-list [18:29] did you expose keystone? [18:29] not yet [18:29] ok [18:29] hehe wait [18:30] are you reading what I'm telling you [18:30] if you look in the openrc it has keystone's public endpoint which is not accessable unless you expose it [18:30] so once you expose it [18:31] "juju run --unit openstack-dashboard/0 "keystone user-list"" [18:31] and you should have success [18:32] http://paste.ubuntu.com/12505350/ [18:32] :( [18:32] grrr [18:33] change back the internal in local_setting.py ? [18:33] yeah [18:33] if you exposed keystone [18:33] keystone/0 [18:33] IP Address: 10.0.0.46 [18:33] Status: started [18:33] Public Address: 10.0.0.46 [18:33] after exposed .. [18:33] its still the same [18:34] oooh [18:34] ok [18:35] i think something wrong with the bundle openstack base :( [18:35] is that the value of OPENSTACK_HOST? in local_settings.py? [18:35] yups [18:35] 10.0.0.46 ? [18:35] still the same [18:35] ok [18:35] now "juju ssh openstack-dashboard/0" [18:35] can you do that? [18:35] can [18:35] ok [18:36] inside of openstack-dashboard run "sudo service apache2 restart" [18:37] restarted [18:37] $ keystone user-list [18:37] Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL] [18:37] source openrc [18:37] then keystone user-list [18:38] ejat: inside of openstack-dashboard [18:39] "sudo cat /var/log/apache2/error.log | pastebinit && sudo cat /var/log/apache2/access.log | pastebinit" [18:39] http://paste.ubuntu.com/12505464/ [18:40] http://paste.ubuntu.com/12505480/ [18:40] http://paste.ubuntu.com/12505481/ [18:41] ejat: http://paste.ubuntu.com/12505480/ line 347 [18:42] now what I want you to try [18:42] form openstack-dashboard [18:42] edit openrc [18:42] to reflect keystone's internal ip [18:42] 10.0.0.46 [18:43] http://paste.ubuntu.com/12505530/ [18:43] already .46 [18:43] in dashboard [18:43] ok [18:43] now edit the openrc to look like http://paste.ubuntu.com/12505530/ [18:43] owh no regionone [18:43] huh [18:44] if you want to share a chrome desktop session with me I can fix this for you alot faster prob [18:44] chrome remote [18:45] do you know about that [18:45] ok [18:45] https://chrome.google.com/webstore/detail/chrome-remote-desktop/gbchcmhmhahfdphkhkmpfmihenigjmpp?hl=en [18:45] one moment [18:49] ready when you are [18:52] bdx : PM [18:54] ? [18:54] the code xpiring [18:55] yeah send it [18:55] pm me [20:49] bdx : thanks u so much ... for keep trying [21:56] I have a web service subordinate to squid, with a requires interface defined, however when adding a relation between the web service and gunicorn, _both_ the web service and gunicorn declare that they are subordinate to eachother, which clearly isn't correct. [22:06] blr: the issue is that gunicorn is a subordinate: https://api.jujucharms.com/charmstore/v4/trusty/gunicorn-0/archive/metadata.yaml [22:06] blr: it's meant to be used to serve out/hook up with your app as a full charm vs a subordinate [22:06] blr: and juju does not support a subordinate on a subordinate [22:06] rick_h_: oh it doesn't? :/ [22:06] blr: no, because a subordinate is meant to stick onto something and apply to that machine [22:07] I need squid both squid and my web service on the same unit however [22:07] err hopefully you can parse that hah [22:07] blr: so there we'd suggest using colocation [22:07] blr: so I'd do your service as its own charm [22:08] and colocate it using the --to command [22:08] blr: juju supports containers and 'hulk smash' colocation methods you could use to have them all running on one machine [22:09] blr: https://jujucharms.com/docs/stable/charms-deploying#deploying-to-specific-machines-and-containers [22:09] thanks rick_h_, I'll try that again. [22:10] blr: np, hope that helps some