Friday, 2022-12-09

eeststephenfin: 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 wrong08:03
eesti 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 either08:06
eesti did note that calling conn.config.get_api_version("compute") returns None unless i set a value in clouds.yaml08:15
eestfrickler: would be intersting to hear what your code returns regarding the config when you are not setting the value08:19
fricklerthe 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 requested08:29
eestinteresting08:30
fricklerbut 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
eestright, yes it is a lot of stuff im sending08:31
eestill try commenting them out08:31
opendevreviewJakob 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/+/86679508:32
eestsame error with https://paste.opendev.org/show/bGVtHfX0SdE3UECFa68R/08:35
eestother things i have in my config is auth_url, application_credential_id, application_credential_secret, region_name, interface, identity_api_version and auth_type08:39
opendevreviewJakob Meng proposed openstack/ansible-collections-openstack master: [DNM] Refactored coe_cluster{,_template} modules  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/86679608:54
stephenfineest: That's very strange. It works as intended for me https://paste.opendev.org/show/b6wyrVyFUB4Xs4PL09La/10:44
stephenfineest: Can you create a venv, install openstacksdk from master, and try again?10:45
stephenfinAlso, are you certain there's no compute_api_version defined in clouds.yaml?10:45
stephenfinI also changed '_max_microversion' in openstack/compute/v2/server.py to 2.76 and SDK started using that version once I restarted the interpreter10:46
opendevreviewPB proposed openstack/ansible-collections-openstack master: Bulk creation of OpenStack SG rules  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/86320811:48
opendevreviewJakob Meng proposed openstack/ansible-collections-openstack master: Allow all external commands in tox  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/86709612:24
opendevreviewJakob 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/+/84066112:25
opendevreviewJakob Meng proposed openstack/ansible-collections-openstack master: Dropped obsolete module templates  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/86668312:26
opendevreviewJakob 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/+/86679512:26
opendevreviewJakob Meng proposed openstack/ansible-collections-openstack master: [DNM] Refactored coe_cluster{,_template} modules  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/86679612:27
opendevreviewPB proposed openstack/ansible-collections-openstack master: Bulk creation of OpenStack SG rules  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/86320813:09
eeststephenfin: 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
eestill see if i can throw together a venv13:56
opendevreviewJakob Meng proposed openstack/ansible-collections-openstack master: Allow all external commands in tox  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/86709614:10
eeststephenfin: so i did this: python3 -m venv my-venv; . my-venv/bin/activate; pip3 install git+https://github.com/openstack/openstacksdk; pip3 list | grep openstack14:59
eestopenstacksdk       0.103.1.dev714:59
eeststill get "Additional properties are not allowed (u'volume_type' was unexpected)"14:59
eesti am running this on macOS, not sure if that is relevant15:00
eesti 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 expected15:05
stephenfineest: just for sanity checking15:19
stephenfin>>> import openstack15:19
stephenfin>>> openstack.__path__15:20
stephenfinpoints to the venv?15:20
stephenfinI ran the following against a local DevStack env using master of SDK. No issues15:20
stephenfinhttps://paste.opendev.org/show/bfOAZEjUrUbXpTLwOCJ8/15:21
stephenfinhttps://paste.opendev.org/show/bA6QDIFI1ztr2IpLU2hW/ <-- output15:23
stephenfinhttps://paste.opendev.org/show/bkrfwsJNzvo4tNsvGbVI/ <-- bog standard clouds.yaml generated by devstack15:24
opendevreviewBrian Haley proposed openstack/python-openstackclient master: Fix parameter handling in server add fixed ip cmd  https://review.opendev.org/c/openstack/python-openstackclient/+/86681115:44
opendevreviewBrian Haley proposed openstack/python-openstackclient master: Fix parameter handling in server add fixed ip cmd  https://review.opendev.org/c/openstack/python-openstackclient/+/86681116:41
opendevreviewJakob Meng proposed openstack/ansible-collections-openstack master: Allow all external commands in tox  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/86709619:54
opendevreviewJakob Meng proposed openstack/ansible-collections-openstack master: Allow all external commands in tox  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/86709620:10
opendevreviewJakob Meng proposed openstack/ansible-collections-openstack master: Allow all external commands in tox  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/86709620:59
opendevreviewJakob Meng proposed openstack/ansible-collections-openstack master: Allow all external commands in tox  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/86709621:01
*** tosky is now known as Guest152722:34
*** tosky_ is now known as tosky22:34

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