opendevreview | melanie witt proposed openstack/nova master: WIP libvirt: Add image multi-backend https://review.opendev.org/c/openstack/nova/+/930967 | 01:01 |
---|---|---|
opendevreview | melanie 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/+/930968 | 01:01 |
opendevreview | melanie witt proposed openstack/nova master: WIP libvirt: Add image multi-backend https://review.opendev.org/c/openstack/nova/+/930967 | 01:47 |
opendevreview | melanie 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/+/930968 | 01:47 |
opendevreview | melanie witt proposed openstack/nova master: DNM try minimalistic imagebackend refactor https://review.opendev.org/c/openstack/nova/+/925635 | 06:30 |
opendevreview | melanie witt proposed openstack/nova master: libvirt: Move cache filename generation to imagebackend https://review.opendev.org/c/openstack/nova/+/930961 | 06:30 |
opendevreview | melanie witt proposed openstack/nova master: libvirt: Add base image format tracking with file extensions https://review.opendev.org/c/openstack/nova/+/930962 | 06:30 |
opendevreview | melanie witt proposed openstack/nova master: db: Add image_type to block_device_mapping table https://review.opendev.org/c/openstack/nova/+/930964 | 06:30 |
opendevreview | melanie witt proposed openstack/nova master: objects: Add image_type to BlockDeviceMapping object https://review.opendev.org/c/openstack/nova/+/930965 | 06:30 |
opendevreview | melanie witt proposed openstack/nova master: virt: Add image_type to relevant DriverBlockDevice https://review.opendev.org/c/openstack/nova/+/930966 | 06:30 |
opendevreview | melanie witt proposed openstack/nova master: WIP libvirt: Add image multi-backend https://review.opendev.org/c/openstack/nova/+/930967 | 06:30 |
opendevreview | melanie 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/+/930968 | 06:30 |
ioni | hi 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 to | 06:55 |
ioni | it returns nothing | 06:55 |
ioni | openstack version is 2023.1 | 06:56 |
ioni | in 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 flavors | 06:56 |
ioni | is it a bug or openstackclient changed his behavior and i need to use other options? | 06:57 |
ioni | i tried with -all, --long, --no-name-lookup but i cannot returned to old behavior | 06:58 |
ioni | i mostly want to get uuid, status of instances on specific hypervisor | 06:59 |
melwitt | ioni: 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 match | 08:14 |
ioni | @melwitt, 7.1.2 | 08:30 |
ioni | @melwitt, https://paste.xinu.at/Ixy6/ | 08:34 |
ralonsoh | sean-k-mooney, hello! I'm pinging you regarding | 08:40 |
ralonsoh | (sorry) | 08:40 |
ralonsoh | regarding WSGIServer. We have a similar implementation in Neutron (UnixDomainWSGIServer) | 08:40 |
ralonsoh | and is implemented with eventlet | 08:40 |
ralonsoh | I'm wondering if you have an alternative or if you have already started migrating it | 08:41 |
sean-k-mooney | ralonsoh: 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 servers | 09: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-mooney | ralonsoh: the second converastaion was the wsgi framework to use instead fo eventlet and i was suggeign movign to falsk since keystone already did | 09:02 |
sean-k-mooney | there are others like fastapi ectra but flask is already used in openstack so why add another depency if we can avoid it | 09:03 |
sean-k-mooney | ralonsoh: 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-mooney | ralonsoh: for nova the nova-api console script/binary has not been the recommended way to run it for 6+ years | 09:07 |
sean-k-mooney | in production and even in devstack the freestandign wsgi script is how that was executed so we were not using the eventlet web server | 09:07 |
opendevreview | Pierre Riteau proposed openstack/nova master: Fix missing backtick in configuration option help https://review.opendev.org/c/openstack/nova/+/931253 | 09:07 |
bauzas | ioni: just saw your message, could you try an older version of openstackclient by installing it in a venv ? | 09:15 |
bauzas | OSC changed a lot between 6.x and 7.x as it now uses the SDK but we may have another regression :( | 09:16 |
ralonsoh | sean-k-mooney, ok, I see. The WSGIServer is used in WSGIService and only for the API | 10:02 |
ralonsoh | we had a different problem: the UnixDomainWSGIServer is used on the agents to provide a wsgi server for the metadata | 10:03 |
sean-k-mooney | ralonsoh: i think you can just swap the socket passed to the http server with a unix domain socket instead of tcp | 10:07 |
ioni | @bauzas, ive downgraded python-openstackclient to 6.6.0, still the same issue | 10:08 |
ioni | should i downgrade sdk as well? | 10:08 |
sean-k-mooney | i have not tired that but i dont think the stdlib webserver actully depend on the transprot protocol | 10:08 |
ioni | to what version? | 10:08 |
ralonsoh | sean-k-mooney, UnixDomainWSGIServer is using a unix socket | 10:09 |
bauzas | ioni: 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-mooney | ralonsoh: 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 server | 10:14 |
ioni | bauzas, whats interesting is that in --debug, i can see details regarding servers on that hypervisor but it doesn't print them | 10:19 |
bauzas | ioni: so this is a OSC bug | 10:20 |
sean-k-mooney | ralonsoh: 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 needed | 10:20 |
bauzas | ioni: can you please provide a paste ? | 10:20 |
ioni | sure | 10:20 |
sean-k-mooney | ralonsoh: there may be better wasy i.e. if flask has a unix server or one of our other exsitng deps does | 10: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 |
bauzas | ioni: perfect | 10:23 |
ioni | @bauzas, i will delete the paste when you are done with it | 10:23 |
bauzas | stephenfin: apparently we have a OSC bug (even with 6.x) ^ | 10:23 |
ioni | that's with 7.1.2 but with 6.6.0 is the same behavior | 10:23 |
* bauzas needs to go off for lunch | 10:23 | |
bauzas | ioni: very quickly before I go off, I can see that Nova returns all the instances | 10:27 |
bauzas | REQ: 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.0 | 10:27 |
bauzas | keystoneauth1/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 |
bauzas | https://xxx.cloud:8774 "GET /v2.1/servers/detail?deleted=False&host=cj201&all_tenants=True HTTP/11" 200 171022 | 10:27 |
bauzas | but then OSC returns none of them | 10:28 |
ioni | yes | 10:28 |
ioni | osc bug, i have an old venv with older versions of pip packages and it works | 10:29 |
ioni | but not sure in which module of python is the bug | 10:29 |
bauzas | gtk | 10:29 |
* bauzas really needs to prepare his lunch for his daughter | 10:30 | |
stephenfin | ioni: bauzas: https://review.opendev.org/c/openstack/openstacksdk/+/929742 https://review.opendev.org/c/openstack/releases/+/930934 | 10:41 |
ioni | stephenfin, i' | 10:42 |
ioni | stephenfin, i'll wait for 4.0.1 | 10:42 |
ioni | stephenfin, but i don't understand who migrate affects a server list --host | 10:43 |
stephenfin | ah, wait, I saw host and read no further... | 10:43 |
ioni | my issue is that server list --all-projects --host cj201 for example doesnt return anything anymore with latest versions | 10:44 |
ioni | with --debug i see stuff there | 10:44 |
stephenfin | Ah, that's this https://review.opendev.org/c/openstack/python-openstackclient/+/926193 | 10:47 |
stephenfin | I thought we'd backported that... | 10:47 |
ioni | let me test that | 10:48 |
ioni | is just one line | 10:48 |
ioni | stephenfin, that was it | 10:49 |
ioni | thanks | 10:49 |
stephenfin | No 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/+/931261 | 10:50 |
ioni | stephenfin, nice. i was worried that maybe 2023.1 doesn't work with latest openstackclient | 10:50 |
stephenfin | Nah, 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 fix | 10:52 |
ioni | stephenfin, thank you | 10:58 |
opendevreview | Merged openstack/nova master: Vmware: Remove uuid parameter from get_vmdk_info call https://review.opendev.org/c/openstack/nova/+/910627 | 11:08 |
opendevreview | Cyril Roelandt proposed openstack/python-novaclient master: [DNM] Replace glanceclient with openstacksdk https://review.opendev.org/c/openstack/python-novaclient/+/931276 | 13:56 |
melwitt | ioni: 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 issue | 15:07 |
opendevreview | Takashi Kajinami proposed openstack/nova master: Drop usage of pkg_resources https://review.opendev.org/c/openstack/nova/+/931312 | 15:25 |
opendevreview | Cyril Roelandt proposed openstack/python-novaclient master: [DNM] Replace glanceclient with openstacksdk https://review.opendev.org/c/openstack/python-novaclient/+/931276 | 20:00 |
opendevreview | Cyril Roelandt proposed openstack/python-novaclient master: [DNM] Replace glanceclient with openstacksdk https://review.opendev.org/c/openstack/python-novaclient/+/931276 | 21:47 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!