Earlier  
Posted Nick Remark
#openstack-nova - 2020-05-14
17:30:09 openstackgerrit melissaml proposed openstack/os-traits master: Remove translation sections from setup.cfg https://review.opendev.org/728160
17:56:51 NobodyCam Good morning Nova folk's could someone help point me to which database this would come from: `Placement API returning an error response: Conflicting resource provider name: <hostName> already exists. call_func /openstack/venvs/nova-18.1.5.dev5/lib/python2.7/site-packages/nova/api/openstack/placement/wsgi_wrapper.py:31`
18:01:28 melwitt NobodyCam: what version? (has to be older bc placement was removed from nova in train) database would be the placement database, and if the version is old enough, it would be the nova_api database
18:01:58 NobodyCam Morning melwitt :) I'm on rocky
18:02:59 melwitt ok, yeah so if you have a database called 'placement' it will be in there, if not it will be in the database called 'nova_api'
18:04:27 melwitt there's a unique constraint on resource provider name https://github.com/openstack/nova/blob/stable/rocky/nova/db/sqlalchemy/api_models.py#L292-L306
18:04:27 NobodyCam I have nova_api
18:04:56 melwitt resource_providers table
18:07:22 melwitt and if you want to change the name the recommended way is to use the placement cli https://docs.openstack.org/osc-placement/rocky/cli/index.html#resource-provider-set
18:08:22 melwitt although I guess it depends on how you're getting the error. if it's nova trying to do something then you will need to change something in nova. sorry I spoke too soon
18:10:49 NobodyCam we had a hypervisor crash and was brought back with the same name
18:11:38 NobodyCam the error is from a openstack server create with --AZ nova:<Host_fqdn> blah
18:12:20 NobodyCam I only see one entry for the host in resource_providers
18:14:01 melwitt oh, this sounds familiar
18:14:23 NobodyCam hum seem I'm missing something:
18:14:28 NobodyCam https://www.irccloud.com/pastebin/GVwbM6LK/
18:15:53 melwitt the placement cli is a osc plugin so you have to install the osc-placement package to get the commands
18:16:33 melwitt but it sounds like you have a situation where nova is trying to create the resource provider but it already exists
18:18:55 NobodyCam yea
18:19:40 NobodyCam I can delete the record from resource_providers
18:20:32 melwitt this is likely be related to a WIP patch https://review.opendev.org/678100 (just fyi) but to recover, you will need to delete the resource provider. but before you do it, please check if it has any allocations on it by using the placement cli
18:21:02 melwitt openstack resource provider show --allocations <uuid>
18:21:34 melwitt and if there are allocations, save those (copy paste somewhere) because you'll want to restore them after you delete the resource provider
18:22:22 melwitt after you save the allocations, delete the resource provider 'openstack resource provider delete <uuid>'
18:22:34 melwitt restart nova-compute, that should create the new resource provider
18:23:13 melwitt then if you had allocations from earlier, set them on the new resource provider https://docs.openstack.org/osc-placement/rocky/cli/index.html#resource-provider-allocation-set
18:23:35 NobodyCam Awesome :) thank you melwitt Working on getting placement plugin going
18:25:21 melwitt ok cool. yeah after you install osc-placement (either from pip or distro package) then the commands will magically be part of the 'openstack' command
19:35:57 openstackgerrit Andreas Jaeger proposed openstack/nova master: Switch to newer openstackdocstheme and reno versions https://review.opendev.org/728263
19:37:51 NobodyCam melwitt: Again massive thank you, we are back up and working
19:38:39 NobodyCam no allocations so just a delete and restart fixed us right up
19:39:00 melwitt NobodyCam: np, glad to hear. ah good, I was hoping it would be the easy case :)
19:39:19 NobodyCam :)
19:46:38 openstackgerrit Andreas Jaeger proposed openstack/python-novaclient master: Switch to newer openstackdocstheme and reno versions https://review.opendev.org/728270
19:46:58 openstackgerrit Andreas Jaeger proposed openstack/python-novaclient master: Switch to newer openstackdocstheme and reno versions https://review.opendev.org/728270
19:53:12 openstackgerrit melanie witt proposed openstack/nova master: Add packages required for pdf docs build to bindep.txt https://review.opendev.org/727898
20:11:46 gmann sean-k-mooney: change lgtm and not changing the API but i am not sure about mentioned use case of this API to refresh the cache. server external event API is for openstack services mainly. - https://review.opendev.org/#/c/702394/3
22:55:22 openstackgerrit melanie witt proposed openstack/nova master: DNM Try out running sphinx-build in parallel for releasenotes https://review.opendev.org/727429
#openstack-nova - 2020-05-15
00:05:40 openstackgerrit melanie witt proposed openstack/nova master: Configure latex_engine = 'xelatex' for pdf docs build https://review.opendev.org/727898
00:09:08 openstackgerrit melanie witt proposed openstack/nova master: Fix pep8 errors uncovered by flake8 3.8.1 https://review.opendev.org/728312
00:37:37 openstackgerrit Brin Zhang proposed openstack/nova master: Fix flake8 error from hacking <3.0.1 https://review.opendev.org/727589
00:44:12 gmann melwitt: we need this to be in to have right cap for hacking and flake8 - https://review.opendev.org/#/c/727347/1
00:44:19 gmann i thought it was merged
00:44:44 gmann but is doc job still failing ?
00:45:34 melwitt gmann: rechecking not gonna help, docs job still broken
00:46:11 melwitt it did merge but didn't stop the failure, I replied on the ML post
00:46:42 gmann i thought openstackdocstheme 2.1.0 fixed that on gate
00:47:06 melwitt 2.1.1 was intended to fix it but it did not work
00:47:35 melwitt my nova side fix is still proposed but now we have a chicken and egg with the pep8 job
00:47:56 melwitt I sent a ML post about that too a little while ago
00:48:29 gmann ah just saw, i think we can squash it with 727898
00:49:39 brinzhang gmann: the hacking verion should change to 3.1.0?
00:49:42 brinzhang right?
00:50:31 gmann brinzhang: yeah in your patch yes as it will fix the code together
00:50:57 brinzhang gmann: ok, update soon
00:51:53 melwitt I wonder if alex_xu is around
00:56:17 gmann melwitt: this should avoid doc failure - https://review.opendev.org/#/c/727943/4
00:56:44 melwitt gmann: it doesn't because 2.1.1 also fails
00:57:50 melwitt if you look in the docs job build logs, 2.1.1 is installed now
00:58:05 openstackgerrit Brin Zhang proposed openstack/nova master: Bump hacking min version to 3.1.0 https://review.opendev.org/727589
00:58:57 gmann melwitt: not sure why not complete revert that instead if backlist. PS1 was right revert - https://review.opendev.org/#/c/727943/1/upper-constraints.txt
01:00:11 brinzhang gmann: updated, I just only keep the hacking min version to 3.1.0, i.e. hacking>=3.1.0, please check
01:18:38 openstackgerrit Brin Zhang proposed openstack/nova master: Bump hacking min version to 3.1.0 https://review.opendev.org/727589
01:22:11 brinzhang gmann: do we need to continue merged hacking 3.0.1 https://review.opendev.org/#/c/727347/?
01:48:11 openstackgerrit Ghanshyam Mann proposed openstack/nova master: Bump hacking min version to 3.0.1 https://review.opendev.org/727347
01:51:08 melwitt gmann: lol, what a day huh!
01:51:31 melwitt (gate stuff)
01:54:04 gmann :). I think we made little hurry to release new hacking.
01:55:49 gmann I vote is to move back openstackdocstheme to 2.0.2 as nova, cinder are hitting doc + pep8 and may be more projects but not checked
01:55:55 gmann *my vote
01:56:40 gmann asked in requirement channel, let's see if we can get any other fast way to unblock
01:56:51 melwitt yeah, I lean that way too
01:57:49 openstackgerrit Brin Zhang proposed openstack/nova master: Bump hacking min version to 3.1.0 https://review.opendev.org/727589
01:58:23 gmann because hacking is blacklist req so it cannot be controlled on single place (g-r side).
01:58:48 melwitt I see
02:08:37 openstackgerrit Brin Zhang proposed openstack/nova master: Bump hacking min version to 3.1.0 https://review.opendev.org/727589
02:35:23 melwitt gmann: do you plan to depends-on the roll back patch or did you want to try it out some other way?
02:36:07 gmann i can do that.
02:36:46 melwitt or could do a dummy patch
02:37:01 openstackgerrit Ghanshyam Mann proposed openstack/nova master: Bump hacking min version to 3.0.1 https://review.opendev.org/727347
02:37:29 gmann melwitt: as it needs to re-run anyways. done ^^
02:37:43 melwitt yeah, I saw it had already failed the docs job
02:37:54 melwitt cool I'll keep an eye on it
03:13:50 openstackgerrit melanie witt proposed openstack/nova master: Configure latex_engine = 'xelatex' for pdf docs build https://review.opendev.org/727898
03:15:02 melwitt gmann: oh no, depends-on doesn't work for requirements changes??
03:15:05 melwitt still failing
03:15:10 melwitt and pulling in 2.1.1
03:19:19 gmann melwitt: yeah, we need to get requirement revert merge first
03:19:49 melwitt gmann: oh really? depends-on known not to work in this case? I didn't know that, guh
03:20:17 melwitt I thought we were going to be able to test if job passes with the requirement revert
03:43:18 gmann melwitt: left note on this to recheck after req patch merge - https://review.opendev.org/#/c/727347/3
03:43:45 melwitt gmann: cool, I've re-approved it so it's ready to go
03:44:16 gmann bauzas: stephenfin gibi ^^ whoever wake up early. this is req patch to merge first - https://review.opendev.org/#/c/728335/
03:44:21 gmann melwitt: thanks.
03:45:10 gmann going to bed...
03:45:47 melwitt k seeya
06:57:10 openstackgerrit Andreas Jaeger proposed openstack/nova master: DNM: Test openstackdocstheme master https://review.opendev.org/728372
07:01:18 gibi good morning nova
07:03:13 gibi gmann: I see melwitt rechecked it
07:03:14 melwitt gibi: yeah rechecked it just a little while ago, once that lands, our gate should be unblocked. fingers crossed nothing goes wrong

Earlier   Later