/srv/irclogs.ubuntu.com/2015/09/20/#juju.txt

=== zz_CyberJacob is now known as CyberJacob
=== CyberJacob is now known as zz_CyberJacob
ejathi .. how to restart juju machine/services once change the setting/configuration ?16:39
bdxejat: juju help run16:47
ejatok thanks16:48
bdxejat: it would be something like - juju run --unit nova-compute/0 "service nova-compute restart"16:49
ejatim trying to deploy charm openstack base16:49
ejatonce completed .. i cant login16:50
bdxejat: ensure you are using the credentials you specified for admin-password in your charmconf.yaml16:51
bdxejat: for keystone16:52
ejati just use default16:52
ejatits redirected to /horizon/admin but timeout16:53
bdxso are you extrapolating the randomly generated password from the keystone service in that case?16:53
bdxejat: your horizon default login should be un: admin, pw: <randomly generated password unless set>16:54
bdxhttps://jujucharms.com/keystone/trusty/2816:54
ejatthe default pw : openstack right ?16:55
bdxejat: why would you think that?16:55
ejatits in services config16:55
bdxejat: oh...are you deploying a bundle than I take it?16:55
bdxahh gotcha16:55
bdxcan you paste the url you are using?16:56
ejatyeah the bundle16:56
ejaturl for my deployment or the url for the bundle ?16:57
bdxejat: also can you paste the url generated by running the command "juju status --format=tabular | pastebinit"16:57
bdxfor the bundle16:57
ejathttps://jujucharms.com/openstack-base/3616:57
bdxejat: ok, I see what you are saying.16:58
ejatbdx : http://paste.ubuntu.com/12503691/16:58
ejati have to set /etc/hosts in openstack-dashboard the internal IP16:59
ejatbecause inside openstack-dashboard putting the public dns to connect to keystone17:00
bdxejat: can you run "juju resolved nova-cloud-compute/0 --retry" and then "juju status --format=tabular | pastebinit"17:01
bdxand paste me the url17:01
ejati try several time to retry .. its up then down again17:02
ejatfenris@macbuntu:~$ juju resolved nova-cloud-compute/0 --retry17:03
ejatERROR unit "nova-cloud-compute/0" not found17:03
ejatfenris@macbuntu:~$ juju status nova-cloud-compute17:03
ejatenvironment: azure217:03
ejatmachines: {}17:03
ejatservices: {}17:03
ejatok .. its up .. wait17:04
ejathttp://paste.ubuntu.com/12503779/17:05
ejattried to login dashboard : The connection was reset17:06
bdxejat: ok, ...I just wanted to get rid of the error state of the hook on the nova-cloud-controller before we move forward17:07
bdxejat: Your telling me you can login now?17:08
ejatnope17:08
bdxok17:08
ejatstill cant login17:08
bdxejat: what if any config modifications are you making to openstack-dashboard concerning dns?17:09
* ejat not modify .. just adding the host in /etc/hosts17:10
ejatkeystone host in dashboard /etc/hosts17:10
bdxok17:11
ejatkeystone/017:11
ejat    IP Address: 10.0.0.4617:11
ejat    Status: started17:11
ejat    Public Address: 10.0.0.4617:11
ejatits doesnt get the right public dns : juju-azure2-j41rc8jcm9.cloudapp.net17:12
bdxah ok, so whats going on here is you also need to add the entry for openstack-dashboard in keystone17:14
ejatvise versa ?17:14
bdxso do the same thing you did for keystone but for openstack-dashboard, does that make sense?17:15
bdxya17:15
ejatlet me try17:15
bdxonce you have made the change, run "juju run --unit openstack-dashboard/0 "service apache2 restart""17:16
ejatun : admin , pw: openstack ?17:20
bdxyea17:20
ejatstill ... connecting ...........17:21
ejatredirected to /horizon/admin with The connection was reset17:21
ejatis it need to define all machine the local/internal IP ?17:22
ejat:(17:22
ejatbdx :17:26
bdxcan 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
bdxejat: possibly17:26
bdxhopefully not, we will see17:27
ejathttp://paste.ubuntu.com/12504087/17:28
bdxejat: also, what happens if you run "juju run --unit openstack-dashboard/0 "host juju-azure2-j41rc8jcm9.cloudapp.net""17:29
ejatjuju run --unit openstack-dashboard/0 "host juju-azure2-j41rc8jcm9.cloudapp.net"17:30
ejatjuju-azure2-j41rc8jcm9.cloudapp.net has address 207.46.155.24817:30
ejatif i didnt add inside /etc/hosts ... dashboard cant ping to that address17:32
bdxejat, hmmm did you add "207.46.155.248 juju-azure2-j41rc8jcm9.cloudapp.net" to /etc/hosts?17:34
ejatin dashboard ?17:34
bdxor the internal 10.0.0 ?17:34
ejat10.0.0.x17:35
bdxyea?17:35
ejatnot public17:35
ejatu want me to add that ?17:35
bdxok, lets try using the public ip in the hosts files on for keystone and openstack-dashboard17:35
ejatone second17:36
ejatthen restart apache2?17:37
bdxso in keystone /etc/hosts -> "23.99.125.58 juju-azure2-3a6jyl44mj.cloudapp.net"17:37
bdxand in openstack-dashboard /etc/hosts "207.46.155.248 juju-azure2-j41rc8jcm9.cloudapp.net"17:37
bdxonce you have made the change, run "juju run --unit openstack-dashboard/0 "service apache2 restart""17:38
ejatdone .. trying to login the dashboard17:39
ejatstill the same17:40
ejatredirected to /horizon/admin then timed out17:40
bdxdarn17:41
bdxif you are not opposed, we can redeploy the dashboard17:41
ejatmean .. destroy n redeploy?17:42
bdx"juju destroy-service openstack-dashboard && juju destroy-machine 26 --force"17:42
bdxyea17:42
ejat:)17:42
ejatok17:42
bdxthen17:42
ejatim ok ..17:42
bdxlets specify a charmconf.yaml for openstack-dashboard before we redeploy17:43
ejatok ..17:43
ejatgot sample for charmconf.yaml ?17:44
bdxyea omp17:44
ejatomp ?17:44
ejaton manual page ?17:44
ejatdont destroying the dashboard17:45
bdxthis is a kilo deploy right?17:45
ejatdone*17:45
bdxok17:45
ejatnot sure what r the charm get the version17:45
bdxhttp://paste.ubuntu.com/12504309/17:46
bdxput that into a file e.g. charmconf.yaml17:47
bdxthen run these commands17:47
bdx"juju deploy openstack-dashboard --config charmconf.yaml && juju add-relation openstack-dashboard keystone"17:47
bdxor command I should say :-)17:48
bdxand then paste me the url from "juju status --format=tabular | pastebinit"17:50
ejathttp://paste.ubuntu.com/12504424/17:52
ejatthen expose ?17:52
bdxummm17:52
bdxhold on17:52
ejatokie17:53
bdxrun this again "juju status --format=tabular | pastebinit"17:53
ejathttp://paste.ubuntu.com/12504545/17:54
ejatwaiting agnet17:54
ejatagent*17:54
bdxok17:54
bdxlet me know when its finished and in idle state, then paste me the url17:55
bdxsorry17:55
ejatok17:55
ejatno worries .. thanks for ya assistant :)17:55
bdxnp17:56
bdxrun this this time "juju status | pastebinit"17:57
bdxand?18:01
ejathttp://paste.ubuntu.com/12504742/18:02
ejatnot yet :)18:02
bdxdarn...18:02
bdxha18:02
ejat installing charm software18:03
ejatbasic instanse hware18:04
ejatits up18:04
ejatexpose?18:04
bdxrun this this time "juju status | pastebinit"18:04
ejathttp://paste.ubuntu.com/12504940/18:05
bdxrun this this time "juju status | pastebinit"18:05
ejathttp://paste.ubuntu.com/12504948/18:05
bdxok yea now expose18:06
ejathttp://paste.ubuntu.com/12504988/18:07
ejatwhat is the pw ?18:07
bdxit should be un: admin, pw: openstack18:08
bdxbut im trying to login atm...no dice18:08
ejat:(18:09
bdxwhat are the internal ips for keystone and openstack-dashboard?18:09
ejatopenstack-dashboard/018:10
ejat    IP Address: 10.0.0.52 | Ports 80/tcp, 443/tcp18:10
ejat    Status: started18:10
ejat    Public Address: juju-azure2-6yl2jtw74n.cloudapp.net | Ports 80/tcp, 443/tcp18:10
bdxalso, 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 keystone18:10
ejathmm .. now its get the right public dns18:10
bdxand keyston?18:10
ejatkeystone/018:10
ejat    IP Address: 10.0.0.4618:10
ejat    Status: started18:10
ejat    Public Address: 10.0.0.4618:10
ejatis it the bundle charm not updated ?18:11
bdxok, so set OPENSTACK_HOST=10.0.0.4618:11
ejatok18:11
bdxin local_settings.py18:11
ejatok18:11
bdxand then "juju run --unit openstack-dashboard/0 "service apache2 restart""18:11
bdxyea?18:14
ejatdone restart18:14
bdxok18:14
bdxdo you have the openrc file?18:15
ejathttp://paste.ubuntu.com/12505116/18:16
ejatnope .. i think ..18:16
ejathavent get the openrc yet18:16
ejatand scp it18:16
bdxif so, can you "juju scp openrc keystone/0:~/ && juju run --unit keystone/0 "source openrc && keystone user-list"18:16
bdxok so now on your local machine run "ssh-keygen -f "/root/.ssh/known_hosts" -R 10.0.0.52"18:17
bdxthen try again18:17
ejatmkstemp: Permission denied18:18
bdxssh-keygen -f "/root/.ssh/known_hosts" -R 10.0.0.52 ?18:18
bdxoooh18:19
bdxyour are root?18:19
bdxerr18:19
bdxok18:19
bdxso18:19
bdxsudo ssh-keygen -f "/root/.ssh/known_hosts" -R 10.0.0.5218:19
ejatopenrc i dont have :)18:19
bdxohh ok18:19
ejat$ sudo ssh-keygen -f "/root/.ssh/known_hosts" -R 10.0.0.5218:20
ejatmkstemp: No such file or directory18:20
bdxok18:21
bdxso lets do this as a normal user18:21
bdxnot root18:21
ejattenant name = admin18:22
ejatkeystone = internal ip ?18:23
ejatfor the openrc ?18:23
bdxok18:23
bdxI know exactly whats up18:23
bdxif you want horizon to be able to use keystone's public url you have to expose it18:24
bdxlol18:24
ejathorizon expose ?18:24
ejator keystone?18:24
ejatboth ?18:25
bdxotherwise you need to set OPENSTACK_HOST=10.0.0.46 in local_settings.py on the openstack-dashboard18:25
bdxhorizon is already exposed18:25
bdxbut notice in local_settings.py it is trying to talk to keystone's public address which is not exposed18:25
bdxso18:25
bdxif you want public access to your api endpoints (which I'm sure you probably will) then expose keystone18:26
ejat$ juju scp openrc keystone/0:~/ && juju run --unit keystone/0 "source openrc && keystone user-list"18:27
ejat/tmp/juju-exec096226571/script.sh: line 1: openrc: No such file or directory18:27
ejatERROR subprocess encountered error code 118:27
bdxok18:27
ejatthe openrc is in the path18:27
bdxI know18:27
bdxits18:27
bdxok18:27
bdxmy bad18:27
bdxif so, can you "juju scp openrc keystone/0:/home/ubuntu/ && juju run --unit keystone/0 "source /home/ubuntu/openrc && keystone user-list"18:28
bdxbut that wont work until you expose keystones public endpoint18:28
ejat\0/ user-list18:29
bdxdid you expose keystone?18:29
ejatnot yet18:29
bdxok18:29
ejathehe wait18:29
bdxare you reading what I'm telling you18:30
bdxif you look in the openrc it has keystone's public endpoint which is not accessable unless you expose it18:30
bdxso once you expose it18:30
bdx"juju run --unit openstack-dashboard/0 "keystone user-list""18:31
bdxand you should have success18:31
ejathttp://paste.ubuntu.com/12505350/18:32
ejat:(18:32
bdxgrrr18:32
ejatchange back the internal in local_setting.py ?18:33
bdxyeah18:33
bdxif you exposed keystone18:33
ejatkeystone/018:33
ejat    IP Address: 10.0.0.4618:33
ejat    Status: started18:33
ejat    Public Address: 10.0.0.4618:33
ejatafter exposed ..18:33
ejatits still the same18:33
bdxoooh18:34
bdxok18:34
ejati think something wrong with the bundle openstack base :(18:35
bdxis that the value of OPENSTACK_HOST? in local_settings.py?18:35
ejatyups18:35
bdx10.0.0.46 ?18:35
ejatstill the same18:35
bdxok18:35
bdxnow "juju ssh openstack-dashboard/0"18:35
bdxcan you do that?18:35
ejatcan18:35
bdxok18:35
bdxinside of openstack-dashboard run "sudo service apache2 restart"18:36
ejatrestarted18:37
ejat$ keystone user-list18:37
ejatExpecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]18:37
bdxsource openrc18:37
bdxthen keystone user-list18:37
bdxejat: inside of openstack-dashboard18:38
bdx"sudo cat /var/log/apache2/error.log | pastebinit && sudo cat /var/log/apache2/access.log | pastebinit"18:39
ejathttp://paste.ubuntu.com/12505464/18:39
ejathttp://paste.ubuntu.com/12505480/18:40
ejathttp://paste.ubuntu.com/12505481/18:40
bdxejat: http://paste.ubuntu.com/12505480/ line 34718:41
bdxnow what I want you to try18:42
bdxform openstack-dashboard18:42
bdxedit openrc18:42
bdxto reflect keystone's internal ip18:42
bdx10.0.0.4618:42
bdxhttp://paste.ubuntu.com/12505530/18:43
ejatalready .4618:43
ejatin dashboard18:43
bdxok18:43
bdxnow edit the openrc to look like http://paste.ubuntu.com/12505530/18:43
ejatowh no regionone18:43
bdxhuh18:43
bdxif you want to share a chrome desktop session with me I can fix this for you alot faster prob18:44
bdxchrome remote18:44
bdxdo you know about that18:45
ejatok18:45
bdxhttps://chrome.google.com/webstore/detail/chrome-remote-desktop/gbchcmhmhahfdphkhkmpfmihenigjmpp?hl=en18:45
ejatone moment18:45
bdxready when you are18:49
ejatbdx : PM18:52
ejat?18:54
ejatthe code xpiring18:54
bdxyeah send it18:55
bdxpm me18:55
ejatbdx : thanks u so much ... for keep trying20:49
blrI 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.21:56
rick_h_blr: the issue is that gunicorn is a subordinate: https://api.jujucharms.com/charmstore/v4/trusty/gunicorn-0/archive/metadata.yaml22:06
rick_h_blr: it's meant to be used to serve out/hook up with your app as a full charm vs a subordinate22:06
rick_h_blr: and juju does not support a subordinate on a subordinate22:06
blrrick_h_: oh it doesn't? :/22:06
rick_h_blr: no, because a subordinate is meant to stick onto something and apply to that machine22:06
blrI need squid both squid and my web service on the same unit however22:07
blrerr hopefully you can parse that hah22:07
rick_h_blr: so there we'd suggest using colocation22:07
rick_h_blr: so I'd do your service as its own charm22:07
rick_h_and colocate it using the --to command22:08
rick_h_blr: juju supports containers and 'hulk smash' colocation methods you could use to have them all running on one machine22:08
rick_h_blr: https://jujucharms.com/docs/stable/charms-deploying#deploying-to-specific-machines-and-containers22:09
blrthanks rick_h_, I'll try that again.22:09
rick_h_blr: np, hope that helps some22:10

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