Earlier  
Posted Nick Remark
#openstack-nova - 2017-02-16
15:06:05 mdbooth lyarwood: So IIUC you'd be able to create a BFV instance, but not an instance with ephemeral root disk smaller than the actual available space.
15:06:18 owalsh mriedem: FYI https://bugs.launchpad.net/nova/+bug/1665370 - the newton & ocata api db migrations conflict
15:06:18 openstack Launchpad bug 1665370 in tripleo "api db_sync fails on upgrade due to duplicate migration files" [Critical,Triaged] - Assigned to Steven Hardy (shardy)
15:06:23 mdbooth In either case you should be able to create, but the latter case would still be prevented.
15:06:39 mdbooth lyarwood: Unless I missed something, which is possible. Still looking.
15:07:24 mriedem owalsh: guh, pretty soon i'm in meetings for the next 2 hours
15:07:30 mriedem dansmith: melwitt: can you take a look at ^?
15:07:47 mdbooth The code which populates this from the driver gets it directly from the storage, so my current working assumption is an incorrect interim calculation in resourcemanager
15:08:04 owalsh mriedem: should be a simple fix, I can push a patch
15:08:18 mriedem owalsh: i'm not sure we can just start renaming db migrations
15:08:59 dansmith owalsh: yeah, hang on a sec
15:09:02 dansmith not sure how this could have happened
15:09:16 mriedem right, how would grenade not explode?
15:09:42 mriedem owalsh: it's 21 in stable/newton https://github.com/openstack/nova/tree/stable/newton/nova/db/sqlalchemy/api_migrations/migrate_repo/versions
15:10:02 mriedem and 28 in ocata https://github.com/openstack/nova/tree/stable/ocata/nova/db/sqlalchemy/api_migrations/migrate_repo/versions
15:10:13 dansmith mriedem: because grenade uses old/ and new/
15:10:24 dansmith mriedem: it's because you didn't put it in the placeholder in master too and then backport *that*
15:11:20 dansmith I should have caught that
15:11:48 mriedem oh i see
15:11:52 mriedem 21 in master is the issue
15:11:55 dansmith owalsh: so you were going to copy the migration the same place in ocata and remove that placeholder right?
15:12:41 mriedem ok bug is marked for ocata rc2
15:12:51 mriedem i'm entering the roundtable danger zone, bbiab
15:13:23 owalsh dansmith: yea, assuming it's not too late to rename ocata migrations
15:13:47 mriedem we can rename it and backport it
15:13:52 dansmith owalsh: so, tbh, I'm not sure we've ever actually done this
15:14:02 dansmith mriedem: that won't really fix people in the field, actually
15:14:36 dansmith mriedem: if they have ocata now, and then update to this, they'll get two migrations for #21
15:14:48 owalsh other option is to remove the 021 placeholder in ocata and turn 028 into a no-op
15:14:50 dansmith I guess if they use a proper package manager then it should remove the old one and install the new one
15:15:00 dansmith owalsh: I don't think that helps
15:15:23 dansmith owalsh: and we definitely don't want to do that in case someone was at #27 right now
15:15:42 lyarwood mdbooth: sorry just reading up, so iirc negative totals are valid right? BFV instances using flavors with local disk space etc? That's why I asked that the author add the examples where we can hit this into the commit message.
15:15:56 dansmith owalsh: so I think you have to do the rename in ocata, add a release note about it, and we will have to depend on packaging to properly clean up the two #21s
15:16:22 lyarwood mdbooth: ah but that's going to be > 0, I see your point
15:17:14 mdbooth lyarwood: That's only a working assumption, btw. Plenty of scope to be entirely wrong :)
15:20:26 cfriesen what's the process for documenting a known issue in stable/newton? (It'll be affected by bug 1644248 but we're not fixing it.)
15:20:26 openstack bug 1644248 in OpenStack Compute (nova) ocata "Nova incorrectly tracks live migration progress" [High,In progress] https://launchpad.net/bugs/1644248 - Assigned to Matt Riedemann (mriedem)
15:22:41 owalsh dansmith: hmm, anyone on #27 will need #28 so it needs to remain, but it also has to tolerate the case where the migration was already performed in newton #21
15:22:52 dansmith owalsh: right, it has to be in both places
15:23:05 dansmith owalsh: but it should be idempotent so that's fine right? otherwise a backport of it doesn't work at all
15:23:52 owalsh dansmith: ok, then the only Q is where packaging does the right thing here. I'll take a look
15:24:01 owalsh s/where/whether/
15:24:42 dansmith owalsh: yeah, so I'm pretty sure we've done this at least once in the far past, but I'm not positive.. so if that did happen, packaging must have done the right thing as I don't remember ever having to consider this rename issue before
15:28:36 mriedem dansmith: can't we just have the same migration in ocata at 21 and 28?
15:28:43 mriedem it's idempotent
15:28:45 dansmith mriedem: yes
15:28:57 mriedem ok
15:29:18 dansmith mriedem: but anyone with ocata installed would get two different #21s if the packaging didn't remove the 21_placeholder and replace with with 21_do_stuff
15:29:19 dansmith that's he concern
15:29:27 mriedem sure
15:29:40 mriedem fwiw i don't expect much of that to be the case right now, but i know it's a concern
15:30:06 dansmith sure, but have to account for it
15:30:43 mriedem so grenade didn't fail b/c it installed newton up to 21, and then when syncing ocata on the new side it saw it was already past 21 so didn't care?
15:31:02 dansmith no
15:31:20 dansmith I think grenade didn't catch it because it installs a new nova into /opt/stack/new and doesn't have the migrate_repo overlay with the old one
15:31:46 dansmith even if it did, it would use git as its package manager and it would remove the old one during an update I think
15:32:19 mriedem gah
15:32:39 mriedem should fix that gap at some point but i don't have an easy solution off the top of my head
15:32:59 dansmith yeah, it's actually weird that the same thing didn't happen with their packages already, actually
15:33:20 sdague dansmith: did we ever actually have a backported migration?
15:33:42 sdague I know the facility has existed for a while, but it's not regularly used
15:33:44 dansmith sdague: well, that's what I was trying to think ... I feel like we must've had one at least, but I'm not positive
15:33:50 dansmith sdague: yeah, very infrequently if ever
15:34:23 sdague so, I'm trying to understand the bug - https://bugs.launchpad.net/nova/+bug/1665370
15:34:23 openstack Launchpad bug 1665370 in tripleo "api db_sync fails on upgrade due to duplicate migration files" [Critical,Triaged] - Assigned to Steven Hardy (shardy)
15:34:46 dansmith sdague: if you use python setup.py install,
15:34:56 dansmith sdague: you'll end up with two 21_ migrations, you get that right?
15:35:39 mdbooth bauzas: You around?
15:35:45 sdague dansmith: i'm not sure I do
15:35:57 sdague because won't the new rpm file remove the old one?
15:36:04 mriedem sdague: different names
15:36:13 shardy hey folks, thanks for looking into this - I'm around if you need any more info from my environment
15:36:22 shardy and/or to test any fixes
15:36:22 mriedem 021_placeholder in ocata, 021_build_something_fix in newton
15:36:24 dansmith sdague: not rpm, I said setup.py
15:36:35 sdague dansmith: ok, how do you get the filesystem
15:36:43 sdague maybe that's where I'm trying to understand
15:36:48 dansmith sdague: the confusing thing is that I think the rpm should be removing the old one even in their case
15:37:10 sdague I don't understand how you create a filesystem where they both are there
15:37:20 dansmith sdague: I'm just saying, take a system, setup.py install newton, then ocata, you'll end up with two 21_ files because you don't have a package manager in the mix
15:37:28 mdbooth bauzas: I'm trying to join some dots and I'm missing something. When ComputeManager calls update_instance_info(instance), I can see that the scheduler squirrels that instance away in host_state. However, I can't see anywhere that the information is actually used. I'm assuming that something somewhere uses it to keep resource usage up to date in between complete syncs, but I'm being blind.
15:37:36 mriedem we don't pip install nova during grenade?
15:37:41 mriedem i.e. pip install .
15:37:48 sdague mriedem: we do
15:37:49 dansmith mriedem: we "develop" install it don't we?
15:37:58 dansmith which is an egg link
15:38:02 mriedem to put the files in /var/lib/python27/site-packages/nova/..
15:38:16 sdague mriedem: oh, we do do dev install
15:38:20 bauzas mriedem: I think we pip develop
15:38:22 dansmith yeah so dev install won't catch this
15:38:23 sdague that might be isolating
15:38:26 dansmith right
15:38:30 mriedem shart
15:38:46 dansmith the thing is,
15:38:47 bauzas devstack too
15:38:50 dansmith they install from rpms,
15:38:59 bauzas mdbooth: not sure I get your problem
15:38:59 dansmith so they should be removing the old 21 and installing the new one, AFAIK
15:39:04 sdague dansmith: right

Earlier   Later