eest | stephenfin: my compute/v2/server.py states _max_microversion = '2.73', and if i set that version in clouds.yaml i see '-H "OpenStack-API-Version: compute 2.73"' in the debug out put, but if i comment it out there is no such header being sent and the request fails, not sure i am doing something wrong | 08:03 |
---|---|---|
eest | i guess it is also interesting that even if that max version is present in the code i can also make it do -H "OpenStack-API-Version: compute 2.79" requests by setting that higher version in the config, so it does not seem to cap it either | 08:06 |
eest | i did note that calling conn.config.get_api_version("compute") returns None unless i set a value in clouds.yaml | 08:15 |
eest | frickler: would be intersting to hear what your code returns regarding the config when you are not setting the value | 08:19 |
frickler | the get_api_version returns None for me too when I don't have the override in clouds.yaml. and the debug log for the server create does also show the 2.73 being requested | 08:29 |
eest | interesting | 08:30 |
frickler | but I omitted some of the parameters you use, no user_data, key_name and scheduler_hints. maybe the issue is hiding somewhere in those | 08:30 |
eest | right, yes it is a lot of stuff im sending | 08:31 |
eest | ill try commenting them out | 08:31 |
opendevreview | Jakob Meng proposed openstack/ansible-collections-openstack master: Moved Octavia image upload and CirrOS image identification to Ansible https://review.opendev.org/c/openstack/ansible-collections-openstack/+/866795 | 08:32 |
eest | same error with https://paste.opendev.org/show/bGVtHfX0SdE3UECFa68R/ | 08:35 |
eest | other things i have in my config is auth_url, application_credential_id, application_credential_secret, region_name, interface, identity_api_version and auth_type | 08:39 |
opendevreview | Jakob Meng proposed openstack/ansible-collections-openstack master: [DNM] Refactored coe_cluster{,_template} modules https://review.opendev.org/c/openstack/ansible-collections-openstack/+/866796 | 08:54 |
stephenfin | eest: That's very strange. It works as intended for me https://paste.opendev.org/show/b6wyrVyFUB4Xs4PL09La/ | 10:44 |
stephenfin | eest: Can you create a venv, install openstacksdk from master, and try again? | 10:45 |
stephenfin | Also, are you certain there's no compute_api_version defined in clouds.yaml? | 10:45 |
stephenfin | I also changed '_max_microversion' in openstack/compute/v2/server.py to 2.76 and SDK started using that version once I restarted the interpreter | 10:46 |
opendevreview | PB proposed openstack/ansible-collections-openstack master: Bulk creation of OpenStack SG rules https://review.opendev.org/c/openstack/ansible-collections-openstack/+/863208 | 11:48 |
opendevreview | Jakob Meng proposed openstack/ansible-collections-openstack master: Allow all external commands in tox https://review.opendev.org/c/openstack/ansible-collections-openstack/+/867096 | 12:24 |
opendevreview | Jakob Meng proposed openstack/ansible-collections-openstack master: Added tests for router interface creation in a shared network https://review.opendev.org/c/openstack/ansible-collections-openstack/+/840661 | 12:25 |
opendevreview | Jakob Meng proposed openstack/ansible-collections-openstack master: Dropped obsolete module templates https://review.opendev.org/c/openstack/ansible-collections-openstack/+/866683 | 12:26 |
opendevreview | Jakob Meng proposed openstack/ansible-collections-openstack master: Moved Octavia image upload and CirrOS image identification to Ansible https://review.opendev.org/c/openstack/ansible-collections-openstack/+/866795 | 12:26 |
opendevreview | Jakob Meng proposed openstack/ansible-collections-openstack master: [DNM] Refactored coe_cluster{,_template} modules https://review.opendev.org/c/openstack/ansible-collections-openstack/+/866796 | 12:27 |
opendevreview | PB proposed openstack/ansible-collections-openstack master: Bulk creation of OpenStack SG rules https://review.opendev.org/c/openstack/ansible-collections-openstack/+/863208 | 13:09 |
eest | stephenfin: yes since i am able to get None out of conn.config.get_api_version("compute") when commenting out the line i added after the debugging here it feels certain that there are no overlapping stuff (the config is tiny, just for one site so it would be hard for stuff to hide) | 13:56 |
eest | ill see if i can throw together a venv | 13:56 |
opendevreview | Jakob Meng proposed openstack/ansible-collections-openstack master: Allow all external commands in tox https://review.opendev.org/c/openstack/ansible-collections-openstack/+/867096 | 14:10 |
eest | stephenfin: so i did this: python3 -m venv my-venv; . my-venv/bin/activate; pip3 install git+https://github.com/openstack/openstacksdk; pip3 list | grep openstack | 14:59 |
eest | openstacksdk 0.103.1.dev7 | 14:59 |
eest | still get "Additional properties are not allowed (u'volume_type' was unexpected)" | 14:59 |
eest | i am running this on macOS, not sure if that is relevant | 15:00 |
eest | i also see from the stack trace that i am inside my-venv/lib/python3.10/site-packages/openstack/exceptions.py so my script run should be picking up the venv-stuff as expected | 15:05 |
stephenfin | eest: just for sanity checking | 15:19 |
stephenfin | >>> import openstack | 15:19 |
stephenfin | >>> openstack.__path__ | 15:20 |
stephenfin | points to the venv? | 15:20 |
stephenfin | I ran the following against a local DevStack env using master of SDK. No issues | 15:20 |
stephenfin | https://paste.opendev.org/show/bfOAZEjUrUbXpTLwOCJ8/ | 15:21 |
stephenfin | https://paste.opendev.org/show/bA6QDIFI1ztr2IpLU2hW/ <-- output | 15:23 |
stephenfin | https://paste.opendev.org/show/bkrfwsJNzvo4tNsvGbVI/ <-- bog standard clouds.yaml generated by devstack | 15:24 |
opendevreview | Brian Haley proposed openstack/python-openstackclient master: Fix parameter handling in server add fixed ip cmd https://review.opendev.org/c/openstack/python-openstackclient/+/866811 | 15:44 |
opendevreview | Brian Haley proposed openstack/python-openstackclient master: Fix parameter handling in server add fixed ip cmd https://review.opendev.org/c/openstack/python-openstackclient/+/866811 | 16:41 |
opendevreview | Jakob Meng proposed openstack/ansible-collections-openstack master: Allow all external commands in tox https://review.opendev.org/c/openstack/ansible-collections-openstack/+/867096 | 19:54 |
opendevreview | Jakob Meng proposed openstack/ansible-collections-openstack master: Allow all external commands in tox https://review.opendev.org/c/openstack/ansible-collections-openstack/+/867096 | 20:10 |
opendevreview | Jakob Meng proposed openstack/ansible-collections-openstack master: Allow all external commands in tox https://review.opendev.org/c/openstack/ansible-collections-openstack/+/867096 | 20:59 |
opendevreview | Jakob Meng proposed openstack/ansible-collections-openstack master: Allow all external commands in tox https://review.opendev.org/c/openstack/ansible-collections-openstack/+/867096 | 21:01 |
*** tosky is now known as Guest1527 | 22:34 | |
*** tosky_ is now known as tosky | 22:34 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!