/srv/irclogs.ubuntu.com/2016/06/14/#juju.txt

=== firl_ is now known as firl
=== natefinch-afk is now known as natefinch
nobutohi, can somebody please review my PR for apache-php layer? https://github.com/juju-solutions/layer-apache-php/pull/407:25
=== Spads__ is now known as Spads
kjackaladmcleod: not enough slaves?09:23
admcleodkjackal: it appears that trying to run the hbase smoke-test when i dont have a 3 slave cluster deployed (only 1 slave) it dies due to min/max replication factor issue09:23
kjackalbut the smoketest setsup only one slave, right?09:24
kjackalI mean the amulet test that runs the smoketest sets up a single slave cluster09:25
admcleodkjackal: im not running the amulet test yet, i deployed it manually09:25
=== Spads_ is now known as Spads
=== julenlar is now known as julenl
kjackaladmcleod: I have a question09:38
kjackalyou know how we have this flag --no-local-layers09:39
kjackalis there a way to say no-local-layers except layer XYZ ?09:39
admcleodkjackal: im not sure. i would probably rename a local dir or something to work around that09:42
admcleodkjackal: or move things around09:42
admcleodkjackal: --include and --exclude migth be nice though09:43
kjackalYes, for now i am moving thing around09:43
kjackaladmcleod: that is stange.... I see that hadoop-client becomes ready before the plugin even installs java....09:46
admcleodkjackal: which state?09:46
kjackaladmcleod: I must have something setup worng...09:46
kjackalhttp://pastebin.ubuntu.com/17320656/09:47
brunogirinHi all, I'm trying to configure Juju 2.0 to work with an OpenStack cloud and I'm getting very confused about how to do this. I've got a Juju 1 environments.yaml file for it but am struggling to migrate that to 2.0. Can anybody help?10:00
admcleodkjackal: one moment10:03
admcleodbrunogirin: where are you getting stuck?10:03
kjackaladmcleod, brunogirin: I will try!10:05
brunogirinadmcleod: understanding what goes into the cloud config, the model and if anything goes in the model, how I define it10:05
tzounoxhello I got hook failed "update-status" on juju an this error from logs unner.go:275 stopped "api", err: login for "machine-0-lxc-3" blocked because upgrade in progress10:06
tzounoxcould you help me with this?10:06
kjackalbrunogirin: what instructions did you follow to configure juju 2.0 with openstack?10:07
admcleodbrunogirin: so there is a basic example here: https://jujucharms.com/docs/devel/clouds (if you search the page for 'openstack.example.com' you'll find it)10:07
admcleodtzounox: have you actually recently tried to upgrade the charm on that unit?10:08
tzounoxyeah it says that it is on latest version10:08
tzounoxit says upgrade in progress but it is not10:09
brunogirinadmcleod, kjackal: yes, that's the doc I was following; 1st question: the enpoint specified under region-name, is it the identity endpoint, the compute one, another one?10:09
tzounoxdont know whats happening10:09
brunogirinand where do attributes like "use-floating-ip" ad "tenant-name" go?10:10
admcleodtzounox: does the juju debug-log show anything more? its not doing something strange?10:12
tzounoxi go this one ERROR juju.worker runner.go:223 exited "firewaller": machine 5 not provisioned10:13
admcleodbrunogirin: https://bugs.launchpad.net/juju-core/+bug/157675010:13
mupBug #1576750: juju2 usability: many options have to be specified for every bootstrap <bootstrap> <juju-release-support> <jujuqa> <landscape> <usability> <juju-core:Fix Released by axwalk> <https://launchpad.net/bugs/1576750>10:13
admcleodbrunogirin: see the 3rd from last comment10:14
admcleodtzounox: i have seen this before but am struggling to recall why10:14
admcleodtzounox: which version of juju?10:16
admcleodbrunogirin: does that help?10:16
brunogirinadmcleod: thanks, that clarifies some of it! Is the tenant-name specified when I run juju bootstrap then?10:16
tzounoxadmcleod10:17
tzounoxadmcleod10:17
tzounoxadmcleod10:17
tzounox1.25.5-trusty-amd6410:17
admcleodbrunogirin: it looks like that should also go in the config10:17
gnuoybrunogirin, I have OS_TENANT_NAME env variable set, among others, when bootstrapping to point juju  at the tenant10:17
admcleodbrunogirin: e.g https://jujucharms.com/docs/devel/temp-release-notes, search for 'tenant-name' there10:17
admcleodbrunogirin: but im guessing at this point so probably what gnuoy said :)10:19
brunogirinadmcleod: ah right, it makes sense in the credentials!10:19
brunogirinadmcleod: yes, I might do that for now but in the future I'll have multiple environment on that same cloud (UAT, prod, etc) so it's useful to be able to put it in a config file that can be used on bootstrap10:20
admcleodbrunogirin: ah right ok10:20
admcleodtzounox: so.. yeah it was a bug that affected an older version. is this an environment that has been bootstrapped for a while, functional, and just stopped working?10:21
admcleodtzounox: it seems like perhaps lxd is having an issue provisioning machines, so perhaps theres a local resource issue?10:21
tzounoxyeah this error appeared 2 days later and it is a local setup10:22
brunogirinadmcleod: thanks for the help, I'll try all this and tell you what happens10:22
tzounoxis there anything that I can do?10:22
admcleodbrunogirin: no worries, interested to know10:22
admcleodtzounox: there is some 'lxd refresh' type command, im trying to find ..10:23
brunogirinadmcleod: last question before that, the endpoint in the cloud config, is it the identity endpoint?10:23
admcleodbrunogirin: i think its identity10:27
brunogirinadmcleod: thanks, I'll try that then10:28
admcleodtzounox: i cant find what im looking for, but are you able to just restart the lxd service?10:28
tzounoxi have done this before, i juju ssh into the service and then sudo reboot but it does not fixed it10:29
tzounoxI have restart the node also and the hole system10:29
admcleodtzounox: does juju status say anything revealing about machine-0?10:33
kjackalI remember having this error in the past... "ImportError: cannot import name 'layer'" does anyone know what do I need to do to see the layers from an action?10:34
tzounoxi got this from juju status10:36
tzounoxcannot run instances: cannot run instances: gomaasapi: got10:36
tzounox      error back from server: 409 CONFLICT (No available node matches constraints:10:36
tzounox      zone=default)10:36
admcleodtzounox: have you tried to destroy and re-bootstrap the environment? (or is this not practical for you?)10:39
tzounoxi have done it in the past but again i got the error after 2 days and it is very time consuming10:40
tzounoxso its not actually an option10:40
kjackaltzounox: anything interesting under /var/log/lxc or /var/log/lxd ?10:41
brunogirinadmcleod: result of my test: I get a beautiful go stack trace in openstack/provider.go10:42
admcleodtzounox: right - i understand. is upgrading to juju 2.0 an option?10:42
admcleodbrunogirin: pastebin?10:42
tzounoxi go this from /var/log/lxc10:43
tzounoxlxc-start 1465824044.634 ERROR    lxc_cgmanager - cgmanager.c:cgm_destroy:575 - Error connecting to cgroup manager10:43
brunogirinadmcleod: http://pastebin.com/aQFfnnuj10:44
admcleodtzounox: do you have any more errors after that?10:45
tzounoxno its only this10:46
admcleodtzounox: one recommendation is to install 'cgroupmanager' but i doubt thats going to help10:47
tzounoxi should install it on the machine with the juju services?10:48
admcleodtzounox: on the lxd host10:49
tzounoxand whats the other option that i have :)10:49
admcleodtzounox: well... there should be more people waking up soon (US time zone) who might be able to help with this10:53
tzounoxok thank you very much for your time10:53
dimiternbrunogirin: hey there10:54
admcleoddimitern: so brunogirin is trying to bootstrap openstack and gets this: http://pastebin.com/aQFfnnuj10:54
dimiternbrunogirin: you were having some issues with juju 2.0?10:54
brunogirindimitern: hi, yes, I seem to struggle with bootstrapping OpenStack10:54
dimiternnasty! :/10:55
admcleodtzounox: no problem, ill see if i can find someone who might be able to help more10:55
dimiternbrunogirin: what version of openstack is that if you know?10:55
brunogirindimitern: no idea, it's those guys: http://www.datacentred.co.uk/10:56
brunogirindimitern: according to the compute endpoint, it might be v210:57
dimiternbrunogirin: thanks, I'll have a look; and you're using the juju-2.0-beta8 release tarball ?10:57
dimiternbrunogirin: or you build from source?10:57
brunogirindimitern: yes 2.0-beta8 from xenial10:57
brunogirindimitern: do you want me to file a launchpad bug with the cloud config in it?10:58
dimiternbrunogirin: that will be great, thanks!10:58
dimiternbrunogirin: I'll have a look what might be causing this10:59
brunogirindimitern: thanks, I'm happy to create a user for you on that cloud if it helps find out what the problem is11:01
admcleodit looks like datacentred is running juno11:02
brunogirindimitern: stupid question: how do you file a bug when ubuntu-bug tells you that juju-2.0 is not an official ubuntu package and the problem can't be reported?11:05
brunogirindimitern: bug filed here: https://bugs.launchpad.net/ubuntu/+source/juju-core/+bug/159236511:13
mupBug #1592365: Juju 2.0 crashes on bootstrap with datacentred.co.uk OpenStack cloud <juju-core (Ubuntu):New> <https://launchpad.net/bugs/1592365>11:13
dimiternbrunogirin: awesome! We'll track the progress there, thanks!11:14
brunogirindimitern: thanks! If you need more info, please tell me and as I said, happy to give you access to the environment if it helps11:14
dimiternbrunogirin: hey, can you try something first please? remove the config section in the datacenterd section of your clouds.yaml and try bootstrapping again?11:17
dimiternbrunogirin: default config per cloud cannot be specified in the clouds.yaml as far as I know, and might be the reason of that panic (well, it shouldn't panic)11:18
brunogirindimitern: same error; I got the default config example from 3rd comment before last in this bug report: https://bugs.launchpad.net/juju-core/+bug/157675011:19
mupBug #1576750: juju2 usability: many options have to be specified for every bootstrap <bootstrap> <juju-release-support> <jujuqa> <landscape> <usability> <juju-core:Fix Released by axwalk> <https://launchpad.net/bugs/1576750>11:19
dimiternbrunogirin: oh, ok (news to me); can you try bootstrap with --debug and attach the log to the bug please (scrub secrets / keys before that, if any)?11:21
brunogirindimitern: done11:24
dimiternbrunogirin: thanks! That revealed the issue, I think11:29
brunogirindimitern: excellent!11:29
dimiternbrunogirin: please try using the endpoint with the version - https://compute.datacentred.io:5000/v2.0/ - as endpoint in your confing11:30
dimiternbrunogirin: that should let bootstrap go further (hopefully complete)11:31
brunogirindimitern: it did go further and is now finishing with an error that I'll paste in the bug report11:32
brunogirindimitern: pasted11:34
dimiternbrunogirin: thanks, looking..11:34
dimiternbrunogirin: ok, that's more like it - it fails now because it needs the metadata for juju tools and cloud images11:35
brunogirindimitern: OK so how do I provide it with that?11:35
dimiternbrunogirin: please try following the docs for setting up juju on private clouds: https://jujucharms.com/docs/devel/howto-privatecloud11:36
dimiternbrunogirin: instead of 'tools-metadata-url' though, use 'agent-metadata-url' (the doc needs updating)11:42
brunogirindimitern: I'm reading through it and I struggle to understand what I need to do. Isn't that part of the config dependent on my cloud provider and how do I get the right info?11:42
dimiternbrunogirin: basically, you need 2 things - agent metadata (the juju tools tarballs), which you can use 'sync-tools' to copy to a local dir from the official sources, and image-metadata-url (the cloud images, those need to match what you have as images on datacenterd)11:43
dimiternbrunogirin: steps: 1) cd $HOME; mkdir -p juju-metadata/tools; juju sync-tools --local-dir=$HOME/juju-metadata/tools; 2) juju metadata generate-tools -d $HOME/juju-metadata/tools; 3) juju metadata validate-tools -d $HOME/juju-metadata/tools;11:46
brunogirindimitern: thanks I'll try that; for the second part (images), do I need to provide a mapping from provider image IDs to series?11:48
dimiternbrunogirin: then for the images, 4) juju metadata generate-image -u https://compute.datacentred.io:5000/v2.0/ -d $HOME/juju-metadata/images -a amd64 -i <nova-image-id>; 5) juju metadata validate-image (same args) to verify11:49
brunogirindimitern: thanks! I'll try that and report back11:50
dimiternbrunogirin: yeah, the "nova-image-id" must match for arch and series (e.g. amd64 ubuntu xenial)11:50
dimiternbrunogirin: you should pass -s xenial (for example) to generate-image (and validate-image later), in addition to -i -d and -a11:51
=== Spads_ is now known as Spads
=== Spads_ is now known as Spads
brunogirindimitern: I get the following error when I do juju metadata validate-tools: http://pastebin.com/TUnYsV6F12:44
dimiternbrunogirin: I think you need to pass the -u (endpoint url) and -p openstack and -r (region name)12:47
brunogirindimitern: for tools as well?12:48
dimiternbrunogirin: yeah, see 'juju help metadata validate-tools'12:48
brunogirindimitern: adding the series to all of this works, thanks12:51
dimiternbrunogirin: great! so if validate-image also worked ok, you should be good to bootstrap12:52
dimiternbrunogirin: would you do me a favor please? if you add a comment to the bug describing what commands you needed to run to set up images and tools, that will be extremely useful both for other users and for updating the docs properly for 2.012:55
brunogirindimitern: yes I'll do that12:55
dimiternbrunogirin: awesome! thank you very much, and sorry for the troubles :)12:55
brunogirindimitern: apparently, there's no metadata validate-image command so I'll skip that12:56
dimiternbrunogirin: sorry, it's validate-images12:57
dimitern(but strangely 'generate-image' :()12:57
=== Spads_ is now known as Spads
brunogirindimitern: I assumeit's because you can create multiple images and validate them all13:00
dimiternbrunogirin: hmm, good point!13:01
brunogirindimitern: I get the same error when I do juju bootstrap and it looks like it doesn't check my local folder: http://pastebin.com/0VqPqYMX13:10
=== Spads_ is now known as Spads
dimiternbrunogirin: sorry, otp, will get back to you soon13:24
brunogirindimitern: no worries :)13:25
dimiternbrunogirin: try using "file:///home/<yourusername>/juju-metadata/tools" as "agent-metadata-url" and the same but with "/images" for "image-metadata-url"13:25
dimiternbrunogirin: to pass these to bootstrap, use e.g. --config agent-metadata-url='file:///...' --config image-metadata-url='file:///..'13:26
=== Spads_ is now known as Spads
brunogirindimitern: working so far, it's running apt-get upgrade! thanks! I'll add the full set of commands that work to the ticket.13:31
dimiternbrunogirin: great! I'm glad it finally worked ;)13:31
brunogirindimitern: so am I :) What's the process to contribute out of the box support for new clouds so that others don't have to go through this?13:33
rick_h_jamespage: ping, invited you to a chat to get me up to speed on HEAT related stuff if you can do it tomorrow. Let me know if it's not a good time.13:34
dimiternbrunogirin: our documentation can be improved - there's a link in the left menu below about contributing13:35
brunogirindimitern: yes I saw that, once I've got it all working, I'll see if I can contribute some docs13:35
dimiternbrunogirin: even if it's a rough draft, that's OK we have technical writers that will take care of formatting, etc.13:36
brunogirindimitern: it was so close! But it eventually failed after starting Mongo still because it can't find images but this time on the controller it seems...13:38
dimiternbrunogirin: can you paste? maybe the series / arch do not match?13:39
brunogirinI'll add the log to the ticket as it's quite long13:40
brunogirindimitern: added to the bug with attached log file13:46
rick_h_lazyPower: got a sec?13:48
dimiternbrunogirin: thanks!13:51
lazyPowerrick_h_ certainly, whats up?13:51
rick_h_lazyPower: chef questions for you if you have a few to chat?13:51
rick_h_lazyPower: https://hangouts.google.com/hangouts/_/canonical.com/rick?authuser=0 if so13:51
lazyPowerneiljerram hey o/ are you around14:20
=== Spads_ is now known as Spads
brunogirindimitern: I got it to work and can deploy charms now, however, it doesn't seem to expose them properly so I need to investigate that14:32
dimiternbrunogirin: sweet! for exposing should pass the 'use-floating-ip' setting to true (at bootstrap or with `juju set-model-config use-floating-ip=true` (IIRC)14:34
brunogirindimitern: I did that but the floating IP points to the Juju controller, not to the charm instance so when I go to that URL I get nothing and `juju status` still shows the internal IP14:38
brunogirindimitern: do you need 2 floating IPs for it to work on OpenStack, one for Juju, one for the service you're trying to expose?14:43
dimiternbrunogirin: use-floating-ip=true means juju will add one FIP per instance14:43
dimiternbrunogirin: if you deploy a unit to the controller node and expose its service, you should be able to access it14:44
brunogirindimitern: ah right, so my provider needs to allow me to do that! They limit me to one floating IP at the moment so I'll ask them to increase that.14:44
dimiternbrunogirin: no, sorry - it's not that juju will add more than 1 FIP14:44
dimiternbrunogirin: I'd suggest this - try `juju add-machine --series xenial` and once that machine is up, `juju add-unit <yourapp> --to <#>` (the newly added machine id, likely 1)14:46
gennadiyhi everybody, we are deploying windows(windows server 2012) machine with juju to openstack. so how to get password for this machine?14:46
gennadiyseems there are not cert with user credentials14:46
gennadiyso "nova get-password <instance-id> <private-key-path>" it does not work14:46
dimiternbrunogirin: assuming you also did `juju expose <yourapp>` and `juju status` shows the added unit on the new machine is running and has open ports (e.g. 80/tcp), you should be able to access it14:47
dimiterngennadiy: can you ssh to a linux machine ok?14:48
gennadiyit's not a linux14:48
gennadiyit's windows14:48
dimiterngennadiy: ok, but can you start a linux instance and ssh into it ok?14:49
gennadiysure14:49
dimiterngennadiy: if you keypair is set correctly you should be able to14:49
rick_h_gennadiy: so this is a hyperv on nova?14:49
gennadiyi have 10 machines with linux and 1 with windows14:50
gennadiyit's nova14:50
brunogirindimitern: mmm, juju add-machine says that my new machine is in error14:50
rick_h_gennadiy: right so this is a nova compute instance on openstack you're trying to get into? Was it a juju deployed charm?14:51
gennadiyi use empty windows charm, just for testing14:51
rick_h_gennadiy: ah ok14:51
dimiternbrunogirin: what's the error?14:51
gennadiymachine is created - 40         started 10.9.8.110 9b003da2-bc22-41e3-81ad-def9485df4d2 win2012r2 nova14:52
gennadiybut i can't connect to it - juju ssh 40 doesn't work14:52
brunogirindimitern: juju status just shows state to be error and no explanation, not do I have any log in juju debug-log14:52
gennadiyalso i don't know password for rdp.14:52
dimiternbrunogirin: try juju status --format=yaml for more detail14:52
gennadiymetadata: Key Name - None14:52
brunogirindimitern: ah right, it now says "IP allocation over quota." so I need to ask them for additional IPs14:53
gennadiywhen i create windows machine in openstack manually i can provide pem file and after that i can use "nova get-password <instance-id> <private-key-path>" to get password. but i don't how to do it in juju case14:55
dimiternbrunogirin: yeah, that's it :)15:00
roadmrhey folks, what's the story about creating new charms using ansible integration? e.g. charmhelpers.contrib.ansible.AnsibleHooks? is it still OK to do so, or should we move toward something else?15:03
dimiterngennadiy: I'd suggest asking somebody from cloudbase (I've pinged them about your question in #juju-dev)15:03
gennadiydimitern, thank15:03
gennadiy*thank you15:04
dimiterngennadiy: np, if you get no response, I'd suggest sending a mail to juju@lists.ubuntu.com to ask15:05
=== Spads_ is now known as Spads
gennadiydimitern: have you got any updates about windows machine? i don't have access #juju-dev15:52
lazyPowergennadiy they haven't responded, but they are also far eastern europe15:53
lazyPowerromania i believe15:53
lazyPowerits past EOD (6:55 pm) for that timezone, so you may want to go ahead and ping the list15:55
lazyPoweralso, it wont let you join #juju-dev?15:56
rick_h_balloons: do you have any idea for gennadiy in our tests as to if we deploy a windows application how we log into the server at all?16:08
rick_h_alexisb: do you recall who might be idling from cloudbase that would know? ^16:08
* balloons looks at scrollback16:12
lazyPowerrick_h_ - from what i recall there was an openssl requirement in maas, you add the tls key to use rdp16:12
rick_h_lazyPower: hmm, so this is openstack deployed sample windows charm.16:12
lazyPoweroh right16:12
rick_h_lazyPower: so I'm wondering what we do to get into that then16:12
lazyPowersorry, I missed that very important detail...16:13
lazyPoweri'm not seeing anything relevant in a cursory google search either16:14
gennadiyanother question related to juju. can we manage openstack networks from juju? also can we manage NICs? because for some machines we need to have 2-3 NICs from different networks16:17
balloonssounds like a job for maas16:24
alexisbrick_h_, I would start with gabriel he should be on juju-dev16:25
rick_h_alexisb: k ty16:29
rick_h_,16:30
PrabakaranMy charm uses MySQL database charm and I am developing my charm as layered charm. To connect with MySQL database my charm uses MySQL interface. here my requirement is I will have to create a database running mysql commands (meaning MySQL database in the different container). Is it possible for me to run mysql command from the remote container (where my charm is installed)?16:38
lazyPowerPrabakaran - if you have the mysql client tools available to you, you certainly can. You'll get the data to build a connection string from the interface, which includes a database, username/password, address and port.16:39
PrabakaranCan u please explain me in detail?16:39
Prabakaranhow to make use of it in my charm?16:40
lazyPowerPrabakaran - so in your layered consumer of mysql, you need to include the mysql interface layer in your layer.yaml, update your metadata.yaml with the requires: declaration, and use that relation name:  @when('mysql.available') - install the mysql client tools, and execute your database migration from there using the mysql tooling (or substitute with your language tooling)16:41
Prabakarank.. i will to explore this.. and do u have any example charm for me to understand?16:42
lazyPowerPrabakaran - there's a walkthrough by example of something similar here: https://jujucharms.com/docs/devel/developer-layer-example16:42
josebdx: lemme see if I can reproduce that bug16:51
PrabakaranHi Lazypower , i just referred this link what you sent, it just uses the database and it is not running any mysql scripts. And adding to this question how ssh works between two containers..if so, we need to exchange ssh keys between two containers?16:58
lazyPowerPrabakaran - you dont need to ssh with the mysql connection string. you can install mysql-client apt package and run mysql -u db.username() -p db.password() db.database()   << prabakarans_mysql_script.sql16:59
Prabakarancan you help me with an example>17:00
lazyPowerPrabakaran - i dont have a ready made example off hand, no17:02
lazyPowerPrabakaran are you familiar with executing mysql scripts remotely with the mysql cli?17:02
Prabakaranno i am not.. i will have to explore17:03
lazyPowerPrabakaran - http://stackoverflow.com/questions/10676432/how-to-execute-an-remote-sql-in-mysql-command-line17:03
lazyPowerPrabakaran - are you writing your layer in bash or python?17:03
Prabakaranin python..17:03
lazyPowerok, the path to get from a-z will be a little long winded, but bear with me and i'll guide you on irc. i'm multi-tasking so expect long pauses17:04
lazyPowerPrabakaran - add layer:apt and interface:mysql to your layer.yaml to start. confirm when ready for next step17:04
Prabakaranya sure17:05
Prabakarani am using ibm-base layer which uses apt....i need to use apt here ?17:06
Prabakarani have written layer.yaml17:08
lazyPowerPrabakaran - if you have layer:apt in a lower layer you do not need to re-include it, no17:09
Prabakarani have written it17:09
lazyPowerPrabakaran - define the mysql requires relationship in metadata.yaml:  http://paste.ubuntu.com/17331636/17:10
Prabakaranya i have written metadata.yaml17:12
=== CyberJacob is now known as zz_CyberJacob
Prabakaranmetadata.yaml is http://paste.ubuntu.com/17332041/17:19
PrabakaranLazypower i am ready for next steps..17:20
Prabakaranmeanwhile17:20
lazyPowerPrabakaran : add the reactive code to your layer - http://paste.ubuntu.com/17332169/17:21
lazyPowerPrabakaran - then build, deploy, and debug the charm interactively. That code is incomplete, and i left documentation around whats happening on each line. But it will attempt to run the sql, against the remote mysql unit. If you have multiple units in the conversation, or encounter the code path twice (there's no @when_not decorator as a tip) it will likely error. So i got you far enough to work with the databag and see one general workflow.17:23
lazyPowersorry, s/databag/interface17:24
RAJITHHi, I have17:30
=== zz_CyberJacob is now known as CyberJacob
RAJITHI have two charms both on different machine, if I need to delete few files in unit 1 from unit 2, please let me know how I can do17:31
PrabakaranSince i am new to python .. what these two LOC's does "    # Assemble the command     cmd = "mysql -h mysql://{0}:{1} -u {2} -p{3} {4} << {5}"     cmd.format(mysql.host(),mysql.port(), mysql.username(), mysql.password())"17:32
Prabakaranhttp://paste.ubuntu.com/17332169/17:32
lazyPowerPrabakaran - that is string manipulation. We're assigning position in the string to replace with variables. In this case, we are surfacing the data coming from the mysql interface, to replace those inline17:34
lazyPowermysql -h mysql://192.168.1.2:3600 -u chumba -pwomba -d ibm_was_here << sql-template.sql  -- is what that string turns into.17:36
Prabakaransame way is it possible for me to write a this command mysql> use pac; mysql> source /var/lib/juju/agents/unit-pac-helper-0/charm/files/archives/dbschema/DBschema/MySQL/egodata.sql; mysql> source /var/lib/juju/agents/unit-pac-helper-0/charm/files/archives/dbschema/DBschema/MySQL/lsfdata.sql; mysql> source /var/lib/juju/agents/unit-pac-helper-0/charm/files/archives/dbschema/DBschema/MySQL/lsf_sql.sql; mysql> source /var/lib/juju17:36
Prabakaranya i got it17:36
lazyPowerPrabakaran - that assumes you are on the mysql host, in the mysql cli from that paste.   What i offered was a path to remotely execute the database scripts.17:36
lazyPowerhttp://paste.ubuntu.com/17332728/ - i also had some errors in there, and i think i missed the database flag, check the mysql cli on the host and adjust as necessary :)17:37
Prabakarani got little bit.. but i have some sql script file... like egodata.sql and lsfdata.sql17:40
Prabakarani want to execute those scripts17:40
Prabakarancan u please tel me where i can include these in this code what u sent  http://paste.ubuntu.com/17332728/17:40
Prabakaranis it under cmd section in the line number 17 and 18 http://paste.ubuntu.com/17332728/?17:42
Prabakaranmanually i will be running in mysql command promt like "source <script file name>". I am not sure where and how i need to implement in the code  http://paste.ubuntu.com/1733272817:45
Prabakaranhi <lazyPower>17:47
Prabakaranmanually i will be running in mysql command promt like "source <script file name>". I am not sure where and how i need to implement in the code  http://paste.ubuntu.com/1733272817:48
lazyPowerPrabakaran - then generate additional commands to execute those files in the matter outlined in the reactive code i sent?17:48
lazyPowerPrabakaran i'm about to head out for lunch, give what i sent a go, and try to sort it with remote execution instead of assuming you'll be attached over ssh to the mysql cli.17:49
Prabakaranys sure17:51
Prabakarani will try this17:51
Prabakaranand come back to you if i have any more doubts17:51
petevgcory_fu: I've got a philosophical question about smoke tests for you (or for anyone else who wants to chime in). If a test requires more than one unit of a given service to be deployed, is it proper to code it up as a smoke test? Or is it better to just run it with the other amulet-based integration tests?18:41
petevgMy inclination is to say the latter, because a smoke test is an action that you run against a specific unit, and I wouldn't expect it to require me to do some separate action, like spinning up other units.18:42
cory_fupetevg: The latter.  A smoke-test should be something that you can run on each unit to determine that it's functioning as expected18:42
petevgThat makes sense. The problem is that kind of blocks me writing smoke tests for Zookeeper -- pretty much anything interesting that you can do to test Zookeeper requires that you deploy multiple Zookeeper nodes :-/18:43
cory_fuThe smoke-test could perhaps determine if it's part of a cluster and test that it can communicate with the cluster, for instance, but it should not depend on the cluster18:43
lazyPoweryou could put the smoke test in a bundle...18:43
lazyPowerwhich makes sense in this case18:43
lazyPowerlogstash is useless by itself, so all the comprehensive tests live in the bundle deploying the additional components18:43
petevglazyPower: the other piece of this is that I'm trying to make a smoke test that can live independently of the charm, in an upstream project.18:43
cory_fulazyPower: I don't think that's a smoke-test in that case, it's a bundle or integration test18:43
lazyPowerfair point cory_fu18:44
cory_fuTo me, a smoke-test is something akin to a health check.  Sort of a "am I up and able to perform my role" check18:44
petevgAgreed. The tricky bit is that Zookeeper's role is mainly to talk to other Zookeepers.18:44
=== alexisb is now known as alexisb-afk
cory_fuBut it is perhaps more comprehensive than a health check, or maybe takes a bit longer (though it shouldn't take too long, eitherR)18:45
petevgSo smoke testing it is hard to disentangle from deploying multiple instances of it.18:45
cory_fupetevg: I would say make the smoke-test have some conditional logic in it.  If it's deployed by itself, just make sure that the service is up and running and can handle requests.  If it detects a cluster (ensemble), then do some additonal checks to make sure it can work with its peers properly18:46
petevgcory_fu: That sounds reasonable.18:47
petevglazyPower, cory_fu: thx for the thoughts. I think I have a better idea about what I need to do.18:47
kwmonroesmokes could also be as simple as "is the zk init script present, is the zk java process running as the correct user, is the port open".18:53
kwmonroewe've hit plenty of errors where just knowing the right process/port was what we thought it should be.18:54
lazyPowerhey cory_fu - wanna see something fun? :) http://paste.ubuntu.com/17336222/ <- thats output of charms.reactive get_states on a k8s leader19:05
=== dpm is now known as dpm-afk
=== Spads_ is now known as Spads
cory_fulazyPower: That's fair number of states.  :)19:14
lazyPowerYeah, i was debugging yesterday and that struck me as a heap :)   But there's really a lot going on in here.19:15
=== alexisb-afk is now known as alexisb
cory_fulazyPower: https://github.com/juju/plugins/pull/6719:33
lazyPowercory_fu lgtm - merged20:04
cory_fulazyPower: :)  https://github.com/juju/plugins/issues/63 should be resolved now20:06
lazyPowernice20:06
=== natefinch is now known as natefinch-afk
magicaltroutthe nature of app containers make me sad when it comes to networking. Working in a non-juju docker environment is like pulling teeth when you want stuff to communicate with each other22:00
lazyPowermagicaltrout - i too feel your pain22:05
magicaltroutthanks lazyPower ! ;)22:09
lazyPowermagicaltrout - i just revised layer:flannel, and i'm still feeling like we can get more punch out of sdn than what i'm currently doing.22:09

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