stewie925_ | hey guys - I have this line of code 'conductor_api.API.heartbeat = Mock()' declared globally, and I need to initialize conductor_api.API.heartbeat within the setup method | 00:13 |
---|---|---|
stewie925_ | how do I correctly initialize this 'conductor_api.API.heartbeat' ? | 00:13 |
stewie925_ | hey amrith :) | 00:28 |
amrith | hello | 00:28 |
amrith | so, pmalik has a -1 | 00:28 |
stewie925_ | that is right | 00:29 |
stewie925_ | oh wait - the one on the review doesnt show my changes yet | 00:29 |
stewie925_ | so I changed those .called_once_with into .assert_called_once_with | 00:29 |
stewie925_ | but I dont want to just commit it - so I ran tox test (py27) on my local machine | 00:29 |
stewie925_ | and I am getting those assertion errors that I posted in the reply section, with pmalik providing his inputs | 00:30 |
amrith | can we chat abotu this in the morning? | 00:31 |
stewie925_ | http://paste.openstack.org/show/496115/ shows the changes I made (git diff) showing the assert_called_once_with, PLUS the error log | 00:31 |
stewie925_ | sure we can :) | 00:31 |
stewie925_ | thank you amrith | 00:31 |
amrith | I have your email address, I'll email you a phone number, or you can give me a numebr and I'll call you. | 00:31 |
stewie925_ | oh thank you so much! | 00:31 |
amrith | let's figure out what's going on with this. | 00:31 |
stewie925_ | you have a good night | 00:32 |
amrith | email is on the way ... | 00:32 |
stewie925_ | thanks - pls let me know the best time to call you (I am in Pacific time) | 00:32 |
amrith | email is on the way ... | 00:34 |
amrith | g'night | 00:34 |
stewie925_ | nite :) | 00:35 |
*** amit213 has quit IRC | 00:42 | |
*** cheneydc has joined #openstack-trove | 00:54 | |
*** amrith is now known as _amrith_ | 01:01 | |
*** _amrith_ is now known as amrith | 01:02 | |
*** stewie925_ has quit IRC | 01:10 | |
*** ozialien10 has quit IRC | 01:12 | |
*** amit213 has joined #openstack-trove | 01:13 | |
*** amit213 has quit IRC | 01:16 | |
*** pmackinn has quit IRC | 02:12 | |
*** tqtran has quit IRC | 02:19 | |
*** arist has quit IRC | 02:21 | |
*** arist has joined #openstack-trove | 02:21 | |
*** amrith is now known as _amrith_ | 02:47 | |
*** cdelatte has quit IRC | 03:03 | |
openstackgerrit | Petr Malik proposed openstack/trove: Test alternative MySQL status check https://review.openstack.org/312781 | 03:49 |
*** imandhan has joined #openstack-trove | 03:54 | |
*** imandhan has quit IRC | 04:00 | |
*** pbelamge has joined #openstack-trove | 04:06 | |
*** pbelamge has quit IRC | 04:09 | |
*** pbelamge has joined #openstack-trove | 04:11 | |
*** imandhan has joined #openstack-trove | 04:49 | |
*** pbelamge has quit IRC | 04:59 | |
openstackgerrit | Petr Malik proposed openstack/trove: Unittests patch 'CONF.datastore_manager' https://review.openstack.org/308707 | 05:07 |
*** royoung has quit IRC | 05:09 | |
*** royoung has joined #openstack-trove | 05:19 | |
*** openstackgerrit has quit IRC | 06:03 | |
*** openstackgerrit has joined #openstack-trove | 06:03 | |
*** mingdang1 has joined #openstack-trove | 06:10 | |
*** tesseract has joined #openstack-trove | 06:44 | |
*** tesseract is now known as Guest21288 | 06:45 | |
*** mingdang1 has quit IRC | 07:01 | |
*** pbelamge has joined #openstack-trove | 07:21 | |
*** pbelamge has quit IRC | 07:22 | |
*** pbelamge has joined #openstack-trove | 07:24 | |
*** imandhan has quit IRC | 07:26 | |
*** imandhan has joined #openstack-trove | 07:26 | |
*** imandhan has quit IRC | 07:31 | |
*** cheneydc has quit IRC | 07:34 | |
*** cheneydc has joined #openstack-trove | 07:34 | |
*** jinxing has joined #openstack-trove | 07:52 | |
*** dmk0202 has joined #openstack-trove | 07:57 | |
*** dmk0202 has quit IRC | 08:03 | |
*** dmk0202 has joined #openstack-trove | 08:11 | |
*** imandhan has joined #openstack-trove | 08:27 | |
*** imandhan has quit IRC | 08:32 | |
*** jinxing has quit IRC | 09:04 | |
*** jinxing has joined #openstack-trove | 09:06 | |
*** imandhan has joined #openstack-trove | 09:24 | |
*** imandhan has quit IRC | 09:28 | |
*** tosky has joined #openstack-trove | 09:53 | |
*** pbelamge has quit IRC | 09:59 | |
*** pbelamge has joined #openstack-trove | 10:00 | |
*** cheneydc has quit IRC | 10:01 | |
*** _amrith_ is now known as amrith | 10:21 | |
*** pbelamge has quit IRC | 10:31 | |
*** links has joined #openstack-trove | 11:05 | |
*** amrith is now known as _amrith_ | 11:12 | |
*** georgelorch has quit IRC | 11:46 | |
*** georgelorch has joined #openstack-trove | 11:46 | |
*** links has quit IRC | 11:53 | |
*** tellesnobrega_af is now known as tellesnobrega | 11:57 | |
*** jinxing has quit IRC | 11:58 | |
*** jinxing has joined #openstack-trove | 11:59 | |
*** georgelorch has quit IRC | 12:01 | |
*** georgelorch has joined #openstack-trove | 12:14 | |
*** mingdang1 has joined #openstack-trove | 12:20 | |
*** jinxing has quit IRC | 12:21 | |
*** georgelorch has quit IRC | 12:36 | |
*** georgelorch has joined #openstack-trove | 12:39 | |
*** bapalm has joined #openstack-trove | 12:54 | |
*** tosky_ has joined #openstack-trove | 13:00 | |
*** _amrith_ is now known as amrith | 13:03 | |
*** tosky has quit IRC | 13:03 | |
*** pmackinn has joined #openstack-trove | 13:40 | |
*** jinxing has joined #openstack-trove | 13:43 | |
*** openstackgerrit has quit IRC | 13:47 | |
*** openstackgerrit has joined #openstack-trove | 13:47 | |
openstackgerrit | Peter Stachowski proposed openstack/trove-specs: Replication/cluster locality https://review.openstack.org/298994 | 13:48 |
*** links has joined #openstack-trove | 14:07 | |
*** links has quit IRC | 14:16 | |
*** tosky_ has quit IRC | 14:22 | |
*** tosky_ has joined #openstack-trove | 14:23 | |
*** mingdang1 has quit IRC | 14:26 | |
*** krotscheck has quit IRC | 14:27 | |
*** krotscheck has joined #openstack-trove | 14:33 | |
*** imandhan has joined #openstack-trove | 14:33 | |
*** miqui has joined #openstack-trove | 14:36 | |
*** cdelatte has joined #openstack-trove | 14:48 | |
dougshelley66 | we yup | 14:57 |
dougshelley66 | sorry wrong window :) | 14:57 |
*** ayoung has quit IRC | 14:59 | |
*** stewie925 has joined #openstack-trove | 15:00 | |
*** ewilson has joined #openstack-trove | 15:03 | |
*** stewie925 has quit IRC | 15:09 | |
*** stewie925 has joined #openstack-trove | 15:09 | |
openstackgerrit | Petr Malik proposed openstack/trove: Unittests patch 'CONF.datastore_manager' https://review.openstack.org/308707 | 15:23 |
*** dmk0202 has quit IRC | 15:38 | |
*** Guest21288 has quit IRC | 15:46 | |
*** jinxing has quit IRC | 15:52 | |
*** georgelorch has quit IRC | 15:57 | |
*** davideagnello has joined #openstack-trove | 16:05 | |
stewie925 | I am encountering an assertion error after changing method name from '.called_once_with' to '.assert_called_once_with'. | 16:10 |
stewie925 | 'git diff' and tox py27 test results posted in http://paste.openstack.org/show/496248/ | 16:10 |
stewie925 | thank you! | 16:11 |
*** imandhan has quit IRC | 16:12 | |
*** imandhan has joined #openstack-trove | 16:12 | |
*** imandhan has quit IRC | 16:16 | |
*** egafford has quit IRC | 16:19 | |
amrith | stewie925, I'll take a look | 16:29 |
amrith | thx | 16:29 |
stewie925 | thanks very much amrith | 16:29 |
amrith | np | 16:30 |
*** zxiiro has joined #openstack-trove | 17:14 | |
*** zxiiro has left #openstack-trove | 17:14 | |
*** tqtran has joined #openstack-trove | 17:23 | |
*** kuthurium has quit IRC | 17:24 | |
*** nikhil has quit IRC | 17:31 | |
*** nikhil has joined #openstack-trove | 17:32 | |
*** egafford has joined #openstack-trove | 17:40 | |
*** itlinux has joined #openstack-trove | 17:52 | |
*** tosky_ has quit IRC | 17:56 | |
amrith | stewie925, here's what's happening | 18:00 |
*** ewilson has quit IRC | 18:00 | |
amrith | called_once_with is a no-op | 18:00 |
* stewie925 listens | 18:00 | |
amrith | therefore you are now actually testing something when you switch to assert_called_once_with() | 18:00 |
*** ewilson has joined #openstack-trove | 18:00 | |
amrith | and you just realized that the old test did nothing | 18:00 |
amrith | YIKES | 18:00 |
stewie925 | hehehe | 18:00 |
stewie925 | yeah yikes | 18:00 |
openstackgerrit | Petr Malik proposed openstack/trove: Test alternative MySQL status check https://review.openstack.org/312781 | 18:01 |
amrith | stewie925, I am not sure what this test is actually trying to do | 18:04 |
amrith | you may want to look at https://review.openstack.org/#/c/121828/1 | 18:04 |
amrith | that's another project that found this issue of a noop | 18:04 |
stewie925 | i see | 18:04 |
stewie925 | thank you amrith - I'll look into this merged review | 18:05 |
stewie925 | and hope will understand more | 18:06 |
amrith | let me send you a proposed change | 18:06 |
amrith | for you to try ... | 18:06 |
stewie925 | appreciate your help on this, amrith | 18:08 |
amrith | np stewie925 | 18:10 |
stewie925 | hi amrith may I message you in pvt? | 18:16 |
amrith | sure | 18:16 |
amrith | but I guess now everyone knows that we're going away to chat in the corner :) | 18:16 |
* amrith wanders away | 18:17 | |
*** tqtran has quit IRC | 18:44 | |
*** tqtran has joined #openstack-trove | 18:50 | |
amrith | so stewie925 ... | 18:52 |
amrith | here's another patch for you to look at | 18:52 |
amrith | https://gist.github.com/amrith/06d6783106e64bed4c42b2b47719b67f | 18:52 |
amrith | the issues now are these | 18:53 |
amrith | 1. the heartbeat now has a timestamp which means testing is a hairball | 18:53 |
amrith | 2. I'm not sure why the heartbeat is sending up an instance-id of None | 18:53 |
amrith | not FAKE_ID | 18:53 |
stewie925 | thank you amrith | 19:05 |
stewie925 | Im getting a secure connection failed when trying to click on that link you provided | 19:06 |
kfox1111 | so, whats the correct procedure for recovering a percona cluster after hard power off? | 19:11 |
*** pmackinn is now known as pmackinn-afk | 19:16 | |
kfox1111 | Does trove have features to help recover, or is it up to the ops to recover? | 19:19 |
*** syewie925 has joined #openstack-trove | 19:21 | |
-openstackstatus- NOTICE: Gerrit is restarting to address performance issues related to a suspected memory leak | 19:22 | |
stewie925 | I am able to see your patch amrith, thanks | 19:22 |
kfox1111 | what are the default ports for pxc? I want to add ssh too. | 19:46 |
amrith | kfox1111, 3306, 4444, 4567, 4568 | 19:46 |
kfox1111 | ok. thanks. | 19:47 |
amrith | re: recovery, if you bring up all the instances, pxc should recover itself | 19:47 |
amrith | beyond that let me check | 19:47 |
amrith | I believe it is ops | 19:47 |
amrith | oh, ssh is 22 :) | 19:48 |
kfox1111 | yeah. :) | 19:48 |
amrith | good trip back from austin I hope | 19:48 |
kfox1111 | I'm doing all sorts of bad things to the instances to see what I have to recover from and what just works. :) | 19:49 |
kfox1111 | yup. uneventful. how about yours? good I hope? | 19:49 |
amrith | good flight, small scare initially because of the wx in aus | 19:49 |
amrith | but luckily that all went north | 19:49 |
amrith | and sat on dallas | 19:49 |
kfox1111 | ah. glad it turned out well. | 19:49 |
amrith | so we had to head over new orleans, hug the coast and then shoot up | 19:50 |
amrith | a little bumpy | 19:50 |
amrith | but otherwise all good. | 19:50 |
kfox1111 | fun. :/ | 19:50 |
kfox1111 | I get airsick. :/ | 19:50 |
kfox1111 | does trove set up clustercheck on the nodes? | 19:51 |
*** syewie925 has quit IRC | 19:51 | |
amrith | kfox1111, I'm not sure. | 19:52 |
amrith | cp16net, yt ^^ | 19:52 |
kfox1111 | running it manually shows: Galera cluster node is not synced. | 19:53 |
kfox1111 | hmm... | 19:53 |
kfox1111 | /etc/sysconfig/clustercheck doesn't exist... | 19:54 |
kfox1111 | wait.. wrong node... | 19:55 |
kfox1111 | though there isn't a cluster check user... | 19:56 |
kfox1111 | there's an xinetd file for mysql cluster check, but no service I think... | 19:57 |
*** amrith is now known as _amrith_ | 20:11 | |
*** stewie925 has quit IRC | 20:13 | |
kfox1111 | I've been using systemd too long.... cant remember the weird ways upstart enables things... | 20:29 |
*** dmk0202 has joined #openstack-trove | 20:29 | |
-openstackstatus- NOTICE: Gerrit is restarting to revert incorrect changes to test result displays | 20:30 | |
*** cdelatte has quit IRC | 20:34 | |
kfox1111 | hmm... xinetd isn't working... | 20:38 |
kfox1111 | ah, there we go: service/protocol combination not in /etc/services: mysqlchk/tcp | 20:42 |
kfox1111 | ok. apt-get install xinetd and | 20:44 |
kfox1111 | echo "mysqlchk 9200/tcp" >> /etc/services | 20:44 |
kfox1111 | got it to run externally. | 20:44 |
kfox1111 | just gota figure out how to get it to provide real status. | 20:44 |
*** pmackinn-afk is now known as pmackinn | 20:47 | |
*** egafford has quit IRC | 20:50 | |
*** amit213 has joined #openstack-trove | 20:50 | |
kfox1111 | trove's not letting me add a user with host='localhost' | 20:54 |
kfox1111 | know why that may be? | 20:54 |
kfox1111 | so, it will take a host='127.0.0.1'. that just doesn't work in mysql. | 20:59 |
kfox1111 | so something's rejecting 'localhost' | 20:59 |
kfox1111 | it doesn't seem to make it to the guest agent... | 21:00 |
*** rcernin has joined #openstack-trove | 21:05 | |
*** cdelatte has joined #openstack-trove | 21:24 | |
*** mingdang1 has joined #openstack-trove | 21:26 | |
kfox1111 | so, I seem to be stuck... | 21:58 |
kfox1111 | I need a way to add a local user for clustercheck so lbaas can load balance safely, | 21:58 |
kfox1111 | but I can't add the user via trove user-create. | 21:59 |
kfox1111 | I think trove's createing the root user too? | 21:59 |
kfox1111 | is the mysql root password available on the vm somewhere? | 22:15 |
dougshelley66 | have you tried trove root-enable to one of the instances? | 22:16 |
dougshelley66 | i'm not absolutely sure that will work with a galera cluster configured by trove but worth a shot :) | 22:16 |
kfox1111 | I'm looking for a way to tweak my cloud-init script so that it either: sets the right user/password for clustercheck or lets me create the clustercheck default user/password via the cli. | 22:17 |
kfox1111 | I'd like all pxc clusters to have cluster check working out of the box if possible. | 22:18 |
kfox1111 | maybe I can just put in a cron job to keep trying to add the clustercheck user until it succeeds, then delete the cron job... | 22:19 |
dougshelley66 | i'll tell you a secret | 22:22 |
dougshelley66 | there is a .my.cnf in the "trove" home directory that contains a set of credentials | 22:22 |
dougshelley66 | i believe those creds have root access to the db | 22:22 |
*** cdelatte has quit IRC | 22:22 | |
kfox1111 | hmm.. let me see if I can find that. | 22:23 |
dougshelley66 | so whatever user is running the guestagent, lookup the homedir for him | 22:23 |
kfox1111 | trove is the user, /var/lib/trove is the home... | 22:23 |
kfox1111 | not there... | 22:24 |
dougshelley66 | do you see .guest.prepare.end? | 22:24 |
dougshelley66 | which version of trove do you have | 22:24 |
kfox1111 | liberty. | 22:24 |
dougshelley66 | ok in that case i think the creds are in /etc/mysql/my.cnf in the [client] section | 22:25 |
dougshelley66 | i believe they were moved out during mitaka | 22:25 |
kfox1111 | k. thx. | 22:27 |
dougshelley66 | i wonder why clustercheck would pick up those credentials by default | 22:28 |
dougshelley66 | that is the normal mysql pattern, client programs read the [client] section in my.cnf | 22:28 |
*** rcernin has quit IRC | 22:29 | |
kfox1111 | got it.... | 22:36 |
kfox1111 | echo "* * * * * root " mysql -e \"GRANT PROCESS ON "*.*" TO "'clustercheckuser'@'localhost' IDENTIFIED BY 'clustercheckpassword!'"\" "&& rm -f /etc/cron.d/reguser" > /etc/cron.d/reguser | 22:36 |
kfox1111 | horible hack... but works. :) | 22:36 |
kfox1111 | it defaults to that user/password if one isn't specified. | 22:39 |
*** ewilson has quit IRC | 22:41 | |
kfox1111 | ok... so now, I need to create a heat template for stamping out load balancers that can talk to this thing. | 22:44 |
*** cdelatte has joined #openstack-trove | 22:51 | |
*** david-lyle has quit IRC | 22:51 | |
*** david-lyle has joined #openstack-trove | 22:53 | |
*** david-lyle has quit IRC | 22:58 | |
*** johnma has quit IRC | 23:01 | |
*** davideag_ has joined #openstack-trove | 23:04 | |
*** davideagnello has quit IRC | 23:07 | |
*** sgotliv has quit IRC | 23:21 | |
*** mingdang1 has quit IRC | 23:27 | |
*** krotscheck has quit IRC | 23:31 | |
*** krotscheck has joined #openstack-trove | 23:31 | |
*** cdelatte has quit IRC | 23:34 | |
*** tqtran has quit IRC | 23:41 | |
*** dmk0202 has quit IRC | 23:42 | |
*** davideag_ has quit IRC | 23:45 | |
*** _amrith_ is now known as amrith | 23:48 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!