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

Precompile pipeline handle bosh error during push-bosh job in repackage-releases-fallback task #442

Closed
o-orand opened this issue Nov 29, 2023 · 0 comments · Fixed by #443
Assignees
Labels
Milestone

Comments

@o-orand
Copy link
Member

o-orand commented Nov 29, 2023

Expected behavior

Observed behavior

The following serialization is used when bosh generates an error in the repackaged-releases task:

WARNING: fail to repackage all releases, please check /tmp/build/22f65861/repackaged-releases/errors.yml
---
Bosh director: !ruby/exception:Tasks::Bosh::BoshCliError
  message: |-
    Stderr:
    Stdout:
    {
        "Tables": null,
        "Blocks": null,
        "Lines": [
            "Fetching info:\n  Performing request GET 'https://192.1.6.8:25555/info':\n    Performing GET request:\n      Retry: Get \"https://192.1.6.8:25555/info\": dial tcp 192.1.6.8:25555: connect: connection refused",
            "Exit code 1"
        ]
    }
  backtrace:
  - "/tmp/build/22f65861/cf-ops-automation/lib/tasks/bosh/executor.rb:39:in `handle_bosh_cli_response'"
  - "/tmp/build/22f65861/cf-ops-automation/lib/tasks/bosh/executor.rb:34:in `run_command'"
  - "/tmp/build/22f65861/cf-ops-automation/lib/tasks/bosh/list_releases.rb:7:in `execute'"
  - "/tmp/build/22f65861/cf-ops-automation/concourse/tasks/repackage_boshreleases/repackage_releases.rb:133:in `filter_releases'"
  - "/tmp/build/22f65861/cf-ops-automation/concourse/tasks/repackage_boshreleases/repackage_releases.rb:32:in `process'"
  - cf-ops-automation/concourse/tasks/repackage_boshreleases/run.rb:42:in `<main>'

However, COA cannot deserialize it properly:

cf-ops-automation/concourse/tasks/repackage_boshreleases_fallback/run.rb
/usr/local/lib/ruby/3.1.0/psych/class_loader.rb:99:in `find': Tried to load unspecified class: Tasks::Bosh::BoshCliError (Psych::DisallowedClass)
       ...
	from /usr/local/lib/ruby/3.1.0/psych.rb:670:in `load_file'
	from /tmp/build/12c3170e/cf-ops-automation/concourse/tasks/repackage_boshreleases_fallback/repackage_releases_fallback.rb:26:in `initialize'
	from cf-ops-automation/concourse/tasks/repackage_boshreleases_fallback/run.rb:25:in `new'
	from cf-ops-automation/concourse/tasks/repackage_boshreleases_fallback/run.rb:25:in `<main>'
total 0
WARNING: fail to repackage all releases, please check /tmp/build/12c3170e/repackaged-releases-fallback/fallback-errors.yml
cat: /tmp/build/12c3170e/repackaged-releases-fallback/fallback-errors.yml: No such file or directory

Affected release

Reproduced on version 6.1.3, but since 6.0.0 with #402

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant