Thursday, 2016-08-04

*** gregragenet has joined #openstack-trove00:49
thetravhmm00:50
thetravso from debugging it appears that something in trove-taskmanager appends /v2.0 to the trove_auth_url conf element00:51
gregragenetfor posterity... you'll also get 'DB server is not installed' if guest_id is not set in the trove config for a guestagent...00:52
thetravargl00:54
thetravyeah so this thing is broken and hard00:54
thetravspecifying the service endpoints directly is getting me 401's00:54
thetravspecifying the service types is getting me "empty catalog"00:55
thetravis there a known right way of doing it? or any docs on how I'm supposed to set it up / debug it?00:58
thetravwhen I'm specifying endpoints should I be specifying public, internal or admin?00:59
openstackgerritMerged openstack/python-troveclient: Updated from global requirements  https://review.openstack.org/34868500:59
openstackgerritMerged openstack/trove: Updated from global requirements  https://review.openstack.org/34869601:01
thetravtrove/taskmanager/manager.py", line 407, in publish_exists_event01:01
gregragenetwhich brings me to my question; what are the functional ways that guest_id gets injected into the guest? I've gotten far enough along with cloud-init that I have everything working except I can't figure out how guest_id gets injected. is it available somewhere via the 169.254.169.254 metadata address?01:02
gregragenetbtw, I couldn't figure out if the keystone v3 was part of my problems getting trove to work, so I enabled v2 on my keystone server. dono if that's a possibility for you or not.01:04
*** imandhan has quit IRC01:08
*** imandhan has joined #openstack-trove01:08
*** imandhan has quit IRC01:12
*** gouthamr has joined #openstack-trove01:19
*** thetrav has quit IRC01:23
*** thetrav_ has joined #openstack-trove01:24
thetrav_v2 is enabled on my server01:24
*** thetrav_ is now known as thetrav01:25
thetravgregragenet: so you're trying to install trove into your own openstack deployment?01:26
gregragenetyes.01:26
thetravI'm running mitaka on ubuntu's packaging (not juju)01:26
thetravmy guest is the mongodb image from: http://tarballs.openstack.org/trove/images/ubuntu/01:27
thetravdid you use one of those images? or have you created your own?01:28
thetravI have two threads I'm currently pursuing.  First is whether i can get ssh into that image01:28
thetravsecond is the stack trace around Manager.publish_exists_event01:29
gregragenetso I'm >this< close to having working guest images via cloud-init. I'm just using the off-the-shelf Ubuntu Trusty cloud-image, and I have cloud-init install mitaka guestagent and mysql-server. Everything works except getting the guest_id passed in. when I login and put it in the config the DB goes available in trove.01:30
thetravare you following a doc? or have you just sort of, worked it out?01:34
thetravif you're following a doc I'll try to go through the same process01:37
thetravthen we can have two eyes looking at it01:37
thetravI assume if you look at your log for trove-taskmanager you don't have regular Authentication errors?01:37
*** gouthamr has quit IRC01:41
gregragenetso, the things I beat my head against for the last week to get this far - enable v2 auth in keystone by setting default_domain_id to the *TENANT* id for 'default'..01:42
*** tqtran_ has quit IRC01:42
*** gouthamr has joined #openstack-trove01:42
gregragenetremoved 'notification_transformer' from trove configs, as it just generates false positive errors01:42
gregragenetstopped trying to get the trove webui to launch instances, and instead did command-line01:43
thetravok, that notification_transformer thing appears to be what my problem is01:44
gregragenettried/failed to create images from scratch; tried/failed to modify & upload an existing image; finally settled on using cloudinit with a vanilla image.01:44
thetravwhen you say "using cloudinit with a vanilla image"01:45
thetravyou mean what they say for "Guest Agent Code Installed at Run Time" ?01:45
thetravI assume you're not working on devstack/redstack/something like that?01:46
gregragenetchanged network_label_regex to .* cause I'm using neutron. not sure if it had any effect01:46
thetravthat definantely has an impact, however I think it's more for the case where you want your openstack user to select the network01:46
thetravI'm just using the default network so all users share it01:46
gregragenetyeah, so I just use the ubuntu-14-4 image, cause that's what it looks like is most tested, and stick this into /etc/trove/cloudinit/mysql.cloudinit https://gist.github.com/gregretkowski/eb3f14a11113bc332421e6438f799e0501:51
thetravcheers!01:52
thetravumm...01:52
thetravso hang on01:52
thetravyou stick that in when you start the image?01:52
* thetrav hasn't built an image for openstack before01:53
gregragenettrove sticks it in when a user does 'trove create'01:53
thetravok, so there's a way to pass cloudinit config to trove01:54
gregragenetthe image is just the ubuntu 14.04 cloud image. https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img01:54
gregragenetthe config key 'cloudinit_location' defines what dir that file goes in. the format is {{datastore_name}}.cloudinit01:55
gregrageneti.e. /etc/trove/cloudinit/mysql.cloudinit01:55
openstackgerritMasaki Matsushita proposed openstack/python-troveclient: Add vCPUs to flavor-list  https://review.openstack.org/33753301:58
*** thetrav has quit IRC02:09
gregragenetwell I'm good - I wrote a change to taskmanager to template out values for guest_id, tenant_id and datastore_manager in cloudconfig's - allowing trove to use generic images and a basic cloudinit to create working guests; w/o needing Heat or configdrive. If someone can shepherd my change through the openstack change process hit me up and I'll send you what I have.02:30
gregragenetI finally got trove db's launching :)02:30
*** dkehn_ has quit IRC02:31
*** dkehn has quit IRC02:32
*** gregragenet has left #openstack-trove02:33
*** dkehn has joined #openstack-trove02:39
*** thetrav has joined #openstack-trove02:42
*** dkehn_ has joined #openstack-trove02:43
*** thetrav has quit IRC02:48
*** gouthamr has quit IRC02:51
*** itlinux has quit IRC02:54
*** itlinux has joined #openstack-trove02:56
*** khushbu_ has joined #openstack-trove03:32
*** links has joined #openstack-trove04:28
*** tqtran has joined #openstack-trove04:42
*** tqtran has quit IRC04:46
*** thetrav has joined #openstack-trove04:50
openstackgerritMasaki Matsushita proposed openstack/trove: Introduce "icmp" option for security group rule  https://review.openstack.org/21405604:59
*** jraju has joined #openstack-trove05:04
*** imandhan has joined #openstack-trove05:04
*** links has quit IRC05:06
*** rcernin has joined #openstack-trove05:16
*** khushbu_ has quit IRC05:27
openstackgerritzhangyanxian proposed openstack/trove: Update the home-page info with the developer documentation  https://review.openstack.org/35100106:09
openstackgerritzhangyanxian proposed openstack/trove: Update the home-page info with the developer documentation  https://review.openstack.org/35100106:09
*** itisha has quit IRC06:10
*** pcaruana has joined #openstack-trove06:10
*** Ravikiran_K has joined #openstack-trove06:12
*** mfisch has quit IRC06:29
*** mfisch has joined #openstack-trove06:34
*** mfisch has quit IRC06:34
*** mfisch has joined #openstack-trove06:34
*** tqtran has joined #openstack-trove06:42
*** tqtran has quit IRC06:47
*** tesseract- has joined #openstack-trove06:53
*** openstackgerrit has quit IRC07:33
*** openstackgerrit has joined #openstack-trove07:33
*** imandhan has quit IRC08:04
*** tqtran has joined #openstack-trove08:44
*** tqtran has quit IRC08:49
*** thetrav has quit IRC08:51
*** ubuntu_ has joined #openstack-trove08:54
*** spilla has quit IRC09:28
*** ubuntu_ has quit IRC09:43
*** songjian has joined #openstack-trove09:43
*** spilla has joined #openstack-trove10:01
*** chlong has quit IRC10:28
*** tosky has joined #openstack-trove10:31
*** chlong has joined #openstack-trove10:41
*** Ravikiran_K has quit IRC11:04
*** chlong has quit IRC11:27
*** chlong has joined #openstack-trove11:27
*** gouthamr has joined #openstack-trove12:01
*** pmackinn has joined #openstack-trove12:19
*** tqtran has joined #openstack-trove12:45
*** tqtran has quit IRC12:50
*** songjian has quit IRC13:01
*** jraju has quit IRC13:46
*** cdelatte has joined #openstack-trove13:51
*** cleong has joined #openstack-trove14:31
*** catintheroof has joined #openstack-trove14:32
openstackgerritSamuel Pilla proposed openstack/trove: Refactor test_dbaas.py  https://review.openstack.org/34971314:32
*** rcernin has quit IRC15:09
*** catintheroof has quit IRC15:25
*** johnma has quit IRC15:43
*** kro_focused is now known as krotscheck16:32
*** tqtran has joined #openstack-trove16:47
*** itisha has joined #openstack-trove16:51
*** tqtran has quit IRC16:51
*** david-lyle has quit IRC16:53
*** david-lyle has joined #openstack-trove16:53
*** tosky has quit IRC16:55
*** flaper87 has quit IRC17:03
*** gregragenet has joined #openstack-trove17:31
*** arist has quit IRC17:45
*** arist has joined #openstack-trove17:45
*** tesseract- has quit IRC17:53
*** tqtran has joined #openstack-trove18:17
*** miqui has joined #openstack-trove19:04
*** imandhan has joined #openstack-trove19:04
*** fifieldt has quit IRC19:07
*** fifieldt has joined #openstack-trove19:18
openstackgerritShaik Apsar proposed openstack/trove: Fix for 'Client' object has no attribute 'tenants'  https://review.openstack.org/34002219:18
*** ShaikApsar has joined #openstack-trove19:39
openstackgerritGreg Retkowski proposed openstack/trove: cloudconfig templates - support guest_id injection  https://review.openstack.org/35136419:51
*** trevormc has joined #openstack-trove20:02
*** ShaikApsar has quit IRC20:12
*** catintheroof has joined #openstack-trove20:30
*** peter-os has joined #openstack-trove21:04
*** trevormc has quit IRC21:11
*** mariusv has quit IRC21:16
*** mariusv has joined #openstack-trove21:18
*** mariusv has quit IRC21:18
*** mariusv has joined #openstack-trove21:18
*** cdelatte has quit IRC21:41
*** cleong has quit IRC21:46
peter-osIs anyone using trove guests with centos 7 and mysql 5.7?  Mine seem to have a lot of trouble initializing.21:47
gregragenetDo you get 'DB server is not installed' ?21:50
peter-osNo, the guestagent is doing a few things and then when it tries to start mysqld it won't start because "--initialize was used and the data dir is not empty."21:53
gregragenetAh ok. I'm curious, what mechanism are you using to get the guest_info / guest_id onto the instance? the docs are lacking in this area.21:54
peter-osYes, they are.  /cry  I've been poking at this thing for days.21:55
gregragenetand.. I elected to use ubuntu-14-04 for my guest instances, as that's what it looks like gets the most thorough testing for trove guestagents.21:56
peter-osBut, for what it's worth, I'm using OpenStack Mitaka and trove seems to be droping those files in place automatically.21:56
peter-osThough I had to make some changes to the systemd service file for guestagent21:56
peter-osEg: According to trove-taskmanager.conf the default location for those files is now /etc/trove/conf.d/, but the service file created by the rpm still looks for them in /etc/trove/21:58
gregragenetthe source of my 'DB server is not installed' is that the guest_id was not injected into the guestagent VM.. for you that works? I'm on Mitaka/EL7, and guest_id didn't appear to get injected on my system. do the files get injected straight into /etc/trove for you? you have any special nova config that facilitates file injection?21:58
peter-osyeah, I was having that problem until I discovered they were there, just not in the "right" place.21:59
peter-osWere you able to confirm they are not actually on the guest system anywhere?  It could be that they are just somewhere else.21:59
peter-osI've been trying to get this going for so long.  I'm very close, I think.22:01
gregrageneti'm gonna grep through the system for them now.22:01
*** miqui has quit IRC22:03
peter-osIf I have anything special in nova for insertion, I don't remember doing it specifically.22:04
peter-osI'm pretty new to OpenStack.  I installed it via RDO packstack.22:04
*** gouthamr has quit IRC22:05
*** gouthamr has joined #openstack-trove22:05
gregragenetthe only occurrence I have of guest_id in /etc is the one I put there.22:06
peter-osDo you have cloud-init installed on the guest?22:09
peter-osThat's the only thing I can think of that could be doing it.22:10
gregragenetyes, I do. and ultimately I make a change to the cloudinit code in trove to inject the guest_id based on templated variables in a cloudinit file. https://review.openstack.org/35136422:11
peter-osInteresting.  I wish I knew how those files were getting there, but I'm getting guest-info.conf and trove-guestagent.conf straight from the controller.  It's nice.22:13
gregragenetI couldn't figure it out, and I looked all over and can't find any documentation on how it happens - so I opened a bug to get it documented. https://bugs.launchpad.net/trove/+bug/1609915 - and hopefully get the misleading 'DB server is not installed' error message changed when its the guest_id missing causing the failure.22:15
openstackLaunchpad bug 1609915 in OpenStack DBaaS (Trove) "guest_id injection in guest is undocumented" [Undecided,New]22:15
gregragenetI think Heat and ConfigDrive can place files - but it isn't clear to me that they'd place them in /etc . Also nova could do file injection via libvirt, but reading through nova docs that method is deprecated.22:18
peter-osyeah, there seems to be a lot of undocument "features" with trove so far.  If I can get it figured out I hope to help some with new docs.22:19
peter-osI am using libvirt, so maybe that's it.22:19
peter-osThere's even a config setting in trove-taskmanager.conf where to drop the files.22:20
gregragenetIt also seems really terrible to me how painful it is to create a guestagent image. It seems like doing it via cloudinit and an off-the-shelf image will make it much easier for people to deploy trove.22:22
peter-osI agree.  The standard way seems to be to use disk image builder, but from what I can see that supports only fedora and ubuntu.22:24
gregragenetyes.. but I don't think the average person deploying should have to have a full blown openstack development environment to deploy trove.22:25
gregragenetFor Sahara, which has a similar requirement for guest images, there's a set of downloadable guest images available - which people can download and use in their deployments.22:27
gregragenetrather than having every end-user build the images from scratch.22:27
gregragenetAnd I imagine there's some valid reasons why to not provide images directly for Trove.. But there must be some middle-ground method for end-users to deploy trove w/o needing a full-on developer's environment.22:28
peter-osFrom what I've seen so far, it's theoretically possible to create trove images from nova instance snapshots, you just have to have the trove-guestagent installed and a repo setup for the DB in question.  The guestagent should do the rest for you.22:30
peter-osBut it my case, it seems to need some tweaking to handle el7 and mysql 5.7 properly22:30
peter-osBut it's close.22:30
gregragenetyes - but that method isn't in the mainline documentation.22:32
peter-osRight.22:33
peter-osWell, I must go, but thanks for responding.  :)  This is the most communication I've seen on this channel in several days.22:35
*** peter-os has left #openstack-trove22:35
*** gregragenet has quit IRC22:41
*** catintheroof has quit IRC23:13
*** catintheroof has joined #openstack-trove23:46

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