Open itdependsnetworks opened 8 months ago
Can you explain a bit more of what you are trying to achieve? provision_instance
is generally called programmatically by the operator
Just looking to not mask the error, if the error is permission denied for sequence main_instancelink_id_seq
it would be ideal to show that vs An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block.
It's not really clear to me why the atomic transaction is eating up the error, but is clear it did.
just for clarity, here is the atomic decorator that was removed to show the underlying error https://github.com/ansible/awx/blob/9bb97dd6586224a44c5a8f3ae466e431c4fcef6c/awx/main/management/commands/provision_instance.py#L59
Hmm, seems to be same issue described here https://code.djangoproject.com/ticket/23353, but either not fully complete or a regression.
Please confirm the following
security@ansible.com
instead.)Bug Summary
Had an issue with permissions (due to some migration fun), but had to remove the
@atomic
decorator in order to see it.Here is what it looked like:
Once we took off the atomic decorator, we saw:
AWX version
23.8.1
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
No response
Operating system
No response
Web browser
No response
Steps to reproduce
Have a bad permission on main_instancelink_id_seq and run
awx-manage provision_instance
Expected results
The error to publish with the underlying issue
Actual results
The error shows a
yield internal_lock
andYou can't execute queries until the end of the 'atomic' block.
Additional information
No response