Bug 904928

Summary: [RFE] Aliases and set commands for ovirt-shell
Product: [Retired] oVirt Reporter: Jiri Belka <jbelka>
Component: ovirt-engine-cliAssignee: Michael Pasternak <mpastern>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, bazulay, iheim, jkt
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-01 10:18:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Belka 2013-01-28 08:27:23 UTC
Could be implemented an ovirt-shell command like 'set' to set
configuration from ovirt-shell and save it.
 
Example:
> set username = "foo@domain"
> save -a # save all runtime settings  
 
3. Aliases like in lftp client?
> alias lsvmmyvm list vms --query "name=myvm*"
> save alias lsvmmyvm  
  
Actual results:
Changing configuration of ovirt-shell is right now possible
via editing config file on filesystem directly or to invoke
ovirt-shell with specific arguments.

Expected results:
Defining alias/set and then save them from ovirt-shell
would allow a user to save configuration without need to
have direct access to config file.

Additional info:
Original discussion on the list:
http://permalink.gmane.org/gmane.comp.emulators.ovirt.user/5374

Comment 1 Michael Pasternak 2013-01-28 08:34:47 UTC
(In reply to comment #0)
> Could be implemented an ovirt-shell command like 'set' to set
> configuration from ovirt-shell and save it.
>  
> Example:
> > set username = "foo@domain"
> > save -a # save all runtime settings  
>  
> 3. Aliases like in lftp client?
> > alias lsvmmyvm list vms --query "name=myvm*"
> > save alias lsvmmyvm  

this can be achieved via scripting interface, see [1].

[1] http://www.ovirt.org/CLI#Scripting

>   
> Actual results:
> Changing configuration of ovirt-shell is right now possible
> via editing config file on filesystem directly or to invoke
> ovirt-shell with specific arguments.
> 
> Expected results:
> Defining alias/set and then save them from ovirt-shell
> would allow a user to save configuration without need to
> have direct access to config file.
> 
> Additional info:
> Original discussion on the list:
> http://permalink.gmane.org/gmane.comp.emulators.ovirt.user/5374

Comment 2 Jiri Belka 2013-01-28 08:55:46 UTC
This,

'set' command to define/save configuration from ovirt-shell is useful, even more if BZ04939 would be implemented and users would have no access to filesystem to edit config and/or would not be allowed to define command args for ovirt-shell session.

Comment 3 Jiri Belka 2013-01-28 08:58:20 UTC
Sorry typo, talking about BZ904939 of course.

Comment 4 Itamar Heim 2013-12-01 10:18:47 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.