Thursday, 2024-10-03

opendevreviewmelanie witt proposed openstack/nova master: WIP libvirt: Add image multi-backend  https://review.opendev.org/c/openstack/nova/+/93096701:01
opendevreviewmelanie witt proposed openstack/nova master: api: Add microversion 2.97 to add image_type to block_device_mapping_v2  https://review.opendev.org/c/openstack/nova/+/93096801:01
opendevreviewmelanie witt proposed openstack/nova master: WIP libvirt: Add image multi-backend  https://review.opendev.org/c/openstack/nova/+/93096701:47
opendevreviewmelanie witt proposed openstack/nova master: api: Add microversion 2.97 to add image_type to block_device_mapping_v2  https://review.opendev.org/c/openstack/nova/+/93096801:47
opendevreviewmelanie witt proposed openstack/nova master: DNM try minimalistic imagebackend refactor  https://review.opendev.org/c/openstack/nova/+/92563506:30
opendevreviewmelanie witt proposed openstack/nova master: libvirt: Move cache filename generation to imagebackend  https://review.opendev.org/c/openstack/nova/+/93096106:30
opendevreviewmelanie witt proposed openstack/nova master: libvirt: Add base image format tracking with file extensions  https://review.opendev.org/c/openstack/nova/+/93096206:30
opendevreviewmelanie witt proposed openstack/nova master: db: Add image_type to block_device_mapping table  https://review.opendev.org/c/openstack/nova/+/93096406:30
opendevreviewmelanie witt proposed openstack/nova master: objects: Add image_type to BlockDeviceMapping object  https://review.opendev.org/c/openstack/nova/+/93096506:30
opendevreviewmelanie witt proposed openstack/nova master: virt: Add image_type to relevant DriverBlockDevice  https://review.opendev.org/c/openstack/nova/+/93096606:30
opendevreviewmelanie witt proposed openstack/nova master: WIP libvirt: Add image multi-backend  https://review.opendev.org/c/openstack/nova/+/93096706:30
opendevreviewmelanie witt proposed openstack/nova master: api: Add microversion 2.97 to add image_type to block_device_mapping_v2  https://review.opendev.org/c/openstack/nova/+/93096806:30
ionihi guys, i used to be able for years to do openstack server list --all-projects --host hostname and get the servers deployed on hostname server. now with latest version of openstackclient and nova, im not able to06:55
ioniit returns nothing 06:55
ioniopenstack version is 2023.106:56
ioniin the nova logs, i see a call for servers in the same way of using older version of openstack client, but with older version of openstacklient, nova gets another call for flavors06:56
ioniis it a bug or openstackclient changed his behavior and i need to use other options?06:57
ionii  tried with -all, --long, --no-name-lookup but i cannot returned to old behavior06:58
ionii mostly want to get uuid, status of instances on specific hypervisor 06:59
melwittioni: what is your openstackclient version? "openstack --version" I just tried with 6.6.0 (albeit with nova from the master branch) and --host works as long as it's an exact match on the hostname. it won't do a regex match08:14
ioni@melwitt, 7.1.208:30
ioni@melwitt, https://paste.xinu.at/Ixy6/08:34
ralonsohsean-k-mooney, hello! I'm pinging you regarding 08:40
ralonsoh(sorry)08:40
ralonsohregarding WSGIServer. We have a similar implementation in Neutron (UnixDomainWSGIServer)08:40
ralonsohand is implemented with eventlet08:40
ralonsohI'm wondering if you have an alternative or if you have already started migrating it08:41
sean-k-mooneyralonsoh: so we had 2 converstain on related topic.  the first related to  the nova-api consol script where we were considering  entirly removing it  and only provide wthe wsgi script allowing people to run it under uwsgi,apache2 mod_wsgi or gunicorn the alternitive was to to use one of python built in web servers09:02
sean-k-mooney(https://docs.python.org/3/library/wsgiref.html#module-wsgiref.simple_server or https://docs.python.org/3/library/http.server.html#http.server.ThreadingHTTPServer) or use and external one like ( gunicorn or  flask)09:02
sean-k-mooneyralonsoh: the second converastaion was the wsgi framework to use instead fo eventlet and i was suggeign movign to falsk since keystone already did09:02
sean-k-mooneythere are others like fastapi ectra but flask is already used in openstack so why add another depency if we can avoid it09:03
sean-k-mooneyralonsoh: i know neutron is in a slightly diffent place because you did not have a wsgi script and that was not the default way to run the api 09:06
sean-k-mooneyralonsoh: for nova the nova-api console script/binary has not been the recommended way to run it for 6+ years09:07
sean-k-mooneyin production and even in devstack the freestandign wsgi script is how that was executed so we were not using the eventlet web server09:07
opendevreviewPierre Riteau proposed openstack/nova master: Fix missing backtick in configuration option help  https://review.opendev.org/c/openstack/nova/+/93125309:07
bauzasioni: just saw your message, could you try an older version of openstackclient by installing it in a venv ?09:15
bauzasOSC changed a lot between 6.x and 7.x as it now uses the SDK but we may have another regression :(09:16
ralonsohsean-k-mooney, ok, I see. The WSGIServer is used in WSGIService and only for the API10:02
ralonsohwe had a different problem: the UnixDomainWSGIServer is used on the agents to provide a wsgi server for the metadata10:03
sean-k-mooneyralonsoh: i think you can just swap the socket passed to the http server with a unix domain socket instead of tcp10:07
ioni@bauzas, ive downgraded python-openstackclient to 6.6.0, still the same issue10:08
ionishould i downgrade sdk as well?10:08
sean-k-mooneyi have not tired that but i dont think the stdlib webserver actully depend on the transprot protocol10:08
ionito what version?10:08
ralonsohsean-k-mooney, UnixDomainWSGIServer is using a unix socket10:09
bauzasioni: well, could you then use DEBUG level with OSC to see the call and the return ?10:09
ioni@bauzas, sure thing, can you give me instructions ?10:10
sean-k-mooneyralonsoh: right but what i mean is i think they way you use https://docs.python.org/3/library/http.server.html#http.server.SimpleHTTPRequestHandler for example is you create a socket server use that to serve the web server10:14
ionibauzas, whats interesting is that in --debug, i can see details regarding servers on that hypervisor but it doesn't print them10:19
bauzasioni: so this is a OSC bug10:20
sean-k-mooneyralonsoh: currently https://docs.python.org/3/library/socketserver.html only provide tcp and udp concreate implamtion but you coudl inherit form https://docs.python.org/3/library/socketserver.html#socketserver.BaseServer and create a unix variaint and use the https://docs.python.org/3/library/socketserver.html#socketserver.ThreadingMixIn if needed10:20
bauzasioni: can you please provide a paste ?10:20
ionisure10:20
sean-k-mooneyralonsoh: there may be better wasy i.e. if flask has a unix server or one of our other exsitng deps does10:21
bauzas(with the DEBUG level, but if you want, just modify the compute nodes)10:21
ioni@bauzas, https://paste.xinu.at/ZFZ8ic/10:22
ioni@bauzas, is this what you need?10:22
bauzasioni: perfect 10:23
ioni@bauzas, i will delete the paste when you are done with it10:23
bauzasstephenfin: apparently we have a OSC bug (even with 6.x) ^10:23
ionithat's with 7.1.2 but with 6.6.0 is the same behavior 10:23
* bauzas needs to go off for lunch10:23
bauzasioni: very quickly before I go off, I can see that Nova returns all the instances10:27
bauzasREQ: curl -g -i -X GET "https://xxx.cloud:8774/v2.1/servers/detail?flavor=None&image=None&name=None&project_id=None&reservation_id=None&status=None&user_id=None&deleted=False&host=cj201&ip=None&ip6=None&changes-since=None&changes-before=None&all_tenants=True" -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.95" -H "User-Agent: openstacksdk/4.0.010:27
bauzaskeystoneauth1/5.8.0 python-requests/2.32.3 CPython/3.12.7" -H "X-Auth-Token: {SHA256}7be3037be38c6e0589e4a584f9d26b254f9fd49a435336b9f510b2fbfa64fa65" -H "X-OpenStack-Nova-API-Version: 2.95"10:27
bauzashttps://xxx.cloud:8774 "GET /v2.1/servers/detail?deleted=False&host=cj201&all_tenants=True HTTP/11" 200 17102210:27
bauzasbut then OSC returns none of them10:28
ioniyes10:28
ioniosc bug, i have an old venv with older versions of pip packages and it works10:29
ionibut not sure in which module of python is the bug 10:29
bauzasgtk10:29
* bauzas really needs to prepare his lunch for his daughter10:30
stephenfinioni: bauzas: https://review.opendev.org/c/openstack/openstacksdk/+/929742 https://review.opendev.org/c/openstack/releases/+/93093410:41
ionistephenfin, i'10:42
ionistephenfin, i'll wait for 4.0.110:42
ionistephenfin, but i don't understand who migrate affects a server list --host10:43
stephenfinah, wait, I saw host and read no further...10:43
ionimy issue is that server list --all-projects --host cj201 for example doesnt return anything anymore with latest versions10:44
ioniwith --debug i see stuff there 10:44
stephenfinAh, that's this https://review.opendev.org/c/openstack/python-openstackclient/+/92619310:47
stephenfinI thought we'd backported that...10:47
ionilet me test that10:48
ioniis just one line10:48
ionistephenfin, that was it10:49
ionithanks10:49
stephenfinNo worries. The backport is proposed now and will be out in 7.1.3 probably early next week https://review.opendev.org/c/openstack/python-openstackclient/+/93126110:50
ionistephenfin, nice. i was worried that maybe 2023.1 doesn't work with latest openstackclient10:50
stephenfinNah, we just migrated all of the remaining novaclient usage in OSC to SDK in 2024.2 and our test coverage was not as good as we had thought :( There will likely be more small things uncovered but nothing that isn't an easy fix10:52
ionistephenfin, thank you10:58
opendevreviewMerged openstack/nova master: Vmware: Remove uuid parameter from get_vmdk_info call  https://review.opendev.org/c/openstack/nova/+/91062711:08
opendevreviewCyril Roelandt proposed openstack/python-novaclient master: [DNM] Replace glanceclient with openstacksdk  https://review.opendev.org/c/openstack/python-novaclient/+/93127613:56
melwittioni: looks like I have openstacksdk 3.3.0 so that's why I didn't see what you were seeing. glad yall were able to find what was causing the issue15:07
opendevreviewTakashi Kajinami proposed openstack/nova master: Drop usage of pkg_resources  https://review.opendev.org/c/openstack/nova/+/93131215:25
opendevreviewCyril Roelandt proposed openstack/python-novaclient master: [DNM] Replace glanceclient with openstacksdk  https://review.opendev.org/c/openstack/python-novaclient/+/93127620:00
opendevreviewCyril Roelandt proposed openstack/python-novaclient master: [DNM] Replace glanceclient with openstacksdk  https://review.opendev.org/c/openstack/python-novaclient/+/93127621:47

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