I am running the postgres-operator on OpenStack Queens and updated from 1.5 to 1.6. With 1.6 the operator updated to spilio 2.0-p2, which leads to the following error message:
2020-12-19 21:36:22,674 - bootstrapping - INFO - Figuring out my environment (Google? AWS? Openstack? Local?)
Traceback (most recent call last):
File "/scripts/configure_spilo.py", line 1012, in <module>
main()
File "/scripts/configure_spilo.py", line 890, in main
placeholders = get_placeholders(provider)
File "/scripts/configure_spilo.py", line 598, in get_placeholders
placeholders['instance_data'] = get_instance_metadata(provider)
File "/scripts/configure_spilo.py", line 392, in get_instance_metadata
metadata['zone'] = openstack_metadata.availability_zone
AttributeError: 'dict' object has no attribute 'availability_zone'
Hi,
I am running the postgres-operator on OpenStack Queens and updated from 1.5 to 1.6. With 1.6 the operator updated to spilio 2.0-p2, which leads to the following error message:
The culprit seems to be https://github.com/zalando/spilo/pull/486/files#diff-e4dcf964214d58d733ae9874d4a2ab4b8e9eb99213307e1666af5dad21a326bbR392, where
requests.get().json()
returns a dict but is treated like an object. The following ipython session shows the error and a possible fix:I will open a PR with the fix in a minute.
Cheers
Max
The text was updated successfully, but these errors were encountered: