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

Apply fails when tty mode enabled on podman target #3370

Open
jameslikeslinux opened this issue Dec 27, 2024 · 0 comments
Open

Apply fails when tty mode enabled on podman target #3370

jameslikeslinux opened this issue Dec 27, 2024 · 0 comments
Labels
Bug Bug reports and fixes.

Comments

@jameslikeslinux
Copy link

Describe the Bug

Enabling the tty mode for Podman exec commands results in bolt apply and apply blocks failing with:

> bolt apply -e 'notify { "Hello": }' -t podman://nest-stage1-haswell-workstation --log-level=debug
...
Starting: plan
Starting: install puppet and gather facts on podman://nest-stage1-haswell-workstation
Starting: install puppet and gather facts on podman://nest-stage1-haswell-workstation
Starting: task apply_helpers::custom_facts on podman://nest-stage1-haswell-workstation
Running task apply_helpers::custom_facts with '{"plugins":"Sensitive [value redacted]","_task":"apply_helpers::custom_facts"}' on ["podman://nest-stage1-haswell-workstation"]
Running task 'apply_helpers::custom_facts' on podman://nest-stage1-haswell-workstation
{"target":"podman://nest-stage1-haswell-workstation","action":"task","object":null,"status":"failure","value":{"_error":{"details":{},"kind":"puppetlabs.tasks/task_file_error","msg":"no implicit conversion of StringIO into String","issue_code":"WRITE_ERROR"}}}
Finished: task apply_helpers::custom_facts with 1 failure in 0.55 sec
Finished: install puppet and gather facts with 1 failure in 0.68 sec
Finished: install puppet and gather facts with 1 failure in 0.68 sec
Starting: apply catalog on
Starting: apply catalog on
Finished: apply catalog with 0 failures in 0.0 sec
Finished: apply catalog with 0 failures in 0.0 sec
Failed on 1 target: podman://nest-stage1-haswell-workstation
Ran on 1 target in 0.73 sec

Expected Behavior

Apply mode should not be affected by a setting that should only affect run_command.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Define inventory with:
    config:
      podman:
        tty: true
  2. Apply code to a container target.
    bolt apply -e 'notify { "Hello": }' -t podman://container-name
    

Environment

  • Bolt 4.0.0 (gem)
  • Podman 5.1.1
  • Gentoo

Additional Context

I want to use TTY mode to signal to commands that they can output in color.

@jameslikeslinux jameslikeslinux added the Bug Bug reports and fixes. label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug reports and fixes.
Projects
None yet
Development

No branches or pull requests

1 participant