Opened 50 years ago

Last modified 9 years ago

#921 new enhancement

IZ658: Enhance usability of mod_component CLI command

Reported by: torsten Owned by:
Priority: normal Milestone:
Component: hedeby Version: current
Severity: Keywords: cli
Cc:

Description

[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=658]

        Issue #:      658          Platform:     All           Reporter: torsten (torsten)
       Component:     hedeby          OS:        All
     Subcomponent:    cli          Version:      current          CC:    None defined
        Status:       NEW          Priority:     P3
      Resolution:                 Issue type:    ENHANCEMENT
                               Target milestone: 1.0u5next
      Assigned to:    adoerr (adoerr)
      QA Contact:     adoerr
          URL:
       * Summary:     Enhance usability of mod_component CLI command
   Status whiteboard:
      Attachments:


     Issue 658 blocks:
   Votes for issue 658:     Vote for this issue


   Opened: Fri May 15 05:27:00 -0700 2009 
------------------------


   Description:
   Currently, when changing the configuration of a component, the following
   sequence of CLI commands have to be executed by a user:

   % sdmadm mod_component -c component
   [Edit the file and save]
   % sdmadm update_component -c component [-h host]

   It would save time and effort on behalf of the user, if this common use case
   could be done with one command.

   Proposal:
   Extend the mod_component command with two additional parameters:
   -u|update
   -uh|update_host host

   The "-u" option would execute an update component command after successfully
   changing the configuration. The "-uh host" would execute an update component
   command with set -host parameter. If both -u a


   Evaluation:
   The issue is considered a P3 enhancement.


   Suggested Fix:
   Extend the mod_component command like described.


   Work Around:
   Issue two commands instead of one.


   Analysis:
   The following things need to be done for this enhancement:
   - document the new mod_component options
   - extend the implementation of the ModifyComponentCLICommand to create and
   execute a ReloadComponentCommand with the correct parameters (component name and
   host) set - if requested.


   How to test:
   Look for usage of the mod_component command in the testsuite. It will almost
   always be used in conjunction with the update_component command.

   Replace the two commands with an appropriate call to mod_component using the new
   parameters. Do this in two places so that both -u and -uh options are tested
   making sure that there are places left whe

   ETC: 1.5 PD
               ------- Additional comments from rhierlmeier Wed Nov 25 07:21:11 -0700 2009 -------
   Milestone changed
               ------- Additional comments from torsten Fri Nov 27 01:32:20 -0700 2009 -------
   Incomplete "How to test" section, should read:

   Do this in two places so that both -u and -uh options are tested
   making sure that there are places left where the update_component command is used.

Change History (0)

Note: See TracTickets for help on using tickets.