Project

General

Profile

Actions

Bug #38060

open

Slow dialog when import role

Added by Benjamin Oeser 15 days ago. Updated 15 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

The dialog for importing the changed roles is quite slow because on the one side it tries to search all ansible collections incl. the foreman ones (which is already an open ticket), but on the other hand it tries to parse some roles multiple times due to the "Proxy::Ansible::ReadVariablesException".

This exception is thrown if a .yaml file doesn't contain any content. This also affects our custom roles, since we use the default ansible structure to create them. If e.g. a role has no default variables (defaults/main.yaml is empty) there error is also shown. It would be nice to ignore empty files.

An example is

2024-12-03T16:08:18 28237291 [E] <Proxy::Ansible::ReadVariablesException> ERF71-4591 [Proxy::Ansible::ReadVariablesException]: Could not parse YAML file: /usr/share/ansible/collections/ansible_collections/google/cloud/roles/gcsfuse/defaults/main.yml

It takes around 2 minutes till the dialog finally opens.

Actions

Also available in: Atom PDF