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

missing yamls in opennebula-cli gem #5913

Closed
3 tasks
dann1 opened this issue Jul 11, 2022 · 0 comments
Closed
3 tasks

missing yamls in opennebula-cli gem #5913

dann1 opened this issue Jul 11, 2022 · 0 comments

Comments

@dann1
Copy link
Contributor

dann1 commented Jul 11, 2022

Description
Out of the box, each CLI command requires some pre-configured yaml files for the commands output formatting. Those files are missing when installing the gem. Resulting in every command failing out of the box.

To Reproduce

  • gem install opennebula-cli
  • Issue any command will result in
root@ubuntu2004-6355:~# onetemplate list -u my_user -p my_password
No such file or directory @ rb_sysopen - /etc/one/cli/onetemplate.yaml

Expected behavior
Since the gem is just the CLI ruby required library and the full setup is carried out by the opennebula-tools package. There should be a better handling of this missing yamls situation. Some alternatives

  • gem install script notification
  • description about this in rubygems
  • include the yamls in the gem installation
  • better error message

Details

  • Version: probably all

Additional context
This is somewhat mentioned in each command help but it doesn't imply it should exist by default

root@ubuntu2004-6354:~# onevm --help | grep -i yaml
     -y, --yaml                Show the resource in YAML format
        You can configure the actions in /etc/one/cli/onevm.yaml
        valid options: adjust, csv, csv_del, delay, describe, expand, extended, filter, json, kilobytes, list, listconf, no_expand, no_header, no_pager, numeric, operator, search, size, xml, yaml
        valid options: all, decrypt, json, xml, yaml
        valid options: adjust, csv, csv_del, delay, expand, extended, filter, json, kilobytes, list, listconf, no_expand, no_header, no_pager, numeric, operator, size, xml, yaml

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
@paczerny paczerny self-assigned this Jan 30, 2023
@paczerny paczerny added this to the Release 6.6.1 milestone Jan 30, 2023
paczerny pushed a commit to OpenNebula/docs that referenced this issue Jan 30, 2023
rsmontero pushed a commit to OpenNebula/docs that referenced this issue Jan 31, 2023
rsmontero added a commit to OpenNebula/docs that referenced this issue Jan 31, 2023
rsmontero pushed a commit that referenced this issue Feb 1, 2023
(cherry picked from commit f0c01ca2380ef523094453d50d2f512557eaa3f6)
rsmontero pushed a commit that referenced this issue Mar 1, 2023
(cherry picked from commit f0c01ca2380ef523094453d50d2f512557eaa3f6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants