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

Allow Stdin input on CLI commands #6242

Closed
36 of 37 tasks
tinova opened this issue Jun 21, 2023 · 1 comment · Fixed by OpenNebula/docs#2642 or OpenNebula/docs#2644
Closed
36 of 37 tasks

Allow Stdin input on CLI commands #6242

tinova opened this issue Jun 21, 2023 · 1 comment · Fixed by OpenNebula/docs#2642 or OpenNebula/docs#2644

Comments

@tinova
Copy link
Member

tinova commented Jun 21, 2023

Description

Currently templates for resouces cannot be input as stdin, only files allowed

To Reproduce

Try to create a resource in OpenNebula with the CLI on a bash pipe

Expected behavior

Allow Stdin in the CLI, instead of awkward workarounds like temp files.

Details

  • Affected Component: CLI
  • Hypervisor: All
  • Version: development

Progress Status

  • Code committed
    • onevm create
    • onevm disk-attach
    • onevm nic-attach
    • onevm resize
    • onevm updateconf
    • onedatastore create
    • oneimage create
    • onemarket create
    • onemarketapp create
    • onetemplate create
    • onetemplate instantiate
    • onevnet create
    • onevrouter create
    • onevrouter instantiate
    • onevrouter nic-attach
    • oneflow-template create
    • oneflow-template instantiate
  • Testing - QA
    • onevm create
    • onevm disk-attach
    • onevm nic-attach
    • onevm resize
    • onevm updateconf
    • onedatastore create
    • oneimage create
    • onemarket create
    • onemarketapp create
    • onetemplate create
    • onetemplate instantiate
    • onevnet create
    • onevrouter create
    • onevrouter instantiate
    • onevrouter nic-attach
    • oneflow-template create
    • oneflow-template instantiate
  • Documentation
    • Release notes
    • compatibility
    • bash symbols escaping
@tinova tinova added this to the Release 7.0 milestone Jun 21, 2023
@dann1 dann1 modified the milestones: Release 7.0, Release 6.6.3 Jun 26, 2023
dann1 added a commit to dann1/docs that referenced this issue Jul 6, 2023
dann1 added a commit to dann1/docs that referenced this issue Jul 6, 2023
dann1 added a commit to dann1/docs that referenced this issue Jul 6, 2023
@dann1 dann1 linked a pull request Jul 6, 2023 that will close this issue
@dann1 dann1 modified the milestones: Release 6.6.3, Release 6.8 Jul 6, 2023
@tinova tinova closed this as completed Jul 7, 2023
tinova pushed a commit to OpenNebula/docs that referenced this issue Jul 7, 2023
dann1 added a commit to dann1/docs that referenced this issue Jul 7, 2023
dann1 added a commit to dann1/docs that referenced this issue Jul 7, 2023
@dann1 dann1 linked a pull request Jul 7, 2023 that will close this issue
tinova pushed a commit to OpenNebula/docs that referenced this issue Jul 10, 2023
@paczerny
Copy link
Member

stdin for update methods not implement, the method is used for almost all commands. The processing of all commands is here
Add

elsif STDIN.wait_readable(0)
    STDIN.read

in front of elseif append should fix it.

@paczerny paczerny reopened this Aug 29, 2023
@tinova tinova closed this as completed Sep 7, 2023
dann1 added a commit to dann1/docs that referenced this issue Oct 23, 2023
tinova pushed a commit to OpenNebula/docs that referenced this issue Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment