Friday, 2024-08-02

*** bauzas_ is now known as bauzas00:54
auniyalelodilles, sure :) 04:55
*** bauzas_ is now known as bauzas08:00
*** bauzas_ is now known as bauzas12:16
opendevreviewJulien Le Jeune proposed openstack/nova master: nova-condutor put instance in error state  https://review.opendev.org/c/openstack/nova/+/90165513:05
opendevreviewJulien Le Jeune proposed openstack/nova master: Fix request_specs not updated after failed rebuild  https://review.opendev.org/c/openstack/nova/+/89937913:24
jlejeunebauzas: elodilles: what do you think about that https://review.opendev.org/c/openstack/nova/+/899379 ?13:28
*** ykarel__ is now known as ykarel13:30
opendevreviewMerged openstack/nova stable/2023.2: cpu: Only check governor type on online cores  https://review.opendev.org/c/openstack/nova/+/92451713:30
*** ykarel__ is now known as ykarel13:57
opendevreviewBalazs Gibizer proposed openstack/nova master: [manila]Lock/Unlock share by the share_mapping  https://review.opendev.org/c/openstack/nova/+/92560615:37
opendevreviewBalazs Gibizer proposed openstack/nova master: [manila]Lock/Unlock share by the share_mapping  https://review.opendev.org/c/openstack/nova/+/92560615:37
elinuxhi folks15:40
elinuxanyone online yet ?15:40
elinuxanyone online ?16:06
clarkbelinux: people generally lurk. If you have a question its often best to just ask and if people are able they can answer16:08
elinuxI 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
elinuxi 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
elinuxmy main target is to get the number of rows returned by that query16:14
gibielinux: 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
elinuxgibi: but can I filter out those instances per compute host per tenant or project ?16:22
gibithe hoststate object is per compute 1:1. The Instance object has project_id field16:23
gibihttps://github.com/openstack/nova/blob/bb2d7f9cad577f3a32cb9523e2b1d9a6d6db3407/nova/objects/instance.py#L12616:24
elinuxgibi: 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
elinuxgibi: 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 prompt16:43
gibihttps://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
elinuxgibi: 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 eventlet17:06
gibihonestly I tend to debug by adding extra LOG statement 17:06
dansmithyeah, debug with LOG/print :)17:06
elinuxdansmith: no other way ?17:07
dansmithelinux: 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
dansmithbest thing is to write a test where you can control the environment and reproduce quickly17:09
gibi^^ this17:09
dansmithyou can't use a debugger with the tests normally either, but if you run them manually then you probably can17:09
dansmithbut I'd still recommend debugging with LOG/print and use the test environment to increase the speed at which you can iterate17:10
opendevreviewGhanshyam proposed openstack/nova master: Remove default override for RBAC config options  https://review.opendev.org/c/openstack/nova/+/92551918:36
opendevreviewGhanshyam proposed openstack/nova master: DNM: testing new RBAC default change in oslo policy  https://review.opendev.org/c/openstack/nova/+/92551518:36
opendevreviewGhanshyam proposed openstack/nova master: DNM: testing new RBAC default change in oslo policy  https://review.opendev.org/c/openstack/nova/+/92551518:37
*** bauzas_ is now known as bauzas19:56
*** clarkb is now known as Guest197421:33
*** bauzas_ is now known as bauzas22:15
*** Guest1974 is now known as clarkb22:44
*** bauzas_ is now known as bauzas23:17

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!