Wednesday, 2017-05-24

*** brault has joined #openstack-nova00:00
*** yingjun has joined #openstack-nova00:03
*** nicolasbock has quit IRC00:03
*** Apoorva_ has joined #openstack-nova00:04
*** brault has quit IRC00:05
*** jaypipes has quit IRC00:05
*** Apoorva has quit IRC00:07
*** wasmum has quit IRC00:15
*** salv-orlando has quit IRC00:16
*** dave-mccowan has quit IRC00:17
*** mingyu has joined #openstack-nova00:18
*** mingyu has quit IRC00:22
*** gianpietro has quit IRC00:23
*** Apoorva_ has quit IRC00:23
*** itlinux has joined #openstack-nova00:24
*** salv-orlando has joined #openstack-nova00:29
*** dimtruck is now known as zz_dimtruck00:33
*** marst_ has joined #openstack-nova00:34
*** kaisers has quit IRC00:36
*** litao__ has joined #openstack-nova00:43
*** kaisers has joined #openstack-nova00:43
*** zz_dimtruck is now known as dimtruck00:44
*** ihrachys|afk is now known as ihrachys00:46
openstackgerritOpenStack Proposal Bot proposed openstack/nova master: Updated from global requirements  https://review.openstack.org/46734400:50
*** dave-mccowan has joined #openstack-nova00:50
mriedemcfriesen: you don't need to have multiple cells,00:52
mriedemit wasn't about that00:52
*** acormier has joined #openstack-nova00:52
mriedemit was an issue where we thought db connections were being cached by oslo.db or sqla but they weren't00:52
mriedemso every time one was created it was new and they weren't getting gc'ed00:53
*** tovin07_ has joined #openstack-nova00:54
*** dave-mccowan has quit IRC00:55
*** tbachman has quit IRC00:56
*** acormier has quit IRC00:57
*** acormier has joined #openstack-nova00:58
*** phuongnh has joined #openstack-nova01:01
*** kaisers__ has joined #openstack-nova01:03
*** Apoorva has joined #openstack-nova01:04
*** Shunli has joined #openstack-nova01:04
*** tbachman has joined #openstack-nova01:05
*** itlinux has quit IRC01:06
*** kaisers_ has quit IRC01:06
*** zsli_ has joined #openstack-nova01:07
*** dikonoor has joined #openstack-nova01:09
*** Shunli has quit IRC01:10
*** ijw_ has joined #openstack-nova01:10
*** tbachman has quit IRC01:11
*** nic has quit IRC01:12
*** ijw has quit IRC01:13
*** gianpietro has joined #openstack-nova01:15
*** Apoorva_ has joined #openstack-nova01:16
*** tbachman has joined #openstack-nova01:16
*** salv-orlando has quit IRC01:17
*** Apoorva has quit IRC01:19
*** gianpietro has quit IRC01:19
*** salv-orlando has joined #openstack-nova01:20
*** Apoorva_ has quit IRC01:21
*** takashin has quit IRC01:22
*** acormier has quit IRC01:27
*** hongbin has joined #openstack-nova01:28
openstackgerritHuan Xie proposed openstack/nova master: XenAPI use os-xenapi v2 in nova  https://review.openstack.org/45349301:31
*** itlinux has joined #openstack-nova01:35
*** priteau has joined #openstack-nova01:42
*** baoli has joined #openstack-nova01:42
*** smatzek has joined #openstack-nova01:44
*** tbachman has quit IRC01:44
*** salv-orlando has quit IRC01:45
*** priteau has quit IRC01:46
*** baoli has quit IRC01:46
*** itlinux has quit IRC01:52
*** penick has joined #openstack-nova01:57
*** ihrachys has quit IRC02:03
*** dillaman has quit IRC02:10
*** zhurong has joined #openstack-nova02:11
*** lei-zh has joined #openstack-nova02:11
*** jichen has joined #openstack-nova02:12
*** mingyu has joined #openstack-nova02:13
*** baoli has joined #openstack-nova02:14
*** smatzek has quit IRC02:19
*** gianpietro has joined #openstack-nova02:26
*** thorst_afk has joined #openstack-nova02:27
*** gjayavelu has quit IRC02:28
*** gianpietro has quit IRC02:29
*** nicolasbock has joined #openstack-nova02:31
*** gouthamr has quit IRC02:33
*** cNilesh has joined #openstack-nova02:33
melwittmriedem: guh, instance groups and members are in the API db. I forgot02:35
*** thorst_afk has quit IRC02:35
*** edmondsw has joined #openstack-nova02:35
melwittbut the way it counts members is to find instances owned by the user that are also members of the group, and returns len(instances)02:36
*** thorst_afk has joined #openstack-nova02:37
melwittthe problem is there's no user association with instance group members, so you can't just query the API db. have to lookup the group in the API db, then count how many instances belong to the user that are also in that group02:38
melwittso I would think if you boot an instance with some group, boot another instance with the same group that lands in a different cell, you're at the point where you have to query all cells. I dunno if it's possible for that to happen based on the available policies, which is what you were thinking about02:39
*** edmondsw has quit IRC02:40
openstackgerritmelanie witt proposed openstack/nova master: Add FixedIP.get_count_by_project()  https://review.openstack.org/44624602:40
openstackgerritmelanie witt proposed openstack/nova master: Add FloatingIP.get_count_by_project()  https://review.openstack.org/44624702:40
openstackgerritmelanie witt proposed openstack/nova master: Add get_count_by_vm_state() to Instance object  https://review.openstack.org/44624402:40
openstackgerritmelanie witt proposed openstack/nova master: Add SecurityGroup.get_counts()  https://review.openstack.org/44624502:40
openstackgerritmelanie witt proposed openstack/nova master: Remove 'reserved' count from used limits  https://review.openstack.org/44624202:40
openstackgerritmelanie witt proposed openstack/nova master: Remove useless quota_usage_refresh from nova-manage  https://review.openstack.org/44624302:40
openstackgerritmelanie witt proposed openstack/nova master: Count networks to check quota  https://review.openstack.org/44624102:40
openstackgerritmelanie witt proposed openstack/nova master: Count instances to check quota  https://review.openstack.org/41652102:40
openstackgerritmelanie witt proposed openstack/nova master: Count server group members to check quota  https://review.openstack.org/45785902:40
openstackgerritmelanie witt proposed openstack/nova master: Count security groups to check quota  https://review.openstack.org/45786002:40
openstackgerritmelanie witt proposed openstack/nova master: Make Quotas object favor the API database  https://review.openstack.org/41094502:40
openstackgerritmelanie witt proposed openstack/nova master: Count fixed ips to check quota  https://review.openstack.org/45786102:40
openstackgerritmelanie witt proposed openstack/nova master: Add online migration to move quotas to API database  https://review.openstack.org/41094602:40
openstackgerritmelanie witt proposed openstack/nova master: Count floating ips to check quota  https://review.openstack.org/45786202:40
*** masber has joined #openstack-nova02:45
*** marst_ has quit IRC02:49
*** dillaman has joined #openstack-nova02:50
mriedemmelwitt: huh, not sure. we could write a tempest test or something for this which might tell us02:51
mriedemand run that against dan's multi-cell devstack change02:51
*** yamamoto_ has joined #openstack-nova02:51
mriedemif you can come up with the test scenario i could help work on that in tempest02:52
*** thorst_afk has quit IRC02:52
openstackgerritjichenjc proposed openstack/nova master: Use plain routes list for os-migrations endpoint instead of stevedore  https://review.openstack.org/46162802:53
*** yamahata has quit IRC03:00
*** itlinux has joined #openstack-nova03:10
*** mriedem has quit IRC03:11
*** mingyu has quit IRC03:17
*** krtaylor has joined #openstack-nova03:39
*** baoli has quit IRC03:39
*** boris-42_ has quit IRC03:39
*** vks1 has joined #openstack-nova03:40
openstackgerritOpenStack Proposal Bot proposed openstack/nova master: Updated from global requirements  https://review.openstack.org/46734403:41
*** nicolasbock has quit IRC03:42
*** hongbin has quit IRC03:44
*** slaweq has joined #openstack-nova03:50
*** kornicameister has joined #openstack-nova03:51
*** trinaths has joined #openstack-nova03:55
*** slaweq has quit IRC03:55
*** ChanServ changes topic to "This channel is for Nova development. For support of Nova deployments, please use #openstack. Please see: https://wiki.openstack.org/wiki/Nova/Ocata_Release_Schedule"04:07
-openstackstatus- NOTICE: Sufficient free space has been reclaimed that jobs are passing again; any POST_FAILURE results can now be rechecked.04:07
*** itlinux has quit IRC04:08
*** psachin has joined #openstack-nova04:09
*** zhurong has quit IRC04:11
*** ratailor has joined #openstack-nova04:13
*** zhurong has joined #openstack-nova04:15
*** yamamoto_ has quit IRC04:18
*** mingyu has joined #openstack-nova04:18
*** vks1 has quit IRC04:20
*** lucasxu has joined #openstack-nova04:20
*** vks1 has joined #openstack-nova04:20
openstackgerritTristan Cacqueray proposed openstack/nova master: Mask the token used to allow access to consoles  https://review.openstack.org/22062204:22
*** mingyu has quit IRC04:22
*** udesale has joined #openstack-nova04:24
openstackgerritEric Berglund proposed openstack/nova master: Add strict option to discover_hosts  https://review.openstack.org/46721804:25
*** arunman has joined #openstack-nova04:26
*** diga has joined #openstack-nova04:28
*** armax has quit IRC04:28
*** penick has quit IRC04:28
*** armax has joined #openstack-nova04:28
*** armax has quit IRC04:29
*** yamahata has joined #openstack-nova04:32
*** psachin has quit IRC04:35
*** arunman has quit IRC04:38
*** adisky_ has joined #openstack-nova04:48
openstackgerritHuan Xie proposed openstack/nova master: XenAPI use os-xenapi v2 in nova  https://review.openstack.org/45349304:52
*** psachin has joined #openstack-nova04:53
*** bkopilov has joined #openstack-nova04:55
*** jaosorior_away is now known as jaosorior04:55
*** mdnadeem has joined #openstack-nova04:55
*** yamamoto_ has joined #openstack-nova04:56
*** mdnadeem has quit IRC05:01
*** sree has joined #openstack-nova05:09
*** lucasxu has quit IRC05:10
*** yolkfull has joined #openstack-nova05:15
*** prateek__ has joined #openstack-nova05:17
*** links has joined #openstack-nova05:20
*** ltomasbo|away is now known as ltomasbo05:28
*** mdnadeem has joined #openstack-nova05:30
*** diga has quit IRC05:31
openstackgerritHuan Xie proposed openstack/nova master: XenAPI use os-xenapi v2 in nova  https://review.openstack.org/45349305:34
*** dimtruck is now known as zz_dimtruck05:35
*** gcb has quit IRC05:39
*** Oku_OS-away is now known as Oku_OS05:40
*** mdnadeem has quit IRC05:40
*** gcb has joined #openstack-nova05:40
*** yingjun has quit IRC05:43
*** psachin has quit IRC05:53
*** arunman has joined #openstack-nova05:54
*** mdnadeem has joined #openstack-nova05:54
*** markus_z has joined #openstack-nova05:55
*** brault has joined #openstack-nova06:00
*** rcernin has quit IRC06:00
*** andreas_s has joined #openstack-nova06:03
*** brault has quit IRC06:04
*** psachin has joined #openstack-nova06:05
openstackgerritfalseuser proposed openstack/nova master: Clear instance root_device_name in rebuild operation  https://review.openstack.org/46499106:11
*** mingyu has joined #openstack-nova06:11
*** belmoreira has joined #openstack-nova06:13
*** gyee has quit IRC06:17
*** rcernin has joined #openstack-nova06:17
*** haplo37 has quit IRC06:18
*** haplo37 has joined #openstack-nova06:20
*** psachin has quit IRC06:23
*** psachin has joined #openstack-nova06:23
*** hoonetorg has quit IRC06:25
*** brault has joined #openstack-nova06:27
*** djohnsto has quit IRC06:34
*** hoonetorg has joined #openstack-nova06:37
*** abalutoiu has joined #openstack-nova06:41
openstackgerritZhenyu Zheng proposed openstack/nova master: Send out notifications when instance tags changed  https://review.openstack.org/45992306:45
*** mingyu has quit IRC06:50
*** mingyu has joined #openstack-nova06:51
*** mingyu has quit IRC06:51
*** bkopilov has quit IRC06:55
*** mingyu has joined #openstack-nova06:55
*** mingyu has quit IRC06:59
*** bkopilov has joined #openstack-nova07:08
*** jroll has quit IRC07:12
*** yamahata has quit IRC07:15
*** pcaruana has joined #openstack-nova07:16
*** hshiina has joined #openstack-nova07:21
*** mingyu has joined #openstack-nova07:23
*** swebster_ has joined #openstack-nova07:24
*** swebster has quit IRC07:24
*** mlakat has joined #openstack-nova07:26
openstackgerritLi Yingjun proposed openstack/nova master: Fix duplicate Neutron ports on instance reschedule  https://review.openstack.org/46750907:30
openstackgerritZhenyu Zheng proposed openstack/nova master: Exclude deleted service records when calling hyervisor statistics  https://review.openstack.org/46722007:35
*** karimb has joined #openstack-nova07:35
*** oanson has quit IRC07:36
*** oanson has joined #openstack-nova07:37
*** jpena|off is now known as jpena07:38
*** mingyu has quit IRC07:46
*** aarefiev_afk is now known as aarefiev07:46
*** lpetrut has joined #openstack-nova07:58
*** edmondsw has joined #openstack-nova07:59
*** zzzeek has quit IRC08:00
*** zzzeek has joined #openstack-nova08:00
*** priteau has joined #openstack-nova08:03
*** edmondsw has quit IRC08:04
openstackgerritZhenyu Zheng proposed openstack/nova master: Use plain routes list for os-server-groups endpoint instead of stevedore  https://review.openstack.org/46216908:06
*** rha has quit IRC08:08
openstackgerritBéla Vancsics proposed openstack/nova master: Transform keypair.import notification  https://review.openstack.org/46751408:13
*** lucas-afk is now known as lucasagomes08:16
*** sambetts|afk is now known as sambetts08:20
*** ralonsoh has joined #openstack-nova08:23
*** rha has joined #openstack-nova08:24
*** rha has quit IRC08:24
*** rha has joined #openstack-nova08:24
*** sree_ has joined #openstack-nova08:27
*** sree_ is now known as Guest2562708:28
*** sree has quit IRC08:30
openstackgerritGábor Antal proposed openstack/nova master: Add json style checking for sample notifications  https://review.openstack.org/44367708:35
*** lei-zh has quit IRC08:37
*** derekh has joined #openstack-nova08:37
*** gszasz has joined #openstack-nova08:41
*** gszasz has quit IRC08:46
*** gszasz has joined #openstack-nova08:51
*** mvk has joined #openstack-nova08:58
*** sree has joined #openstack-nova09:01
*** Guest25627 has quit IRC09:03
*** phuongnh has quit IRC09:05
*** diga has joined #openstack-nova09:17
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref for DELETE RP inventory  https://review.openstack.org/45521509:21
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref for PUT RP inventory  https://review.openstack.org/45521409:21
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref for GET RP inventory  https://review.openstack.org/45521309:21
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Fix placement-api-ref check tool  https://review.openstack.org/45619809:21
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref for GET RP inventories  https://review.openstack.org/44976509:21
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref for DELETE RP inventories  https://review.openstack.org/45270809:21
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref POST resource provider  https://review.openstack.org/45617609:21
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref for PUT RP inventories  https://review.openstack.org/45270709:21
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref GET resource provider  https://review.openstack.org/46754109:21
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref PUT resource provider  https://review.openstack.org/46754209:21
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref DELETE resource provider  https://review.openstack.org/46754309:21
*** rmart04 has joined #openstack-nova09:23
*** zsli_ has quit IRC09:26
*** salv-orlando has joined #openstack-nova09:35
openstackgerritZhenyu Zheng proposed openstack/nova master: Send out notifications when instance tags changed  https://review.openstack.org/45992309:37
openstackgerritJohn Haan proposed openstack/nova-specs master: Support volume_type with BDM paramter  https://review.openstack.org/46659509:42
*** mvk has quit IRC09:42
*** sdague has joined #openstack-nova09:44
openstackgerritStephen Finucane proposed openstack/nova master: nova-manage: Deprecate '--version' parameters  https://review.openstack.org/45380809:47
openstackgerritStephen Finucane proposed openstack/nova master: nova-manage: Rename 'api_db', 'cellsv2' commands  https://review.openstack.org/45380909:47
*** salv-orlando has quit IRC09:48
*** edmondsw has joined #openstack-nova09:49
*** edmondsw has quit IRC09:54
*** links has quit IRC09:55
*** tristanC has joined #openstack-nova09:56
*** tbachman has joined #openstack-nova10:02
*** tovin07_ has quit IRC10:03
*** zhurong has quit IRC10:04
*** links has joined #openstack-nova10:08
*** mvk has joined #openstack-nova10:14
*** cNilesh has quit IRC10:23
*** cNilesh has joined #openstack-nova10:24
*** jroll has joined #openstack-nova10:25
*** cNilesh has quit IRC10:33
*** ayogi has joined #openstack-nova10:33
*** udesale__ has joined #openstack-nova10:38
*** tbachman has quit IRC10:40
*** udesale has quit IRC10:41
*** yamamoto_ has quit IRC10:43
*** udesale__ has quit IRC10:43
*** udesale has joined #openstack-nova10:44
*** cdent has joined #openstack-nova10:44
*** nicolasbock has joined #openstack-nova10:45
*** cNilesh has joined #openstack-nova10:45
lyarwoodmdbooth: ah sorry, I missed your summary note in https://review.openstack.org/#/c/443951/20 and just assumed you were suggesting we didn't need to wait for os-brick10:56
*** cNilesh has quit IRC10:59
*** arunman has quit IRC11:07
openstackgerritfalseuser proposed openstack/nova master: Fix the rebuild operation bug  https://review.openstack.org/46758811:10
openstackgerritHong Hui Xiao proposed openstack/nova master: VMware: Check if network is ready on cluster host  https://review.openstack.org/46758911:12
*** abalutoiu has quit IRC11:12
openstackgerritClaudiu Belu proposed openstack/nova master: POC: tests: autospecs all the mock.patch usages  https://review.openstack.org/44750511:13
*** sree has quit IRC11:14
*** acormier has joined #openstack-nova11:16
*** acormier has quit IRC11:16
*** acormier has joined #openstack-nova11:17
*** lucasagomes is now known as lucas-pto11:17
*** yolkfull has quit IRC11:21
*** liverpooler has quit IRC11:22
*** zz_dimtruck is now known as dimtruck11:23
*** fragatina has joined #openstack-nova11:28
*** fragatina has quit IRC11:29
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref for GET resource provider  https://review.openstack.org/46754111:29
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref for PUT resource provider  https://review.openstack.org/46754211:29
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref for DELETE resource provider  https://review.openstack.org/46754311:29
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref for POST resource provider  https://review.openstack.org/45617611:29
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref for resource classes  https://review.openstack.org/46759611:29
*** fragatina has joined #openstack-nova11:29
*** smatzek has joined #openstack-nova11:31
*** gszasz has quit IRC11:31
*** yamamoto has joined #openstack-nova11:31
*** udesale has quit IRC11:34
*** udesale has joined #openstack-nova11:35
*** acormier has quit IRC11:40
*** edmondsw has joined #openstack-nova11:42
*** nicolasbock has quit IRC11:43
*** belmoreira has quit IRC11:45
*** MVenesio has joined #openstack-nova11:45
*** acormier has joined #openstack-nova11:46
*** abalutoiu has joined #openstack-nova11:47
*** hemna has quit IRC11:47
*** dansmith has quit IRC11:48
*** anish has quit IRC11:49
*** hemna has joined #openstack-nova11:49
*** dansmith has joined #openstack-nova11:51
*** dansmith is now known as Guest3615411:51
*** anish has joined #openstack-nova11:51
*** litao__ has quit IRC11:52
*** jaypipes has joined #openstack-nova11:52
*** MVenesio has quit IRC11:59
*** diga has quit IRC12:01
*** annegentle has joined #openstack-nova12:02
*** tbachman has joined #openstack-nova12:03
*** trinaths has quit IRC12:03
*** dillaman has quit IRC12:04
*** gianpietro has joined #openstack-nova12:08
*** vks1 has quit IRC12:09
*** belmoreira has joined #openstack-nova12:12
*** gianpietro has quit IRC12:12
*** annegentle has quit IRC12:16
*** winston-d_ has quit IRC12:19
*** acormier has quit IRC12:20
*** acormier has joined #openstack-nova12:20
*** peter-hamilton has joined #openstack-nova12:22
openstackgerritZhenyu Zheng proposed openstack/nova master: Send out notifications when instance tags changed  https://review.openstack.org/45992312:23
*** rdo__ has quit IRC12:23
*** krtaylor has quit IRC12:24
peter-hamiltonhi all, hoping to get some reviews on cert validation patches: https://review.openstack.org/#/c/457711/, https://review.openstack.org/#/c/357202/, and https://review.openstack.org/#/c/457678/12:25
peter-hamiltonany and all reviews welcome :)12:25
*** mdnadeem has quit IRC12:25
*** FL1SK has quit IRC12:28
*** rdo_ has joined #openstack-nova12:30
*** lucasxu has joined #openstack-nova12:31
*** zhurong has joined #openstack-nova12:35
*** zhurong has quit IRC12:36
*** mdnadeem has joined #openstack-nova12:36
*** ratailor has quit IRC12:37
*** annegentle has joined #openstack-nova12:38
*** dave-mccowan has joined #openstack-nova12:41
*** jpena is now known as jpena|lunch12:44
alex_xunova api meeting is in 15 mins at #openstack-meeting-412:45
*** eharney has joined #openstack-nova12:45
sfinucanalex_xu: Where would I find the agenda for that meeting?12:46
*** annegentle has quit IRC12:47
alex_xusfinucan: here is https://wiki.openstack.org/wiki/Meetings/NovaAPI12:47
sfinucanalex_xu: ++12:47
*** lyan has joined #openstack-nova12:49
*** lucasxu has quit IRC12:50
*** liverpooler has joined #openstack-nova12:55
*** gcb has quit IRC12:57
*** gcb has joined #openstack-nova12:57
*** baoli has joined #openstack-nova12:58
alex_xunova api meeting is running now13:00
*** jichen has quit IRC13:00
*** efoley has joined #openstack-nova13:00
*** nicolasbock has joined #openstack-nova13:00
*** kfarr has joined #openstack-nova13:03
*** mdrabe has joined #openstack-nova13:04
*** ekuris has quit IRC13:04
*** xyang1 has joined #openstack-nova13:04
*** rfolco has joined #openstack-nova13:06
*** vladikr has joined #openstack-nova13:08
*** MVenesio has joined #openstack-nova13:09
*** cleong has joined #openstack-nova13:10
*** thorst_afk has joined #openstack-nova13:12
*** gszasz has joined #openstack-nova13:17
*** ekuris has joined #openstack-nova13:19
*** lucasxu has joined #openstack-nova13:20
*** tbachman has quit IRC13:20
*** mriedem has joined #openstack-nova13:20
*** jamesdenton has joined #openstack-nova13:21
*** kylek3h has joined #openstack-nova13:21
*** liverpooler has quit IRC13:22
*** liverpooler has joined #openstack-nova13:22
*** tbachman has joined #openstack-nova13:23
*** Yangyapeng has joined #openstack-nova13:26
openstackgerritJay Pipes proposed openstack/nova master: integrate trait cache with TraitList and Trait  https://review.openstack.org/46277013:26
openstackgerritJay Pipes proposed openstack/nova master: add cache which keeps DB and os_traits in sync  https://review.openstack.org/46276913:26
openstackgerritJay Pipes proposed openstack/nova master: integrate trait cache with TraitList and Trait  https://review.openstack.org/46277013:27
openstackgerritJay Pipes proposed openstack/nova master: add cache which keeps DB and os_traits in sync  https://review.openstack.org/46276913:27
*** esberglu has joined #openstack-nova13:28
*** prateek__ has quit IRC13:30
openstackgerritHong Hui Xiao proposed openstack/nova master: VMware: Check if network is ready on cluster host  https://review.openstack.org/46758913:34
*** ekuris has quit IRC13:35
*** READ10 has joined #openstack-nova13:38
*** ekuris has joined #openstack-nova13:38
*** sree has joined #openstack-nova13:41
*** dimtruck is now known as zz_dimtruck13:42
*** felipemonteiro has joined #openstack-nova13:42
openstackgerritEric Berglund proposed openstack/nova master: Add strict option to discover_hosts  https://review.openstack.org/46721813:43
*** felipemonteiro_ has joined #openstack-nova13:44
*** ayogi has quit IRC13:44
*** jpena|lunch is now known as jpena13:45
*** mtanino has joined #openstack-nova13:46
*** felipemonteiro has quit IRC13:47
*** krtaylor has joined #openstack-nova13:47
openstackgerritEric Berglund proposed openstack/nova master: Add strict option to discover_hosts  https://review.openstack.org/46721813:48
*** gouthamr has joined #openstack-nova13:50
*** efried has joined #openstack-nova13:52
*** ZZelle has quit IRC13:52
*** yamahata has joined #openstack-nova13:53
*** gianpietro has joined #openstack-nova13:53
larsksThe network_data.json provided by nova provides nameserver information globally in the "services" key, rather than scoping it per-interface.  This would seem to mean that it's not possible to associate different sets of DNS servers with different interfaces.13:54
larsksAm I reading the situation correctly?13:54
*** burt has joined #openstack-nova13:55
*** prateek has joined #openstack-nova13:57
sdaguelarsks: that sounds right13:57
artomlarsks, isn't that a limitation of networking in general though? I mean, nameservers are for the whole system, I don'tknow of a way to limit nameservers to an interface, with Nova or without13:57
larsksartom: not at all.  I mean, you may have interface that are only reachable via specific interfaces.  If everything is  up, that's fine, but if you bring down the corresponding interface you want those nameservers to go away.13:58
openstackgerritDaniel Pawlik proposed openstack/nova master: Add `hide_hypervisor_id` image property  https://review.openstack.org/45975313:58
sdaguelarsks: yeh, this is basically just the /etc/resolv.conf handled case, nothing fancier13:58
sdagueit's going to be processed by cloud-init13:59
larskssdague: well, the problem here is that since Nova doesn't provide interface-scoped DNS servers, cloud-init...or anything else...can't actually configure the system correctly.13:59
larsksE.g., DNS information should be added to interface config files (like /etc/sysconfig/network-scripts/ifcfg-eth0).13:59
larsksBut we can't, since the servers are only listed globally.13:59
artomlarsks, ah, so you want DNS servers being dynamically added/removed based on if they'd be reachable or not14:00
*** mtanino has quit IRC14:00
Guest36154artom: no, you can put all the dns servers in resolv.conf and it'll use the right route to get to each server14:00
larsksRight.  That is typically how things are configured, and most distros have facilities for managing /etc/resolv.conf as interfaces come up and down.14:00
sdaguelarsks: if you can figure out a way to get neutron to build that information that way, it's probably possible to make corresponding nova changes to expose this14:00
danpawlikmriedem, efried, kashyap: I fixed all what you comment in my PS: https://review.openstack.org/#/c/45975314:00
*** Guest36154 is now known as dansmith14:00
mriedemjohnthetubaguy: got a policy question for you on https://github.com/openstack/nova/blob/master/nova/policies/quota_class_sets.py#L2514:00
sdaguebut nova doesn't own that datastructure14:00
kashyapdanpawlik: Yep, will look in a bit; in the middle of something14:00
mriedemjohnthetubaguy: the quota_class is the id in the GET call,14:01
mriedemso effectively it means: 'is_admin:True or quota_class:default'14:01
larskssdague: all right, I'll poke around neutron.  Does network_data.json come directly from neutron (e.g., nova is just proxying the information)?14:01
mriedemjohnthetubaguy: does that mean you could just configure policy per quota class?14:01
mriedemeven though we only have one14:01
artomdansmith, yeah, they end up being global for the system, but what I think larsks has in mind is to add them to the global pool based on what interface is up/down14:01
dansmithartom: sure, but not like added and removed as they become dynamically reachable, just assumed reachable because the interface is up14:02
*** jpena is now known as jpena|brb14:02
dansmithartom: which is what I thought you meant14:02
artomdansmith, right, the "reachable" part is meaning we humans assign14:02
artomFor the machine it's just nic up -> add nameserver14:02
larsksdansmith: artom: networkmanager and the legacy network scripts will manage entries in resolv.conf as interfaces come up/down.  Which is what I think we would want.14:02
dansmithyah14:03
mriedemalex_xu: gmann: i've updated the bug - we'll need a spec to work the microversion fix, any volunteers?14:03
dansmithlarsks: yeah, I understand.. adding a nic to an instance should end up with all that network's info merged in, just like configuring a nic in a distro14:03
dansmithlarsks: sdague: don't we construct network.json from the pieces we get from neutron?14:04
larsksdansmith: right. But it sounds like this is actually a neutron issue. Yeah.14:04
sdaguedansmith: we do14:04
sdaguehttps://github.com/openstack/nova/blob/c2c6960e374351b3ce1b43a564b57e14b54c4877/nova/virt/netutils.py#L166-L22214:04
alex_xumriedem: i can done that, gmann already take another task for deprecated hide-address policy14:04
sdaguethat's where the structure is built from our network_info block14:04
mriedemok14:04
dansmithsdague: right, so I'm not sure why those are't already merged if multiple networks have dns info14:05
dansmithL210 there14:05
sdagueyeh14:05
dansmithlarsks: ^14:06
*** crushil has joined #openstack-nova14:06
larsksdansmith: I'm not sure I followed you there.14:07
*** zz_dimtruck is now known as dimtruck14:07
*** dillaman has joined #openstack-nova14:07
larsksI mean, they might be "merged in", but the issue is that they are provided globablly rather than interface-scoped so we can't put the information in the right place.14:07
*** mingyu has joined #openstack-nova14:08
dansmithlarsks: oh I see you want to be able to configure the distro interface files so that if they ifdown an interface, it removes those dns servers from the merged resolv.conf?14:08
sdaguelarsks: do you want them at the link or networks side?14:08
dansmithin that case, this is a nova-side change, although it's a change to our metadata which is something not to be taken lightly14:09
larskssdague: I *think* on the networks side.14:09
larsksdansmith: understood!14:09
sdaguelarsks: you could probably change things so that they *also* are at the networks side, but they are going to have to also stay global for systems that can't understand that change14:09
larsksdansmith: also, yes, in response to your ealier question.14:09
larskssdague: that makes the most sense, I think.14:09
dansmithlarsks: sdague yeah, adding them in both places is the only thing you could do without breaking people14:10
sdaguelarsks: that's at least the place to play around with things14:10
mriedembtw,14:12
mriedemi heard that one of the outcomes of a forum session on apis was that we don't have config drive documented anywhere14:13
mriedemthere is this https://docs.openstack.org/user-guide/cli-config-drive.html14:13
openstackgerritDaniel Pawlik proposed openstack/nova master: Add `hide_hypervisor_id` image property  https://review.openstack.org/45975314:13
mriedemi'm assuming it's more a question of what the contents are14:13
*** coreywright has quit IRC14:14
mriedemmaybe per version, like what we have in the rest api version history14:14
sdagueyep, it's definitely in the state of something that you need to read code to understand14:14
dansmithwell, that goes for metadata too14:16
mriedemthere was a spec that mgagne recently updated for the network data json blob14:16
mriedemdansmith: right, that's what i was thinking with versions14:16
mriedeme.g. in newton you get a new version with device tags14:17
dansmithyeah14:17
mriedemthis one https://review.openstack.org/#/c/337819/14:18
*** awaugama has joined #openstack-nova14:18
mriedemlet me see if i can find the forum notes and start something in the ML to ask what people are looking for14:19
mriedemi've also been thinking about starting an in-tree doc with a dump of all known flavor extra specs14:19
*** mingyu has quit IRC14:20
mgagneI feel like this review is losing momentum, is there a way to highlight it somewhere to get more attention? https://review.openstack.org/#/c/454322/14:22
mgagne(Add ability to signal and perform online volume size change)14:22
*** armax has joined #openstack-nova14:22
mriedemmgagne: it's on my list14:22
mriedemmgagne: i've been going through some of the random smaller bp changes this week14:23
mgagnethanks =)14:23
*** hferenc has quit IRC14:23
*** sree_ has joined #openstack-nova14:23
*** sree_ is now known as Guest8830314:23
*** hferenc has joined #openstack-nova14:24
*** prateek has quit IRC14:25
*** sree has quit IRC14:25
*** FL1SK has joined #openstack-nova14:26
*** gianpietro has quit IRC14:27
*** thorst_afk has quit IRC14:27
*** coreywright has joined #openstack-nova14:27
*** ihrachys has joined #openstack-nova14:30
*** mdnadeem has quit IRC14:30
*** hongbin has joined #openstack-nova14:34
*** pchavva has joined #openstack-nova14:35
*** lucasxu has quit IRC14:36
*** lucasxu has joined #openstack-nova14:37
*** yamahata has quit IRC14:39
mriedemhttp://lists.openstack.org/pipermail/openstack-dev/2017-May/117401.html14:41
mriedemmgagne: ^ you might have input also14:41
*** markus_z has quit IRC14:43
*** itlinux has joined #openstack-nova14:45
mriedemsdague: from http://lists.openstack.org/pipermail/openstack-dev/2017-May/117374.html  - http://enos.irisa.fr/html/seqdiag/v1/trace-boot-and-delete.yaml.html14:46
mriedemi remember someone from ibm research a few years ago wrote some tooling to do tracing like this too, using osprofiler i think14:46
mriedemreminded me of the nova onboarding session14:46
*** mdrabe has quit IRC14:47
sdagueyeh14:47
sdagueit would be nice if the output wasn't an eye chart with a soda straw14:48
mriedemyeah it's hard to navigate14:48
sdagueand non searchable14:49
sdaguethe svg thing looks all sexy, until you try to do things with it14:49
*** annegentle has joined #openstack-nova14:49
*** lucasxu has quit IRC14:50
*** abalutoiu has quit IRC14:50
*** lucasxu has joined #openstack-nova14:52
*** nicolasbock has quit IRC14:52
*** pabelanger has quit IRC14:52
*** pabelanger has joined #openstack-nova14:52
*** mdrabe has joined #openstack-nova14:53
*** psachin has quit IRC14:55
*** marst_ has joined #openstack-nova14:57
*** savvas has joined #openstack-nova14:57
*** jpena|brb is now known as jpena14:58
*** andreas_s has quit IRC15:00
*** penick has joined #openstack-nova15:06
*** Guest88303 has quit IRC15:08
savvasHi guys, I've been hopping from channel to channel trying to isolate the cause of a problem I've been having15:09
savvaswhen I try to boot an instance as following: nova boot newInstance   --flavor testpack   --security-groups default   --nic net-id=7a2a1e61-1d86-4551-b578-dedf7f8443ea   --block-device source=image,id=de61646b-8c48-43ac-a8b1-8f8348757d66,dest=volume,size=10,shutdown=remove,bootindex=0 --availability-zone hv01-zone15:09
*** sree has joined #openstack-nova15:09
savvasnova seems to ignore the availability-zone for cinder, it tries to use the default "nova" zone for creating the volume, instead of the AZ defined in the boot command. Am I missing something in my configuration perhaps that tells nova to look in diff volume AZ?15:10
*** gjayavelu has joined #openstack-nova15:11
savvasI should add that if I create a volume manually in the right AZ and then boot an instance from that volume, it works just fine. However, combining those actions into a nova boot / server create command fails15:12
*** ctrath has joined #openstack-nova15:12
mriedemcfriesen: you might be interested in this thread http://lists.openstack.org/pipermail/openstack-dev/2017-May/116595.html15:13
mriedemsavvas: which release?15:14
savvasocata15:14
mriedemand what's the value of [cinder]cross_az_attach in nvoa.conf?15:14
mriedem*nova.conf15:14
mriedemor is it not set?15:14
savvasthat's left to default, I found comments on that but I didn't think it was relevant in my case15:14
savvasnot set15:14
*** gyee has joined #openstack-nova15:15
savvasI figured based on the AZ I define when creating an instance that it would look for the available AZ as defined by the cinder-volume service15:15
mriedemnova doesn't list AZs from cinder15:15
mriedemhave you looked at https://github.com/openstack/nova/blob/81bdbd0b50aeac9a677a0cef9001081008a2c407/nova/virt/block_device.py#L55 ?15:16
mriedemcross_az_attach defaults to True, so that method is going to return None15:17
mriedemwhich means when nova creates the volume, it's not going to pass an az to cinder,15:17
mriedemso cinder uses it's default az, which is 'nova'15:17
mriedembecause that makes total sense right?!15:17
savvasright lol15:18
mriedemif you want nova to specify the same az for the volume as the vm, you have to set cross_az_attach=False15:18
sdagueyay for inherited defaults15:18
*** vks1 has joined #openstack-nova15:18
*** rcernin has quit IRC15:18
*** arunman has joined #openstack-nova15:19
mriedemthere are apparently at least 3 cinder config options for the default az15:19
mriedemone global one, which if not set defaults to another global one, which defaults to nova, but can be overridden on a per-backend basis15:19
mriedemusing yet another option15:19
mriedemsavvas: anyway, does that answer your question?15:20
savvastrying it as we speak :)15:20
mriedemmaybe we need to update the cross_az_attach config option help docs a bit to make this clear15:20
mriedemi.e. by default nova will not specify an AZ when creating a volume so the volume will be created in the default AZ defined in Cinder15:21
*** tbachman has quit IRC15:21
mriedemwhich may or may not be the same as the AZ that the instance is created in15:21
savvasit still fails on the same error for me though15:21
*** fragatina has quit IRC15:22
savvasI set cross_az_attach to False and restarted my scheduler service15:22
savvasbut it still tries to create a volume in the nova az, regardless of whether I defined the AZ for the instance to be created in or not15:22
smcginnissavvas: As mriedem explained, the AZ doesn't get passed through to cinder. So that makes sense.15:23
*** kenperkins has joined #openstack-nova15:24
*** salv-orlando has joined #openstack-nova15:24
mriedemsavvas: that flag is checked in the compute service15:24
savvassmcginnis: yes that's what i noticed as well, but his suggested fix for cross_az_attach would/should help from my understanding15:24
mriedemnot scheduler15:24
mriedemnova-compute is what creates the volume15:25
mriedemsurprise!15:25
savvasoh I see so it is done on the compute nodes15:25
mriedemyeah - ideally conductor would do this, but...15:25
mriedemor even the api so we could fail fast15:25
smcginnissavvas: That will just allow it to be attached across AZs. But there is no way to have it created in the right AZ in the first place unless the right AZ is the default one.15:25
mriedemi've wanted that for a long time15:25
savvassmcginnis: right that's what i figured, is there any way around that?15:26
*** adisky_ has quit IRC15:26
savvasmriedem: ye that would make much more sense15:26
*** jwcroppe has joined #openstack-nova15:26
mriedemwe've also talked about changing the cinder reserve (now attachment_create) api to take an AZ and fail if it doesn't exist, something like that15:26
mriedemso we could fail early in the api15:26
mriedemwhen reserving the volume15:26
mriedemsmcginnis: setting cross_az_attach=False will make nova pass the instance az to cinder when creating the volume15:27
mriedemif that az doesn't exist in cinder, it will fail15:27
*** belmoreira has quit IRC15:27
mriedemand you'll get an instance in ERROR state and NoValidHost, because we don't do retries during bfv15:27
mriedembfv == boot from volume15:27
smcginnismriedem: Ah, missed that part.15:27
mriedemhttps://github.com/openstack/nova/blob/81bdbd0b50aeac9a677a0cef9001081008a2c407/nova/virt/block_device.py#L8015:27
mriedemnow don't forget that cinder has allow_availability_zone_fallback15:28
mriedemwhich is yet another terrible wrinkle in this mess, and should probably be deleted15:28
mriedemas it was a hack workaround for some bug in nova, which i think we fixed15:28
smcginnisThat was actually the one I was thinking of.15:28
savvasmriedem: your cross_az suggestion does seem to fix it when explicitly selecting a zone to create the instance in15:29
mriedemallow_availability_zone_fallback=True means (i think) if nova says create the instance in this az but that az doesn't exist, don't fail15:29
mriedemsavvas: cool15:29
smcginnisThat was actually an end user request where they didn't care about nova AZs matching cinder AZs.15:29
*** felipemonteiro_ has quit IRC15:29
mriedemso if you set allow_availability_zone_fallback=True in cinder and cross_az_attach=False in nova, you're just screwing your users15:29
*** arunman has quit IRC15:29
mriedemsmcginnis: then they should have set cross_az_attach=False (or left the default)15:29
mriedemsorry, True15:30
*** salv-orlando has quit IRC15:30
mriedemcross_az_attach=True by default, which means we don't care15:30
savvasmriedem: now from a production perspective, it would make sense to have nova define the best pool to provision though. Any suggestions for that? To create an instance with the "any availability zone" selected or via cli left blank?15:30
mriedemi'm fairly certain that when i wrote https://github.com/openstack/nova/blob/81bdbd0b50aeac9a677a0cef9001081008a2c407/nova/virt/block_device.py#L80 it was to fix a bug which was hacked around by allow_availability_zone_fallback in cinder15:30
*** nicolasbock has joined #openstack-nova15:30
*** awaugama_ has joined #openstack-nova15:31
mriedemsavvas: if you don't need to be in a specific az, then you don't specify one15:31
*** Oku_OS is now known as Oku_OS-away15:31
mriedemsmcginnis: we (and by we i mean you or one of your henchmen) should investigate removing allow_availability_zone_fallback15:31
mriedemvia deprecation first of course15:31
savvasmriedem: right, but then creation fails as it will try to put the volume in nova again15:31
mriedemsavvas: i don't understand that statement15:31
mriedemyou mean if you set cross_az_attach=False?15:31
savvasyour cross_az_attach fixed that when I define an AZ, it will grab the right volume zone15:31
savvasbut if I don't define/select an AZ to create the instance in15:32
savvasit still fails15:32
mriedemsavvas: the default instance az in nova matches the default volume az in cinder15:32
mriedemwhich is 'nova'15:32
smcginnismriedem: Well, there's the non-Nova case to account for too. So I think it's still needed. You just can't misconfigure your nova and cinder settings like that.15:32
cdentmelwitt, edleafe: in case it wasn't clear from my posting, I totally prefer a new porcelain api over transitioning the existing cruft. Was merely trying to pose an alternative/observation/etc. But as sdague eloquently pointed out in #openstack-dev last night, unless we put some muscle behind it, it is for naught. Got spare muscle?15:32
mriedemsmcginnis: psh non-nova case15:32
*** itlinux has quit IRC15:33
mriedemsmcginnis: allow_availability_zone_fallback is also not interoperable15:33
smcginnismriedem: Not sure I follow what you mean.15:33
savvasmriedem: right, however leaving that blank is what would leave nova to determine the best node to spawn the instance on right? This would be a desirable feature when automating provisioning tasks15:33
mriedemsmcginnis: on one cloud i can create a volume with az=foo even though it doesn't exist, on another cloud i can't create a volume in az=foo because it doesn't exist and it's enforced15:33
edleafecdent: I know that you were just being hypothetical15:33
mriedemsmcginnis: it's per-cloud configurable API behavior15:33
edleafecdent: And no, no spare muscles at the moment :)15:33
mriedemwhich is by definition not interoperable15:34
*** awaugama has quit IRC15:34
cdentnot so much hypothetical as omnithetical15:34
sdaguecdent: I also think it's far more work than people imagine. Even the code itself is a lot of work, but in lessons learn from nova v3 and the current api-ref effort, the code is only a small amount of the total work15:34
cdentsdague: no dispute15:34
smcginnismriedem: If that's the concern, we have much bigger fish to fry than AZ enforcement.15:35
mriedemsmcginnis: maybe i should propose a deprecation patch in cinder and people can discuss i there15:35
mriedemsmcginnis: it's also complexity15:35
mriedemwhich the foundation is apparently caring about now15:35
*** arunman has joined #openstack-nova15:35
mriedemhell, even thingee might get behind this15:35
smcginnismriedem: And deprecate the nova option too?15:35
*** yamahata has joined #openstack-nova15:35
mriedembeing foundation + cinder guy15:35
mriedemsmcginnis: which one?15:35
*** aarefiev is now known as aarefiev_afk15:35
mriedemcross_az_attach?15:35
smcginnismriedem: Yep.15:35
*** itlinux has joined #openstack-nova15:36
smcginnismriedem: Same argument, if that is set on one cloud and not another, you get different behavior.15:36
mriedemi'd like to15:36
*** MVenesio has quit IRC15:36
mriedemtrue15:36
mriedemyou know what,15:36
jmloweI think I've botched adding cellsv2, I'm on newton15:36
sdaguecdent: and, the reference point that everyone keeps referencing is git, which isn't doing those calls over a network, with a token validation in the middle. I'm not actually sure how applicable a porcelain approach is to REST services. It's at least a research project to even figure it out15:36
*** mtanino_ has joined #openstack-nova15:36
mriedemwe should just allow passing all of the things you need to create a volume in to nova,15:36
mriedemvolume type,15:36
mriedemvolume az,15:36
mriedemvolume qos15:36
mriedemeverything15:36
jmlowenova list shows an instance, nova delete sayas it's not there15:36
cdentjmlowe: did you show it some bourbon?15:36
mriedemjmlowe: sec15:37
smcginnismriedem: There are some who would be in favor of that.15:37
edleafesdague: writing an SDK is sort of like writing a porcelain wrapper (but much simpler), and that was a LOT of work15:37
mriedemjmlowe: see #3 https://docs.openstack.org/developer/nova/cells.html#faqs15:37
jmlowecdent: I'm going to need some bourbon to steady my nerves here in a minute if I don't figure this out15:37
mriedemjmlowe: if that fixes your problem, i can die happy15:37
edleafecreating a full orchestrator would be an order of magnitude more15:37
sdaguemriedem: that might be a good nova-status check15:39
jmlowewait, so --cell_uuid is the source not the destination?15:39
mriedemjmlowe: do you have a single nova database?15:39
jmlowethat may have been my gross conceptual error15:39
mriedemi.e. you're not using cells v1?15:39
mriedemsdague: yeah maybe, would have to think about it15:40
* mriedem is putting his fingers in too many pots this morning15:40
sdaguemriedem: anyway, faq is great15:40
*** Sukhdev has joined #openstack-nova15:40
mriedemjmlowe: i'm assuming you have a basic deployment with 2 cells, cell0 and cell115:40
sdagueffaq items probably moving into "am I ok" checks is better15:40
mriedemsdague: sure, but faq is cheap and easy today15:41
sdagueyep15:41
mriedemjmlowe: nova-manage cell_v2 list_cells15:41
*** hshiina has quit IRC15:41
jmloweran the simple setup, figured out I forgot to create a new db for cell0, created db, did map_cell0/map_cell_and_hosts/map_instances15:41
mriedemwill tell you what you have setup, i'm guessing there are 2 entries15:41
mriedemok, when you run map_instances, it should be pointing at the non-cell0 cell15:41
mriedemwhich is your existing main 'nova' database15:41
mriedemwith the instances15:41
jmloweyep, ok, that was not what I was doing15:42
*** mikal_ has joined #openstack-nova15:44
*** trinaths has joined #openstack-nova15:45
jmloweso that I can stop panicking, is there a way to go back to no cells in newton?15:45
*** mikal has quit IRC15:47
mriedemi don't think nova-manage cell_v2 delete_cell existed in newton,15:47
mriedemi mean you could hack the db,15:47
mriedembut honestly i can't really advise how to rollback15:47
mriedemjmlowe: i think the reason you're getting the 404 on instance delete is because the instance isn't mapped to the cell probably15:47
*** jaypipes has quit IRC15:47
mriedemwe might not have had the list_cells command either - you'd have to see what's in the nova_api db cell_mappings table15:48
mriedemare there 2 entries in there?15:48
jmlowethere are two in there15:48
mriedemok, one is pointing at your nova_cell0 db?15:48
mriedemand the other is pointing at your nova db?15:48
*** tbachman has joined #openstack-nova15:48
*** lyan has quit IRC15:48
jmloweok, did map_instances, this time with the correct uuid, no luck with nova show15:48
*** mnestratov has quit IRC15:48
*** sree has quit IRC15:49
mriedemdo you see the uuid for the instance in the nova_api.instance_mappings table?15:49
mriedemsavvas: i'm not sure how that is going to affect this - yes nova will pick a host which may be in an AZ, but i didn't think we set instance.availability_zone in that case if the user didn't explicitly request an az15:50
*** mvk_ has joined #openstack-nova15:50
jmlowehttp://paste.openstack.org/show/610573/15:50
*** Sukhdev_ has joined #openstack-nova15:50
mriedemsavvas: is this at all related to what you're seeing? https://bugs.launchpad.net/nova/+bug/149725315:50
openstackLaunchpad bug 1497253 in OpenStack Compute (nova) "different availability zone for nova and cinder when AZ is not explicitly given" [Low,In progress] - Assigned to Roman Podoliaka (rpodolyaka)15:50
*** lyan has joined #openstack-nova15:51
*** salv-orlando has joined #openstack-nova15:52
mriedemjmlowe: right so 0bbfb73d-f761-4c43-ad72-ab47a559615e is your main cell15:52
mriedemwith the nova db15:52
*** fragatina has joined #openstack-nova15:52
*** trinaths1 has joined #openstack-nova15:52
jmlowecorrect, I did 'nova-manage cell_v2 map_instances --cell_uuid 0bbfb73d-f761-4c43-ad72-ab47a559615e'15:52
mriedemjmlowe: is there an entry in the nova_api.instance_mappings table with the instance uuid you're looking for and cell 0bbfb73d-f761-4c43-ad72-ab47a559615e ?15:52
*** itlinux has quit IRC15:52
savvasmriedem: yes, let me explain why I would like to have nova determine the best node. Basically these would be nodes with local ssd storage, not clustered. So I want instances to have volumes on their own hypervisors but all hypervisors serve the same purpose. Therefore when an instance is to be created, all AZs would qualify and based on available resources nova should determine which AZ to pick. Now I figured if you don't15:53
savvas explicitly define the AZ, it will trigger nova to determine the best candidate, however that action fails as it will try to create the volume in the default "nova" AZ again15:53
*** trinaths has quit IRC15:54
mriedemsavvas: does this patch fix your issue? https://review.openstack.org/#/c/225119/15:55
savvasso your cross_az_attach fix works like a charm when explicitly defining an AZ, but not when trying to let nova determine the best AZ/node15:55
jmlowehttp://paste.openstack.org/show/610574/15:55
savvasmriedem: YES! That looks exactly like it15:55
savvasmriedem: thanks for the help!15:56
*** lucasxu has quit IRC15:56
mriedemsavvas: so where does the failure actually happen? on the cinder side?15:56
jmloweyes, the particular instance I'm after is present in the instance mappings mapped to cell015:57
jmloweis it a problem that there is no transport url for cell0 in cell_mappings?15:57
*** salv-orlando has quit IRC15:57
savvasmriedem: well cinder works just fine, it does what it is beign told. Nova's just not telling cinder which AZ to use if you don't explicitly define the AZ for instance creating15:57
mriedemjmlowe: the problem is the instance is mapped to cell015:58
jmloweyes15:58
openstackgerritAndrey Volkov proposed openstack/nova master: [placement] Add api-ref for resource classes  https://review.openstack.org/46759615:59
*** Apoorva has joined #openstack-nova15:59
savvasmriedem: https://review.openstack.org/#/c/225119/ this right here what you just sent me is exactly what I am seeing15:59
mriedemjmlowe: so i think what probably happened was, the instances got mapped to cell0 by mistake, somehow, i'm not sure how - but now when you run map_instances with the correct cell 0bbfb73d-f761-4c43-ad72-ab47a559615e it does nothing b/c they are already mapped,15:59
*** yamahata has quit IRC16:00
jmloweshould the database connection for cell0 and the legacy nova be different?16:00
mriedemjmlowe: so i think you basically need to purge your instance_mappings table16:00
mriedemjmlowe: they should be separate databases yes16:00
mriedemyou will have 3 separate databases: nova_api, nova_cell0 and nova16:00
jmloweok, just checking16:00
mriedemso i think you need to purge the instance_mappings table, and then re-map with the proper cell uuid 0bbfb73d-f761-4c43-ad72-ab47a559615e16:00
jmloweno harm in ' delete from instance_mappings;' ?16:01
mriedempurging that table shouldn't be a problem since it's all wrong anyway16:01
mriedemdansmith: right? ^16:01
dansmithyeah16:01
*** fragatina has quit IRC16:01
jmlowererunning mapping16:01
mriedemsavvas: ok can you reply to the question i put in the commit messagE?16:01
*** jaypipes has joined #openstack-nova16:02
mriedemsavvas: i.e. the volume gets created successfully but in the default 'nova' AZ,16:02
mriedemwhich is different from the explicit non-default AZ that the instance is in,16:02
mriedemand that's the bug, right?16:02
mriedembut the boot request doesn't actually fail?16:02
savvasno the boot request is accepted, it then tries to create a volume in AZ nova (default), when it fails it removes the attempted volume creation and leaves the new instance in error state16:03
*** nic1 has joined #openstack-nova16:03
*** awaugama_ has quit IRC16:03
*** felipemonteiro has joined #openstack-nova16:04
mriedemsavvas: so is nova actually passing availability_zone='nova' to cinder when creating the volume?16:04
mriedemor None?16:04
savvasI believe it selects nova for it not being defined, but I can't tell for sure16:04
mriedemedleafe: in the absence of bauzas, can a compute host live in more than one AZ?16:04
savvasI've been using openstack for a week so I am still finding my way ;)16:04
mriedemsavvas: that's kind of important, because if nova is passing az=None then it's a different issue16:04
mriedemsavvas: you're a pro now16:04
mriedemcongratulations16:05
edleafemriedem: nope16:05
mriedemok, but a compute host can be in more than one host aggregate16:05
mriedemthat's where i get confused16:05
edleafesure16:05
edleafeyes, it's very terrible16:05
*** fragatina has joined #openstack-nova16:05
mriedemhttps://docs.openstack.org/developer/nova/aggregates.html16:05
mriedem"one host can be in multiple aggregates, but it can only be in one availability zone"16:05
mriedemi guess i should have read the manual16:06
*** fragatina has quit IRC16:06
savvasmriedem: | OS-EXT-AZ:availability_zone          |16:06
savvasit leaves the zone empty when not defined16:06
*** nic1 is now known as nic16:06
savvasso it doesn't explicitly pass on nova16:06
*** r-daneel has joined #openstack-nova16:06
*** fragatina has joined #openstack-nova16:06
*** awaugama has joined #openstack-nova16:06
mriedemsavvas: ok so i don't see why the volume creation fails then16:07
mriedemif nova isn't passing an AZ, cinder will create the volume in it's default AZ, which is 'nova'16:07
mriedemi can see why / how the instance and volume can get into different AZs here, which is a bug16:08
savvasmriedem: exactly, I don't have any cinder-volumes available in nova though16:08
savvasright now I have 3 hypervisors setup in my test environment, all 3 in separate aggregates with separate storage zones16:08
savvasin my case it looks like this:16:08
savvashost-aggregate hv01-zone, has 1 member, hv0116:08
savvascinder on hv01 has storage/default zone set to hv01-zone16:09
savvasand I follow the same structure for hv02 and hv0316:09
savvasbut the default nova group has no usable cinder volumes available in my setup16:09
*** thorst has joined #openstack-nova16:09
savvasso when the AZ is not defined, it fails16:09
mriedemare you setting storage_availability_zone in cinder.conf on your 3 storage nodes?16:10
*** Yangyapeng has quit IRC16:10
*** brault has quit IRC16:10
mriedemi don't really know how cinder handles the AZs on their side16:10
mriedemso i don't know what the actual error looks like when creating the volume on the cinder side,16:11
mriedemif you have those details you could put them in that bug16:11
*** kylek3h_ has joined #openstack-nova16:11
savvasmriedem: yes, they are all on all 3 nodes16:12
jmloweok, looking much better16:12
mriedemjmlowe: sweet16:12
mriedemrpodolyaka: can you explain where we fail with https://review.openstack.org/#/c/366724/ during boot?16:12
mriedemis it during attach?16:12
*** salv-orlando has joined #openstack-nova16:12
*** vks1 has quit IRC16:12
mriedemsavvas: the volume gets created successfully though right? but then something else fails?16:13
*** kylek3h has quit IRC16:14
savvasmriedem: when the AZ upon instance creation is defined, yes. When the AZ upon instance creation is not defined, then no. When I create a volume manually via the CLI in the nova zone (so create a volume without defining AZ), it creates just fine16:15
mriedemi think i see it16:15
jmloweI blame my complete lack of reading comprehension on my new monitor where the text is all very small and cannot be increased lest it injure my pride16:15
savvasmriedem: let me correct that, the creation fails, sorry it accepts the command but it fails to create16:16
mriedemjmlowe: so now that you've gone through this, it would be interesting to know which docs you read before you started upgrading16:16
mriedemsavvas: i think it fails here https://github.com/openstack/nova/blob/master/nova/virt/block_device.py#L36816:16
savvaswhich in my opinion is logical behavior since there are no cinder-volume services running in the nova zone16:16
*** dikonoor has quit IRC16:16
*** udesale has quit IRC16:16
jmloweI half read this https://docs.openstack.org/releasenotes/nova/newton.html16:16
*** trinaths1 has quit IRC16:17
mriedemjmlowe: did you see any of https://docs.openstack.org/developer/nova/cells.html#upgrade-minimal ?16:17
jmlowewasn't really thinking about what I was doing, was irritated by the cells0 db missing warning from nova-manage db sync16:17
mriedem^ is really the page with the basic instructions on upgrading to cells v216:18
mriedemso it'd be good info to know if people aren't aware of it, or it doesn't make sense in some parts, or there are things missing16:18
jmloweno, and that warning about the db name would definitely save me some headaches16:18
mriedemwhich warning?16:18
mriedemoh i see16:18
mriedemin the doc16:18
mriedemyeah, so simple_cell_setup defaulting the cell0 db name to nova_api_cell0 is a bug16:19
savvasmriedem: I don't think so but i could be mistaken. To me it looks like a bug in determining where to deploy. If you explicitly define a zone, it will grab the right storage az. If you don't define a zone, it will grab an available HV AZ but it won't grab its corresponding available storage az16:19
jmloweso I'm still a little concerned that my transport_url for cell0 is none:///16:19
jmloweis that really not a problem?16:19
dansmithjmlowe: yeah, that's wrong16:20
dansmithjmlowe: you'll fail when some instance doesn't schedule if tat16:20
dansmithjmlowe: but you don't need to do anything other than fix that record at this point.. no need to remap or anything16:20
dansmithoh16:20
dansmithsorry16:20
dansmithtransport_url16:20
mriedemthat's normal16:20
dansmithyeah, there's no transport for cell016:20
dansmithyeah sorry, was thinking database16:20
mriedemcell0 is a db which is a graveyard for instances that failed to schedule16:21
jmloweah, ok that makes more sense16:21
mriedemmaybe, "Why is the transport_url for cell0 none:/// ?" should be in the FAQs16:21
mriedemsavvas: i've asked in https://review.openstack.org/#/c/366724/ which is the current proposed fix for the bug,16:22
mriedemat this point i really need a clear idea of what the actual failure is, either in reply to that question in the patch or in the bug report16:22
mriedembut we're kind of going in circle16:22
mriedem*circles16:22
*** thorst has quit IRC16:23
mriedemi understand there is a problem, but i'd like to make sure i understand the problem before reviewing a fix, and i'd also like to consider some integration testing for this since it's complicated16:23
*** ltomasbo is now known as ltomasbo|away16:23
*** pcaruana has quit IRC16:24
*** gianpietro has joined #openstack-nova16:25
*** bkopilov has quit IRC16:25
*** thorst has joined #openstack-nova16:26
*** annegentle has quit IRC16:26
savvasmriedem: alright let me see how I can get a more conclusive answer for you16:27
*** annegentle has joined #openstack-nova16:27
*** dtp has joined #openstack-nova16:28
*** lpetrut has quit IRC16:31
*** Apoorva_ has joined #openstack-nova16:32
mriedemjmlowe: btw i'm sort of working on backporting that cell0 db name fix to newton https://review.openstack.org/#/c/420461/ but it gets a bit complicated, and at this point i'm not sure if it helps anyone or not, but i'd surely like to help avoid people from falling into this trap in the first place where they have a nova_api_cell0 db in newton and then need to rename that to nova_cell0 in ocata16:33
*** efoley_ has joined #openstack-nova16:33
savvasmriedem: in my cinder scheduler log I caught this :  default default] No weighed backend found for volume with properties: None.16:33
savvasafter attempting to create an instance without defining the AZ16:33
*** Apoorva has quit IRC16:34
savvasso nova passed on the None value for the AZ to cinder I guess16:34
*** sambetts is now known as sambetts|afk16:34
*** bkopilov has joined #openstack-nova16:34
mriedemjmlowe: thoughts on that? would that at least be helpful to give people in the operators ML a heads up?16:34
*** gianpietro has quit IRC16:35
mriedemsavvas: right and i'm saying that's no different from the case that cross_az_attach=True, which is why i don't think it would result in the volume create failing16:35
mriedemso i think there is something else happening16:35
*** abalutoiu has joined #openstack-nova16:36
*** gianpietro has joined #openstack-nova16:36
savvasmmm, any thoughts as to where I should be looking? I've been tailing the nova and cinder logs to see what happens when I call for a nova boot16:36
*** efoley has quit IRC16:37
*** nicolasbock has quit IRC16:37
savvasmriedem: either way, I'll keep working on it, if I find anything useful I'll be sure to let you know. Thanks for your time!16:38
mriedemsavvas: if the instance goes to error state, it's mostly likely something failing in the nova-compute logs16:39
savvasmriedem: ye from those logs I only find the error I initially reported: BuildAbortException: Build of instance 9484f5a7-3198-47ff-b728-178515a26277 aborted: Block Device Mapping is Invalid.16:41
mriedemsavvas: ok i think that's resulting from https://github.com/openstack/nova/blob/81bdbd0b50aeac9a677a0cef9001081008a2c407/nova/virt/block_device.py#L36816:42
*** annegentle has quit IRC16:42
mriedemsavvas: don't you see a traceback from here? https://github.com/openstack/nova/blob/81bdbd0b50aeac9a677a0cef9001081008a2c407/nova/compute/manager.py#L159316:42
mriedemwow i guess we really don't try to help out with the error message in this ase16:43
mriedem*Case16:43
savvasmriedem:16:44
savvas2017-05-24 16:33:26.127 2331 ERROR nova.compute.manager [req-b5388b21-5f75-4946-8ace-56cd91ebdc72 be0e3c8d93f345a6889e76d1507ba130 7509210fbb1a4e30bf62d81aa3b4e369 - - -] [instance: 9484f5a7-3198-47ff-b728-178515a26277] Instance failed block device setup16:44
mriedemsavvas: there should be a traceback16:44
mriedemplease put that into a paste and link here16:44
mriedemit's using LOG.exception which will traceback16:44
savvasye grabbed this with cat, looking it up now16:44
savvashttp://paste.as47869.net/p/9qbburh7z3w3toi16:45
*** annegentle has joined #openstack-nova16:46
mriedemVolumeNotCreated: Volume da947c97-66c6-4b7e-9ae6-54eb8128bb75 did not finish being created even after we waited 3 seconds or 2 attempts. And its status is error.16:49
mriedemthat is a different issue16:49
jaypipesgosh darn it...16:49
*** slaweq has joined #openstack-nova16:49
mriedempenick: ^ is why bfv is awful16:49
mriedemsavvas: you're failing in here https://github.com/openstack/nova/blob/81bdbd0b50aeac9a677a0cef9001081008a2c407/nova/compute/manager.py#L122216:50
mriedemit's timing out waiting for the volume that nova created to be available so it can attach it to the instance16:50
mriedemyou probably need to setup image cache on the cinder side, and tweak the timeout values on the nova compute side16:50
*** mingyu has joined #openstack-nova16:50
*** lucasxu has joined #openstack-nova16:51
penickIs its disease of awfulness irreparable?16:51
smcginnisLarger images may take a long time.16:51
savvasmriedem: the volume fails to create though16:52
*** efoley__ has joined #openstack-nova16:52
savvasit fails instantly, as it tries to do so in an AZ which isn't available16:52
mriedemsavvas: does the volume go to error state?16:52
savvasyes16:52
mriedemsavvas: but i thought nova was passing az=None when creating the volume?16:52
savvascorrect16:52
*** salv-orlando has quit IRC16:53
*** slaweq has quit IRC16:53
savvaswhich leads cinder to attempt and create the volume in the default az of "nova"16:53
savvaswhich fails16:53
mriedemmy head is going to explode16:53
*** slaweq has joined #openstack-nova16:53
openstackgerritJay Pipes proposed openstack/nova master: integrate trait cache with TraitList and Trait  https://review.openstack.org/46277016:53
mriedemok, so is the problem that things get more strict on the cinder side when you actually have AZs in cinder?16:53
mriedembecause if you don't have az's in cinder, you can create volumes w/o an az (by default in the nova az) just fine16:54
mriedembut once you add an az, cinder won't allow that anymore?16:54
savvasye I am sorry if I am making you go in circles here, like I said my lack of exp isn't helping much either I am sure16:54
mriedemby the way, we should totally get that VolumeNotCreated error into https://github.com/openstack/nova/blob/81bdbd0b50aeac9a677a0cef9001081008a2c407/nova/compute/manager.py#L1595 which is fed back up and goes into the instance fault16:54
*** efoley_ has quit IRC16:55
mriedemsavvas: don't worry about it, you're doing great - i obviously don't know how anything works here either :)16:55
mriedemwhat i'd like to do is know a simple recreate so i can write a tempest test for this16:55
kashyapDoes anyone know for sure, about whether the double quotes are *mandatory* when you specify a key-value in a Nova config attribute as following:16:56
kashyap        [libvirt]16:56
kashyap        hw_machine_type="x86_64=pc-i440fx-rhel7.2.0"16:56
savvasI run 3 cinder volume servers, each with their own AZ. The controller has no storage/default AZ defined16:56
* kashyap knows for sure that using double-quotes works. However, checking if it's mandatory16:56
savvasmriedem: as in steps to reproduce this error?16:56
*** salv-orlando has joined #openstack-nova16:57
*** derekh has quit IRC16:57
mriedemsavvas: i think just even knowing if you can create a volume in cinder w/o specifying AZ if there is a non-default AZ defined, just one16:57
*** Sukhdev_ has quit IRC16:57
savvasno, that doesn't work. At this stage I HAVE to specify an AZ16:57
jmlowemriedem: yeah, I'm going to trip over this later16:57
*** mlakat has quit IRC16:57
mriedemsavvas: huh, ok, figured cinder would allow it if az isn't specified16:58
mriedemsmcginnis: jgriffith: ^ is that by design?16:58
mriedemhell it might even be how nova does it but i'm not sure16:58
*** mingyu has quit IRC16:58
smcginnismriedem: Didn't follow everything, but are you saying if AZ is None, Cinder fails the call?16:58
mriedemsmcginnis: is there is a non-default AZ defined in cinder16:59
mriedemso if i create az=foo in cinder,17:00
mriedemdo i have to create all volumes explicitly in that az now?17:00
smcginnismriedem: I didn't think so.17:00
smcginnisChecking...17:00
* kashyap answers his own: Since it's a comma-separated key-value pair, I don't need the double quoting.17:01
smcginnisSo if storage_availability_zone is set to something other than the default, you may need to also update default_availability_zone. Still looking though.17:01
*** salv-orlando has quit IRC17:02
savvassmcginnis: I have both values set on each node running cinder-volume service17:02
mriedemdansmith: are we supposed to be in meeting-3 for cells?17:02
mriedemand the interop guys are going long?17:02
smcginnissavvas: So both are set to unique values, but if None is passed in for AZ it fails?17:02
*** lucasxu has quit IRC17:03
savvassmcginnis: I have both set to the zone available to the node. I run nova compute and cinder volume on the same host for this purpose. So hv01 would have default/storage_availability_zone set to hv01-zone, hv02 to hv02-zone and so on17:03
mriedemi think that's wrong17:04
mriedemi think default_availability_zone is supposed to be global17:04
savvasas these hypervisors are supposed to be dependent of their local storage, they shouldn't be looking to place volumes in any other zones17:04
melwittmriedem: yeah on my calendar we should have a cells meeting right now17:04
mriedemthat's what storage_availability_zone is for,17:05
mriedemand it overrides default_availability_zone17:05
mriedemis my understanding17:05
mriedem'Default availability zone for new volumes. If not set, '17:05
mriedem                    'the storage_availability_zone option value is used as '17:05
mriedem                    'the default for new volumes.'17:05
smcginnissavvas: So still looking for details, if None is passed in for AZ it fails?17:06
savvasmriedem: ye but let's say I put default_availability_zone to "nova", wouldn't that result in volumes floating across the nodes? I am trying to isolate the volumes to the nodes that serve the instances17:07
*** lucasxu has joined #openstack-nova17:07
savvassmcginnis: sorry, yes if None is passed for AZ, it fails17:07
mriedemsavvas: i think the point is you don't set a default_availability_zone value17:07
*** djohnsto has joined #openstack-nova17:07
mriedemsetting to 'nova' and leaving unset is probably handled differently in the cinder code17:07
smcginnismriedem: Oh yeah, that's cinder-wide, not per-backend.17:08
mriedemright, that's what i said above, it's global17:08
savvasmmm17:08
mriedemstorage_availability_zone is per node17:08
mriedemdefault_availability_zone is global17:08
savvasso this value should not be set on the cinder-volumes17:08
mriedembackend_availability_zone is per backed per nod17:09
mriedem*node17:09
mriedemsavvas: i don't think so no17:09
mriedembut, i'm not entirely sure, hence roping in smcginnis17:09
djohnstomriedem: Any thoughts on how to resolve this bug - seems to be disagreement with the fix 19304717:09
*** thorst has quit IRC17:09
mriedemdjohnsto: which bug?17:09
mriedemoh https://review.openstack.org/#/c/193047/17:10
djohnstoYep.17:10
smcginnissavvas: I can try to test this out later, but try removing those conflicting default_availability_zone values.17:10
mriedemdjohnsto: in a meeting now,17:10
mriedemthat probably needs to be in the mailing list17:11
mriedemas it's a change in behavior17:11
djohnstoOk17:11
*** arunman has quit IRC17:11
*** gjayavelu has quit IRC17:12
savvassmcginnis: I removed it but it didn't change anything in terms of the volume create command failing when AZ is not defined17:14
smcginnissavvas: OK, will have to look in to it then.17:14
*** links has quit IRC17:16
*** mvk_ has quit IRC17:17
savvassmcginnis: appreciate it17:17
mriedemsavvas: you restarted the services after changing the config right?17:19
*** mvk has quit IRC17:22
*** efoley__ has quit IRC17:22
savvasmriedem: yes17:23
*** jaosorior has quit IRC17:24
*** mingyu has joined #openstack-nova17:24
*** rmart04 has quit IRC17:25
*** thorst has joined #openstack-nova17:29
*** ijw_ has quit IRC17:30
*** thorst has quit IRC17:33
*** thorst has joined #openstack-nova17:33
*** logan- has quit IRC17:34
*** logan- has joined #openstack-nova17:35
*** Apoorva_ has quit IRC17:38
*** Apoorva has joined #openstack-nova17:38
*** fragatina has quit IRC17:39
*** gszasz has quit IRC17:39
*** kenperkins has quit IRC17:42
*** Sukhdev_ has joined #openstack-nova17:46
*** ralonsoh has quit IRC17:48
*** salv-orlando has joined #openstack-nova17:49
mriedemanyone remember when the guy in the nova onboarding session asked how he knows if an instance variable is a dict or an object or something else?17:53
*** mvk_ has joined #openstack-nova17:53
mriedemsame question, but block_device_mapping17:53
*** _danpawlik has joined #openstack-nova17:53
mriedemis a list, is it a single thing? dict or object? if object, which type of object?17:53
mriedemsuper fun17:53
melwittI remember17:54
artommdbooth wrote a thing about that17:54
artomhttp://lists.openstack.org/pipermail/openstack-dev/2016-June/097529.html17:55
melwittand yeah. generally I've noticed, things are objects until you get into the virt driver, then a lot of things are dicts17:55
artomThe fact that you need a novel to understand wtf is concerning, but at least we now have this novel for posterity17:55
*** salv-orlando has quit IRC17:56
mriedem"as there is also something else typically called 'block_device_mapping' which is not a BlockDeviceMapping object."17:57
mriedemor a BlockDeviceMappingList17:57
mriedemwhich is the case in places17:57
mriedemsometime the actual variable is bdm passed to a method whose formal parameter name is bdms17:57
* artom hands mriedem a scalpel and points to his wrists17:58
mriedemha, wow17:59
artomNo no, I want to help :)17:59
mriedemwait, my wrists or yours?17:59
artomYes.18:00
*** thorst has quit IRC18:00
mriedemi was specifically looking at _prep_block_device18:00
mriedemwhich i think takes in a BlockDeviceMappingList18:00
*** ctrath1 has joined #openstack-nova18:00
openstackgerritLars Kellogg-Stedman proposed openstack/nova master: provide interface-scoped nameserver information  https://review.openstack.org/46769918:00
mriedemand through the magic of driver.get_block_device_info(instance, bdms) converst that list to a list of DriverBlockDevice objects18:00
mriedemwhich are wrappers around a BlockDeviceMapping objec18:00
mriedem*object18:00
*** ctrath has quit IRC18:04
*** jpena is now known as jpena|off18:04
*** tidwellr has joined #openstack-nova18:05
*** Sukhdev has quit IRC18:10
*** kaisers__ has quit IRC18:10
*** salv-orlando has joined #openstack-nova18:10
*** ijw has joined #openstack-nova18:13
*** gjayavelu has joined #openstack-nova18:17
*** thorst has joined #openstack-nova18:19
*** rmart04 has joined #openstack-nova18:21
*** salv-orlando has quit IRC18:22
tidwellrI'm probably grasping at straws, but is there a chance anyone here can make sense of this error http://paste.openstack.org/show/610594 seen on stable/mitaka?18:22
mriedemgmann: weren't you talking about something with hide addresses earlier today? ^18:23
*** gianpietro has quit IRC18:24
mriedemtidwellr: the instance isn't in the req cache for some reason https://github.com/openstack/nova/blob/stable/mitaka/nova/api/openstack/compute/hide_server_addresses.py#L6218:25
tidwellrmriedem: that's what it looks like to me, the question is why18:25
mriedemit should be cached here https://github.com/openstack/nova/blob/stable/mitaka/nova/api/openstack/compute/servers.py#L44318:25
mriedemso not sure18:25
*** READ10 has quit IRC18:26
mriedemunless the extension's show() method is processed before the instance is cached?18:26
mriedemsdague: ^ any idea how that craziness works?18:26
tidwellrwhat's weird is the user that reported this can run operations from the CLI just fine, but has an app that invokes the API directly and that is where we see this18:26
*** kaisers_ has joined #openstack-nova18:26
*** gianpietro has joined #openstack-nova18:27
tidwellrI'm wondering if it is related to auth/domains somehow, again I'm grasping at straws here18:27
*** Swami has joined #openstack-nova18:28
sdaguemriedem: I need you to summarize the question18:28
mriedemsdague: heh,18:28
mriedemhow do extensions work in the api :)18:28
artommriedem, what I'm seeing is that the instance is obtained here: https://github.com/openstack/nova/blob/stable/mitaka/nova/api/openstack/compute/hide_server_addresses.py#L6218:29
mriedemartom: it has to be None18:29
artomIs that from cache? Or is it missing from the bd18:29
mriedemit's not in the cache18:29
mriedemAttributeError: 'NoneType' object has no attribute 'get'18:29
mriedemsdague: do the servers extensions for show() happen after the actual servers controller is called?18:30
sdagueyes, iirc. This is mitaka?18:30
mriedemsdague: i.e. we do GET /servers/{server_id} and store the instance in the request cache here https://github.com/openstack/nova/blob/stable/mitaka/nova/api/openstack/compute/servers.py#L44318:30
mriedemyeah18:30
sdaguethat's my recollection18:30
sdaguetidwellr: what was going on before the stack trace?18:30
*** gianpietro has quit IRC18:30
mriedemi see other server extensions like for security groups handle this differently18:31
*** kaisers_ has quit IRC18:31
mriedemevery other extension does something like https://github.com/openstack/nova/blob/stable/mitaka/nova/api/openstack/compute/servers.py#L44318:32
mriedemoops18:32
mriedemreq.get_db_instance(server['id'])18:33
*** ctrath1 has quit IRC18:33
mriedemthey don't use the id parameter in the 'show' method18:33
tidwellrsdague: I've got a user who is making calls to v2.1/<project ID>/servers/<server ID>18:33
tidwellrin this case, it's a GET18:33
sdaguetidwellr: what kind of calls? GET calls?18:33
sdaguetidwellr: is it immediately after a POST?18:33
*** lyan has quit IRC18:34
*** ctrath has joined #openstack-nova18:34
tidwellrsdague: no, we're troublshooting this call against an instance that's been running for a while18:35
sdaguetidwellr: do you have any local custom extensions?18:35
tidwellrsdague: no, we don't18:35
sdaguehmmm18:35
*** lyan has joined #openstack-nova18:35
mriedemhttps://github.com/openstack/nova/blob/stable/mitaka/nova/api/openstack/wsgi.py#L61918:36
mriedemwhat are **action_args here?18:36
sdaguethat's basically the peek of the actions dict iirc18:37
mriedembut if this is a GET18:37
sdagueso it should be nothing18:37
mriedemok, so that would be the issue18:37
sdagueit really shouldn't be18:37
*** ayoung has quit IRC18:38
mriedemif id passed to the show() method is None https://github.com/openstack/nova/blob/stable/mitaka/nova/api/openstack/compute/hide_server_addresses.py#L6218:38
mriedemnote that every other show() extension gets the instance from the cache doing something like this https://github.com/openstack/nova/blob/stable/mitaka/nova/api/openstack/compute/config_drive.py#L5218:38
mriedemfrom the response object18:38
mriedemresp_obj.obj['servers']['id']18:38
sdaguemriedem: no, that's different18:40
sdaguehttps://github.com/openstack/nova/blob/d3297e2e73a2578ffc2987facf5b894667056f97/nova/api/openstack/compute/config_drive.py#L3218:40
*** kaisers_ has joined #openstack-nova18:40
sdagueget_db_instance goes into the request instance cache18:41
sdaguethat other thing is where it's munging the resp obj before it comes back18:41
sdaguetidwellr: is there anything notable before that part of the log?18:42
tidwellrsdague: let me take another look, not that I recall18:42
tidwellrjust a sec18:43
openstackgerritMatt Riedemann proposed openstack/nova master: Provide original fault message when BFV fails  https://review.openstack.org/46771518:43
tidwellrsdague: my logs are pretty quiet leading up this18:46
tidwellrsdague: it only shows up when the tenant makes the call to show the instance18:46
mriedemi don't know what would be different between CLI and a direct curl request to the api18:46
sdaguetidwellr: ..... why is the instance UUID uppercased?18:47
sdague5100C340-8967-4DB1-97F7-BFA1C155F25018:47
tidwellrthe difference I'm thinking is the way the user is getting a token18:47
*** lyan has quit IRC18:47
sdaguebecause, you know, that could actually totally cause this problem if that id is not case matched to the db id18:48
melwittmriedem: I was thinking I'm gonna just write a functional test that tests the counting across cells for server group members, without trying to do anything more complicated with scheduling. I'm thinking to try to set up two cell databases, put an instance in each that is associated with the same group, and see if the counting function returns the right thing18:48
sdaguebecause... mysql18:48
mriedemmelwitt: that's probably a good idea18:49
melwittcool18:49
dansmithmelwitt: not that you asked me, but I agree too :)18:49
tidwellrsdague: that makes sense, I hadn't noticed that :)18:50
mriedemah...18:50
melwittdansmith: votes of confidence always good :)18:50
sdaguetidwellr: yeh, I was just looking for things that seemed odd18:50
mriedemand because this extension is using the id from the request,18:50
* tidwellr puts palm on face18:50
mriedemand not what's in the resp_obj18:50
mriedemwhich could be different case18:50
sdaguetidwellr: no, it's like a legit nova bug18:50
sdagueit's just not an edge I've seen people cross18:51
dansmithsdague: not a legit bug, just *like* a legit bug, yes?18:51
* dansmith is being super helpful today18:51
mriedemtidwellr: can you report a bug?18:51
sdaguetidwellr: could you figure out if the user works if they use the lower case version of the uuid?18:51
tidwellrsdague: sure, I can do that18:51
mriedemthere is a simple fix i can think of, which is make that extension behave like the rest,18:52
sdaguemriedem: it is behaving like the rest18:52
sdaguemriedem: I'm trying to understand why you think it isn't :)18:52
*** itlinux has joined #openstack-nova18:52
mriedemhttps://github.com/openstack/nova/blob/stable/mitaka/nova/api/openstack/compute/hide_server_addresses.py#L62 is looking up the instance in the cache using the id parameter to the show() method18:52
mriedemwhich is passed in via the wsgi extension processing code, right?18:52
melwittmysql is case-insensitive by default, right? it's the request instance cache in the REST API that is case-sensitive (python)18:52
mriedemand i'm assuming is what came in on the request, the {server_id} part that is upper case18:53
sdaguemriedem: sure18:53
mriedemsdague: if you look at all of the other extensions, they do something like resp_obj.obj['server']['id']18:53
sdagueoh, right18:53
mriedemwhich is presumably the id for the server obj that's coming out of the db18:53
mriedemwhich is why it matches18:53
sdagueright, makes sense18:54
mriedemplease state that i'm correct for the record18:54
mriedemlet the record show18:54
mriedemetc18:54
sdagueheh18:54
mriedemtidwellr: can you get a bug reported?18:55
mriedemwe can backport to newton, but you're on your own for mitaka18:55
tidwellrmriedem: fair enough, I'll report the bug18:55
sdaguemriedem: you want to whip up the fix? or should I?18:57
tidwellrmriedem sdague: thanks for looking into this18:57
mriedemsdague: i can wip it18:57
mriedembtw, way to break s390x guys18:57
mriedem"it's all fun and games until s390 shows up"18:58
mriedemwhere is jlk when we need him?18:58
sdaguetidwellr: no prob. I would love to know why the client application was upper casing things18:58
sdaguemriedem: that the etcd thing?18:59
mriedemyeah18:59
sdagueit's a good thing that wasn't discussed on the mailing list for the last month19:00
mriedembut also something quotable from jlk back at the first meetup at intel, talking about zvm19:00
mriedemsdague: it actually caught a lot of people by surprise,19:00
mriedemnon-dev people19:00
sdaguemriedem: sure, but if you are going to be maintaining a non primary architecture, it seems like you should keeping an eye on things19:01
*** itlinux has quit IRC19:01
*** gjayavelu has quit IRC19:01
mriedemi don't actually care,19:01
mriedemi just thought it was kind of amusing19:01
sdagueheh19:02
mriedemnow that i'm no longer paid to care19:02
mriedem\oo/19:02
*** thorst has quit IRC19:02
mriedemwhoa19:02
mriedemthat came out wrong19:02
sdagueso, to be fair, there was all this work in the devstack patch that looked multiarch19:02
sdaguebut, then when I started to add sha256sums this morning19:02
sdagueI found that nothing except amd64 existed19:02
sdaguebut ship had sailed19:02
openstackgerritMatt Riedemann proposed openstack/nova master: Provide original fault message when BFV fails  https://review.openstack.org/46771519:03
*** eharney has quit IRC19:04
tidwellrsdague: well, it turns out the user has an app that was forcing the UUID to upper case19:05
sdaguetidwellr: heh19:06
melwittthere's an app for that19:06
sdaguetidwellr: is that changable?19:07
sdagueor is it going to be easier for you to patch openstack?19:07
tidwellrsdague: yes, I had them change their app to force everything to lower case and all is right in the world19:08
sdagueheh19:08
sdaguetidwellr: nice19:08
tidwellrsadgue: it would be nice if that was sanitized by nova, but that's pretty low on my priority list :)19:09
sdaguetidwellr: fwiw, this is the mitaka patch that would fix things https://gist.github.com/sdague/863d31d4dba44193c6095b21566cd7fa19:09
*** crushil has quit IRC19:09
sdaguetidwellr: it actually came up recently, our uuid validation is much looser than people realized, this is probably another instance of that19:09
*** rmart04 has quit IRC19:13
melwittbe careful with forcing everything to lowercase in clients though, we had a bug a long time ago in novaclient where it tried to lowerc flavor names but they could have been created with mixed case and could cause them not to be found in request cache https://bugs.launchpad.net/python-novaclient/+bug/144685019:13
openstackLaunchpad bug 1446850 in python-novaclient "flavor-show of mixed case flavorid fails" [High,Fix released] - Assigned to melanie witt (melwitt)19:13
mriedemmelwitt: what about mogan indeed http://git.openstack.org/cgit/openstack/mogan/tree/mogan/network/api.py#n12019:14
mriedemany of that look familiar?19:14
tidwellrsdague: thanks, I'll get a bug filed by EOD19:14
*** itlinux has joined #openstack-nova19:15
sdaguetidwellr: cool19:15
melwittmriedem: yes ... surprised they wanted to use that, heh19:15
*** eharney has joined #openstack-nova19:17
mriedemfinding out how to write a unit test for this hide_server_addresses thing is going to be the hard part19:17
sdaguemriedem: yeh, you can't use the real test condition, because sqlite goes case sensitive19:19
*** gianpietro has joined #openstack-nova19:22
sdagueI don't remember if we ever landed the patch to run real tests with mysql backend for the other case sensitive issues19:22
*** tbachman has quit IRC19:22
*** itlinux has quit IRC19:23
*** ckopper has joined #openstack-nova19:25
tidwellrsdague mriedem: https://bugs.launchpad.net/nova/+bug/169333519:26
openstackLaunchpad bug 1693335 in OpenStack Compute (nova) "UUID case sensitivity causing unfriendly and unexpected API errors" [Undecided,New]19:26
*** thorst has joined #openstack-nova19:26
*** crushil has joined #openstack-nova19:28
mriedemthanks19:29
*** tbachman has joined #openstack-nova19:30
*** thorst has quit IRC19:31
*** slaweq has quit IRC19:31
*** lpetrut has joined #openstack-nova19:31
*** slaweq has joined #openstack-nova19:31
ckopperHi! I am new to nova and openstack development, so I apologize in advance if this is the wrong place to ask or if there is a certain procedure for this. I have a local use case for OpenStack where we want to use PCI passthrough for consumer GPUs which works well in principle. However the NVidia driver checks if it is run within a VM and refuses to load for consumer cards if you don't set a certain KVM/qemu flag (`kvm=off`). I have a local patch19:33
ckopper that adds a flavor extra_spec `hw:hide_kvm` to set the correct options through libvirt and was wondering what the correct procedure to get this proposed for upstream was.19:33
ckopperThe patch itself is pretty trivial (mostly tests): https://gist.github.com/claudiok/5dd9fd01b9628e35f0b48884471e58cf19:33
ckopperI assume this needs a spec and blueprint and then submission to gerrit for review but I thought I would check here first19:34
openstackgerritSean Dague proposed openstack/nova master: WIP: request_id passing to neutron  https://review.openstack.org/46724219:34
*** rmart04 has joined #openstack-nova19:35
*** felipemonteiro_ has joined #openstack-nova19:36
*** rmart04 has quit IRC19:36
mriedemckopper: lucky for you someone is already working on that https://review.openstack.org/#/c/459753/19:38
*** masayukig has quit IRC19:38
*** abalutoiu_ has joined #openstack-nova19:38
ckopperHaha - I have to admit I searched for this but apparently missed this review19:38
mriedemsdague: yup, i have a functional test but b/c of sqlite, doing a GET /servers/id with upper-case returns 404 :(19:39
*** felipemonteiro has quit IRC19:39
*** mingyu has quit IRC19:39
*** itlinux has joined #openstack-nova19:39
sdaguemriedem: yep19:39
*** itlinux has quit IRC19:39
mriedemso, i'm not sure how to hack this19:39
*** slaweq has quit IRC19:40
sdagueso, there is the right way, which is figure out how to be able to run some tests against a mysql backend directly19:40
mriedemi could stub the pull from the db to change the case on what is returned from the db so what's in the cache is different from what's in the request19:40
sdagueright, please don't do that19:40
sdaguehonestly, any energy doing crazy stuff like that should be put into real mysql support in the test suite19:41
sdaguethe biggest issue was the way the magic oslo.db stuff worked for that iirc19:41
mriedemi'll poke19:41
sdagueit's honestly I think better to just ship the patch19:41
mriedemmaybe i can just extend test_base.MySQLOpportunisticTestCase19:41
sdaguemriedem: there was something weird about that when I tried19:41
melwitttoo bad there's not a sqlite pragma for that19:42
*** gianpietro has quit IRC19:42
sdaguemriedem: https://review.openstack.org/#/c/283364/ that's a restore of an attempt to go down that path19:43
*** abalutoiu has quit IRC19:43
sdaguemaybe it was working, but the fix never landed19:43
sdaguemriedem: the issue was about tricking engine fascade I think19:44
mriedemtrying it19:44
sdaguemriedem: anyway, that might be useful to build the pattern from19:44
mriedemwhich mysql package do we need?19:45
mriedemmysql-server?19:45
*** gianpietro has joined #openstack-nova19:45
mriedembindep has both the server and client19:46
mriedembut for some reason they fail to install on 16.0419:46
mriedemah here we go19:46
*** openstackgerrit has quit IRC19:48
ckoppermriedem: concerning the img_hide_hypervisor_id feature: there one more flag that needs to be set to hide the hypervisor for Windows VMs (not necessary for Linux). (<hyperv><vendor_id state="on" value="FakeID"/></hyperv>). Is this something that should go into a separate patch or would it be appropriate to add this as a comment to the current code review?19:49
*** salv-orlando has joined #openstack-nova19:49
ckopper(thanks again for pointing me to it!)19:49
mriedemckopper: please comment on the review19:49
ckopperthanks19:49
mriedemsdague: do you remember if you had to do any special creds tweaking with the mysql server or anything locally to get it to connect?19:52
mriedemi thought there was a special userid/password or something19:53
*** acormier_ has joined #openstack-nova19:53
mriedemah19:54
mriedemFor the opportunistic testing you need to set up db's named 'openstack_citest'19:54
mriedemwith user 'openstack_citest' and password 'openstack_citest' on localhost.19:54
*** lucasxu has quit IRC19:55
*** gianpietro has quit IRC19:55
*** ctrath has quit IRC19:55
sdagueyep, that19:55
mriedemalso, tools/test-setup.sh19:55
*** awaugama has quit IRC19:56
*** Apoorva has quit IRC19:56
*** lucasxu has joined #openstack-nova19:56
*** acormier has quit IRC19:56
*** gianpietro has joined #openstack-nova19:57
*** itlinux has joined #openstack-nova19:57
cdentmriedem, sdague, melwitt (whatever other cores are around): this https://review.openstack.org/#/c/456198/ is a fix to tooling used by the placement api-ref that makes the tooling work with multiple inc files instead of just one monolithic file. getting it merged will allow some placement api-ref work to proceed more easily without needing to be in the same stack19:58
sdague+219:59
cdentthanks19:59
*** gianpietro has quit IRC19:59
*** gianpietro has joined #openstack-nova20:00
*** ctrath has joined #openstack-nova20:00
*** _danpawlik has quit IRC20:00
cdentthanks melwitt and dansmith20:01
dansmithtwo +Ws means you skip the gate I think20:01
cdent\o/20:01
melwittheh, secret code20:01
* dansmith wishes20:01
*** lyan has joined #openstack-nova20:02
*** Apoorva has joined #openstack-nova20:03
*** acormier_ has quit IRC20:06
*** acormier has joined #openstack-nova20:06
mriedemsdague: EngineFacadeFixture isn't in nova, is that part of your patch series somewhere?20:08
mriedemhuh removed here20:09
mriedemhttps://review.openstack.org/#/c/434843/220:09
sdaguemriedem: yeh, so I guess there is an oslo.db solution now?20:10
mriedemyeah looking at ReplaceEngineFacadeFixture20:10
*** eharney has quit IRC20:11
mriedemit at least connected to my local mysql server which is progress20:12
*** _danpawlik has joined #openstack-nova20:13
*** smatzek has quit IRC20:13
melwittdansmith: is this true that online_data_migrations runs in the background after the command exits? someone working on a man page entry https://review.openstack.org/#/c/46463420:15
dansmithno20:15
melwittokay, I didn't think so20:16
mriedemthere is no scheduling20:16
mriedemor queueing20:16
dansmithwhich is kinda the point20:17
*** openstackgerrit has joined #openstack-nova20:18
openstackgerritKevin Benton proposed openstack/nova master: WIP: Bulk query floating IPs in _nw_info_get_ips  https://review.openstack.org/46579220:18
*** itlinux has quit IRC20:18
*** liverpooler has quit IRC20:19
mriedemi'm lost as to how to use the oslo.db opportunistic test fixture stuff20:21
melwittthis is all I found about it https://specs.openstack.org/openstack/oslo-specs/specs/kilo/long-lived-transactionalized-db-fixtures.html#opportunistic-urls20:24
sdaguemriedem: if you put up a partial patch, I might play in the morning20:26
mriedemok yeah b/c i'm going to have to give up on this soon20:27
*** slaweq has joined #openstack-nova20:28
sdaguethat's fine, having something to chew on over coffee in the morning is usually useful20:28
*** peter-hamilton has quit IRC20:30
*** ayoung has joined #openstack-nova20:31
*** lyan has quit IRC20:31
*** kylek3h_ is now known as kylek3h20:36
*** mingyu has joined #openstack-nova20:40
*** _danpawlik has left #openstack-nova20:40
*** dimtruck is now known as zz_dimtruck20:41
mriedemzzzeek: i'm strugglying trying to use OpportunisticDBTestMixin to get a mysql-backed test running20:42
mriedemi've got a test extending OpportunisticDBTestMixin and defining FIXTURE = test_fixtures.MySQLOpportunisticFixture20:43
zzzeekmriedem: OK...are there no existing tests using it?20:43
mriedembut teardown complains about not having a schema attribute on the test20:43
mriedemnope20:43
mriedemwell,20:43
mriedemour db schema migration tests do some stuff, but i can't make heads or tails of those20:43
mriedemgoing through the setup code in oslo.db totally gets me lost20:44
zzzeekmriedem: yeah20:44
*** mingyu has quit IRC20:44
zzzeekmriedem: are you mixing in test_fixtures.OpportunisticDBTestMixin,20:44
zzzeek                       oslo_test_base.BaseTestCase  ?20:44
mriedemnot the BaseTestCase20:44
zzzeekmriedem: try sticking "SCHEMA_SCOPE=None" on your test class ?20:45
mriedemtrying it20:46
zzzeekmriedem: hmmm that's not it20:46
zzzeekmriedem: stack trace ?20:46
*** itlinux has joined #openstack-nova20:47
*** ctrath1 has joined #openstack-nova20:47
zzzeekmriedem: oh.   this is all deprecated stuff anyway.  you on newish oslo.db ?20:48
mriedemyeah i'm trying to use the fixtures20:48
zzzeekmriedem: e.g. dont need to backport to mitaka ?20:48
mriedemwith our nova base TestCase code20:48
mriedemwhich has it's own DatabaseFixture20:48
mriedemi started copying this https://review.openstack.org/#/c/283364/6/nova/tests/functional/regressions/test_bug_1538011.py but that's extending a deprecated test class in oslo.db20:48
*** salv-orlando has quit IRC20:49
zzzeekmriedem: yeah i was goign to go in there and change it all a while back, a lot of this fixture stuff had nova in mind.20:49
*** lucasxu has quit IRC20:49
mriedemgetting this back to where i started and then i can push it up20:50
jose-phillipshey20:51
*** ctrath has quit IRC20:51
jose-phillipssomeone now how to set a metadata with python novaclient20:51
zzzeekmriedem: yeah i need stack trace to work w/ this here20:51
zzzeekmriedem: need to see where it looks for .schema20:51
jose-phillipsshould be nova.aggregates.set_metadata (openstackId,metadata) ?20:51
zzzeekmriedem: id guess your fixture is mixing in stuff from your existing fixture stuff ?20:51
mriedemzzzeek: yeah20:52
*** tidwellr has quit IRC20:52
*** crushil has quit IRC20:52
mriedemhmm, maybe this worked for https://review.openstack.org/#/c/283364/6/nova/tests/functional/regressions/test_bug_1538011.py because it wasn't pulling in our TestCase default setup in nova20:52
zzzeekmriedem: you'd need to start totally clean first.    i had a plan to totally rewrork nova's fixtures at some point20:53
*** crushil has joined #openstack-nova20:53
mriedemwhich means i'd have to reinvent some things in my test20:53
mriedemok yeah20:53
mriedembummer20:53
*** lucasxu has joined #openstack-nova20:53
sdaguezzzeek: is there a way we can get some version we can use with our existing fixture set?20:54
zzzeeksdague: of course20:54
sdaguewe do have this class of mysql related issues that would be good to have a pattern to write regressions for20:55
*** lyan has joined #openstack-nova20:55
zzzeeksdague: id have to look at it again to see if the base fixture had some patterns that werent' going to work.  the main one is that weird way you rebuild the sqlite schema using a dumpfile20:55
sdaguezzzeek: yeh, but that isn't used in the NoDBTestCase20:55
*** cleong has quit IRC20:56
*** itlinux has quit IRC20:57
zzzeeksdague: if mriedem wants to give me code I can re-familiarize with everything and what nova looks like today and get his test to run20:57
zzzeeksdague: i had  a lot of ideas for fixing nova's DB fixtures and a lot of what is in oslo_db today is based around being able to do that w/ maximum flexibility20:58
*** krtaylor has quit IRC20:59
sdaguezzzeek: sure, I don't know where that stands. All I've got is the code I abandoned, that used the old fixture that he linked https://review.openstack.org/#/c/283364/6/nova/tests/functional/regressions/test_bug_1538011.py21:00
sdaguethe preamble that gets to the point of being able to run migration.db_sync(database='main')21:00
sdagueis kind of what needs to be figured out21:01
mriedemi'm close21:01
zzzeeksdague: are these the tests you want to run?21:01
mriedemno21:01
mriedemthings have changed quite a bit from that patch21:02
sdaguemriedem: ok21:02
zzzeeksdague: the fixture would include GeneratesSchema as a mixin and implement the generate_schema_migrations(engine) method, wher you pass that engine into migration.db_sync(database='main', engine=engine) IIRC how you had that in your test suite already21:03
sdagueright, I think the trick was getting the engine allocated21:04
zzzeeksdague: err GeneratesSchemaFromMigrations21:04
zzzeeksdague: yeah this happens in your existing test suite somehwere.   or maybe the patch I had included a small tweak to allow it.  guess i have to find it21:04
*** penick has quit IRC21:05
*** annegentle has quit IRC21:05
zzzeeksdague mriedem here we are https://review.openstack.org/#/c/349057/21:05
mriedemheh well i'm getting closer Table 'frkgzoinub.flavors' doesn't exist21:06
mriedemlooks like it didn't run the migrations properly21:06
sdaguemriedem: you have to run them manually21:06
zzzeekmriedem sdague look at generate_schema_migrations in https://review.openstack.org/#/c/349057/2/nova/tests/fixtures.py21:07
openstackgerritMatt Riedemann proposed openstack/nova master: WIP: Fix instance lookup in hide_server_addresses extension  https://review.openstack.org/46777221:09
mriedemzzzeek: sdague: ^ is the start21:09
*** acormier has quit IRC21:10
*** abalutoiu_ has quit IRC21:10
sdaguemriedem: cool, yeh, that looks kind of what I'd expect21:10
*** acormier has joined #openstack-nova21:10
*** abalutoiu_ has joined #openstack-nova21:10
sdaguemriedem: I can play in the morning, I need to start working on dinner here21:11
zzzeekmriedem: I can work on using all the newest patterns in just this one test if you want21:12
openstackgerritDan Smith proposed openstack/nova master: Fix live migration devstack hook for multicell environment  https://review.openstack.org/45853721:12
openstackgerritDan Smith proposed openstack/nova master: Target cell on local delete  https://review.openstack.org/46405921:12
mriedemzzzeek: that's fine if you want, we'll actually have two db's to sync21:14
mriedemthe api db and the main db21:14
mriedemnot sure how that's going to work here21:14
zzzeekmriedem: in one test ?21:14
mriedemyeah21:15
*** acormier has quit IRC21:15
zzzeekmriedem: here's why oslo.db is so complicated :)21:15
mriedemhttps://github.com/openstack/nova/blob/master/nova/test.py#L27321:15
mriedemthat sets up the api db,21:15
mriedemand then 2 cells mappings, which are really 2 dbs21:15
mriedemwith the same schema21:15
mriedemso we really have 3 dbs per test21:15
mriedemhttps://github.com/openstack/nova/blob/master/nova/test.py#L31721:16
openstackgerritMatt Rabe proposed openstack/nova master: Query deleted instance records during _destroy_evacuated_instances  https://review.openstack.org/46777421:16
zzzeekmriedem: I shoved dozens of weird nova use cases into this and that...hmm actually I can do that.   one fixture per DB21:16
*** lucasxu has quit IRC21:17
zzzeekmriedem: so the test would create three schemas on one MySQL server ?21:17
*** zz_dimtruck is now known as dimtruck21:17
zzzeekerr three databases21:18
*** salv-orlando has joined #openstack-nova21:19
*** dave-mccowan has quit IRC21:20
*** lyan has quit IRC21:20
mriedemyeah21:23
mriedemnova_api, nova_cell0 and nova21:23
mriedemschema for the first is 'api' and 'main' for the latter 221:23
*** priteau has quit IRC21:24
*** salv-orlando has quit IRC21:30
*** avolkov has quit IRC21:32
*** ctrath1 has quit IRC21:37
jose-phillipssomeone know21:38
jose-phillipsif i can update a metadata from a vm with a post command?21:38
jose-phillipsto the metadata address?21:38
*** imacdonn has quit IRC21:39
*** imacdonn has joined #openstack-nova21:39
mriedemupdate in the config drive?21:40
mriedemconfig drive is static after you've created the server21:40
*** lpetrut has quit IRC21:40
jose-phillipsno i m mean21:40
jose-phillipsfor example21:40
jose-phillipsi want to update a metadata called last-login21:40
jose-phillipsthe question is if i can perform the update of these metadata from this address http://169.254.169.254/openstack/latest/meta_data.json21:41
jose-phillipson each v21:41
jose-phillipsm21:41
mriedemno21:41
*** ctrath has joined #openstack-nova21:41
mriedemmetadata API is read-only21:41
mriedemyou can change the metadata on the server via the compute REST API21:41
mriedemhttps://developer.openstack.org/api-ref/compute/#server-metadata-servers-metadata21:41
jose-phillipsgot it21:41
*** ctrath1 has joined #openstack-nova21:41
*** acormier has joined #openstack-nova21:42
jose-phillipsi was thinking if i can doint from there as a post21:42
jose-phillipsmy idea is track the last time activity on each server21:42
jose-phillipsso i will send this information to a intermediate server and this server will going to update the metadata then.21:42
jose-phillipswith nova api21:43
openstackgerritEd Leafe proposed openstack/nova master: Have scheduler claim resources  https://review.openstack.org/46399321:45
openstackgerritEd Leafe proposed openstack/nova master: Pass the number of hosts to return explicitly  https://review.openstack.org/46576721:45
openstackgerritEd Leafe proposed openstack/nova master: Remove selecting host based on host_subset_size  https://review.openstack.org/46517421:45
openstackgerritEd Leafe proposed openstack/nova master: Make the method to put allocations public  https://review.openstack.org/46408621:45
openstackgerritEd Leafe proposed openstack/nova master: Don't delete allocation if instance being scheduled  https://review.openstack.org/46017721:45
openstackgerritEd Leafe proposed openstack/nova master: Pass a list of instance UUIDs to scheduler  https://review.openstack.org/46517121:45
openstackgerritEd Leafe proposed openstack/nova master: Return multiple hosts from select_destinations  https://review.openstack.org/46576821:45
*** ctrath has quit IRC21:45
*** ayoung has quit IRC21:46
*** fragatina has joined #openstack-nova21:46
*** thorst has joined #openstack-nova21:47
*** esberglu has quit IRC21:50
*** esberglu has joined #openstack-nova21:51
*** annegentle has joined #openstack-nova21:51
*** takashin has joined #openstack-nova21:54
*** esberglu has quit IRC21:55
*** edmondsw has quit IRC21:58
*** efried has quit IRC21:59
*** acormier has quit IRC22:00
*** acormier has joined #openstack-nova22:00
*** salv-orlando has joined #openstack-nova22:01
*** wasmum has joined #openstack-nova22:03
zzzeekmriedem: this test case https://review.openstack.org/#/c/467772/1/nova/tests/functional/test_servers.py seems to use just one database right now?    I'd need to see how that cell logic relates the UUID to a database, and I'd set up a fixture per-DB which will each make a new anonymous per-test schema22:04
*** acormier has quit IRC22:05
zzzeekmriedem: but...i would need to find some time.   let me know if I can just show you around the API and maybe build a less-nova-ish proof of concept22:05
*** acormier has joined #openstack-nova22:06
*** baoli has quit IRC22:06
*** salv-orl_ has joined #openstack-nova22:07
*** mdrabe has quit IRC22:07
*** slaweq has quit IRC22:08
*** felipemonteiro_ has quit IRC22:08
*** acormier has quit IRC22:10
*** jamesdenton has quit IRC22:11
*** jbernard has quit IRC22:11
*** salv-orlando has quit IRC22:11
*** karimb has quit IRC22:12
*** crushil has quit IRC22:13
*** crushil has joined #openstack-nova22:14
*** crushil has quit IRC22:15
*** crushil has joined #openstack-nova22:15
*** jbernard has joined #openstack-nova22:16
*** cdent has quit IRC22:18
*** salv-orl_ has quit IRC22:19
*** ckopper has quit IRC22:20
openstackgerritIldiko Vancsa proposed openstack/nova master: WIP/POC Implement new attach Cinder flow  https://review.openstack.org/33028522:22
*** thorst has quit IRC22:23
*** Swami has quit IRC22:23
*** dikonoor has joined #openstack-nova22:23
*** marst_ has quit IRC22:23
*** marst_ has joined #openstack-nova22:24
*** annegentle has quit IRC22:24
*** dikonoo has joined #openstack-nova22:27
*** ctrath has joined #openstack-nova22:28
*** ijw has quit IRC22:28
*** mingyu has joined #openstack-nova22:28
*** marst_ has quit IRC22:29
*** ctrath1 has quit IRC22:29
*** pchavva has quit IRC22:29
*** dikonoor has quit IRC22:30
*** jwcroppe has quit IRC22:31
*** gouthamr has quit IRC22:32
*** mingyu has quit IRC22:32
*** gianpietro has quit IRC22:33
*** gianpietro has joined #openstack-nova22:34
*** esberglu has joined #openstack-nova22:36
*** gianpietro has quit IRC22:37
*** gianpiet_ has joined #openstack-nova22:37
openstackgerritTakashi NATSUME proposed openstack/nova master: Enable cold migration with target host(1/2)  https://review.openstack.org/40895522:37
openstackgerritTakashi NATSUME proposed openstack/nova master: Enable cold migration with target host(2/2)  https://review.openstack.org/40896422:39
openstackgerritTakashi NATSUME proposed openstack/nova master: Add functional tests for cold migration to same host  https://review.openstack.org/41492622:40
openstackgerritTakashi NATSUME proposed openstack/python-novaclient master: Microversion 2.46 - Enable cold migration with target host  https://review.openstack.org/40670722:40
*** esberglu has quit IRC22:40
openstackgerritTakashi NATSUME proposed openstack/nova master: api-ref: Add parameters in cold migrate action  https://review.openstack.org/41004222:40
*** ctrath has quit IRC22:43
*** itlinux has joined #openstack-nova22:45
*** krtaylor has joined #openstack-nova22:49
*** acormier has joined #openstack-nova22:51
*** ijw has joined #openstack-nova22:51
*** hamzy has quit IRC22:53
*** ijw has quit IRC22:56
*** gouthamr has joined #openstack-nova23:04
*** ijw has joined #openstack-nova23:05
*** ijw has quit IRC23:06
*** ijw has joined #openstack-nova23:08
*** ijw has quit IRC23:08
*** ijw has joined #openstack-nova23:09
*** itlinux has quit IRC23:11
*** sdague has quit IRC23:17
*** jwcroppe has joined #openstack-nova23:20
*** acormier has quit IRC23:28
*** jaypipes has quit IRC23:31
*** edmondsw has joined #openstack-nova23:32
*** Apoorva_ has joined #openstack-nova23:36
*** pchavva has joined #openstack-nova23:36
openstackgerritClaudiu Belu proposed openstack/nova master: POC: tests: autospecs all the mock.patch usages  https://review.openstack.org/44750523:36
*** edmondsw has quit IRC23:36
*** acormier has joined #openstack-nova23:37
*** acormier has joined #openstack-nova23:37
*** Apoorva has quit IRC23:39
*** jwcroppe has quit IRC23:40
*** jwcroppe has joined #openstack-nova23:40
*** Apoorva_ has quit IRC23:40
*** salv-orlando has joined #openstack-nova23:41
*** mriedem1 has joined #openstack-nova23:44
*** mriedem1 has quit IRC23:45
*** mriedem has quit IRC23:45
*** mriedem has joined #openstack-nova23:45
*** mtanino_ has quit IRC23:47
mriedemzzzeek: it would eventually need to use at least the nova_api db and the nova (cell) db23:47
mriedemthe instance is going to live in the cell db23:48
mriedemi'm not starting enough services for the actual instance create to work yet,23:48
mriedembut it seems the schema migrations aren't getting run anyway because when i try to create/start the services, like nova-api, it's blowing up because the services table doesn't exist yet23:48
*** fragatina has quit IRC23:48
*** yamahata has joined #openstack-nova23:51
mriedemi'm getting a little further, if i sync the 'main' db i can start services, but w/o syncing the api db i don't have flavors to create a server23:53
mriedemtrying to sync the api db fails with http://paste.openstack.org/show/610607/23:53
mriedemi assume b/c i'm using the wrong engine23:53
*** salv-orlando has quit IRC23:54
gmannmriedem: yea, that was hide server address cfg and policy deprecation things which i will be pushing spec for that23:55
gmannmriedem: got the issues with instance id.23:56
*** ijw has quit IRC23:56
gmannalex_xu: thanks for help.  i will push doc and other things23:56
mriedemgmann: working on that here https://review.openstack.org/#/c/467772/23:56
*** lyan has joined #openstack-nova23:56
mriedemthe code fix for this bug is easy, but we're trying to write a functional test to recreate it using mysql as the backend23:57
*** mingyu has joined #openstack-nova23:59

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