Monday, 2021-12-20

Jorhsonsean-k-mooney:do you help to review the patch 761264?02:13
bauzasgood morning Nova08:44
*** brinzhang_ is now known as brinzhang12:38
arne_wiebalckHi! In one of the conductor groups in our Nova/Ironic cell, some compute nodes have been soft-deleted (for not yet understood reasons). While hard-deleting from the compute_nodes table lets Nova re-insert it, it seems the allocations are not fixed by this. The result is that placement is advertising physical nodes which are active ... is there a straight-forward/automatic way to correct this? (This is on Nova Stein :)12:51
opendevreviewJorhson Deng proposed openstack/nova master: process instance in soft-deleting task state during _init_instance  https://review.opendev.org/c/openstack/nova/+/76126413:26
opendevreviewJorhson Deng proposed openstack/nova master: process instance in soft-deleting task state during _init_instance  https://review.opendev.org/c/openstack/nova/+/76126413:35
opendevreviewJonathan Race proposed openstack/nova master: Adds Emulation for aarch64, and ppc64 on x86_64 processors  https://review.opendev.org/c/openstack/nova/+/82205313:57
bauzasarne_wiebalck: hola, sorry wasn't looking at the IRC chan given it was quiet :)14:10
bauzasarne_wiebalck: so you mean you have persisted allocations for some not longer compute services, right?14:10
arne_wiebalckbauzas: heh, yeah, wasn't sure if anyone is still around :)14:10
bauzasuntil tonight :)14:10
arne_wiebalckbauzas: so, the compute are marked as deleted, but placement offers them, which makes me think the allocations have been deleted with the nodes ... but did not come back when the nodes were re-inserted14:11
arne_wiebalckbauzas: we had this in the past, and Belmiro did some magic, but he is not available at the moment14:12
arne_wiebalckbauzas: I will not risk too much either, just in case there is some sync I need to kick off, I may try it14:13
arne_wiebalckbauzas: my main worry is that placement offers physical nodes which are installed :-S14:13
arne_wiebalckbauzas: Ironic stops the installation, but free nodes cannot be installed either (since placement offers all nodes)14:14
arne_wiebalckbauzas: I wasn't sure either if it is safe to remove active nodes from the placement aggregrate (or even deleted the resource providers)14:15
arne_wiebalckbauzas: I have done this with available nodes, but not with active ones14:15
bauzasarne_wiebalck: tbc, do you have resource providers for the deleted compute services ?14:15
arne_wiebalckbauzas: I must have otherwise placement would not offer them, no?14:16
arne_wiebalckbauzas: but let me check for one ...14:16
bauzasarne_wiebalck: sorry I still don't understand14:16
arne_wiebalckbauzas: it is probable since I do not use the correct terms14:16
bauzasarne_wiebalck: so, which Resource Providers do you have ?14:17
bauzasarne_wiebalck: is the usage for every RP good or not ?14:17
bauzasarne_wiebalck: and do you have "orphaned" allocations ?14:17
bauzasan orphaned allocation is an allocation telling it's about some RP UUID but with the RP no longer here14:18
bauzasRP : Resource Provider14:18
arne_wiebalckbauzas: I have resource providers which placement offers me as allocation candidates, but the nodes are actually active in Ironic, so there is an instance on them14:19
bauzasarne_wiebalck: I see so you no longer have allocations for this RP14:19
bauzasthey were deleted when the compute service was deleted14:20
arne_wiebalckbauzas: right, this is what I think14:20
arne_wiebalckbauzas: right, this is my understanding14:20
arne_wiebalckbauzas: and I was thinking the resource tracker would update this, but it does not14:21
opendevreviewJorhson Deng proposed openstack/nova master: recheck the attachment_id after the reschedule successful  https://review.opendev.org/c/openstack/nova/+/79620914:21
bauzasarne_wiebalck: just verifying, could you please ask : "openstack resource provider usage show <rp_uuid>" ? https://docs.openstack.org/osc-placement/latest/cli/index.html#resource-provider-usage-show14:21
bauzasif so, we have a nova-manage command helping for you14:22
arne_wiebalckusage 014:22
bauzas\o/14:22
arne_wiebalckhttps://paste.opendev.org/show/811772/14:22
bauzasokay, so please https://docs.openstack.org/nova/rocky/cli/nova-manage.html#placement14:23
bauzasshit14:23
bauzasnevermind, same for stein14:23
bauzasnova-manage placement heal_allocations [--max-count <max_count>] [--verbose] [--dry-run] [--instance <instance_uuid>]14:23
bauzasthis should heal your allocations14:23
bauzasverify it with --dry-run firstr14:23
arne_wiebalckuh, that looks like what I was looking for, let me try it :)14:24
arne_wiebalckwhat can go wrong one day before the break :)14:24
bauzashttps://docs.openstack.org/nova/latest/cli/nova-manage.html#placement-heal-allocations 14:24
bauzasarne_wiebalck: that's why you should test it first :D14:25
arne_wiebalckbauzas: give me a sec, I need to find a good node ...14:29
bauzassure14:29
arne_wiebalckbauzas: hmm, seems that our client neither has --dry-run, nor --instance ... at least the one I found so far14:36
bauzaslooks like it was added in Train14:37
bauzasso maybe we added it in a backport that you don't have in your client14:37
arne_wiebalckyeah, totally possible14:37
bauzasthe master doc is explaning it 14:37
bauzasbut I can doublecheck the stable/stein branch14:38
arne_wiebalckthanks, will do!14:38
bauzasYUUUP https://github.com/openstack/nova/commits/stable/stein/nova/cmd/manage.py14:38
arne_wiebalckok, let me confirm on our side ...14:39
bauzashttps://review.opendev.org/c/openstack/nova/+/69319914:39
bauzas       Branches:                           stable/stein                                    Tags:                           19.1.0                    19.2.0                    19.3.0                    19.3.1                    19.3.2                    stein-em14:40
bauzas19.0.0 doesn't have it14:40
arne_wiebalckseems like ours is based on 19.0.1 14:41
arne_wiebalckyeah, that fits14:41
arne_wiebalckwithout these two options I will rather wait until Belmiro is back :)14:42
arne_wiebalcksounds too risky to run it across the whole deployment14:42
arne_wiebalckis that a sychronous command, i.e. would it block on the CLI ?14:44
arne_wiebalck(or does it launch healing on the background?)14:45
bauzasarne_wiebalck: agreed on holding until belmiro is back14:51
bauzasarne_wiebalck: yes, it's synchronous, it won't fork threads14:51
arne_wiebalckbauzas: thanks a lot for your help!14:51
gmannbauzas: before you start you leave, can you please check these Yoga py3.6  testing updates https://review.opendev.org/c/openstack/nova/+/821636  https://review.opendev.org/c/openstack/os-traits/+/819205 https://review.opendev.org/c/openstack/placement/+/81920615:29
opendevreviewIlya Popov proposed openstack/nova master: Fix to implement 'pack' or 'spread' VM's NUMA cells  https://review.opendev.org/c/openstack/nova/+/80564915:46
bauzasgmann: ack15:48
bauzasgmann: I just gave you a Christmas present for those 3 :)15:50
gmannbauzas: thanks :), happy Christmas in advance and enjoy your vacation. 15:51
bauzasgmann: sure, will be on the ski slopes :)15:52
gmann:)15:52
opendevreviewGhanshyam proposed openstack/nova stable/train: DNM: test tempest train-last tag  https://review.opendev.org/c/openstack/nova/+/81659816:12
bauzasfolks, calling it a year. Have good times and hopefully, 2022 will be a better year.17:01
*** bauzas is now known as bauzas_pto_till_Jan3rd17:13
gmanno/17:29
opendevreviewJonathan Race proposed openstack/nova master: Adds Emulation for aarch64, and ppc64 on x86_64 processors  https://review.opendev.org/c/openstack/nova/+/82205317:51
opendevreviewMerged openstack/nova master: Re-add python 3.6 functional testing  https://review.opendev.org/c/openstack/nova/+/82163619:32
opendevreviewMerged openstack/placement master: Updating python testing as per Yoga testing runtime  https://review.opendev.org/c/openstack/placement/+/81920619:32
opendevreviewJonathan Race proposed openstack/nova master: Adds Emulation for aarch64, and ppc64 on x86_64 processors  https://review.opendev.org/c/openstack/nova/+/82205320:29
opendevreviewJonathan Race proposed openstack/nova master: Adds Emulation for aarch64, and ppc64 on x86_64 processors  https://review.opendev.org/c/openstack/nova/+/82205321:54

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