| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-nova - 2017-03-16 | |||
| 00:24:04 | dansmith | pretty much all the rest look like this: AttributeError: <nova.quota.ReservableResource object at 0x7fcbda866310> does not have the attribute 'count' | |
| 00:24:30 | dansmith | which seems to be something in the _get_usages() change that expects something from ReservableResource? | |
| 00:24:51 | melwitt | the opposite, expecting there to be a count attr | |
| 00:25:14 | melwitt | like, it's assuming everything is a CountableResource | |
| 00:25:18 | dansmith | _get_usage hard codes which things it thinks are countable I guess | |
| 00:25:53 | melwitt | yeah, since they were part of the same change. to do both, it would have to check the resource type and do each thing accordingly | |
| 00:26:36 | melwitt | I think. I don't remember what _get_usage did originally. looking | |
| 00:27:15 | melwitt | oh, it's new | |
| 00:27:16 | dansmith | it should probably look at the resource class to see if it's countable, and maybe more details need to be in there to know if it's per-project or something? | |
| 00:27:17 | dansmith | definitely looks like that could be generalized | |
| 00:27:39 | melwitt | okay, yeah. I wrote that to "get counts" when it used to pull usages from the usages table in the db | |
| 00:28:23 | dansmith | okay well I think if that was generalized then this first patch would pass | |
| 00:28:27 | melwitt | like here it used to be a db.quota_usage_get_all_by_project_and_user() call https://review.openstack.org/#/c/416521/22/nova/quota.py@219 | |
| 00:29:08 | melwitt | dansmith: cool, thanks. please feel free to upload as-is and I can fix them. I feel bad you're spending too much time on it | |
| 00:29:30 | dansmith | good, you should feel bad | |
| 00:29:39 | melwitt | :( | |
| 00:29:55 | melwitt | that's proof, the unsmiley face | |
| 00:30:49 | openstack | Launchpad bug 1670627 in OpenStack Compute (nova) ocata "quota is always in-use after delete the ERROR instances " [Critical,In progress] - Assigned to Matt Riedemann (mriedem) | |
| 00:30:49 | melwitt | looks like we're not out of the woods on this bug either https://bugs.launchpad.net/nova/+bug/1670627 | |
| 00:30:56 | melwitt | I dunno if you saw the latest comment | |
| 00:31:38 | dansmith | melwitt: do you really want me to upload this on top of your stack? if so I will, I just don't want to explode your set | |
| 00:31:39 | mriedem | gfdi | |
| 00:31:54 | dansmith | I'm about to retire for the evening anyway | |
| 00:32:04 | melwitt | dansmith: I dunno, is there any other option? | |
| 00:32:06 | mriedem | we do a rollback on the quota change if the instance destroy fails | |
| 00:32:33 | dansmith | melwitt: I can push it up to github or something, but I kinda think we should do this anyway, so that's just indirection | |
| 00:32:45 | dansmith | melwitt: I was just going to try to get it a little closer before pushing, but.. it's up to you | |
| 00:33:25 | melwitt | dansmith: yeah, I guess there's a small chance it could get more gnarly. but maybe that's gonna have to be dealt with anyway. yolo | |
| 00:33:55 | dansmith | having spent hours on the patch the way it is, I don't think it can get much gnarly-er | |
| 00:34:19 | dansmith | I didn't really start grok'ing most of it until I was ass-deep in trying to split it up | |
| 00:34:22 | melwitt | mriedem: if we rollback on a destroy fail, then things should be working right I thought | |
| 00:34:39 | melwitt | dansmith: hah, that's fair. yeah, go ahead and upload | |
| 00:34:54 | mriedem | melwitt: only if we hit InstanceNotFound | |
| 00:34:59 | mriedem | melwitt: they didn't say what error they hit though | |
| 00:39:25 | melwitt | hm, well in _delete_while_booting, it quota.commits immediately, before trying to delete, so that seems wrong. the rollback for InstanceNotFound also wouldn't do anything if commit already happened. but I didn't think we touched _delete_while_booting | |
| 00:40:09 | melwitt | yeah, these are all committing immediately, which I think would make rollback do nothing | |
| 00:40:24 | openstackgerrit | Dan Smith proposed openstack/nova master: Count resources to check quota for cells https://review.openstack.org/416521 | |
| 00:40:25 | openstackgerrit | Dan Smith proposed openstack/nova master: Add online migration to move quotas to API database https://review.openstack.org/410946 | |
| 00:40:25 | openstackgerrit | Dan Smith proposed openstack/nova master: Make Quotas object favor the API database https://review.openstack.org/410945 | |
| 00:40:26 | openstackgerrit | Dan Smith proposed openstack/nova master: Count server group quotas https://review.openstack.org/446240 | |
| 00:40:26 | openstackgerrit | Dan Smith proposed openstack/nova master: Add Quotas.check_deltas() and set the stage for magic to happen https://review.openstack.org/446239 | |
| 00:40:27 | openstackgerrit | Dan Smith proposed openstack/nova master: Count used_limits quotas https://review.openstack.org/446242 | |
| 00:40:27 | openstackgerrit | Dan Smith proposed openstack/nova master: Count tenant_networks quotas https://review.openstack.org/446241 | |
| 00:40:28 | openstackgerrit | Dan Smith proposed openstack/nova master: Add get_count_by_vm_state() to Instance object https://review.openstack.org/446244 | |
| 00:40:28 | openstackgerrit | Dan Smith proposed openstack/nova master: Remove useless quota_usage_refresh from nova-manage https://review.openstack.org/446243 | |
| 00:40:29 | openstackgerrit | Dan Smith proposed openstack/nova master: Add FixedIP.get_count_by_project() https://review.openstack.org/446246 | |
| 00:40:29 | openstackgerrit | Dan Smith proposed openstack/nova master: Add SecurityGroup.get_counts() https://review.openstack.org/446245 | |
| 00:40:30 | openstackgerrit | Dan Smith proposed openstack/nova master: Add FloatingIP.get_count_by_project() https://review.openstack.org/446247 | |
| 00:40:48 | melwitt | thanks dansmith | |
| 00:40:54 | dansmith | the final patch is like half the size | |
| 00:41:29 | melwitt | woohoo | |
| 00:41:42 | dansmith | fwiw, this makes it so much more obvious why this is good: | |
| 00:41:43 | dansmith | https://review.openstack.org/#/c/446239/1 | |
| 00:41:52 | dansmith | in just quota stuff, +500,-1000 | |
| 00:42:20 | dansmith | anyway, I've made my mess, time for dinner | |
| 00:42:22 | melwitt | yeah, that's a win for sure | |
| 00:42:38 | melwitt | haha, o/ | |
| 00:44:00 | melwitt | mriedem: quotas.commit and quotas.rollback are mutually exclusive and I should have noticed that on the review. rollback won't work if commit already happened | |
| 00:49:25 | mriedem | melwitt: then wouldn't it also be wrong in _delete_while_booting? https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1807 | |
| 00:49:28 | mriedem | that's what i copied this from | |
| 00:50:06 | melwitt | yes, I think it's wrong there too | |
| 00:51:18 | melwitt | I'm looking to see what rollback does if commit already occurred | |
| 00:51:55 | melwitt | I think it's just a no-op because it would find no reservation record | |
| 00:52:37 | melwitt | commit would have deleted the reservation record. then rollback comes along and reads the reservation, finds nothing, and then does nothing | |
| 00:55:17 | mriedem | well hells bells | |
| 00:55:30 | mriedem | i'm pretty sure _delete_while_booting copied that behavior from _delete | |
| 00:56:02 | mriedem | so normal delete we get the reservation here https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1943 | |
| 00:56:46 | mriedem | so it probably copied from https://github.com/openstack/nova/blob/master/nova/compute/api.py#L2028 | |
| 00:57:15 | mriedem | looks like in that flow though, we don't commit unless we delete https://github.com/openstack/nova/blob/master/nova/compute/api.py#L2023 | |
| 00:57:49 | mriedem | so (1) create reservation, (2) delete instance = works, then commit; else rollback | |
| 00:57:52 | mriedem | i think that's how things are working in the old delete flow | |
| 00:57:57 | mriedem | before the cellsv2ification | |
| 01:01:03 | mriedem | also, i think i'm *this* close to getting this functional test to pass | |
| 01:01:10 | mriedem | fixtures up the wazoo | |
| 01:06:08 | mriedem | melwitt: i also went with your idea to stub out Claim.__init__, that was a good idea | |
| 01:08:56 | mriedem | oh f yes it works now | |
| 01:20:03 | mriedem | here it comes | |
| 01:20:19 | openstackgerrit | Matt Riedemann proposed openstack/nova master: Add populate_retry to schedule_and_build_instances https://review.openstack.org/444106 | |
| 01:20:20 | openstack | bug 1671648 in OpenStack Compute (nova) "Instances are not rescheduled after deploy fails" [High,In progress] https://launchpad.net/bugs/1671648 - Assigned to Shunli Zhou (shunliz) | |
| 01:20:20 | openstackgerrit | Matt Riedemann proposed openstack/nova master: Add a functional regression/recreate test for bug 1671648 https://review.openstack.org/446209 | |
| 01:41:26 | openstackgerrit | Ken'ichi Ohmichi proposed openstack/nova master: Clarify os-start API description https://review.openstack.org/446264 | |
| 03:25:26 | openstackgerrit | Wang Shilong proposed openstack/nova master: Lustre support https://review.openstack.org/446288 | |
| 04:34:18 | openstackgerrit | Maho Koshiya proposed openstack/nova master: Add confirm resized server functional negative tests https://review.openstack.org/421074 | |
| 05:29:40 | jith | Hi all, I have configured openstack kilo setup in debian jessie with one controller node and two compute nodes. I have used glusterfs for shared storage. I have mounted the shared storage in /var/lib/nova/instances on both nodes. I can do migration of vm’s between nodes.. But live-migration throws following error.. Pls do guide me.. http://pastebin.com/DHPWEkaZ | |
| 05:56:24 | openstackgerrit | Sivasathurappan Radhakrishnan proposed openstack/nova master: Permit Live Migration of Rescued Instances https://review.openstack.org/308198 | |
| 06:49:02 | jith | Hi all, I have configured openstack kilo setup in debian jessie with one controller node and two compute nodes. I have used glusterfs for shared storage. I have mounted the shared storage in /var/lib/nova/instances on both nodes. I can do migration of vm’s between nodes.. But live-migration throws following error.. Pls do guide me.. http://pastebin.com/DHPWEkaZ | |
| 06:55:55 | openstackgerrit | lcsong proposed openstack/nova master: Modify some grammatical mistakes. https://review.openstack.org/446321 | |
| 07:05:17 | openstackgerrit | Sivasathurappan Radhakrishnan proposed openstack/nova master: API changes for live migration of rescued instance https://review.openstack.org/328280 | |
| 07:13:36 | alexey_weyl | Hi, I have a small question about the availability zone. | |
| 07:14:53 | openstackgerrit | Sivasathurappan Radhakrishnan proposed openstack/nova master: Port binding based on events during live migration https://review.openstack.org/434870 | |
| 07:14:59 | alexey_weyl | When I change the name or the availability zone itself in the host aggregates I don't receive an update event on the oslo bus. Is nove supposed to send such an event? | |
| 07:15:09 | alexey_weyl | *nove=nova | |
| 07:36:23 | openstackgerrit | Sivasathurappan Radhakrishnan proposed openstack/nova-specs master: Live Migration of Rescued Instances https://review.openstack.org/347161 | |
| 07:41:47 | openstackgerrit | Mikhail Feoktistov proposed openstack/nova master: Add is_vz_container function https://review.openstack.org/445947 | |
| 07:55:40 | openstackgerrit | Sivasathurappan Radhakrishnan proposed openstack/nova-specs master: Live Migration of Rescued Instances https://review.openstack.org/347161 | |
| 07:58:37 | nirendra | Nova evacuate on Ocata is failing. Is there any known bug corresponding to this or a workaround | |
| 08:10:11 | gmann | alex_xu: hi | |
| 08:10:53 | alex_xu | gmann: hi | |
| 08:11:20 | gmann | alex_xu: show_extensions seems to enforce all extension discovery policy - https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/extension_info.py#L285 | |
| 08:11:40 | gmann | alex_xu: instead of asked extension discovery policy only | |