one
one copied to clipboard
missing yamls in opennebula-cli gem
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)