Jan Gaßner
Jan Gaßner
Here you go, based on documented examples by NetBox maintainers: https://docs.netbox.dev/en/stable/administration/permissions/#constraints ```python import pynetbox def ensure_permission(api, permission): nb_permission = api.users.permissions.get(name=permission['name']) if nb_permission is None: print(f'Creating permission {permission["name"]}') return api.users.permissions.create(permission) #...
We can also experience this or at least a similiar issue on AWX 21.1.0. It happens on Inventory Updates and regular Playbook runs. It happens with different Ansible Core versions...
Found the cause (to our problem at least): Connections were terminated by the Loadbalancer before the K8s cluster, AWX was launching pods in. We have AWX run in Cluster A...
Umph, sorry about that. Accidentially pushed changes for #927 to this branch.
Regarding Test-Failure: Task "Create the awx.ansible.com/v1alpha1.AWX": Resource creation timed out Does not look like a failure introduced with these changes, but rather the test-K8s-cluster not being reachable.
Ah, now I understand the molecule testing setup - did not fully grasp it before. Increased `wait_timeout` to 1500s as suggested.
@rooftopcellist @kdelee Initial db migrations take about 5min on my local minikube setup and on our K8s test environment. The duration of db migrations can vary depending on the setup....
@kdelee Yes, I could implement my suggestion, but your idea of showing a migration screen exceeds my knowledge on AWX, so I would not be sure I'd be able to...
@kdelee Sounds good, will try to get to it added to this PR this week.
@kdelee @rooftopcellist Pushed discussed changes and a little cleanup of `awx-operator` based migration handling. Updated this PRs description with explanation on these changes.