*** bauzas_ is now known as bauzas | 00:54 | |
auniyal | elodilles, sure :) | 04:55 |
---|---|---|
*** bauzas_ is now known as bauzas | 08:00 | |
*** bauzas_ is now known as bauzas | 12:16 | |
opendevreview | Julien Le Jeune proposed openstack/nova master: nova-condutor put instance in error state https://review.opendev.org/c/openstack/nova/+/901655 | 13:05 |
opendevreview | Julien Le Jeune proposed openstack/nova master: Fix request_specs not updated after failed rebuild https://review.opendev.org/c/openstack/nova/+/899379 | 13:24 |
jlejeune | bauzas: elodilles: what do you think about that https://review.opendev.org/c/openstack/nova/+/899379 ? | 13:28 |
*** ykarel__ is now known as ykarel | 13:30 | |
opendevreview | Merged openstack/nova stable/2023.2: cpu: Only check governor type on online cores https://review.opendev.org/c/openstack/nova/+/924517 | 13:30 |
*** ykarel__ is now known as ykarel | 13:57 | |
opendevreview | Balazs Gibizer proposed openstack/nova master: [manila]Lock/Unlock share by the share_mapping https://review.opendev.org/c/openstack/nova/+/925606 | 15:37 |
opendevreview | Balazs Gibizer proposed openstack/nova master: [manila]Lock/Unlock share by the share_mapping https://review.opendev.org/c/openstack/nova/+/925606 | 15:37 |
elinux | hi folks | 15:40 |
elinux | anyone online yet ? | 15:40 |
elinux | anyone online ? | 16:06 |
clarkb | elinux: people generally lurk. If you have a question its often best to just ask and if people are able they can answer | 16:08 |
elinux | I am trying to a add a new filter to nova scheduler. during that process, I want to execute a db command on nova db along these lines "select uuid from instances where project_id=<blah blah> and vm_state is not 'error'" | 16:11 |
elinux | i want to execute that command in that filter testing file to make a decission for custom filtering. How do I do it using any predefined nova or db objects ? | 16:12 |
elinux | my main target is to get the number of rows returned by that query | 16:14 |
gibi | elinux: the filters are filtering HostState objects and HostState already has an instances field https://github.com/openstack/nova/blob/bb2d7f9cad577f3a32cb9523e2b1d9a6d6db3407/nova/scheduler/host_manager.py#L144 that holds a dict of instance_uuid: Instance ovo pairs. So your custom filter just needs to look at the instances dict in each host state and count the instances is bad state. | 16:21 |
elinux | gibi: but can I filter out those instances per compute host per tenant or project ? | 16:22 |
gibi | the hoststate object is per compute 1:1. The Instance object has project_id field | 16:23 |
gibi | https://github.com/openstack/nova/blob/bb2d7f9cad577f3a32cb9523e2b1d9a6d6db3407/nova/objects/instance.py#L126 | 16:24 |
elinux | gibi: can you show me how to call this instance object for a host under host_pass function in a filter , for a specific project id ? | 16:41 |
elinux | gibi: unfortunately I am not able to trace the code using pdb for this. it is failing . so I am trying to use eventlet backdoor to attach to nova api wgi process but not able to get any source code loaded at pdb prompt | 16:43 |
gibi | https://paste.opendev.org/show/bcAOtsWiVKbbiTe94HBh/ something like that but I don't have an env right now where I can hack on this. | 17:03 |
elinux | gibi: how to trace the nova api service like we do with pdb in python ? but pdb in this case is not working since it is eventlet | 17:06 |
gibi | honestly I tend to debug by adding extra LOG statement | 17:06 |
dansmith | yeah, debug with LOG/print :) | 17:06 |
elinux | dansmith: no other way ? | 17:07 |
dansmith | elinux: I dunno, a debugger doesn't really lend itself to use in something like an eventlet environment.. we're telling you want nova core developers do, so ... | 17:09 |
dansmith | best thing is to write a test where you can control the environment and reproduce quickly | 17:09 |
gibi | ^^ this | 17:09 |
dansmith | you can't use a debugger with the tests normally either, but if you run them manually then you probably can | 17:09 |
dansmith | but I'd still recommend debugging with LOG/print and use the test environment to increase the speed at which you can iterate | 17:10 |
opendevreview | Ghanshyam proposed openstack/nova master: Remove default override for RBAC config options https://review.opendev.org/c/openstack/nova/+/925519 | 18:36 |
opendevreview | Ghanshyam proposed openstack/nova master: DNM: testing new RBAC default change in oslo policy https://review.opendev.org/c/openstack/nova/+/925515 | 18:36 |
opendevreview | Ghanshyam proposed openstack/nova master: DNM: testing new RBAC default change in oslo policy https://review.opendev.org/c/openstack/nova/+/925515 | 18:37 |
*** bauzas_ is now known as bauzas | 19:56 | |
*** clarkb is now known as Guest1974 | 21:33 | |
*** bauzas_ is now known as bauzas | 22:15 | |
*** Guest1974 is now known as clarkb | 22:44 | |
*** bauzas_ is now known as bauzas | 23:17 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!