Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use yaml output in the default callback #383

Merged
merged 1 commit into from
Jan 2, 2024
Merged

use yaml output in the default callback #383

merged 1 commit into from
Jan 2, 2024

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Jan 2, 2024

before:

TASK [repoclosure : Run repoclosure] ****************************************
fatal: [foreman-staging-repoclosure-el8]: FAILED! => {"changed": false, "command": "dnf repoclosure --refresh --newest --config /tmp/ansible.bmt_ue75repoclosure/yum.conf --check el8-foreman-nightly-staging --repo el8-foreman-nightly-staging --repo el8-baseos --repo el8-appstream --repo el8-powertools --repo el8-extras --repo el8-puppet-7 --repo el8-candlepin-4.3-staging", "msg": "Repoclosure failed", "output": "Unable to detect release version (use '--releasever' to specify release version)\nError: Repoclosure ended with unresolved dependencies (1) across 1 packages.\npackage: rubygem-sassc-2.4.0-2.el8.x86_64 from el8-foreman-nightly-staging\n  unresolved deps (1):\n    (libsass.so.1 if libc.so.6)\n"}

after:

TASK [repoclosure : Run repoclosure] ****************************************
fatal: [foreman-staging-repoclosure-el8]: FAILED! =>
    changed: false
    command: dnf repoclosure --refresh --newest --config /tmp/ansible.vsmlz8rprepoclosure/yum.conf
        --check el8-foreman-nightly-staging --repo el8-foreman-nightly-staging --repo
        el8-baseos --repo el8-appstream --repo el8-powertools --repo el8-extras --repo
        el8-puppet-7 --repo el8-candlepin-4.3-staging
    msg: Repoclosure failed
    output: |-
        Unable to detect release version (use '--releasever' to specify release version)
        Error: Repoclosure ended with unresolved dependencies (1) across 1 packages.
        package: rubygem-sassc-2.4.0-2.el8.x86_64 from el8-foreman-nightly-staging
          unresolved deps (1):
            (libsass.so.1 if libc.so.6)

Fixes: 8331644

before:

```
TASK [repoclosure : Run repoclosure] ****************************************
fatal: [foreman-staging-repoclosure-el8]: FAILED! => {"changed": false, "command": "dnf repoclosure --refresh --newest --config /tmp/ansible.bmt_ue75repoclosure/yum.conf --check el8-foreman-nightly-staging --repo el8-foreman-nightly-staging --repo el8-baseos --repo el8-appstream --repo el8-powertools --repo el8-extras --repo el8-puppet-7 --repo el8-candlepin-4.3-staging", "msg": "Repoclosure failed", "output": "Unable to detect release version (use '--releasever' to specify release version)\nError: Repoclosure ended with unresolved dependencies (1) across 1 packages.\npackage: rubygem-sassc-2.4.0-2.el8.x86_64 from el8-foreman-nightly-staging\n  unresolved deps (1):\n    (libsass.so.1 if libc.so.6)\n"}
```

after:
```
TASK [repoclosure : Run repoclosure] ****************************************
fatal: [foreman-staging-repoclosure-el8]: FAILED! =>
    changed: false
    command: dnf repoclosure --refresh --newest --config /tmp/ansible.vsmlz8rprepoclosure/yum.conf
        --check el8-foreman-nightly-staging --repo el8-foreman-nightly-staging --repo
        el8-baseos --repo el8-appstream --repo el8-powertools --repo el8-extras --repo
        el8-puppet-7 --repo el8-candlepin-4.3-staging
    msg: Repoclosure failed
    output: |-
        Unable to detect release version (use '--releasever' to specify release version)
        Error: Repoclosure ended with unresolved dependencies (1) across 1 packages.
        package: rubygem-sassc-2.4.0-2.el8.x86_64 from el8-foreman-nightly-staging
          unresolved deps (1):
            (libsass.so.1 if libc.so.6)
```

Fixes: 8331644
@evgeni
Copy link
Member Author

evgeni commented Jan 2, 2024

This works since core 2.13, but luckily Ansible doesn't check for unknown config options, so older won't break.

@ekohl ekohl merged commit e2b3a2c into master Jan 2, 2024
21 checks passed
@ekohl ekohl deleted the yaml-output branch January 2, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants