Earlier  
Posted Nick Remark
#openstack-nova - 2017-10-11
22:08:28 mriedem our code to remove the source allocations on startup after evac is not working
22:09:17 dansmith so explain to me again how you can evacuate from a source, go to error, and then start back up on the source successfully?
22:09:41 dansmith we should be caught by the vm_state==ERROR skip clause no?
22:10:26 SamYaple if its in an errored state and you reset it to state active then do a hard-reboot on it (assuming shared storage) it should come back
22:11:46 dansmith SamYaple: yeah, reset-state means you're cheating and other things are likely going to be out of sync
22:12:26 SamYaple dansmith: fair enough. im just saying what would typically get done in ops
22:12:32 SamYaple im not advocating for this
22:12:45 dansmith SamYaple: ack, yeah, I was thinking mriedem was saying there's a path out of the forest for this by a user
22:12:50 mriedem dansmith: do we set the instance to error state on failed evac?
22:13:00 dansmith mriedem: if we didn't you couldn't call evac on it again
22:13:09 dansmith and you said we could
22:13:28 mriedem i don't see that we change the vm_state on evac
22:13:36 dansmith so we leave it as rebuilding?
22:13:47 mriedem no
22:13:48 mriedem @check_instance_state(vm_state=[vm_states.ACTIVE, vm_states.STOPPED,
22:13:48 mriedem vm_states.ERROR])
22:13:48 mriedem def evacuate(self, context, instance, host, on_shared_storage,
22:13:56 mriedem i think it would be active
22:14:05 mriedem well, on a successful evac it would be active
22:14:18 mriedem if it started as error and evac failed, it'd stay in error
22:14:26 dansmith oh task_state=rebuilding
22:14:29 dansmith so um
22:14:29 mriedem yar
22:14:40 dansmith that means I can re-evac while an evac is going?
22:14:45 dansmith that'd be fun
22:14:49 mriedem no
22:15:04 mriedem i think @check_instance_state defaults to not allow doing things if the task_state is set
22:15:18 mriedem and we set the task_state to rebuilding in the api once you've started an evac
22:15:21 dansmith does that decorator imply no task state if not specified?
22:15:22 dansmith okay
22:15:53 mriedem yeah it's weird and confusing to read
22:15:57 mriedem task_state=(None,)
22:16:02 mriedem if (task_state is not None and
22:16:02 mriedem instance.task_state not in task_state):
22:16:17 dansmith okay
22:16:57 mriedem so unrelated,
22:17:12 mriedem but now i realize that if your instance was stopped and it was successfully evacuated, it's now running
22:17:31 mriedem we don't stop it again like we do for resizing/cold migrating a stopped instance
22:17:57 mriedem which, as it turns out, was my first major bug fix in nova :)
22:18:00 mriedem remember?!
22:18:38 dansmith oh I remember
22:20:00 dansmith okay so nothing to change on this?
22:22:36 dansmith also I'd like to note that this migration unfuckification has been the least fun thing to work on since, oh I dunno, the great flavor migration of 2015
22:22:50 mriedem yeah i just +Wed
22:23:37 mriedem appears CI just exploded
22:25:48 dansmith we _can_ do a migration-holding source allocation if you want,
22:26:23 dansmith but it's work for no good reason, IMHO,
22:26:33 mriedem yeah, that's why i said if/when we need to
22:26:43 dansmith okay
22:26:55 mriedem because that would mean the cleanup if source comes back up thing would have to deal with whether or not the allocation is on the migration or not
22:27:03 dansmith right
22:27:20 mriedem and that would definitely be
22:27:23 mriedem say it with me now
22:27:30 dansmith I'm a little concerned that we have this reset-state-hard-reboot path to keep these on the source even after an evac has been triggered once
22:28:15 mriedem wonky
22:28:19 dansmith heh
22:28:20 mriedem it would be wonky
22:35:52 mriedem wtf, why do we joinedload instance.system_metadata when pulling migration records out of the db? https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/api.py#L4867
22:40:25 dansmith because migration.instance.system_metadata
22:40:32 dansmith although I'm sure we don't need that anymore
22:41:24 mriedem you know what else is super confusing,
22:41:29 mriedem we have a 'finished' migration status,
22:41:47 mriedem but it doesn't mean the migration is actually done, it means the instance is done being resized, but it's in verify_resize state
22:41:52 mriedem so it's not an end state :/
22:42:00 dansmith yup
22:43:57 mriedem oh, an
22:43:58 mriedem *and
22:44:03 mriedem when reverting a resize,
22:44:17 mriedem we set the migration status to 'reverted' on the dest host before casting back to the source host to complete the revert
22:44:27 mriedem so technically the migration is still in progress at that point
22:44:49 mriedem i sure hope nothing like resource tracking depends on us not fucking that all up :)
22:50:19 mriedem check out this fun stuff http://paste.openstack.org/show/623387/
22:50:39 mriedem creating rp inventory on the fly like a mad dog
23:05:27 openstackgerrit Matt Riedemann proposed openstack/nova master: Fix migration_get_in_progress_by_host_and_node status list https://review.openstack.org/511351
23:10:46 openstackgerrit Eric Fried proposed openstack/nova-specs master: Granular Resource Request Syntax https://review.openstack.org/510244
23:12:38 efried Man Jenkins is a mess.
23:35:05 mriedem dansmith: i guess the 'accepted' filter is intentional https://review.openstack.org/#/c/244486/
23:38:46 openstackgerrit melanie witt proposed openstack/nova master: Save updated libvirt domain XML after swapping volume https://review.openstack.org/498983
23:43:20 openstackgerrit melanie witt proposed openstack/nova master: Save updated libvirt domain XML after swapping volume https://review.openstack.org/498983
23:47:55 openstackgerrit Matt Riedemann proposed openstack/nova master: Add 'done' to migration_get_in_progress_by_host_and_node filter https://review.openstack.org/511351
23:52:32 openstackgerrit Ed Leafe proposed openstack/nova master: Add alternate hosts https://review.openstack.org/486215
23:52:32 openstackgerrit Ed Leafe proposed openstack/nova master: Add Selection objects https://review.openstack.org/499239
23:52:33 openstackgerrit Ed Leafe proposed openstack/nova master: Return Selection objects from the scheduler driver https://review.openstack.org/495854
23:52:33 openstackgerrit Ed Leafe proposed openstack/nova master: Change RPC for select_destinations() https://review.openstack.org/510159
23:52:34 openstackgerrit Ed Leafe proposed openstack/nova master: Move the claim_resources method to scheduler utils https://review.openstack.org/511357
23:52:34 openstackgerrit Ed Leafe proposed openstack/nova master: WIP - Make conductor pass and use host_lists https://review.openstack.org/511358
#openstack-nova - 2017-10-12
01:06:08 openstackgerrit Jackie Truong proposed openstack/nova master: Implement certificate_utils https://review.openstack.org/479949
01:59:38 openstackgerrit Zhenyu Zheng proposed openstack/nova-specs master: Improve the performance of filtering instances by IP. https://review.openstack.org/509326
02:05:38 openstackgerrit Takashi NATSUME proposed openstack/nova master: Add 'delete_host' command in 'nova-manage cell_v2' https://review.openstack.org/510324
02:29:57 openstackgerrit Yikun Jiang proposed openstack/nova-specs master: Add pagination and timestamp filtering support for os-migrations API https://review.openstack.org/506030
02:40:05 openstackgerrit Yikun Jiang proposed openstack/nova-specs master: Add pagination and timestamp filtering support for os-migrations API https://review.openstack.org/506030
03:18:11 openstackgerrit Yikun Jiang proposed openstack/nova-specs master: Add pagination and timestamp filtering support for os-migrations API https://review.openstack.org/506030
03:46:26 openstackgerrit Takashi NATSUME proposed openstack/nova master: Enable cold migration with target host(2/2) https://review.openstack.org/408964
06:18:49 openstackgerrit jichenjc proposed openstack/nova master: Remove glance usage inside compute https://review.openstack.org/511392
06:18:50 openstackgerrit Takashi NATSUME proposed openstack/nova master: List/show all server migration types (1/2) https://review.openstack.org/430608
06:20:27 phani_ I am want to expose SSE4.2 cpu flags to VM spawned with openstack. I Updated nova.conf with "cpu_mode = custom, cpu_model = Nehalem" and set the meta data for nova flavor with CLI : nova flavor-key m1.medium set hw:cpu_model=Nehalem. But the VM does not get the SSE4.2 cpu flags. The compute node CPU has the SS4.2 flags. I am using devstak stable/pike
06:20:44 phani_ Please hlep me. Is there anything i am missing
06:27:07 openstackgerrit David Rabel proposed openstack/nova master: VMware: add support for graceful shutdown of instances https://review.openstack.org/494169
06:42:32 openstackgerrit jichenjc proposed openstack/nova master: Remove glance usage inside compute https://review.openstack.org/511392
06:42:32 openstackgerrit jichenjc proposed openstack/nova master: Remove usage of glance.generate_image_url https://review.openstack.org/511397

Earlier   Later