Friday, 2016-08-05

*** imandhan has quit IRC00:00
*** imandhan has joined #openstack-trove00:01
*** imandhan has quit IRC00:06
*** tqtran has quit IRC00:25
*** chlong has quit IRC00:32
*** gouthamr_ has joined #openstack-trove00:44
mmasakiI tried to fix it. https://bugs.launchpad.net/trove/+bug/148578901:48
openstackLaunchpad bug 1485789 in OpenStack DBaaS (Trove) "ubuntu systemd" [High,Triaged] - Assigned to Nikhil Manchanda (slicknik)01:48
mmasakiHowever, I found trove-integration doesn't work in Ubuntu 16.04.01:48
mmasakiThere are several problems not only service scripts.01:49
mmasakiHow can we fix them? Now we have trove-image-builder. trove-integration will be maintained after Newton?01:51
mmasakiLet me know I should fix trove-integration to work on Ubuntu 16.04, or I should fix the problem in another way.01:54
*** songjian has joined #openstack-trove01:59
songjianamrith,I have a question, it/trove/run_tests py line203 import_tests () the function, can I delete? Because I see the back of the import are commented out02:07
openstackgerritjian.song proposed openstack/trove: Delete #noqa  https://review.openstack.org/34672002:13
*** gouthamr_ has quit IRC02:29
*** itisha has quit IRC02:40
*** pmackinn has quit IRC02:52
*** songjian has quit IRC03:06
*** songjian has joined #openstack-trove03:10
*** chlong has joined #openstack-trove03:49
*** imandhan has joined #openstack-trove03:51
*** rcernin has joined #openstack-trove05:31
*** links has joined #openstack-trove05:36
*** songjian has quit IRC05:42
*** ubuntu_ has joined #openstack-trove05:42
*** Ravikiran_K has joined #openstack-trove06:06
*** chlong has quit IRC06:08
*** ubuntu__ has joined #openstack-trove06:13
*** ubuntu_ has quit IRC06:16
*** diga has joined #openstack-trove06:34
*** chlong has joined #openstack-trove06:40
*** chlong has quit IRC06:52
*** flaper87 has joined #openstack-trove07:36
*** flaper87 is now known as Guest7354807:36
*** openstackgerrit has quit IRC08:03
*** openstackgerrit has joined #openstack-trove08:03
*** tesseract- has joined #openstack-trove08:16
*** ubuntu_ has joined #openstack-trove08:29
*** ubuntu__ has quit IRC08:33
*** Guest73548 is now known as flaper8708:39
*** flaper87 is now known as Guest7864108:39
*** Guest78641 has quit IRC08:44
*** imandhan has quit IRC08:47
*** imandhan has joined #openstack-trove08:48
*** imandhan has quit IRC08:52
*** ubuntu__ has joined #openstack-trove08:55
*** ubuntu_ has quit IRC08:59
*** itisha has joined #openstack-trove09:01
*** flaper87 has joined #openstack-trove09:40
*** flaper87 has quit IRC09:40
*** flaper87 has joined #openstack-trove09:40
*** tosky has joined #openstack-trove10:43
*** dasTor has quit IRC10:43
*** Ravikiran_K has quit IRC10:58
*** gouthamr has joined #openstack-trove11:43
*** catintheroof has quit IRC12:53
*** ubuntu__ has quit IRC12:56
*** catintheroof has joined #openstack-trove13:05
*** diga has quit IRC13:07
*** cdelatte has joined #openstack-trove13:30
*** itisha has quit IRC13:30
*** Ravikiran_K has joined #openstack-trove13:33
*** catintheroof has quit IRC14:00
*** openstackgerrit has quit IRC14:03
*** openstackgerrit has joined #openstack-trove14:03
*** catintheroof has joined #openstack-trove14:07
*** cdelatte has quit IRC14:16
*** pmackinn has joined #openstack-trove14:19
openstackgerritMerged openstack/trove: Fix for tcp_ports configuration in devstack.  https://review.openstack.org/35022814:22
*** hoonetorg has quit IRC14:57
*** hoonetorg has joined #openstack-trove15:09
openstackgerritAli Asgar Adil proposed openstack/trove-dashboard: Add support for instance datastore-flavors  https://review.openstack.org/28615915:16
*** tesseract- has quit IRC15:21
*** trevormc has joined #openstack-trove15:24
*** rcernin has quit IRC15:26
*** itisha has joined #openstack-trove15:26
*** links has quit IRC15:33
*** gouthamr has quit IRC15:34
*** gouthamr has joined #openstack-trove15:34
*** davideagnello has joined #openstack-trove16:04
*** pcaruana has quit IRC16:05
*** davideagnello has quit IRC16:12
*** gregragenet has joined #openstack-trove16:12
*** davideagnello has joined #openstack-trove16:13
openstackgerritMatthew Van Dijk proposed openstack/trove: Improve guestagent datastore models  https://review.openstack.org/23608217:04
*** itlinux has quit IRC17:15
*** davideagnello has quit IRC17:20
gregragenetIf any devs are online which are familiar w/ the file injection mechanism - I would like to ask some questions rather than hash it out in comments in a bug. I've read the code, and from what I can tell file injection wouldn't work if using the default values for Trove and Nova in Mitaka.17:23
*** tosky has quit IRC17:27
*** davideagnello has joined #openstack-trove17:27
amrithask away17:32
gregragenetre: my comment on https://bugs.launchpad.net/trove/+bug/1609915/comments/3 - as best I can tell Trove depends on nova to inject the files through libvirt, but the default libvirt setting is to disable injection. Is there some other mechanism in the mix that I missed when reading through the trove and nova code?17:34
openstackLaunchpad bug 1609915 in OpenStack DBaaS (Trove) "guest_id injection in guest is undocumented" [Undecided,Invalid]17:34
amrithtrove uses config drive17:35
amrithand when it runs, the two injected files end up in /etc/trove/conf.d17:36
gregragenetThe default setting in trove to enable config_drive is false. https://github.com/openstack/trove/blob/97a2fb89ff38c61e2f45cf7b4e4eb4657621fa87/trove/common/cfg.py#L19417:36
amrithyou are correct. We pass the files parameter to nova servers.create() and they get to the guest instance17:39
amrithIt is my assumption that nova does whatever it needs to to get the files there17:41
amrithand I can see that they do in fact show up there17:41
amrithfurthermore, in debugging something recently I did in fact find that it was using config-drive under the covers17:42
amrithso, you've got me on that; I don't know how nova does things17:42
amrithwe just get our files there ...17:42
gregragenetDoes your nova.conf have an 'inject_partition' setting that's something other than '-2'? -2 is the default, which disables file injection.17:43
amrithgrep inject nova.conf17:44
amrithinject_partition = -217:44
*** arist has quit IRC17:46
amrithon your guest instance; are you able to ssh into it?17:46
amrithif you are, d17:47
amrithdo this17:47
amrithcd /var/lib/cloud/data/openstack17:47
*** arist has joined #openstack-trove17:47
gregragenetI'll hop on it and check.17:47
gregragenetI have a /var/lib/cloud/data directory - but not a /var/lib/cloud/data/openstack directory. The image is based on a Trusty cloud image.17:50
amrithok, one second, my image is xenial based but I doubt that's the issue; let me check17:53
amrithgregragenet, go to /var/log/ and look for cloud-init.log17:56
amrithyou should have one17:56
amrithwait, is this a guest with your customized cloud-init file or something else?17:56
gregragenetI can look in cloud-init.log - what should I look for? - this is the instance using the cloudinit file that's basically the same as the one in https://review.openstack.org/#/c/351364/117:58
gregrageneta few small changes to it - putting in my appropriate openstack settings and adding a debug account so I can login to it.17:59
amrithin that file you should see a line like this18:00
amrithubuntu [CLOUDINIT] util.py[DEBUG]: Writing to /etc/trove/conf.d/guest_info.conf18:00
gregragenetalso, for completeness, here's my settings for trove re: server_volume and use_heat:18:01
amrithyou are using heat?18:01
gregragenetegrep -r "^use_heat|^use_nova_server_volume" /etc/trove/*18:01
gregragenet/etc/trove/trove-taskmanager.conf:use_nova_server_volume = False18:01
amrithlook for a line in cloud-init.log that reads: ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['mount', '-o', 'ro,sync', '-t', 'auto',18:01
amriththe next parameter is a config drive devie18:02
amrithdevice18:02
amrithwhat is that device?18:02
vkmc23654118:02
amrithshould be /dev/sr018:02
gregragenetI will look.. Is your trove*conf set up w/ use_nova_server_volume = True ?18:03
amrithno setting, whatever the default is18:03
*** ShaikApsar has joined #openstack-trove18:04
gregragenetI just grepped through cloud-init.log for 'mount' - no mount calls.18:06
gregragenetand just tried mounting /dev/sr0 manually, and the device does not exist.18:07
gregragenethere's the config_drive settings in my nova - which I believe are the defaults: grep config_drive /etc/nova/*18:10
gregragenet/etc/nova/nova.conf:#config_drive_skip_versions=1.0 2007-01-19 2007-03-01 2007-08-29 2007-10-10 2007-12-15 2008-02-01 2008-09-0118:10
gregragenet/etc/nova/nova.conf:#config_drive_format=iso966018:10
gregragenet/etc/nova/nova.conf:#force_config_drive=false18:10
gregragenet/etc/nova/nova.conf:#config_drive_inject_password=false18:10
gregragenet/etc/nova/nova.conf:#config_drive_cdrom=false18:10
gregragenet/etc/nova/policy.json:    "compute_extension:config_drive": "rule:admin_or_owner",18:10
*** gouthamr has quit IRC18:10
amrithhow did you setup your nova and trove? are they devstack based or other configuration tools based?18:14
amrithon my setup, nova does have that setting you pointed to (inject_partitions) set to -2. yet I do see a dev/sr018:16
gregragenetRPM packages for Mitaka on CentOS7, then Ansible customizations starting with the install-guide guidance at http://docs.openstack.org/mitaka/install-guide-rdo/ - and then any changes which were required to get services working.18:16
gregragenetI believe that /dev/sr0 would be from configdrive.18:17
amrithso, I have (in nova.conf)18:17
amrithnova.conf:force_config_drive = True18:17
gregragenetthe default for that is False. https://github.com/openstack/nova/blob/d0905df10a48212950c0854597a2df923e6ddd0c/nova/conf/configdrive.py#L4918:18
*** gouthamr has joined #openstack-trove18:18
amrithyes, so mine uses config drive.18:19
amrithso, with your proposed change, how does your cloud-init file make its way over to the guest?18:20
gregragenetbtw, random factoid, looks like you can't do libvirt live migrations w/ the default config_drive_format (iso9660)... but you can if switched to 'vfat'.18:20
*** davideagnello has quit IRC18:21
ShaikApsarhttps://github.com/openstack/trove/blob/master/etc/trove/trove-taskmanager.conf.sample#L6418:24
gregragenetthe cloudinit is passed into the nova create call as 'userdata'. That userdata makes its way into the metadata service (haven't looked at the plumbing here). And then when the guest boots and starts cloud-init, which makes a http req to the metadata server using the special ip 169.254.169.254 - it pulls down that cloudconfig file parses it and takes the appropriate actions.18:25
amrithso you are passing your file on the same conduit that is being used for the injected_files taht Trove is trying to send anyway18:26
amrithon your guest, do you have an /etc/trove/conf.d directory?18:27
amrithsince you are getting it from the special metadata IP, you should also see on that server, the meta_data.json file18:28
amrithwhich should include the two injected files18:28
gregragenetLemme look for the meta_data.json, but I feel like I checked for that and didn't see anything trove related. I'll double-check.18:29
ShaikApsaramrith: Could you please review the change https://review.openstack.org/#/c/340022/18:29
amrithwell, config-drive or metadata-ip are merely conduits; eventually the stuff is processed in the same way in cloud-init18:29
ShaikApsaramrith: This change is for task Manager.publish_quota_notifications failure18:30
*** davideagnello has joined #openstack-trove18:30
amrithyes, let me check.18:31
gregragenetin the nova_client.servers.create files and userdata are passed in via different arguments (files and userdata). checking into my VM for meta_data.json18:31
amrithShaikApsar, I was confused by the novaclient changes that I see in remote.py (https://review.openstack.org/#/c/340022/30/trove/common/remote.py)18:32
ShaikApsaramrith: http://logs.openstack.org/22/340022/30/check/gate-trove-scenario-functional-dsvm-mysql/f50e3a8/logs/screen-tr-tmgr.txt.gz18:33
ShaikApsaramrith: 2016-08-04 21:15:09.057 24042 DEBUG oslo_service.periodic_task [-] Running periodic task Manager.publish_quota_notifications run_periodic_tasks /usr/local/lib/python2.7/dist-packages/oslo_service/periodic_task.py:21518:33
ShaikApsaramrith: Initially i thought issue is with nova client and later i came to know that we were trying to get tenant list using nova client18:34
ShaikApsaramrith: we should use keystone client to get tenant list and i removed all the novaclient changes from my previous patches18:34
ShaikApsaramrith: nova_client = remote.create_nova_client(self.admin_context) is the wrong18:35
ShaikApsaramrith: https://review.openstack.org/#/c/340022/30/trove/taskmanager/manager.py18:36
gregragenetthis is what's in meta_data.json:18:38
* amrith waits eagerly18:38
gregragenetroot@webui-trove:~# curl http://169.254.169.254/openstack/latest/meta_data.json 2>/dev/null |python -c 'import json,sys;obj=json.load(sys.stdin);print obj.keys();'18:38
gregragenet[u'random_seed', u'uuid', u'availability_zone', u'hostname', u'launch_index', u'project_id', u'name']18:38
ShaikApsaramrith: 'for tenant in nova_client.tenants.list():' this line is wrong18:39
gregragenetthe uuid is the uuid for the instance..18:39
amriththat's all correct18:39
amrithlooks like the stuff that trove is providing isn't making it over18:40
amrithmind changing the nova flag (force_config_drive = True) and restarting the nova services and retrying?18:40
amrithwithout your cloud-init change18:40
amrithI'm doing the opposite; removing the force_config_drive = True in nova.conf and retrying18:41
gregragenetI would suspect it would work if I make that change.. ATM the environment I have that I can do that on is a cluster that some other team members are using. so it'll take a little bit for me to make the change.18:48
*** catintheroof has quit IRC19:00
*** fifieldt has quit IRC19:02
*** ShaikApsar has quit IRC19:09
*** fifieldt has joined #openstack-trove19:18
*** davideagnello has quit IRC19:33
*** ShaikApsar has joined #openstack-trove19:34
*** davideagnello has joined #openstack-trove19:34
amrithand I roached my environment in trying to kill nova; trying to rebuild19:43
gregragenetI'm trying use_nova_server_volume = True in my trove conf, similar (not exact) operation path, but without me having to coordinate restart of nova across my cluster.19:45
amrithok19:46
amrithdoes force_config_drive require more of a restart?19:46
gregragenetI wasn't sure if that required restart of all nova-compute instances, or of just the controller side ones. either way, there's other users of nova on this cluster, I'm the only one using trove, so I don't have to coordinate w/ anyone to restart trove services.19:49
amrith:)19:50
amrithmy usual explanation is 'testing high availability'19:50
*** trevormc has quit IRC20:01
gregragenetoops wrong param. I need to change use_nova_server_config_drive in trove. trying again.20:02
gregragenetuse_nova_server_config_drive=True injects /etc/trove/conf.d/guest_info.conf into the VM correctly.20:07
openstackgerritMerged openstack/trove-dashboard: Imported Translations from Zanata  https://review.openstack.org/34585620:08
gregragenetSo perhaps that should default to True in https://github.com/openstack/trove/blob/97a2fb89ff38c61e2f45cf7b4e4eb4657621fa87/trove/common/cfg.py#L194 ? - given that nova defaults to not automatically creating a config drive unless the nova client (trove) requests it.20:13
amrithgregragenet, that seems to make sense20:14
amrithwith that, does the code on master work for you?20:15
*** davideagnello has quit IRC20:22
gregragenetIt works w/ Mitaka, so I'd assume it also works w/ master as the default config settings for Nova and Trove related to config drive have not changed since Mitaka.20:23
gregragenetI have to drop off.. meeting w/ the Hadoop guys to deliver the bad news that I don't have Sahara up yet. Thank you for all the time and help debugging this.20:25
openstackgerritOpenStack Proposal Bot proposed openstack/trove: Updated from global requirements  https://review.openstack.org/35093320:29
*** davideagnello has joined #openstack-trove20:31
*** gouthamr has quit IRC20:41
openstackgerritMerged openstack/python-troveclient: Add vCPUs to flavor-list  https://review.openstack.org/33753320:56
*** gouthamr has joined #openstack-trove21:05
*** Ravikiran_K has quit IRC21:21
openstackgerritMerged openstack/trove: Introduce "icmp" option for security group rule  https://review.openstack.org/21405621:28
openstackgerritMerged openstack/trove: Fix config registration for Trove tempest plugin  https://review.openstack.org/33671021:37
*** davideagnello has quit IRC21:40
amrithgregragenet, thanks for your help getting to the bottom of this.21:45
amrithgregragenet, you are correct; my question re: works with master was to say that it works without your proposed change to cloud-init etc.,21:46
*** davideagnello has joined #openstack-trove21:52
gregragenetyes. we can drop the cloud init change - it is unnecessary assuming the docs make the injection mechanisms incl. the config_drive setting, and having that default to True. I'd really like there to be an explicit error message when trove-guestagent starts up and guest_id is Null - that cost me a lot of time troubleshooting, and I think it may affect a lot of users if their guestimages are misconfigured such that they don't read in the correct21:56
gregragenet injected files.21:57
amrithgood points, I'll update the bug and re-open it21:58
*** ShaikApsar has quit IRC22:03
amrithgregragenet, would you please resubmit your change with the change to the default; use_nova_server_config_drive = True and let's get the CI to run through it. Also a similar change in trove-integration to establish it for the future. thx22:06
amrithalso any additional error message changes in guestagent; I think all of those should be fine.22:07
gregragenetI just abandoned my cloudinit pr... but i'll start a new one.. it may take me a bit to find the correct spot to detect and error out that the guest_id is missing.22:08
amrithI'll post some suggestions in the bug; I'm thinking trove/cmd/guest.py would be a good place to start22:10
gregragenetyes. that looks like an obvious place. RuntimeError, same as if datastore_manager is missing?22:12
amrithyes, I'm trying it out22:12
amrithI'm surprised that your system didn't fail with that error22:13
amrithI'd assume that you would have tripped on that22:13
amrithsince datastore_manager only comes from the injected files22:13
amrithyes, as best as I can tell, you should have hit that error22:18
amrithsee: https://gist.github.com/amrith/0d993964b12ac2c266b20239feefcbbb22:19
amrithsorry, fat fingered it22:20
amrithhttps://gist.github.com/amrith/79eebccf6520892236446760ea3f162422:20
gregragenetI probably did get the error for datastore_manager, but then that param will always be the same value across all guests for a given datastore, so the value can be baked into the image, or injected via cloud-init.22:27
*** gouthamr has quit IRC22:49
*** davideagnello has quit IRC22:58
*** itisha has quit IRC23:00
*** davideagnello has joined #openstack-trove23:06
*** davideagnello has quit IRC23:20

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