Wednesday, 2017-12-20

mnaserwell, here goes nothing00:00
mnaserok, conductor backup with patch, gonna try a live migration00:01
mnaserstatus=MIGRATING00:01
mnaserlet me watch nova-compute to check everything is ok00:01
mnaserlive migrated successfully *without* forcing host, let me try forcing host00:02
*** moshele has quit IRC00:02
*** huanxie has quit IRC00:02
mnasermriedem: fixed for both forced host and unspecified host for live migrations00:03
mriedemsweet00:04
mnaserthank you so much, moving forwards i guess we'll have to find a way to clean this up00:04
mriedemabout done with tests for the workaround00:04
*** salv-orlando has quit IRC00:05
*** salv-orlando has joined #openstack-nova00:05
openstackgerritMerged openstack/nova master: Remove the objects which related to the old v2 API implementation  https://review.openstack.org/51999700:06
openstackgerritMerged openstack/nova master: Remove the objects for describing the extension for v2.1 API  https://review.openstack.org/51999800:06
*** huanxie has joined #openstack-nova00:06
mnaserfound some other VMs in error state which failed to delete ... "{"message": "Field `disabled' cannot be None", "code": 500, "details": "  File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 205,"00:06
mnaserinvestigation round #200:07
openstackgerritMerged openstack/nova master: libvirt: throw NotImplementedError if qga is not responsive when setting password  https://review.openstack.org/52382800:07
openstackgerritMerged openstack/nova master: Update and complete volume attachments during resize  https://review.openstack.org/52722800:07
*** kumarmn has joined #openstack-nova00:07
mriedemmnaser: service record maybe?00:08
mriedemnova.services table00:08
*** edmondsw has joined #openstack-nova00:08
*** tetsuro_ has joined #openstack-nova00:09
openstackgerritMatt Riedemann proposed openstack/nova master: Workaround missing RequestSpec.project_id when moving an instance  https://review.openstack.org/52918500:09
*** Brin has joined #openstack-nova00:09
mriedemhere is the workaround patch with tests ^00:09
mnaserhttp://paste.openstack.org/show/629406/00:09
mnasergot the full trace back, ill start digging into why00:09
mnaseri guess its a flavor where disabled is none00:10
mriedemyeah...00:10
mnaserinstance created at 2015-03-24T09:14:09Z00:10
mriedemso i think in that case, the flavor we're using is pulled out of the embedded flavor stored with the instance00:10
mriedemfrom the instance_extra table00:10
*** salv-orlando has quit IRC00:11
mnasermost very likely00:11
mriedemnot sure why disabled would be null00:11
mnaserlet me double check the db00:11
mriedemthe disabled column in the db defaults to False00:12
mnaserthis is from instance_extra?00:13
*** edmondsw has quit IRC00:13
*** jdurgin has joined #openstack-nova00:14
mriedemyeah, self.flavor = flavor_payload.FlavorPayload(flavor=instance.flavor)00:14
mnaserhttp://paste.openstack.org/show/629410/00:14
mriedeminstance.flavor pulls the embedded flavor out of the instance_extra table00:14
mnaserif i recall, the embedded flavor didnt exist before00:15
mnasercould it be possible that when whatever migration ran that did that, it didnt add it?00:16
mriedemwe started embedding the flavor in kilo00:16
mriedemflavors were the first online data migration in nova i think00:16
mriedemmoving the flavor from the instance_system_metadata table00:16
mnaseri remember something along these lines00:16
mriedemso the serialized form of this flavor says it's version 1.1 of the object which has the disabled field, but maybe it just wasn't set when the flavor was serialized with the instance...00:16
mriedemif you look at a more recent instance, is it set there?00:17
mnaseri think thats what happened, the disabled field seems to be part of when the object was first created00:17
mnasermriedem: willing to be it is, but let me check to be sure00:17
mnasermriedem: yup00:18
mriedemok00:18
mnaserhttps://github.com/openstack/nova/commit/b4f07f42763489ddf459e4e795477530bdcbd99400:23
mriedemthis is where we set the flavor on the instance during create https://github.com/openstack/nova/blob/master/nova/compute/api.py#L145000:26
mnaserim not sure how we ended up in that situation honestly00:26
*** threestrands has joined #openstack-nova00:26
*** threestrands has quit IRC00:26
*** threestrands has joined #openstack-nova00:26
*** yangyapeng has quit IRC00:27
mnaseractually, instance was created on '2015-03-24T09:14:09Z' and instance_extra record was on '2015-03-24 09:14:09' which means that it wasnt part of the migration (sorry if you knew this but it just clicked for me)00:27
*** yangyapeng has joined #openstack-nova00:28
mnaserupdated on 2017-10-04 22:30:33 hmm00:28
mnaserok that was the date the instance was attempted to be deleted00:29
*** mlavalle has quit IRC00:30
*** takashin has joined #openstack-nova00:31
mriedemok hacking something up00:32
*** yangyapeng has quit IRC00:32
*** dave-mccowan has quit IRC00:35
*** esberglu has quit IRC00:38
*** Dinesh_Bhor has joined #openstack-nova00:40
*** kumarmn has quit IRC00:41
mnaseri feel really bad just finding all these issues all at once lol00:45
mnaseri just found a keyerror bug :x00:45
mriedemi don't have a great solution for the flavor thing in the notification. you could disable versioned notifications for now, not sure if you are relying on those.00:46
mnasermriedem: we're not atm, but i didnt see a config option to disable it afaik00:46
mriedemCONF.notifications.notification_format00:47
mriedemset that to 'unversioned'00:47
mriedemyou'll still get the old unversioned notifications which things like ceilometer consume00:48
mnasermriedem: https://bugs.launchpad.net/nova/+bug/1739323 not sure how far back this goes00:50
openstackLaunchpad bug 1739323 in OpenStack Compute (nova) "KeyError in host_manager for _get_host_states" [Undecided,New]00:50
mnaserlooks like its different in stable/newton but ocata+ are probably affected00:51
mnaseri dont understand why its iterating it back.. is it trying to return a set?00:51
mriedemcan you put a stacktrace in the bug?00:52
mnasersure00:52
mriedemthis is all really old i think00:52
mriedemhttps://github.com/openstack/nova/commit/b0582603a401b2e71348e9a862b83acc426097df00:53
openstackgerritMerged openstack/nova master: Improve error message on invalid BDM fields  https://review.openstack.org/52791500:53
mriedembeen around since grizzly00:53
mnasermriedem: https://github.com/openstack/nova/commit/4660333d0d97d8e00cf290ea1d4ed932f5edc1dc#diff-978b9f8734365934eaf8fbb01f11a7d7L624 this is what broke it though00:54
*** tuanla____ has joined #openstack-nova00:54
mnaserbefore it would return it as is.. which means that the KeyError didnt matter.. now it loops over it for some reason00:54
mriedemoh nice catch, that's ocata00:55
mnaserok so six.itervalues => Returns an iterator over dictionary‘s values.00:55
mriedemi thought you were saying the KeyError was this00:55
mriedemdel self.host_state_map[state_key]00:55
mnaserno sorry00:55
mnaserreturn (self.host_state_map[host] for host in seen_nodes)00:55
mnaserwhy not just "return self.host_state_map[host]" i dont know00:56
mnasererr i mean "return self.host_state_map"00:56
mriedemnot sure, i don't remember why that change was necessary, would have to ask bauzas00:56
mriedembut it's clearly wrong00:56
mnaserthis only took 41 patchsets to merge00:57
mnaserlol00:57
mnaserhttps://review.openstack.org/#/c/417961/00:57
mriedemyeah man, and i was in i think cancun at the time on vacation00:58
*** itlinux has joined #openstack-nova00:59
mriedemhttps://review.openstack.org/#/c/417961/41/nova/scheduler/filter_scheduler.py@100 was also wrong01:00
*** Dinesh_Bhor has quit IRC01:01
mnasernow let me disable versioned notification and see if that gets things moving01:01
*** phuongnh has joined #openstack-nova01:06
*** salv-orlando has joined #openstack-nova01:06
*** huanxie has quit IRC01:06
*** huanxie has joined #openstack-nova01:07
mnaserunversioned notifications did the trick mriedem.  that lets me delete the weird vms and live migrate the others.  thanks so much for your time, ill track those bugs and hopefully we can get them merged/backported01:10
*** salv-orlando has quit IRC01:11
*** Dinesh_Bhor has joined #openstack-nova01:11
mriedemmnaser: can you report a bug for the flavor versioned notification thing?01:12
mnasermriedem: oh sure01:12
*** dave-mccowan has joined #openstack-nova01:12
*** yangyapeng has joined #openstack-nova01:12
jaypipesmriedem, mnaser: just getting back to the house after dinner... have you figured out what was up?01:15
mriedemjaypipes: https://review.openstack.org/#/q/topic:bug/1739318+(status:open+OR+status:merged)01:15
mriedemlatent bug from newton bites us in the ass starting in pike01:16
mnasermriedem: fyi https://bugs.launchpad.net/nova/+bug/173932501:18
openstackLaunchpad bug 1739325 in OpenStack Compute (nova) "Server operations fail to complete with versioned notifications" [Undecided,New]01:18
mnaseralso thanks for asking jaypipes but yeah i think we're good .. for now, going to wait to get that backported so we can upgrade to latest stable/pike01:18
mriedemi can feel my wife getting ready to yell at me for still being in my office01:19
*** asettle has quit IRC01:19
mnaserlol01:20
mnaseri still have some gift shopping to do..01:20
mnaserbut i guess that's not happening tonight01:20
mnaserthough not looking forward to how much snow is dumped on my car since 8am today and cleaning all that01:20
*** yamamoto has joined #openstack-nova01:21
*** yamamoto has quit IRC01:21
mriedemwe're virtually snow free in SE minnesota01:21
openstackgerritMatt Riedemann proposed openstack/nova master: Default some flavor notification payload fields  https://review.openstack.org/52919401:21
mriedemmnaser: so this is a start on that versioned notification bug ^01:21
mriedemsuper hacky though i think,01:21
mriedembut would need other input, likely from dansmith on that one01:21
mriedemno idea how we could get in that situation to begin with01:22
*** asettle has joined #openstack-nova01:22
mnaseryeah i tried looking everywhere and i couldnt identify a source of how it ended up happening unfortunately01:22
*** takashin has quit IRC01:22
mnaserit was def not converted because the creation date matched the vm launch date01:22
*** annp has joined #openstack-nova01:23
*** psachin has joined #openstack-nova01:24
openstackgerritMatt Riedemann proposed openstack/nova master: Default some flavor notification payload fields  https://review.openstack.org/52919401:25
*** Apoorva_ has joined #openstack-nova01:26
mriedemas for https://bugs.launchpad.net/nova/+bug/1739323 i don't think ill be able to crack that tonight01:27
openstackLaunchpad bug 1739323 in OpenStack Compute (nova) pike "KeyError in host_manager for _get_host_states" [High,Confirmed]01:27
mriedemshould be a simple 'in' check or .get() to handle the key not being in there01:28
*** psachin has quit IRC01:28
*** Apoorva has quit IRC01:29
mnasermriedem: i would have done it but it seemed weird why it was changed so i figured maybe there was a... purpose to the decision01:29
mriedemnot sure, kind of why i wanted bauzas to look at it01:30
*** Apoorva_ has quit IRC01:31
*** psachin has joined #openstack-nova01:32
*** yamahata has quit IRC01:38
*** huanxie has quit IRC01:38
*** yamahata has joined #openstack-nova01:39
*** huanxie has joined #openstack-nova01:41
*** bhagyashri_s has joined #openstack-nova01:42
*** andreykurilin has quit IRC01:43
*** bhagyashris has quit IRC01:46
*** andreykurilin has joined #openstack-nova01:46
*** claudiub|2 has quit IRC01:53
*** edleafe- has joined #openstack-nova01:57
*** edleafe has quit IRC01:57
*** yamamoto has joined #openstack-nova01:57
*** felipemonteiro has quit IRC01:57
*** salv-orlando has joined #openstack-nova02:07
*** takashin has joined #openstack-nova02:07
*** salv-orlando has quit IRC02:11
*** huanxie has quit IRC02:11
*** karthiks has joined #openstack-nova02:16
*** Dinesh_Bhor has quit IRC02:17
*** huanxie has joined #openstack-nova02:20
*** r-daneel has quit IRC02:20
*** Dinesh_Bhor has joined #openstack-nova02:28
*** Dinesh_Bhor has quit IRC02:32
openstackgerritJay Pipes proposed openstack/nova master: allow compute nodes to be associated with host agg  https://review.openstack.org/52675302:32
openstackgerritJay Pipes proposed openstack/nova master: Remove server group sched filter support caching  https://review.openstack.org/52920002:32
openstackgerritJay Pipes proposed openstack/nova master: WIP Support aggregate affinity filters  https://review.openstack.org/52920102:32
*** Dinesh_Bhor has joined #openstack-nova02:32
*** catintheroof has joined #openstack-nova02:38
*** Dinesh_Bhor has quit IRC02:38
*** Dinesh_Bhor has joined #openstack-nova02:40
*** Tom-Tom has joined #openstack-nova02:41
*** Dinesh_Bhor has quit IRC02:48
*** calebb has quit IRC02:49
*** huanxie has quit IRC02:50
*** Dinesh_Bhor has joined #openstack-nova02:50
*** catintheroof has quit IRC02:53
*** gmann has quit IRC02:55
*** calebb has joined #openstack-nova02:56
*** huanxie has joined #openstack-nova02:56
*** takashin has left #openstack-nova03:00
*** Dinesh_Bhor has quit IRC03:01
openstackgerritChen Hanxiao proposed openstack/nova master: libvirt: add Linux distribution guest only description for inject_xxx options  https://review.openstack.org/52844103:01
*** hshiina has joined #openstack-nova03:02
*** threestrands has quit IRC03:03
*** threestrands has joined #openstack-nova03:04
*** threestrands has quit IRC03:04
*** threestrands has joined #openstack-nova03:04
*** threestrands has quit IRC03:05
*** threestrands has joined #openstack-nova03:06
*** threestrands has quit IRC03:06
*** threestrands has joined #openstack-nova03:06
*** threestrands has quit IRC03:07
*** threestrands has joined #openstack-nova03:07
*** salv-orlando has joined #openstack-nova03:07
*** yamahata has quit IRC03:11
openstackgerritAlex Xu proposed openstack/nova master: Remove extensions module  https://review.openstack.org/52920603:12
*** salv-orlando has quit IRC03:12
alex_xuoomichi: ^ remove extensions module entirely03:13
*** dave-mccowan has quit IRC03:13
*** vivsoni has quit IRC03:15
*** abhishekk has joined #openstack-nova03:23
*** karthiks has quit IRC03:23
openstackgerritAlex Xu proposed openstack/nova master: Remove the LoadedExtensionInfo object  https://review.openstack.org/52920703:24
*** Tom-Tom has quit IRC03:25
*** Tom-Tom has joined #openstack-nova03:25
*** huanxie has quit IRC03:26
*** Tom-Tom has quit IRC03:29
*** andreas_s has joined #openstack-nova03:29
*** tinwood has quit IRC03:30
*** tinwood has joined #openstack-nova03:31
*** artom has quit IRC03:31
*** artom has joined #openstack-nova03:31
*** huanxie has joined #openstack-nova03:32
*** andreas_s has quit IRC03:33
*** edmondsw has joined #openstack-nova03:44
*** Apoorva has joined #openstack-nova03:44
*** gongysh has joined #openstack-nova03:48
*** edmondsw has quit IRC03:49
*** gyee has quit IRC03:51
*** owalsh_ has joined #openstack-nova03:55
openstackgerritblkart proposed openstack/nova master: Force delete an instance in any vm_state/task_state  https://review.openstack.org/52921203:56
*** udesale has joined #openstack-nova03:57
*** threestrands_ has joined #openstack-nova03:57
*** threestrands has quit IRC03:57
*** threestrands_ has quit IRC03:58
*** zhurong has joined #openstack-nova03:58
*** threestrands_ has joined #openstack-nova03:59
*** owalsh has quit IRC03:59
*** crushil has joined #openstack-nova04:02
*** penick has joined #openstack-nova04:02
*** huanxie has quit IRC04:02
*** diga has joined #openstack-nova04:03
*** Dinesh_Bhor has joined #openstack-nova04:06
*** penick has quit IRC04:07
*** penick_ has joined #openstack-nova04:07
*** huanxie has joined #openstack-nova04:08
*** yamamoto_ has joined #openstack-nova04:08
*** salv-orlando has joined #openstack-nova04:08
*** yamamoto has quit IRC04:11
*** salv-orlando has quit IRC04:13
*** namnh has joined #openstack-nova04:14
*** liverpooler has quit IRC04:14
openstackgerritAlex Xu proposed openstack/nova master: Merge ResourceV21 obj into Resource obj  https://review.openstack.org/52921704:22
openstackgerritAlex Xu proposed openstack/nova master: Remove the inherits parameter for the Resource object  https://review.openstack.org/52921804:22
*** Tom-Tom has joined #openstack-nova04:30
*** kumarmn has joined #openstack-nova04:33
*** mlavalle has joined #openstack-nova04:35
*** Tom-Tom has quit IRC04:35
*** Dinesh_Bhor has quit IRC04:37
*** mlavalle has quit IRC04:38
*** huanxie has quit IRC04:38
*** Dinesh_Bhor has joined #openstack-nova04:42
*** huanxie has joined #openstack-nova04:42
*** liuzz has joined #openstack-nova04:44
*** armax has quit IRC04:44
*** Dinesh_Bhor has quit IRC04:46
*** armax has joined #openstack-nova04:51
*** armax has quit IRC04:51
*** Dinesh_Bhor has joined #openstack-nova04:53
*** Dinesh_Bhor has quit IRC04:56
*** ianw is now known as ianw_pto04:57
*** links has joined #openstack-nova04:57
*** Dinesh_Bhor has joined #openstack-nova05:01
*** kumarmn has quit IRC05:02
*** felipemonteiro has joined #openstack-nova05:03
*** Dinesh_Bhor has quit IRC05:06
*** Tom-Tom has joined #openstack-nova05:08
*** salv-orlando has joined #openstack-nova05:09
*** yamamoto_ has quit IRC05:10
*** huanxie has quit IRC05:12
*** salv-orlando has quit IRC05:15
*** moshele has joined #openstack-nova05:15
*** huanxie has joined #openstack-nova05:16
*** penick has joined #openstack-nova05:18
*** namnh has quit IRC05:19
*** penick_ has quit IRC05:19
*** Dinesh_Bhor has joined #openstack-nova05:27
*** Dinesh_Bhor has quit IRC05:31
*** edmondsw has joined #openstack-nova05:32
*** yamamoto has joined #openstack-nova05:32
*** edmondsw has quit IRC05:37
*** AlexeyAbashkin has joined #openstack-nova05:37
*** sridharg has joined #openstack-nova05:38
*** penick_ has joined #openstack-nova05:38
*** yangyapeng has quit IRC05:40
*** yangyapeng has joined #openstack-nova05:41
*** penick has quit IRC05:41
*** AlexeyAbashkin has quit IRC05:42
*** jichen has joined #openstack-nova05:42
jichenmriedem: hi, canyou please help to take a look at https://review.openstack.org/#/c/523387/ ?05:43
*** yangyapeng has quit IRC05:45
*** huanxie has quit IRC05:46
*** crushil has quit IRC05:47
*** kumarmn has joined #openstack-nova05:50
*** Apoorva has quit IRC05:50
*** huanxie has joined #openstack-nova05:53
*** kumarmn has quit IRC05:55
*** Dinesh_Bhor has joined #openstack-nova05:56
*** gouthamr has quit IRC05:57
*** Dinesh_Bhor has quit IRC06:00
*** yangyapeng has joined #openstack-nova06:03
*** penick_ has quit IRC06:04
*** penick has joined #openstack-nova06:05
*** Dinesh_Bhor has joined #openstack-nova06:05
*** salv-orlando has joined #openstack-nova06:10
openstackgerritChen Hanxiao proposed openstack/nova master: trivial: conf: libvirt: fix a typo  https://review.openstack.org/52922906:12
*** Dinesh_Bhor has quit IRC06:15
*** salv-orlando has quit IRC06:15
openstackgerritOpenStack Proposal Bot proposed openstack/nova master: Imported Translations from Zanata  https://review.openstack.org/52479506:16
*** Dinesh_Bhor has joined #openstack-nova06:20
*** Tom-Tom has quit IRC06:21
*** Tom-Tom has joined #openstack-nova06:24
*** salv-orlando has joined #openstack-nova06:28
*** huanxie has quit IRC06:29
*** Dinesh_Bhor has quit IRC06:30
*** diga has quit IRC06:31
*** huanxie has joined #openstack-nova06:32
*** Dinesh_Bhor has joined #openstack-nova06:34
openstackgerritYikun Jiang (Kero) proposed openstack/nova master: Add migration db and object pagination support.  https://review.openstack.org/51490406:38
openstackgerritYikun Jiang (Kero) proposed openstack/nova master: Add cross cell sort support for get_migrations  https://review.openstack.org/51727306:38
*** felipemonteiro has quit IRC06:38
*** felipemonteiro has joined #openstack-nova06:39
*** trungnv has joined #openstack-nova06:39
openstackgerritYikun Jiang (Kero) proposed openstack/nova master: Add pagination and Changes-since filter support for os-migrations.  https://review.openstack.org/33040606:42
openstackgerritMinho Ban proposed openstack/nova master: prevent removing numa_topology usage info from DB  https://review.openstack.org/52923606:47
*** yamamoto has quit IRC06:49
*** karthiks has joined #openstack-nova06:49
*** janki has joined #openstack-nova06:49
*** felipemonteiro has quit IRC06:50
*** kumarmn has joined #openstack-nova06:51
*** karthiks has quit IRC06:54
*** kumarmn has quit IRC06:55
*** andreas_s has joined #openstack-nova06:56
*** threestrands_ has quit IRC06:57
*** huanxie has quit IRC07:02
*** yamamoto has joined #openstack-nova07:04
*** karthiks has joined #openstack-nova07:06
*** rcernin has quit IRC07:08
*** huanxie has joined #openstack-nova07:08
*** yamamoto has quit IRC07:09
openstackgerritAmeed Ashour proposed openstack/nova master: change instance_system_metadata column type  https://review.openstack.org/52690007:09
*** Dinesh_Bhor has quit IRC07:09
*** Dinesh_Bhor has joined #openstack-nova07:13
*** penick has quit IRC07:14
*** Dinesh_Bhor has quit IRC07:14
*** penick has joined #openstack-nova07:16
*** gongysh has quit IRC07:17
*** claudiub|2 has joined #openstack-nova07:19
*** yamamoto has joined #openstack-nova07:20
*** edmondsw has joined #openstack-nova07:21
*** Brin has quit IRC07:23
*** liuzz has quit IRC07:23
*** yamamoto has quit IRC07:24
*** edmondsw has quit IRC07:25
openstackgerritTommyLike proposed openstack/nova master: Remove redundant try/except block when authorize  https://review.openstack.org/52899107:25
openstackgerrit龚肖 proposed openstack/nova master: compute: Catch binding failed exception while init host  https://review.openstack.org/52924907:32
*** huanxie has quit IRC07:38
*** sapd has quit IRC07:40
*** sapd has joined #openstack-nova07:41
*** gongysh has joined #openstack-nova07:42
*** huanxie has joined #openstack-nova07:44
openstackgerritAmeed Ashour proposed openstack/nova master: change instance_system_metadata column type  https://review.openstack.org/52690007:44
openstackgerritguanzuoyu proposed openstack/nova-specs master: Fix an spelling error of driver  https://review.openstack.org/52925107:47
*** vladikr has joined #openstack-nova07:49
openstackgerritChen Hanxiao proposed openstack/nova master: InstanceInfo: store more runtime information of instance  https://review.openstack.org/52634807:50
*** kumarmn has joined #openstack-nova07:51
openstackgerritMarc Koderer proposed openstack/nova master: Enhance error handling for InvalidBDMVolume  https://review.openstack.org/52925407:53
openstackgerritTetsuro Nakamura proposed openstack/nova master: Fix duplicate allocation candidates  https://review.openstack.org/52859107:56
*** kumarmn has quit IRC07:57
*** mkoderer__ has joined #openstack-nova08:01
*** yamamoto has joined #openstack-nova08:04
*** sahid has joined #openstack-nova08:08
*** yangyapeng has quit IRC08:09
*** yamamoto has quit IRC08:09
*** yangyapeng has joined #openstack-nova08:11
*** hoangcx has quit IRC08:12
*** hoangcx has joined #openstack-nova08:13
*** Tom-Tom has quit IRC08:14
*** Tom-Tom has joined #openstack-nova08:15
*** huanxie has quit IRC08:16
openstackgerritMinho Ban proposed openstack/nova master: prevent removing numa_topology usage info from DB  https://review.openstack.org/52923608:16
*** zhurong has quit IRC08:17
maciejjozefczykmriedem: jaypipes thanks for https://review.openstack.org/#/c/520024/08:17
*** tuanla____ has quit IRC08:18
*** hieulq has quit IRC08:18
*** daidv has quit IRC08:18
*** daidv has joined #openstack-nova08:19
*** tuanla____ has joined #openstack-nova08:19
*** AlexeyAbashkin has joined #openstack-nova08:19
*** hieulq has joined #openstack-nova08:19
*** hoonetorg has quit IRC08:19
*** Tom-Tom has quit IRC08:19
*** Tom-Tom has joined #openstack-nova08:19
*** huanxie has joined #openstack-nova08:19
*** eric_yang has joined #openstack-nova08:20
openstackgerrit龚肖 proposed openstack/nova master: compute: Catch binding failed exception while init host  https://review.openstack.org/52924908:22
*** salv-orlando has quit IRC08:22
*** alexchadin has joined #openstack-nova08:26
*** ralonsoh has joined #openstack-nova08:27
*** sapd has quit IRC08:33
*** hoonetorg has joined #openstack-nova08:33
*** yamamoto has joined #openstack-nova08:34
*** sapd has joined #openstack-nova08:35
*** yamamoto has quit IRC08:39
*** kmalloc has quit IRC08:41
*** damien_r has joined #openstack-nova08:43
*** damien_r has quit IRC08:43
*** damien_r has joined #openstack-nova08:43
*** jpena|off is now known as jpena08:44
*** pprokop has joined #openstack-nova08:49
*** claudiub has joined #openstack-nova08:49
*** yamamoto has joined #openstack-nova08:50
*** mdnadeem has joined #openstack-nova08:51
*** huanxie has quit IRC08:52
*** claudiub|2 has quit IRC08:52
*** kumarmn has joined #openstack-nova08:52
*** yamamoto has quit IRC08:54
*** ragiman has joined #openstack-nova08:56
*** ameeda has joined #openstack-nova08:56
*** yamamoto has joined #openstack-nova08:56
*** yamamoto has quit IRC08:56
*** huanxie has joined #openstack-nova08:56
ameedacan you please review my code here ? https://review.openstack.org/#/c/528069/ also here https://review.openstack.org/#/c/528385/08:57
*** kumarmn has quit IRC08:57
*** salv-orlando has joined #openstack-nova08:57
*** claudiub|2 has joined #openstack-nova08:58
*** claudiub has quit IRC09:01
*** sbezverk has quit IRC09:02
*** alexchadin has quit IRC09:04
*** alexchadin has joined #openstack-nova09:04
*** yamamoto has joined #openstack-nova09:05
*** vivsoni has joined #openstack-nova09:06
*** sahid_ has joined #openstack-nova09:09
*** hshiina has quit IRC09:11
*** sahid has quit IRC09:11
*** tetsuro_ has quit IRC09:15
*** owalsh_ is now known as owalsh09:17
*** s1061123 has quit IRC09:19
*** ralonsoh has quit IRC09:19
*** s1061123 has joined #openstack-nova09:21
*** s1061123 has quit IRC09:22
*** s1061123 has joined #openstack-nova09:23
*** sahid_ has quit IRC09:23
*** damien_r has quit IRC09:25
*** huanxie has quit IRC09:26
*** huanxie has joined #openstack-nova09:30
*** fragatina has joined #openstack-nova09:30
*** lpetrut has joined #openstack-nova09:30
*** fragatina has quit IRC09:31
*** fragatina has joined #openstack-nova09:31
*** lucas-afk is now known as lucasagomes09:34
openstackgerritLee Yarwood proposed openstack/nova master: libvirt: Refactor encryptor attach and detach calls  https://review.openstack.org/46024309:36
openstackgerritLee Yarwood proposed openstack/nova master: libvirt: Introduce disk encryption config classes  https://review.openstack.org/46400809:36
openstackgerritLee Yarwood proposed openstack/nova master: WIP libvirt: QEMU native LUKS decryption for volumes  https://review.openstack.org/52395809:36
*** sshwarts has joined #openstack-nova09:36
lyarwoodmdbooth: ^ updated the config class change, also if you have time reviews of the WIP change would be great, some of the code in there is horrid but required to keep prior behaviour09:37
mdboothDid gerrit just die?09:38
mdboothWas working a second ago09:38
lyarwoodyeah I think so09:38
lyarwoodDidn't think my change was _that_ bad09:38
mdboothHehe09:39
mdboothIt's really not happy about something, though09:39
openstackgerritChen Hanxiao proposed openstack/nova master: libvirt: implement NotImplementedError for _set_quiesced  https://review.openstack.org/52927809:41
*** bhagyashri_s is now known as bhagyashris09:43
*** bhagyashris is now known as bhagyashri_s09:43
*** bhagyashri_s is now known as bhagyashris09:43
*** derekh has joined #openstack-nova09:44
*** ralonsoh has joined #openstack-nova09:45
*** hui_ has joined #openstack-nova09:51
*** claudiub has joined #openstack-nova09:54
*** pprokop has quit IRC09:54
*** hui has quit IRC09:54
danpawlikHi, I have small question: I try to run unit tests on newton, and it raises me an error described here: https://bugs.launchpad.net/nova/+bug/1630420 . My question is: should I cherry-pick patch: https://review.openstack.org/#/c/383524/ to newton or add genisoimage to bindeps?09:55
openstackLaunchpad bug 1630420 in OpenStack Compute (nova) "config_drive unit tests (libvirt driver) aren't mocking genisoimage" [Low,Fix released] - Assigned to Diana Clarke (diana-clarke)09:55
*** claudiub|2 has quit IRC09:56
openstackgerritDaniel Pawlik proposed openstack/nova stable/newton: Patch mkisofs calls  https://review.openstack.org/52928409:58
*** huanxie has quit IRC10:00
*** psachin has quit IRC10:01
ebbexmdbooth: I've created an instance with swap, where both root and swap are on rbd, yet there's a big swap file under nova/instances/_base on the compute-node, and according to the nova-compute logs it get's touched about once every minute (which would prevent _remove_old_enough_file from acting upon it). Is any of this intended behaviour?10:01
mdboothIt's intended behaviour that it exists, although it could be done much better.10:02
mdboothWe initialise a swap device on the compute host, then copy it to rbd iirc10:03
mdboothIt's in _base because that's the cache10:03
mdboothCaching swap and ephemeral disks is a bug imho10:03
mdboothNot sure why it's being touched every minute, though10:04
mdboothAny idea what's touching it?10:04
ebbex2017-12-20T10:06:22.143079+00:00 oscompute01 sudo:     nova : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/opt/openstack/nova/venv/bin/nova-rootwrap /opt/openstack/nova/etc/nova/rootwrap.conf touch -c /opt/openstack/nova/instances/_base/swap_1638410:07
*** huanxie has joined #openstack-nova10:08
*** sahid has joined #openstack-nova10:08
*** sahid_ has joined #openstack-nova10:09
*** sahid_ has quit IRC10:09
mdboothebbex: Ah... IIRC there's a periodic task which touches cache files of active instances to prevent them from being deleted.10:09
mdboothBut of course that's irrelevant for rbd.10:09
mdboothAnother reason that rbd should have its own cache...10:09
mdboothAlso LVM.10:10
mdboothAnd flat10:10
mdboothEverything except qcow2, in fact10:10
*** psachin has joined #openstack-nova10:10
ebbexSuper, cause the compute-node has about 120gb storage, while ceph has a couple TBs. And I can see this clog up the disk on compute-node after 5-6 created vms.10:12
ebbexAny idea for a quick fix? Disable the periodic touching perhaps?10:13
mdboothebbex: If you found the relevant periodic task you could disable it if images_type != qcow210:14
mdboothAs long as you accompanied it with a sufficiently explanatory comment10:14
*** jeblair has quit IRC10:15
*** sahid has quit IRC10:15
*** sahid has joined #openstack-nova10:15
* mdbooth hates all this scattered cruft10:15
mdboothWe should have refactored imagebackend first time we implemented a backend other than qcow210:15
*** jeblair has joined #openstack-nova10:16
mdboothUnfortunately getting sufficient review attention for large refactors is hard, which discourages doing them.10:19
*** psachin has quit IRC10:20
ebbexYeah, I have yet to understand how everything hangs together, so can't really contribute much there yet.10:24
*** Tom-Tom has quit IRC10:24
*** sambetts|afk is now known as sambetts10:27
*** sahid has quit IRC10:29
*** aarefiev has joined #openstack-nova10:30
*** sahid has joined #openstack-nova10:31
*** damien_r has joined #openstack-nova10:31
openstackgerritAmeed Ashour proposed openstack/nova master: change instance_system_metadata column type  https://review.openstack.org/52690010:32
*** jaianshu has joined #openstack-nova10:37
*** huanxie has quit IRC10:38
*** alexchadin has quit IRC10:41
*** alexchadin has joined #openstack-nova10:42
*** gongysh has quit IRC10:42
*** huanxie has joined #openstack-nova10:43
*** sahid has quit IRC10:44
*** sahid has joined #openstack-nova10:45
*** sahid_ has joined #openstack-nova10:52
*** annp has quit IRC10:53
openstackgerritAmeed Ashour proposed openstack/nova master: change instance_system_metadata column type  https://review.openstack.org/52690010:53
*** krtaylor has quit IRC10:53
*** sahid has quit IRC10:54
*** kumarmn has joined #openstack-nova10:54
*** edmondsw has joined #openstack-nova10:57
*** kumarmn has quit IRC10:59
openstackgerritTetsuro Nakamura proposed openstack/nova master: doc: update supported drivers for cpu topology  https://review.openstack.org/52929411:00
*** sahid_ has quit IRC11:00
*** edmondsw has quit IRC11:01
*** dtantsur|afk is now known as dtantsur11:02
lyarwoodmdbooth: FYI I'm dropping the code to handle rbd volumes from the native LUKS change11:06
*** krtaylor has joined #openstack-nova11:06
lyarwoodmdbooth: turns out that c-vol will always attempt to attach the os-brick encryptors and thus fail for rbd when creating a volume from an image.11:07
*** yamamoto_ has joined #openstack-nova11:08
*** AlexeyAbashkin has quit IRC11:08
*** yamamoto has quit IRC11:11
openstackgerritTetsuro Nakamura proposed openstack/nova master: doc: update supported drivers for cpu topology  https://review.openstack.org/52929411:11
*** gcb has quit IRC11:12
*** tuanla____ has quit IRC11:14
*** jichen has quit IRC11:14
*** huanxie has quit IRC11:14
*** huanxie has joined #openstack-nova11:16
*** abhishekk has quit IRC11:21
*** moshele has quit IRC11:22
*** priteau has joined #openstack-nova11:24
*** gszasz has joined #openstack-nova11:25
*** andreas__ has joined #openstack-nova11:30
*** vivsoni has quit IRC11:31
*** andreas__ has quit IRC11:31
*** andreas_s has quit IRC11:33
*** alexchadin has quit IRC11:33
*** szaher has quit IRC11:36
*** alexchadin has joined #openstack-nova11:39
*** psachin has joined #openstack-nova11:40
*** nore_rabel has joined #openstack-nova11:46
*** huanxie has quit IRC11:46
*** alexchadin has quit IRC11:49
*** sahid has joined #openstack-nova11:51
*** AlexeyAbashkin has joined #openstack-nova11:52
*** kumarmn has joined #openstack-nova11:55
*** huanxie has joined #openstack-nova11:56
*** phuongnh has quit IRC11:56
*** cdent has joined #openstack-nova11:57
*** mingyu has joined #openstack-nova11:58
*** eric_yang has quit IRC11:58
*** slunkad has quit IRC11:59
*** salv-orl_ has joined #openstack-nova11:59
*** kumarmn has quit IRC12:00
*** smatzek has joined #openstack-nova12:01
*** slunkad has joined #openstack-nova12:02
*** kumarmn has joined #openstack-nova12:02
*** priteau has quit IRC12:03
*** salv-orlando has quit IRC12:03
*** priteau has joined #openstack-nova12:03
*** claudiub has quit IRC12:03
*** andreas_s has joined #openstack-nova12:06
*** kumarmn has quit IRC12:07
*** priteau has quit IRC12:08
*** andreas_s has quit IRC12:11
*** andreas_s has joined #openstack-nova12:11
*** dave-mccowan has joined #openstack-nova12:13
*** alexchadin has joined #openstack-nova12:15
jianghuaw_bauzas, jaypipes: Hi you may be interested on the new *test-vgpu* CI job added in "Citrix XenServer CI": https://review.openstack.org/#/c/516899/12:15
jianghuaw_basically it's monitoring changes on some files in openstack/nova and openstack/os-xenapi and run vGPU test in devstack env.12:16
jianghuaw_bauzas, do you have time to review the above patch sometime today? Once it's merged, we can make the above test-vgpu CI job to be a formal test for XenAPI.12:18
openstackgerritLee Yarwood proposed openstack/nova master: libvirt: Refactor encryptor attach and detach calls  https://review.openstack.org/46024312:22
openstackgerritLee Yarwood proposed openstack/nova master: libvirt: Introduce disk encryption config classes  https://review.openstack.org/46400812:22
openstackgerritLee Yarwood proposed openstack/nova master: WIP libvirt: QEMU native LUKS decryption for volumes  https://review.openstack.org/52395812:22
*** moshele has joined #openstack-nova12:23
*** huanxie has quit IRC12:26
*** lucasagomes is now known as lucas-hungry12:26
*** huanxie has joined #openstack-nova12:28
*** aarefiev has quit IRC12:33
*** crushil has joined #openstack-nova12:35
*** gcb has joined #openstack-nova12:39
jaypipesjianghuaw_: excellent. :)12:39
*** crushil has quit IRC12:42
cdentjaypipes: can you confirm that gerrit is being a big sow in the wallow down back the holler?12:43
*** liuyulong has joined #openstack-nova12:43
*** edmondsw has joined #openstack-nova12:45
*** felipemonteiro has joined #openstack-nova12:46
*** gcb has quit IRC12:47
jaypipescdent: confirmed.12:47
jaypipescdent: it doesn't just hate you.12:47
cdentthanks12:48
*** edmondsw has quit IRC12:49
*** felipemonteiro has quit IRC12:50
*** jpena is now known as jpena|lunch12:58
*** kumarmn has joined #openstack-nova13:03
*** kumarmn has quit IRC13:08
*** yangyapeng has quit IRC13:08
*** yangyapeng has joined #openstack-nova13:09
mnaserand i think someone just emailed the ml about gerrit issues ^13:09
*** yangyapeng has quit IRC13:13
*** openstackgerrit has quit IRC13:13
-openstackstatus- NOTICE: gerrit is being restarted due to extreme slowness13:14
jaypipesgibi: https://review.openstack.org/#/c/528591/ is ready to go, IMHO.13:20
jaypipesjianghuaw_: I'm not seeing in the test-vgpu logs where a flavor is being modified to include a request for resources:VGPU=1?13:23
jaypipesjianghuaw_: erp, never mind. found it :)13:24
jaypipes| flavor:extra_specs                   | {"resources:VGPU": "1"}13:24
jianghuaw_jaypipes, yeah. it's set at here  "+ ./test_vgpu.sh:main:175                  :   nova flavor-key 1 set resources:VGPU=1"13:25
*** vladikr has quit IRC13:26
jaypipesjianghuaw_: yep, found it eventually :)13:26
jianghuaw_:-)13:26
*** vladikr has joined #openstack-nova13:26
jaypipesjianghuaw_: I'm wondering... is there any way to functionally test that the VM (once started) has the vGPU resources properly allocated from the hypervisor?13:27
*** alexchadin has quit IRC13:27
jianghuaw_the test script will query xapi to verify if the VGPU is created and attached to the VM.13:28
*** lucas-hungry is now known as lucasagomes13:28
*** huanxie has quit IRC13:29
jianghuaw_jaypipes, + ./test_vgpu.sh:main:214                  :   result='other-config (MRW): nova-instance-uuid: 64d20778-055a-4b58-a615-87a467caf7a2'13:30
jaypipesjianghuaw_: excellent!13:30
jaypipesjianghuaw_: nice work on this. :)13:30
jianghuaw_jaypipes, :-) thanks.13:31
*** BryanS68 has joined #openstack-nova13:32
jianghuaw_jaypipes, what we need is to get another core review on the patch. Hope bauzas will have time to review it. I really don't want to leave it to the new year:-(13:33
jianghuaw_I mean this patch: https://review.openstack.org/#/c/516899/13:34
*** jaianshu has quit IRC13:34
jaypipesgibi: ^^13:34
*** yamamoto_ has quit IRC13:34
jianghuaw_thanks.13:35
gibijaypipes: looking...13:35
gibijaypipes: I was about to +2 https://review.openstack.org/#/c/528591/ when gerrit disappeared13:36
*** openstackgerrit has joined #openstack-nova13:37
openstackgerritJay Pipes proposed openstack/nova master: Remove server group sched filter support caching  https://review.openstack.org/52920013:37
openstackgerritJay Pipes proposed openstack/nova master: WIP Support aggregate affinity filters  https://review.openstack.org/52920113:37
maciejjozefczykGuys, maybe you know if there is similiar thing implemented like https://blueprints.launchpad.net/nova/+spec/boot-order-for-instance13:37
maciejjozefczykBoot order for instance13:38
maciejjozefczykOr this idea died in Kilo?13:38
jianghuaw_gibi, Thanks. Gerrit service was restarted to resolve the slowness issue. it's recovered now.13:38
*** pchavva has joined #openstack-nova13:39
gibibauzas: is there a chance that you can check https://review.openstack.org/#/c/516899/ today as you already familiar with that patch? If not then I can dig13:43
*** rmart04 has joined #openstack-nova13:43
*** edleafe- is now known as edleafe13:45
*** gongysh has joined #openstack-nova13:45
*** yangyapeng has joined #openstack-nova13:45
*** cdent has quit IRC13:47
*** gongysh has quit IRC13:49
*** kumarmn has joined #openstack-nova13:49
*** psachin has quit IRC13:49
*** eharney has joined #openstack-nova13:49
*** mriedem1 has joined #openstack-nova13:52
*** catintheroof has joined #openstack-nova13:52
mriedem1bauzas: can you take a look at https://bugs.launchpad.net/nova/+bug/1739323 ?13:53
openstackLaunchpad bug 1739323 in OpenStack Compute (nova) pike "KeyError in host_manager for _get_host_states" [High,Confirmed]13:53
*** cdent has joined #openstack-nova13:53
mriedem1i can't remember why we changed from an iterator there in ocata, but you must have had a reason13:53
*** kumarmn has quit IRC13:54
*** jpena|lunch is now known as jpena13:54
*** mriedem has quit IRC13:55
*** claudiub has joined #openstack-nova13:55
*** mriedem1 is now known as mriedem13:56
jaypipesbauzas, kashyap, mriedem: regarding https://review.openstack.org/#/c/529294/ ... do I remember some patch recently that disabled either CPU pinning or NUMA topology (or both?) for any hypervisor other than KVM? I have this strange feeling that we recently restricted NUMA/CPU pinning to just KVM...13:58
gibimriedem: I left some suggestion in https://review.openstack.org/#/c/529194/13:59
gibimriedem: if you want to discuss then i'm still here for couple of hours today13:59
kashyapjaypipes: Hey, just going to get a piece of bread for lunch13:59
mriedemjaypipes: yes i can dig up the link13:59
jaypipeskashyap: I think you can probably afford more than just a piece of bread for lunch.14:00
kashyapShould be back soon14:00
mriedemjaypipes: https://review.openstack.org/#/c/465160/14:00
jaypipeskashyap: clearly, Holland has become too expensive.14:00
kashyapjaypipes: Haha, I have the spreads at home; it's the Italian Ciabatta bread :P14:00
jaypipes:)14:00
mriedem"the spreads"14:00
mriedemsounds like "the runs"14:00
jaypipesah, mriedem that's the ticket. thanks!14:00
kashyapjaypipes: Gentleman, it's called Gent -- http://wikitravel.org/en/Gent14:00
kashyaps/men/man/14:00
jaypipesheh14:00
kashyap(It's in Flanders, Belgium :P)14:00
kashyapIt's late lunch; was debugging the Gate migration bug from hell14:01
kashyapWhile I'm here; I'll update lyarwood too14:02
kashyaplyarwood: On that migration bug we were talking about14:02
kashyapI spent past 2 hours creating a reproducer --14:02
kashyapMigrate a guest with a `dd if=/dev/zero bs=1M | md5sum` workload in it, AND throttle the bandwitdh to 1MiB/s14:02
stephenfinjaypipes: Why do you ask? I was waiting on sean-k-mooney to wade in on that again before doing anything, personally14:02
kashyapAnd also set the clock back 20 minutes on the source14:02
*** catintheroof has quit IRC14:02
kashyapTo see if those keepalives will kick in14:03
kashyaps/keepalives/keep-alive timeout/14:03
jaypipesstephenfin: mostly I was just looking for a link to that other patch :) I couldn't remember what the commit summary was and couldn't find it on gerrit.14:03
kashyapI couldn't reproduce it so far; the guest migrated slowly after a long while.  So, the investigation to be conitnued (assuming it's still a problem for the stable gate)14:03
* kashyap now really bbiab14:04
*** catintheroof has joined #openstack-nova14:04
*** liverpooler has joined #openstack-nova14:07
*** logan- has quit IRC14:08
*** yangyapeng has quit IRC14:09
*** yangyapeng has joined #openstack-nova14:09
*** cleong has joined #openstack-nova14:10
*** logan- has joined #openstack-nova14:10
*** yamamoto has joined #openstack-nova14:10
danpawlikmriedem: thanks for review the patch for mkisofs calls14:11
mdboothIncoming14:11
openstackgerritMatthew Booth proposed openstack/nova master: Rename block_device_info_get_root  https://review.openstack.org/52902814:12
openstackgerritMatthew Booth proposed openstack/nova master: Add local_root to block_device_info  https://review.openstack.org/52902914:12
openstackgerritMatthew Booth proposed openstack/nova master: Expose driver_block_device fields as attributes  https://review.openstack.org/52836214:12
openstackgerritMatthew Booth proposed openstack/nova master: Pass DriverBlockDevice to driver.attach_volume  https://review.openstack.org/52836314:12
openstackgerritMatthew Booth proposed openstack/nova master: Use real block_device_info data in libvirt tests  https://review.openstack.org/52791614:12
openstackgerritMatthew Booth proposed openstack/nova master: Fix libvirt volume tests passing invalid disk_info  https://review.openstack.org/52932814:12
openstackgerritMatthew Booth proposed openstack/nova master: Pass disk_info dict to libvirt_info  https://review.openstack.org/52932914:12
*** andreas_s has quit IRC14:12
openstackgerritStephen Finucane proposed openstack/nova master: console: Provide an RFB security proxy implementation  https://review.openstack.org/34539914:13
openstackgerritStephen Finucane proposed openstack/nova master: doc: Document TLS security setup for noVNC proxy  https://review.openstack.org/50054414:13
openstackgerritMatt Riedemann proposed openstack/nova master: Use instance.project_id when creating request specs for old instances  https://review.openstack.org/52918414:16
openstackgerritMatt Riedemann proposed openstack/nova master: Workaround missing RequestSpec.project_id when moving an instance  https://review.openstack.org/52918514:16
mriedemjaypipes: i had to fix the test for py35 ^ otherwise unchanged14:16
*** andreas_s has joined #openstack-nova14:17
mriedemstephenfin: gibi: ^ contains a fix for a regression introduced in newton which breaks us later in pike,14:17
mriedemso i'm hoping to get that backported14:17
mriedembefore we eol newton14:17
stephenfinLooking14:17
mriedemthe workaround patch will go back to pike,14:18
mriedemthe other one can go to newton14:18
ameedaHello, Can you please review my code here ? https://review.openstack.org/#/c/528069/14:20
*** catinthe_ has joined #openstack-nova14:22
*** yamamoto has quit IRC14:23
stephenfinameeda: If you could add a little more context to that, it would make it much easier to review :)14:23
*** catintheroof has quit IRC14:26
*** andreas_s has quit IRC14:26
*** jmlowe has quit IRC14:28
*** smatzek has quit IRC14:28
stephenfinmriedem: Two questions left on https://review.openstack.org/#/c/529185/. I can ignore them if you really want to get it in now (or I've misunderstood something)14:29
stephenfinThe first one is a-ok14:29
*** smatzek has joined #openstack-nova14:29
*** smatzek has quit IRC14:29
ameedastephenfin: thanks for comment, I change the commit and I will submit it now14:31
*** andreas_s has joined #openstack-nova14:31
mriedemstephenfin: replied14:32
*** openstackgerrit has quit IRC14:33
stephenfinCool. +2 to that too, in that case14:34
mriedemstephenfin: thanks14:39
mriedemmnaser: i'm at a loss for how you're hittin this https://bugs.launchpad.net/nova/+bug/173932314:39
openstackLaunchpad bug 1739323 in OpenStack Compute (nova) pike "KeyError in host_manager for _get_host_states" [High,Confirmed]14:39
mriedemmnaser: dug through it again and the entries in seen_nodes should all also be in host_state_map because of https://github.com/openstack/nova/blob/3ebc358002d3f62a9ff0a3b0f50fea4f2a5c2c91/nova/scheduler/host_manager.py#L69814:40
mriedemand i don't see anything else in the HostStateManager that modifies that dict, so no locking issues that i can see, unless you have a multiple workers patch or something14:40
mriedemmdbooth: maybe your keen eye can spot an obvious issue in here ^14:41
*** andreas_s has quit IRC14:41
* mdbooth looks14:42
*** kumarmn has joined #openstack-nova14:44
*** andreas_s has joined #openstack-nova14:45
*** openstackgerrit has joined #openstack-nova14:50
openstackgerritAmeed Ashour proposed openstack/nova master: detaching volumes when deleted VM is in error state  https://review.openstack.org/52806914:50
openstackgerritAmeed Ashour proposed openstack/nova master: detach instance volumes when VM creation fails  https://review.openstack.org/52838514:50
*** gouthamr has joined #openstack-nova14:51
*** burt has joined #openstack-nova14:53
ameedastephenfin: please check the comment and let me know, Thanks14:55
openstackgerritMatt Riedemann proposed openstack/nova master: Cleanups for the scheduler code  https://review.openstack.org/52934314:57
*** mriedem is now known as mriedem_away14:57
*** Tom-Tom has joined #openstack-nova14:59
mdboothmriedem_away: I'm a little lacking in scheduler context. It seems to me that we would hit this if the scheduler was capable of evaluating filters 'concurrently'.15:00
mdboothFor some pythonic/eventlet definition of concurrently, obviously.15:01
stephenfinlyarwood, mdbooth: Think you could take a look at this at some point? BDM'y things https://review.openstack.org/#/c/52806915:01
mdboothDoes the scheduler serialize all scheduling requests?15:01
*** catinthe_ has quit IRC15:02
*** catintheroof has joined #openstack-nova15:03
jaypipesmdbooth: no15:04
*** awaugama has joined #openstack-nova15:05
mdboothjaypipes: Thanks. That looks like a bug, then.15:05
jaypipesmdbooth: what's that?15:05
mdboothhttps://bugs.launchpad.net/nova/+bug/1739323/15:06
openstackLaunchpad bug 1739323 in OpenStack Compute (nova) "KeyError in host_manager for _get_host_states" [High,Incomplete]15:06
jaypipesah15:06
jaypipeslemme looksie15:06
mdbooth_get_host_states is returning an iterator over global state15:06
*** marst has joined #openstack-nova15:06
mdboothSo if any 2 'threads' can be calling it simultaneously, it's potentially corrupt15:06
openstackgerritwes hayutin proposed openstack/nova master: DNM, testing only  https://review.openstack.org/52934915:07
mdboothEspecially as it's returning an iterator, so the evaluation period is extended15:07
*** catintheroof has quit IRC15:08
mdboothI guess you'd expect to see this if you delete a compute node on a busy system?15:08
mdboothmnaser: ^^^ ?15:08
jaypipesmdbooth: _get_host_states is returning a tuple, not an iterator.15:09
mdboothjaypipes: This line:15:09
mdboothreturn (self.host_state_map[host] for host in seen_nodes)15:09
jaypipesis a tuple.15:09
mdboothThat's a generator expression, no?15:09
jaypipesI don't believe so...15:09
edleafejaypipes: it's a generator expression15:10
jaypipesa generator would yield or return a function that yield'd, no?15:10
*** Tom-Tom has quit IRC15:10
*** Tom-Tom has joined #openstack-nova15:10
mdboothThe expression itself is a generator15:10
openstackgerritStephen Finucane proposed openstack/nova master: objects: Add PCI NUMA policy fields  https://review.openstack.org/52747015:11
openstackgerritStephen Finucane proposed openstack/nova master: Add PCI NUMA policies  https://review.openstack.org/52747215:11
openstackgerritStephen Finucane proposed openstack/nova master: trivial: Modify signature of _filter_non_requested_pfs  https://review.openstack.org/52747315:11
edleafejaypipes: https://github.com/openstack/nova/blob/master/nova/scheduler/filter_scheduler.py#L139-L14315:11
edleafeit calls it an iterator, which is technically correct, but it's a generator15:11
mdboothjaypipes: So [foo for foo in foos] is a list comprehension15:11
stephenfincfriesen, bauzas: Fancy taking a look at ^^^ again? Has been changed quite a lot (hopefully for the better)15:11
mdboothAnd (foo for foo in foos) is a generator expression which iterates over the same thing15:12
*** mlavalle has joined #openstack-nova15:12
jaypipeshmm, interesting.15:13
mdboothSo if that last line is returning a generator, it's essentially a closure over seen_nodes, which is local, and self.host_state_map, which is global.15:14
*** liuyulong has quit IRC15:14
jaypipesyeah, I understand that now. Why don't we just list() that instead of returning a generator?15:15
mdboothWell that would still be a race, just a shorter one15:15
* mdbooth has a patch15:15
dtantsurhey folks! I've filed https://bugs.launchpad.net/nova/+bug/1739440 to track ironic API version negotiation in the virt driver.15:15
openstackLaunchpad bug 1739440 in OpenStack Compute (nova) "Ironic virt driver is hardcoding Ironic API microversion" [Undecided,New]15:15
dtantsurdo you think it makes sense as a bug or a blueprint or a spec or ...?15:16
jaypipescool, thanks dtantsur15:16
edleafejaypipes: in a large deployment, it was feared that the number of hosts returned would be huge15:16
jaypipesdtantsur: up to mriedem_away15:16
jaypipesedleafe: so premature optimization, then. just like 90% of the code in the scheduler.'15:16
edleafeyeah, pretty much15:16
dtantsurjaypipes: how away is mriedem_away? :)15:16
jaypipesdtantsur: no idea :)15:16
mdboothdtantsur: He wasn't away within the last 30 minutes.15:17
edleafeI don't know if that was a result of real-world problems, or just premature, TBH15:17
dtantsurokay, so not like away-for-the-reminder-of-the-year state of being away :)15:17
mdboothdtantsur: mriedem_away isn't allowed PTO15:17
dtantsurI see, makes sense :D15:18
*** esberglu has joined #openstack-nova15:20
jaypipesmdbooth: bauzas changed the return of _get_host_states() from an iterator over host_state_map's values to the generator expression that included the local seen_nodes variable here: https://github.com/openstack/nova/commit/4660333d0d97d8e00cf290ea1d4ed932f5edc1dc#diff-978b9f8734365934eaf8fbb01f11a7d7L62415:22
*** jaypipes has left #openstack-nova15:23
*** jaypipes has joined #openstack-nova15:23
*** yamamoto has joined #openstack-nova15:23
jaypipesmdbooth: might be worth trying to reproduce this race before and after that patch to see if it makes a diff15:23
openstackgerritMatthew Booth proposed openstack/nova master: Fix an error in _get_host_states when deleting a compute node  https://review.openstack.org/52935215:24
jaypipesnote that I'm not saying anything bad about bauzas' patch! :) I'm just pointing out that's the patch that changed from returning an iterator over the global state to a generator expression over local state15:24
mdboothjaypipes: Looking15:25
openstackgerritChris Dent proposed openstack/nova master: Provide example for placement last-modified header of now  https://review.openstack.org/52935415:25
jaypipesmdbooth: of course, trying to reproduce this reliably is virtually impossible...15:25
mdboothjaypipes: I've written a couple of unit tests now which play with execution order15:25
mdboothThey're always really hard to read, though15:26
jaypipesyta15:26
jaypipesya15:27
mdboothAlthough as this is a generator it might be pretty easy15:28
* mdbooth knocks one up15:28
*** Apoorva has joined #openstack-nova15:29
*** karthiks has quit IRC15:32
*** yamamoto has quit IRC15:35
*** fragatina has quit IRC15:37
mdboothjaypipes: mriedem_away Reproduced it15:37
*** fragatina has joined #openstack-nova15:37
mdboothNot sure if the unit test is worth anything, though, as it's irrelevant with my patch in place15:37
*** moshele has quit IRC15:38
mdboothYou have to create an iterator from the returned list in order to trigger a bug evaluating the iterator, which really doesn't make sense if it doesn't return an iterator15:38
mdboothhttp://paste.openstack.org/show/629469/15:40
*** trozet has quit IRC15:40
mdbooth^^^ There's the test and its execution, anyway. But I don't think it makes sense to include it if we're not returning an iterator any more.15:41
*** trozet has joined #openstack-nova15:43
*** armax has joined #openstack-nova15:44
*** ameeda has quit IRC15:47
*** lyan has joined #openstack-nova15:47
*** eharney has quit IRC15:49
*** pcaruana has joined #openstack-nova15:51
*** janki has quit IRC15:53
openstackgerritJay Pipes proposed openstack/nova master: Remove server group sched filter support caching  https://review.openstack.org/52920015:53
openstackgerritJay Pipes proposed openstack/nova master: WIP Support aggregate affinity filters  https://review.openstack.org/52920115:53
*** felipemonteiro has joined #openstack-nova15:54
*** smatzek has joined #openstack-nova15:55
*** moshele has joined #openstack-nova16:01
*** ameeda has joined #openstack-nova16:02
*** BryanS68 has quit IRC16:07
*** mriedem_away is now known as mriedem16:09
mriedemjust read the scrollback16:12
mriedemhttps://review.openstack.org/52934316:12
mriedemi thought it was a tuple of HostState objects too16:13
mriedembecause of the change jaypipes pointed out where we stopped using six.itervalues16:13
*** ttsiouts has quit IRC16:14
mriedemmdbooth: so with your change, we lose any yield behavior on the generator for the 10s of thousands of nodes optimization?16:14
*** andreas_s has quit IRC16:18
mnaserok reading scrollback16:19
mriedemah v16:19
mriedemhttp://intermediatepythonista.com/python-generators#generator-expressions_116:19
mriedemok i'm sorely lacking in this area then16:19
*** ragiman has quit IRC16:20
mnaserok but forgive me if i'm being unclear but i think the problem is a lot simpler than that16:20
mnaserseen_nodes contains a tuple list of (host, node) of all hosts in the system16:20
mnaserdead_notes contains a tuple list of (host, node) of all dead hosts in the system16:20
*** edmondsw has joined #openstack-nova16:21
mnaseras part of the for loop right before the generator, all dead_nodes are removed from self.host_state_map16:21
mnaserwhich leaves self.host_state_map with keys of the alive hosts *only*16:21
mnaserthe generator loops over all of self.host_state_map but uses seen_nodes as the key (which is all hosts)16:21
mnaserwhich includes dead nodes, that were removed, in the loop just prior16:22
mriedemmnaser: dead_nodes is the set of entries in host_state_map that aren't also in seen_nodes16:22
mriedemso it's removing existing dead entries from host_state_map16:22
mriedemthat's what the set is for16:22
*** kumarmn has quit IRC16:22
mnaserOH16:22
mnaseri see what you mean16:22
*** felipemonteiro_ has joined #openstack-nova16:22
*** andreas_s has joined #openstack-nova16:22
mriedemso i think mdbooth's analysis in the commit message here is correct https://review.openstack.org/#/c/529352/16:22
mriedembecause since we're using a generator (which i didn't realize),16:23
mriedemthe host_state_map results could change while processing a request,16:23
mriedemif a compute node is deleted in between, in a busy cloud, such as someone's public cloud16:23
*** rmart04 has quit IRC16:24
mnaserok but im pretty sure this compute node wasnt deleted, it still exists but it is dead16:24
mnaserlet me please double check16:24
mriedemmdbooth: rathre than change it from returning a generator to a list, why not just check if the key is still in the host_state_map before returning the next item?16:24
*** felipemonteiro_ has quit IRC16:24
*** rmart04 has joined #openstack-nova16:24
*** felipemonteiro_ has joined #openstack-nova16:24
mriedemmnaser: maybe the service was deleted?16:25
mriedemyou can't delete a compute node through the REST API, but you can delete a service16:25
mriedemhttps://review.openstack.org/#/c/529352/1/nova/scheduler/host_manager.py@68616:25
*** edmondsw has quit IRC16:26
mnaseron one conductor i see 40 instances of this with the most recent happening on the 20th16:26
*** felipemonteiro has quit IRC16:26
mriedemso i think a simple test could be you run _get_host_states once with 2 computes and 2 services, then delete one of the services and run _get_host_states again, and iterate the results and it should blow up16:26
mnaser# grep KeyError /var/log/nova/nova-scheduler.log | grep req | wc -l => 2016:27
mnaserone one of the schedulers16:27
mnaserhappened with 9 different compute nodes in the KeyError16:29
*** mingyu has quit IRC16:29
mnaserand i know for a fact some of thoser havent been deleted, especially those a few days ago too16:29
mriedemdo those computes have corresponding services table entries?16:29
*** moshele has quit IRC16:29
mnasermriedem: i mean i see them in 'nova service-list'16:29
mnaserand their updated_at is recent so they're reporting in16:29
mnaserafaik the only way for that service record to go away is... if someone deleted it?16:30
mriedemcorrect16:30
mriedemwe do start auto-disabling computes that fail to build 10 times in a row16:31
mriedembut in the scheduler code here, we include disabled services16:31
mnasermriedem: i think we disabled that because scheduling bugs would shut down our entire cloud lol16:31
mnaserex: failing to place numa on server will result in a build fail count being increased16:32
*** andreas_s has quit IRC16:32
*** lyan has quit IRC16:32
*** sridharg has quit IRC16:37
*** mingyu has joined #openstack-nova16:37
*** AlexeyAbashkin has quit IRC16:37
mriedemmdbooth: ok i think we can still use part of your test and maintain the generator16:38
mriedemi'm going to update your patch quick16:39
mdboothmriedem: on a call, but that's cool16:39
*** kumarmn has joined #openstack-nova16:39
*** mingyu has quit IRC16:41
cdentjaypipes, mriedem: if you're both still around, this is a good and relatively straightforward win for placement behaving in a version discovery world: https://review.openstack.org/#/c/522002/16:42
mdboothmriedem: Did you see my unit test, btw?16:43
mnasermriedem: im not sure if this is relevant or not but do you think the fact we run 3x nova-schedulers could play a role in this .. somehow16:43
mriedemmdbooth: yes i pulled part of the test and applied it to an existing test to recreate the bug16:44
mriedemmnaser: separate processes?16:44
mnaseryes, on seperate machines too16:44
mriedemmnaser: should be ok if it's separate processes because the host_state_map is global to the single process16:44
mnaser(i dont think it would but i figure i would mention it016:44
*** links has quit IRC16:44
mnaseroh you know what16:44
mnaserlet me see if i can grep the logs for "Removing dead compute node"16:44
mnaserif that helps at all..16:45
openstackgerritMatt Riedemann proposed openstack/nova master: Fix an error in _get_host_states when deleting a compute node  https://review.openstack.org/52935216:46
mriedemmnaser: btw with placement making claims via the filter scheduler in pike, we actually expect you to be able to run multile scheduler processes safely16:46
mriedemi have a todo to update one of our CI jobs to do that (run with 2 schedulers)16:46
mriedemmdbooth: jaypipes: ^ updated16:47
mnasermriedem: yeah before we have a little hacky trick of letting things reschedule more often16:47
mnaserbecause in large volume schedulers all take the same decisions (before at least)16:47
mriedemmnaser: yup, exactly why we're doing claims in the scheduler rather than rely on the compute to fail and reschedule16:47
mriedemmnaser: so in pike, you should be good to remove the core/ram/disk filters, but you'll still need to rely on numa claims in the compute16:47
*** lucasagomes is now known as lucas-afk16:48
*** moshele has joined #openstack-nova16:48
openstackgerritIlya Shakhat proposed openstack/nova master: Initialize osprofiler in uWSGI application  https://review.openstack.org/51966416:48
mnasermriedem: ok i just found a really weird amount of compute nodes being marked as dead in logs16:49
*** gibi is now known as gibi_away16:50
mnaserand i guess they're flapping for some reason and the state of self.host_state_map is always changing with the generator16:50
mriedemmnaser: my guess would be the auto-disable thing if you don't have that disabled globally?16:50
mriedemit's a per-compute config16:50
mnaseror ntp16:50
*** andreas_s has joined #openstack-nova16:50
gibi_awayI'm starting my vacation now. I will be back officially on 8th of Jan16:50
*** chyka has joined #openstack-nova16:50
mriedemyeah i guess service timeouts16:50
mriedemgibi_away: NOOOO16:50
mnasergibi_away: have fun :-)16:51
mriedemgibi_away: enjoy, see you in a few weeks16:51
gibi_awaymriedem: I'm trying to look at gerrit time to time but no promises16:51
mriedemdon't16:51
mnasermriedem: so logs from august till now in scheduler ... grep 'Removing dead compute node' /var/log/nova/nova-scheduler.log | wc -l => 102490.16:51
mnaserso um16:51
gibi_awaymriedem: see you16:51
mnasersomething is wrong there, i guess with all those services going dead, it was creating the race condition16:51
mnasernow why they are dead thats an exercise for me16:51
*** moshele has quit IRC16:51
openstackgerritrahul bardia proposed openstack/python-novaclient master: nova limits ERROR (Exception): Field names must be unique  https://review.openstack.org/52792216:52
mnasersome being removed 4 minutes ago.. i think this is ntp related16:52
*** rmart04 has quit IRC16:52
mnaserthe conductor is the one that updates the service record.. or is it the compute directly?16:52
mnaser(as in, who decides what time goes in updated_at)16:53
mriedemthat's the servicegroup api i think16:54
mriedemhttps://github.com/openstack/nova/blob/3ebc358002d3f62a9ff0a3b0f50fea4f2a5c2c91/nova/servicegroup/drivers/db.py#L5616:55
*** andreas_s has quit IRC16:55
mnaserso one of the compute nodes that went down 4 minutes ago is 4 seconds ahead16:55
mriedemare you seeing any of the logging messages in here? https://github.com/openstack/nova/blob/3ebc358002d3f62a9ff0a3b0f50fea4f2a5c2c91/nova/servicegroup/drivers/db.py#L8616:55
mnasermriedem: no16:57
melwittmnaser: I agree that it sounds ntp related if you're seeing some computes ahead in time of others16:57
mnasermelwitt: this one that went 'down' was actually 4 seconds ahead though so if anything it would have updated with a time that is more ahead16:58
mriedemoopsy doodle http://logs.openstack.org/84/529184/2/check/legacy-tempest-dsvm-py35/888d647/logs/screen-n-super-cond.txt.gz#_Dec_20_15_15_20_74463616:58
mriedemcdent: ^16:58
*** stephenfin has left #openstack-nova17:00
*** stephenfin has joined #openstack-nova17:00
mriedemhttp://logs.openstack.org/84/529184/2/check/legacy-tempest-dsvm-py35/888d647/logs/screen-placement-api.txt.gz#_Dec_20_15_15_20_66633717:00
mriedemFile "/opt/stack/new/nova/nova/objects/resource_provider.py", line 2029, in _set_allocations17:01
mriedemnova.exception.ObjectActionError: Object action create failed because: already created17:01
*** gyee has joined #openstack-nova17:01
mriedemhttps://bugs.launchpad.net/nova/+bug/173945317:03
openstackLaunchpad bug 1739453 in OpenStack Compute (nova) "MigrationsAdminTest fails with NoValidHost because resource claim swap in placement fails with 500" [High,Confirmed]17:03
*** priteau has joined #openstack-nova17:04
mriedemnot sure if using POST /allocations would fix this or not17:06
melwittmnaser, mriedem: it's the Service object that joins the servicegroup, so I think updated_at has to be the time of the host the service is running on, in this case the compute host17:06
openstackgerritMerged openstack/nova master: [placement] Separate API schemas (allocation_candidate)  https://review.openstack.org/52863517:07
*** priteau has quit IRC17:08
*** Tom-Tom has quit IRC17:10
cdentmriedem: that's rather novel17:10
*** imacdonn has quit IRC17:11
*** imacdonn has joined #openstack-nova17:12
mriedemyeah 2 hits in 7 days17:14
*** awaugama has quit IRC17:15
cdentthe code is claiming that that error should only happen when the incoming allocation objects already have an 'id' field17:16
*** smatzek has quit IRC17:16
*** mdnadeem has quit IRC17:17
*** sahid has quit IRC17:18
cdentwhich will take some digging to figure out how is even possible17:18
*** udesale has quit IRC17:18
openstackgerritStephen Finucane proposed openstack/nova master: Move aggregates from report client to ProviderTree  https://review.openstack.org/52168517:19
openstackgerritStephen Finucane proposed openstack/nova master: Track provider traits in report client  https://review.openstack.org/52168617:19
openstackgerritStephen Finucane proposed openstack/nova master: Track associated sharing RPs in report client  https://review.openstack.org/52653917:19
openstackgerritStephen Finucane proposed openstack/nova master: Raise on API errors getting aggregates/traits  https://review.openstack.org/52654017:19
openstackgerritStephen Finucane proposed openstack/nova master: ProviderTree.populate_from_iterable  https://review.openstack.org/52075617:19
openstackgerritStephen Finucane proposed openstack/nova master: Track tree-associated providers in report client  https://review.openstack.org/52654117:19
openstackgerritStephen Finucane proposed openstack/nova master: WIP: Add nested resources to server moving tests  https://review.openstack.org/52772817:20
*** damien_r has quit IRC17:20
stephenfinjaypipes: Think there might be misunderstanding going on here https://review.openstack.org/#/c/527472/17:20
stephenfinNot saying I don't do overly clever things. Just that this isn't one of them ;)17:21
openstackgerritStephen Finucane proposed openstack/nova master: WIP: Scheduler[Report]Client.get_provider_tree  https://review.openstack.org/52109817:21
openstackgerritStephen Finucane proposed openstack/nova master: WIP: ComputeDriver.update_provider_tree()  https://review.openstack.org/52118717:21
openstackgerritStephen Finucane proposed openstack/nova master: WIP: Use update_provider_tree from resource tracker  https://review.openstack.org/52024617:22
*** andreas_s has joined #openstack-nova17:22
*** sbezverk has joined #openstack-nova17:25
cdentmriedem: I think I figured out what's up, I left a comment on the bug, assigned myself, and will try a fix17:26
mriedemcdent: ah yeah didn't see the retry decorator17:27
mriedemnice catch17:27
cdentI can't decide what to shake it at, my my tiny fist is shaking17:28
cdents/my my/but my/17:28
mriedemyeah not sure how to fix that17:28
mdboothSorry in advance, had a merge conflict half way up :/17:29
openstackgerritMatthew Booth proposed openstack/nova master: Add uuid column to BlockDeviceMapping  https://review.openstack.org/24260217:29
openstackgerritMatthew Booth proposed openstack/nova master: Make BlockDeviceMapping object support uuid  https://review.openstack.org/24260317:29
openstackgerritMatthew Booth proposed openstack/nova master: Add an online migration for BDM.uuid  https://review.openstack.org/52559917:29
openstackgerritMatthew Booth proposed openstack/nova master: DriverBlockDevice: make subclasses inherit _proxy_as_attr  https://review.openstack.org/52416717:29
openstackgerritMatthew Booth proposed openstack/nova master: Expose BDM uuid to drivers  https://review.openstack.org/52903717:30
openstackgerritMatthew Booth proposed openstack/nova master: Give volume DriverBlockDevice classes a common prefix  https://review.openstack.org/52634617:30
*** Apoorva has quit IRC17:30
openstackgerritMatthew Booth proposed openstack/nova master: Add DriverLocalImageBlockDevice  https://review.openstack.org/52634717:30
openstackgerritMatthew Booth proposed openstack/nova master: Rename block_device_info_get_root  https://review.openstack.org/52902817:30
openstackgerritMatthew Booth proposed openstack/nova master: Add local_root to block_device_info  https://review.openstack.org/52902917:30
openstackgerritMatthew Booth proposed openstack/nova master: Expose driver_block_device fields as attributes  https://review.openstack.org/52836217:30
openstackgerritMatthew Booth proposed openstack/nova master: Pass DriverBlockDevice to driver.attach_volume  https://review.openstack.org/52836317:30
openstackgerritMatthew Booth proposed openstack/nova master: Use real block_device_info data in libvirt tests  https://review.openstack.org/52791617:30
openstackgerritMatthew Booth proposed openstack/nova master: Fix libvirt volume tests passing invalid disk_info  https://review.openstack.org/52932817:30
openstackgerritMatthew Booth proposed openstack/nova master: Pass disk_info dict to libvirt_info  https://review.openstack.org/52932917:30
openstackgerritMatthew Booth proposed openstack/nova master: Local disk serial numbers for the libvirt driver  https://review.openstack.org/52938017:30
*** diga has joined #openstack-nova17:33
*** dtantsur is now known as dtantsur|afk17:34
cdentjaypipes: can you recall why/if it is important that AllocationList.create_all() is side effecty on the objects that it passes in? https://github.com/openstack/nova/blob/master/nova/tests/unit/objects/test_resource_provider.py#L355-L357 and https://github.com/openstack/nova/blob/609ddc2244bf9ba84d66cced52e7d4e2987ec669/nova/objects/resource_provider.py#L2061-L2086 and https://bugs.launchpad.net/nova/+bug/173945317:36
openstackLaunchpad bug 1739453 in OpenStack Compute (nova) "MigrationsAdminTest fails with NoValidHost because resource claim swap in placement fails with 500" [High,Confirmed] - Assigned to Chris Dent (cdent)17:36
*** andreas_s has quit IRC17:40
melwittmriedem: FYI the consoles series is ready to go, complete with devstack patch sandwich around it for the tempest vnc tests. stephenfin has gone through it already https://review.openstack.org/#/q/topic:bp/convert-consoles-to-objects+(status:open+OR+status:merged)17:41
mriedemdevstack sandwich worked?17:41
melwittyes. I owe you a cream soda17:42
mriedemawesome17:42
*** lpetrut has quit IRC17:43
edleafecdent: if the allocation had an id, then it already exists, no?17:43
cdentno, it's being assigned the .id, but then db deadlock happens and the transaction is reverted and started again, but the list of allocs now contains that alloc with an id17:44
mdboothartom: Do I recall you being involved in device tagging?17:44
edleafecdent: ah, so it should change the object, but it's missing the object revert?17:44
*** andreas_s has joined #openstack-nova17:45
cdentedleafe: that's one way to look at it. The other way is that we should be side effecty on on method parameters that are list or dict when we have an option to re-enter. So I'm trying to figure out how to change that in the best way17:46
cdentdammit, should _not_ be side effecty17:46
mriedemcdent: right if you copy the allocs list, then retry, you'll likely then hit a duplicate entry error17:47
edleafeok, I see what you're saying. It's modifying a mutable param17:47
cdenti need to poke at what the db retry handler is actually doing to be sure17:48
*** andreas_s has quit IRC17:49
mriedemmaybe we need to move the insert portion to another method and that method has the retry on deadlock handler17:50
mriedemapart from the _set_allocations code that's checking the object id17:50
mriedembut,17:51
mriedemwe could still then hit duplicate entry errors i'd think17:51
mriedemany time you're retrying to insert over a list...17:51
mriedemso loop over the objects, then insert separately per object in another method with the deadlock retry on that method? would that work?17:52
*** derekh has quit IRC17:52
*** smatzek has joined #openstack-nova17:53
*** sambetts is now known as sambetts|afk17:53
openstackgerritMatt Riedemann proposed openstack/nova stable/pike: Use instance.project_id when creating request specs for old instances  https://review.openstack.org/52938417:54
openstackgerritMatt Riedemann proposed openstack/nova stable/pike: Workaround missing RequestSpec.project_id when moving an instance  https://review.openstack.org/52938517:54
cdentmriedem: unclear. still trying to get all the pieces to line up. one thing that's breaking my brain is that the retry wrapper is not explicitly saying anything about the current transaction. will keep looking17:55
*** pchavva has quit IRC17:55
*** hemna_ has quit IRC17:56
cdentmriedem: i think you're right though, extracting a method for the individual insert seems right17:56
*** sshwarts has quit IRC17:57
mriedemseems easiest anyway17:57
*** sapd_ has joined #openstack-nova18:01
*** sapd has quit IRC18:01
openstackgerritMatt Riedemann proposed openstack/nova stable/ocata: Use instance.project_id when creating request specs for old instances  https://review.openstack.org/52938718:03
*** gszasz has quit IRC18:04
*** Apoorva has joined #openstack-nova18:06
*** Apoorva has quit IRC18:06
*** Apoorva has joined #openstack-nova18:07
openstackgerritMatt Riedemann proposed openstack/nova stable/newton: Use instance.project_id when creating request specs for old instances  https://review.openstack.org/52938918:08
*** AlexeyAbashkin has joined #openstack-nova18:08
cdentmriedem: hmmm, jay's comment from when he added the retry is potentially derailing, he's got a diferent theory of what could be causing the issues: https://github.com/openstack/nova/commit/e001b0538a9d413f86418:08
*** edmondsw has joined #openstack-nova18:09
*** claudiub has quit IRC18:09
mriedemthat likely makes more sense, the inventory thing18:10
mriedembut in that case, the deadlock isn't on the insert, it's on the generation update yeah? https://github.com/openstack/nova/commit/e001b0538a9d413f864#diff-a040eef16b56cc7862fb2a334c757deaR185518:10
cdentright, which I'm not sure we have any way of knowing18:12
cdentthe easiest fix is just simply not doing alloc.id = lastrowid18:12
*** AlexeyAbashkin has quit IRC18:13
mriedemhttp://logs.openstack.org/84/529184/2/check/legacy-tempest-dsvm-py35/888d647/logs/screen-placement-api.txt.gz#_Dec_20_15_15_19_61641318:13
mriedemDec 20 15:15:19.616413 ubuntu-xenial-citycloud-lon1-0001533915 devstack@placement-api.service[15195]: DEBUG oslo_db.api [None req-d117a878-c8e0-4c3b-a073-848d73575036 service placement] Performing DB retry for function nova.objects.resource_provider.AllocationList._set_allocations {{(pid=15198) wrapper /usr/local/lib/python3.5/dist-packages/oslo_db/api.py:149}}18:13
mriedemat least it gets logged :)18:13
*** edmondsw has quit IRC18:13
*** Apoorva has quit IRC18:13
cdentoh, hmmm18:13
cdentthat's saying it is on the insert18:13
mriedemwhere does it say that?18:14
cdentprevious line?18:14
mdboothartom: Hey, I just added a patch which makes it meaningful to tag a local disk18:14
mdboothAs local disks can now have serial numbers18:14
artommdbooth, https://review.openstack.org/#/c/529380/?18:15
mdboothThe way disk tagging works, though, is that when deleting disk metadata it 'matches' based on device.serial, which it assumes to be volume_id18:15
mdboothAlthough..........18:15
mdboothWait a sec, I might be trying to solve a problem which doesn't exist18:15
mdboothThis is only relevant in detach_volume18:15
mdboothAnd as you can't detach a local disk....18:15
mdboothThere's no problem here18:15
mdboothartom: That's the one, yeah.18:16
mdboothartom: Ok, stand down. I don't think this is a thing.18:16
mdboothHowever, if you want to review that series ;)18:16
artomAlso, if I read your patch correctly, it still uses volume UUID as the serial for volumes18:16
artomSo nothing changes there18:16
mdboothartom: Right, that's correct.18:17
artomThen we should be fine18:17
mdboothSo this will continue to work for detach_volume.18:17
mdboothBut it wouldn't work for detach_ephemeral18:17
artomLet me check whether I included this in the tempest tests18:17
mdbooth...which doesn't exist.18:17
artom...18:17
artomwhich haven't merged yet18:17
*** yamahata has joined #openstack-nova18:17
mdboothorly?18:17
mdboothI need to write tempest tests for my stuff.18:17
mdboothCan you ping me the reviews?18:17
artommdbooth, they'll merge in time for brexit18:17
artommdbooth, https://review.openstack.org/#/c/391947/18:18
mdboothartom: You mean they're a complete trainwreck with inexplicable momentum marching inevitably towards their doom?18:18
artomYeah, they only test the attach case18:18
artomI should add the detach case18:18
*** gszasz has joined #openstack-nova18:19
artommdbooth, isn't that all of openstack? ;)18:19
*** gszasz has quit IRC18:19
mdboothOoh, harsh! :)18:19
*** Apoorva has joined #openstack-nova18:19
artomI'm an arse because I care?18:19
mdboothartom: Ok, looks like that needs a rebase.18:21
mdboothI'll take a look at that tomorrow, as I also need to write a test which boots with a tagged root/ephemeral/swap disk.18:21
openstackgerritrahul bardia proposed openstack/python-novaclient master: nova limits ERROR (Exception): Field names must be unique  https://review.openstack.org/52792218:23
*** Apoorva has quit IRC18:24
*** awaugama has joined #openstack-nova18:27
artommdbooth, sure, thanks :)18:29
artomI'll try to get to yours as well18:29
openstackgerritMatt Riedemann proposed openstack/nova master: Add nova-status check for ironic flavor migration  https://review.openstack.org/52754118:29
*** Apoorva has joined #openstack-nova18:34
*** lyan has joined #openstack-nova18:34
*** pchavva has joined #openstack-nova18:39
*** diga has quit IRC18:43
rybridgesHey guys I have a quick question. Is there a way to list all instances for a particular user across all projects?18:45
rybridgesIs that what openstack server list --user <username> does?18:46
openstackgerritChris Dent proposed openstack/nova master: Do not set allocation.id in AllocationList.create_all()  https://review.openstack.org/52939718:49
cdentmriedem: there's ^ a first stab, I went for the simplest thing, for reasons listed in the commit message, gonna dine now.18:49
melwittrybridges: it appears so, it might require user uuid. and you might also need to pass --all-projects18:52
*** Tom-Tom has joined #openstack-nova18:52
*** Tom-Tom has quit IRC18:52
rybridgesok18:53
rybridgesThanks i will give it a shot!18:53
melwittlet me know if it doesn't work. not that familiar with openstackclient but a glance at the code looks like it should do what you want18:55
rybridgeslooks like this works: openstack server list --user rybridges --all-projects18:56
openstackgerritMatt Riedemann proposed openstack/nova master: Pass RequestSpec to ConductorTaskAPI.build_instances  https://review.openstack.org/51549518:57
rybridgesbut this does not: openstack server list --user rybridges18:57
rybridgesso ya you need --all-projects18:57
melwittrybridges: okay, thanks for confirming. without --all-projects it will default to filtering that user under the project making the request18:58
openstackgerritMatt Riedemann proposed openstack/nova master: Pass RequestSpec to ConductorTaskAPI.build_instances  https://review.openstack.org/51549518:58
rybridgesthat is correct melwitt18:59
edleafecdent: huh, that was way simpler than I thought it would be.19:04
*** salv-orl_ has quit IRC19:14
*** salv-orlando has joined #openstack-nova19:14
*** salv-orlando has quit IRC19:19
cfriesenmaybe odd python style question, but why does nova code use super(ClassName, self).func() rather than super(type(self), self).func()?19:25
melwittI dunno. is the latter a more common pattern elsewhere?19:25
cfriesenmelwitt: well, in python 3 you can just use super().  the nice thing about the second one is that you don't need to update it if you subclass it and copy/paste a snippet of code.19:26
*** felipemonteiro__ has joined #openstack-nova19:28
cfriesenmelwitt: heh...some additional googling answered my question.  turns out in python2 it needs to be explicit to allow for multiple levels of inheritance.19:29
*** pcaruana has quit IRC19:29
melwittah, okay. now I know19:29
*** felipemonteiro_ has quit IRC19:32
*** jpena is now known as jpena|off19:37
cdentedleafe: I could have made it way more complex, but figured, what's the point?19:39
openstackgerritChris Dent proposed openstack/nova master: Do not set allocation.id in AllocationList.create_all()  https://review.openstack.org/52939719:45
edleafecdent: I'm not disagreeing19:46
cdentI know19:47
*** pcaruana has joined #openstack-nova19:48
mriedemedleafe: i think we're pretty close on https://review.openstack.org/#/c/511358/ but i don't know why you had to modify the FilterScheduler in there19:50
*** jobewan has joined #openstack-nova19:51
mriedemi think you might be working around something in the claims code in the conductor build_instances method that i pointed out19:52
mriedemalso, i think claim_resources might be the wrong method to call from conductor, seems put_allocations is what we want instead19:53
*** pcaruana has quit IRC19:54
cdentI got things done today, but none of the things I mean to to do, so I'm giving up19:55
* cdent waves19:55
*** moshele has joined #openstack-nova19:55
mriedemthat's most of my days19:55
cdenttrue19:55
cdentbut today seemed especially bad. or maybe I just feel guilty for not doing the stuff I said I'd do for efried_cya_jan19:56
cdentanyway19:56
cdentgoodnight19:56
SamYaple/win/win 2019:56
*** cdent has quit IRC19:56
*** edmondsw has joined #openstack-nova19:57
*** mkoderer__ has quit IRC20:00
*** burt has quit IRC20:01
*** edmondsw has quit IRC20:02
*** burt has joined #openstack-nova20:02
edleafemriedem: the filter scheduler change was because the functional tests turned up an issue: that the Selection objects in the alternates had no allocation_request in them. Since the Selection objects weren't used until this patch, it never showed up20:03
mriedemummm20:03
mriedemedleafe: then what is this? https://github.com/openstack/nova/blob/master/nova/scheduler/filter_scheduler.py#L38020:04
mriedemi realize the first selected host doesn't have an allocation_request in it https://github.com/openstack/nova/blob/master/nova/scheduler/filter_scheduler.py#L34820:04
mriedemwhich you did by design because you said conductor wouldn't need it, because we claim on that host during scheduling20:04
*** eharney has joined #openstack-nova20:04
mriedembut the alternates should have the allocation requests20:05
*** pcaruana has joined #openstack-nova20:06
openstackgerritChris Dent proposed openstack/nova master: [placement] Enable limiting GET /allocation_candidates  https://review.openstack.org/51352620:08
edleafemriedem: it looks like when I rebased on your patch, it pulled an older version. I'm not sure how20:09
mriedemalso realized just now that the claim logic in conductor won't work for the caching scheduler, which does have alternates but doesn't do claims20:09
mriedemedleafe: ok, it seems like this is easily fixed20:09
edleafewell, maybe no20:09
edleafeyeah, I'll fix it, but I'm curious how that happened20:09
mriedemmy guess would just be like you said, rebase wonk20:09
*** tbachman has quit IRC20:09
mriedemwhen there were lots of patches20:10
mriedemnote my latest comment in the conductor manager about the caching scheduler20:10
mriedemwe should have a test for that - where we have alternates, but they don't have allocation_request entries20:10
mriedemwe still reschedule, but we don't claim20:10
edleafeok, let me switch gears and start working on that20:11
*** smatzek has quit IRC20:12
*** pcaruana has quit IRC20:13
mriedemi think we should probably run one of our CI jobs with the caching scheduler, but not sure which one20:20
mriedemcould be the nova-next job20:20
mriedemif we threw it in an experimental queue job we'd likely break it and not realize20:20
*** yangyape_ has joined #openstack-nova20:25
*** yangyapeng has quit IRC20:26
mriedemhttps://review.openstack.org/52941020:33
*** lyan has quit IRC20:36
*** links has joined #openstack-nova20:41
*** links has quit IRC20:47
*** tbachman has joined #openstack-nova20:47
*** chyka has quit IRC20:48
edleafemriedem: so for the caching scheduler case, I should just assume that if there is no allocaiton_request, that it's fine to build on the host?20:48
mriedemedleafe: i think so yeah20:50
mriedemb/c we still get an alternates list for the caching scheduler20:50
mriedemit just won't have anything to do with placement20:50
edleafedo we get alternates for caching?20:50
edleafeor is it just a single-element list per instance?20:51
edleafeoh wait20:51
edleafeyeah, it still uses the filter scheduler underneath20:52
*** felipemonteiro_ has joined #openstack-nova20:53
*** felipemonteiro__ has quit IRC20:53
*** catintheroof has joined #openstack-nova20:54
edleafeso calling put_allocations() instead of claim_resources() would mean having to hack into the allocation_request to extract the resource provider21:02
edleafeOne of the goals of allocation_request was it should be opaque21:03
edleafeJust because we've violated that once doesn't mean we should continue to do so in other cases.21:03
edleafeSo what if I added a "don't check for moves" param to claim_resources?21:04
*** jmlowe has joined #openstack-nova21:04
*** priteau has joined #openstack-nova21:04
*** smatzek has joined #openstack-nova21:07
mriedemlet me look at what you're talking about21:08
*** priteau has quit IRC21:09
*** smatzek has quit IRC21:09
mriedemedleafe: oh yeah you're right,21:10
mriedemdidn't think about the rp_uuid parameter21:10
mriedemnevermind then21:10
mriedemwe have the move thing fixed by deleting the allocatoins in compute before casting to the cell conductor to do the reschedule21:10
mriedemgood call21:10
mriedemmtreinish: thanks for hitting those backports21:11
*** salv-orlando has joined #openstack-nova21:16
mtreinishmriedem: sure, np21:16
mtreinishI just want to eol newton :)21:17
*** salv-orlando has quit IRC21:20
*** catinthe_ has joined #openstack-nova21:23
mriedemi just stepped in a pile of zaqar in the ML21:23
mriedemdid everyone else know something about user-space notifications using zaqar and how nova core is "dead set" against integrating with anything like this?21:23
*** vladikr has quit IRC21:24
*** catintheroof has quit IRC21:25
edleafemriedem: I know that there is a general understanding among non-Nova teams that Nova won't cooperate unless it helps Nova21:26
mriedemhuh21:26
mriedemcould it be that we, god forbid, actually have to prioritize some things based on how many people we have to work on and review stuff?21:27
mriedempretty sure we cooperated on the py35 goal, and the wsgi goal21:27
jrollmriedem: there was a discussion years and years ago about that thing21:28
jrollI assume the answer was "not right now" and that means never21:29
mriedemoh ok21:29
mriedemand by years and years ago, it means the current nova cores are the fuckers that said 'not now'21:29
jrollheh, of course21:29
jrollalso I think that depended on the creds thing aka the kevin fox thing21:29
mriedemoh21:30
mriedemok anything to do with the creds fiasco is over my head21:30
jroll:P21:30
*** kumarmn has quit IRC21:35
*** catinthe_ has quit IRC21:35
*** catintheroof has joined #openstack-nova21:35
*** bnemec has quit IRC21:36
*** threestrands_ has joined #openstack-nova21:36
*** cleong has quit IRC21:38
*** catintheroof has quit IRC21:40
*** priteau has joined #openstack-nova21:51
*** kumarmn has joined #openstack-nova21:52
*** priteau has quit IRC21:56
*** takashin has joined #openstack-nova21:56
*** wind has quit IRC21:56
*** wind has joined #openstack-nova21:57
*** kumarmn has quit IRC21:57
*** kumarmn has joined #openstack-nova21:57
*** ralonsoh has quit IRC21:58
*** itlinux_ has joined #openstack-nova22:00
*** Apoorva_ has joined #openstack-nova22:01
openstackgerritTakashi NATSUME proposed openstack/nova master: [placement] Add sending global request ID in delete  https://review.openstack.org/52523122:04
*** Apoorva has quit IRC22:04
openstackgerritTakashi NATSUME proposed openstack/nova master: [placement] Add sending global request ID in delete (2)  https://review.openstack.org/52626322:04
openstackgerritTakashi NATSUME proposed openstack/nova master: [placement] Add sending global request ID in delete (3)  https://review.openstack.org/52655722:05
openstackgerritTakashi NATSUME proposed openstack/nova master: [placement] Add sending global request ID in post  https://review.openstack.org/52682322:05
openstackgerritTakashi NATSUME proposed openstack/nova master: [placement] Add functional tests for traits API  https://review.openstack.org/52409422:05
*** gouthamr has quit IRC22:06
openstackgerritTakashi NATSUME proposed openstack/nova master: Fix 500 error while passing 4-byte unicode data  https://review.openstack.org/40751422:06
openstackgerritTakashi NATSUME proposed openstack/nova master: [placement] Fix getting placement request ID  https://review.openstack.org/52360622:06
openstackgerritTakashi NATSUME proposed openstack/nova master: [cellv2] Improve getting BDMs in multiple cells  https://review.openstack.org/52140022:06
openstackgerritChris Dent proposed openstack/nova master: Do not set allocation.id in AllocationList.create_all()  https://review.openstack.org/52939722:14
*** salv-orlando has joined #openstack-nova22:17
*** chyka has joined #openstack-nova22:17
*** itlinux_ has quit IRC22:18
*** felipemonteiro__ has joined #openstack-nova22:20
*** salv-orlando has quit IRC22:22
*** chyka has quit IRC22:22
*** felipemonteiro_ has quit IRC22:24
*** david-lyle has quit IRC22:24
*** pooja_jadhav has quit IRC22:26
*** awaugama has quit IRC22:30
*** itlinux_ has joined #openstack-nova22:30
*** alee is now known as alee_afk22:31
*** mgariepy has quit IRC22:31
*** rcernin has joined #openstack-nova22:32
*** trozet has quit IRC22:32
*** jappleii__ has joined #openstack-nova22:35
*** mgariepy has joined #openstack-nova22:36
*** burt has quit IRC22:36
*** threestrands_ has quit IRC22:36
oomichialex_xu: yeah, I reviewed that. Thanks for your work. The other https://review.openstack.org/#/c/529207 needs to be updated in your patch sequence22:40
*** pchavva has quit IRC22:46
*** itlinux_ has quit IRC22:54
*** david-lyle has joined #openstack-nova22:56
openstackgerritEd Leafe proposed openstack/nova master: Don't try to delete build request during a reschedule  https://review.openstack.org/52883523:07
openstackgerritEd Leafe proposed openstack/nova master: Make conductor pass and use host_lists  https://review.openstack.org/51135823:07
openstackgerritEd Leafe proposed openstack/nova master: Change compute RPC to use alternates for resize  https://review.openstack.org/52643623:07
edleafemriedem: ^^ addressed your comments23:07
edleafeand rebased your bottom patch23:07
edleafesorry23:07
mriedemas long as i don't lose the +2 it's fine :)23:09
*** itlinux_ has joined #openstack-nova23:09
edleafeyou're still good :)23:13
*** dave-mccowan has quit IRC23:17
*** salv-orlando has joined #openstack-nova23:17
*** salv-orlando has quit IRC23:21
*** mlavalle has quit IRC23:23
*** Apoorva_ has quit IRC23:24
*** felipemonteiro__ has quit IRC23:24
*** felipemonteiro__ has joined #openstack-nova23:24
*** Apoorva has joined #openstack-nova23:25
*** gouthamr has joined #openstack-nova23:30
mriedemedleafe: so can we split the unnecessary-for-this-patch scheduler thing out of this change and out of the series and just have it on it's own?23:32
*** edmondsw has joined #openstack-nova23:33
*** edmondsw has quit IRC23:38
*** felipemonteiro__ has quit IRC23:41
edleafemriedem: if I did that, I'd have to also undo the test cleanups that assumed that host_list[0] had an empty allocation_request23:41
*** itlinux_ has quit IRC23:42
mriedemin test_filter_scheduler?23:42
mriedemor test_conductor?23:42
edleafeboth23:43
edleafethe test_filter_scheduler stuff could be broken out easily enough, but the conductor tests are more tangled23:44
mriedemhttps://www.amazon.com/Orangutangled-Sudipta-Bardhan-Quallen/dp/147784717023:44
mriedemyou said the word of the day23:44
mriedemahhhhhhhhhhhhhh23:44
mriedemsorry, it's a book i've had to read several times23:44
mriedemalright nevermind then23:45
mriedemjust makes it hard to review big changes with unrelated stuff mixed into them23:45
mriedemespecially if it's not pointed out in the commit message23:45
edleafeI understand, but it is kinda related :)23:46
*** kumarmn has quit IRC23:46
*** felipemonteiro__ has joined #openstack-nova23:46
*** itlinux__ has joined #openstack-nova23:46
mriedemit's certainly orangutangled23:49
*** moshele has quit IRC23:56

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