Opened 13 years ago

Last modified 9 years ago

#983 new task

IZ42: check hostgroup functionality

Reported by: joga Owned by:
Priority: normal Milestone:
Component: testsuite Version: current
Severity: Keywords: tests
Cc:

Description

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

        Issue #:      42              Platform:     All           Reporter: joga (joga)
       Component:     testsuite          OS:        All
     Subcomponent:    tests           Version:      current          CC:    None defined
        Status:       NEW             Priority:     P3
      Resolution:                    Issue type:    TASK
                                  Target milestone: milestone 1
      Assigned to:    issues@testsuite
      QA Contact:     joga
          URL:
       * Summary:     check hostgroup functionality
   Status whiteboard:
      Attachments:

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


   Opened: Wed Nov 15 02:16:00 -0700 2006 
------------------------


This was IZ 1247 in project gridengine.

1) Creation of empty hostgroup
   - create a hostgroup (qconf -ahgrp)
      hostlist NONE
   => check if the hostgroup exists (qconf
-shgrpl; -shgrp)


2) Creation of hostgroups
   - create a hostgroup witch references varios host
   => check if the hostgroup is correct
      (qconf -shgrpl; -shgrp; -shgrp_tree;
-shgrp_resolved)


3) Creation of nested hostgroups
   - create various hostgroups:


      @a
      +--- @a.a
           +--- @a.a.a
                +--- host_a
           +--- @a.a.b
                +--- host_a
                +--- host_b
      +--- @a.b
           +--- @a.b.a
                +--- host_c
      +--- @a.c
           +--- host_d
      @b
      +--- @b.a
           +--- host_a
           +--- @b.a.a
                +--- host_b
                +--- @b.a.a.a
                     +--- host_c
                     +--- @b.a.a.a.a
                          +--- host_d
                          +--- @b.a.a.a.a.a
                               +--- host_e


   => check that all hostgroups exist (qconf
-shgrpl; -shgrp)
   => check that the hostgroups are nested
correctly (qconf -shgrp_tree)
   => check that @a.a containes host_a only once
(qconf -shgrp_resolved)
   => check that @a.b containes host_c
   => check that @a containes host_a, host_b and
host_c
   => check that @b containes all hosts from
host_a to host_e


4) Try to create a circle in the definition of
hostgroups
   - create nested hostgroups (see example in
section 3)
   - try to create @b to @b
   => has to be rejected because this would create
a circle
   - try to create @b to hostlist of @b.a.a.a.a.a
   => has to be rejected because this would create
a circle (recursive)


5) Try to delete existing groups (qconf -dhgrp)
   - try to delete hostgroups which are not
referenced in other hostgroups
   => should always be successful
   - try to delete hostgroups which are still
referenced in others
   => should be rejected


6) Try to modify existing groups (qconf -mhgrp)
   - use scenario described in 3
   - remove @b.a.a.a from @b.a.a
   => check the result
   - add @b.a.a.a to @b.a.a
   => check the result


7) Use qconf -Ahgrp and -Mhgrp to add/modify
hostgroups


8) Use qconf -?attr to modify the hostlist
attribute of hostgroups
   - e.g: qconf -mattr hostgroup hostlist
es-ergb01-01 @allhosts

Change History (0)

Note: See TracTickets for help on using tickets.