Katello nightly pipeline failed:
https://ci.theforeman.org/job/katello-nightly-rpm-pipeline/2053/
foreman-pipeline-katello-rpm-nightly (failed) (remote job)
Katello nightly pipeline failed:
https://ci.theforeman.org/job/katello-nightly-rpm-pipeline/2053/
foreman-pipeline-katello-rpm-nightly (failed) (remote job)
There’s a JSON parse error:
not ok 1 centos9-stream upgrade: proxy is registered
# (from function `setup' in test file fb-katello-proxy.bats, line 13)
# `PROXY_HOSTNAME=$(echo $PROXY_INFO | ruby -e "require 'json'; puts JSON.load(ARGF.read)['Name']")' failed
# $ [fb-katello-proxy.bats, line 11]
# $ PROXY_ID=2
# $ PROXY_INFO=$(hammer --output json proxy info --id $PROXY_ID)
# $ hammer --output json proxy info --id $PROXY_ID
# $ PROXY_HOSTNAME=$(echo $PROXY_INFO | ruby -e "require 'json'; puts JSON.load(ARGF.read)['Name']")
# $ echo $PROXY_INFO
# $ ruby -e "require 'json'; puts JSON.load(ARGF.read)['Name']"
# /usr/share/ruby/json/common.rb:216:in `parse': 809: unexpected token at 'Warning: An error occured while loading module hammer_cli_foreman_puppet. { "Id": 2, "Name": "pipe-up-katello-proxy-nightly-centos9-stream.example.com", "URL": "https://pipe-up-katello-proxy-nightly-centos9-stream.example.com:9090", "Host count": 1, "Features": { "1": { "Name": "Container_Gateway" }, "2": { "Name": "Pulpcore" }, "3": { "Name": "Templates" }, "4": { "Name": "Logs" }, "5": { "Name": "Registration" } }, "Locations": [ { "Name": "Default Location", "Id": 2 } ], "Organizations": [ { "Name": "Default Organization", "Id": 1 } ], "Created at": "2024-06-30 23:02:11 UTC", "Updated at": "2024-06-30 23:02:11 UTC" } (JSON::ParserError)
# '
# from /usr/share/ruby/json/common.rb:216:in `parse'
# from /usr/share/ruby/json/common.rb:569:in `load'
# from -e:1:in `<main>'
This is because a warning is printed to STDOUT instead of STDERR (including a typo in occurred).
I’ve opened a PR to address that:
But I haven’t looked at why it exactly fails to load the module.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.