Opened 11 years ago

Last modified 9 years ago

#1180 new defect

IZ239: reset hedeby hook does not fix properties of resources correctly

Reported by: torsten Owned by:
Priority: high Milestone:
Component: testsuite Version: current
Severity: Keywords: hedeby
Cc:

Description

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

        Issue #:      239             Platform:     All           Reporter: torsten (torsten)
       Component:     testsuite          OS:        All
     Subcomponent:    hedeby          Version:      current          CC:    None defined
        Status:       NEW             Priority:     P2
      Resolution:                    Issue type:    DEFECT
                                  Target milestone: milestone 1
      Assigned to:    crei (crei)
      QA Contact:     crei
          URL:
       * Summary:     reset hedeby hook does not fix properties of resources correctly
   Status whiteboard:
      Attachments:

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


   Opened: Tue Aug 26 23:33:00 -0700 2008 
------------------------


Description:
In the standard Hedeby TS setup on a freshly installed system: Host 'free_host'
is a managed host belonging to the hedeby system and initially assigned to the
spare_pool service.
% sdmadm sr -all -r free_host
service    id        state    type flags usage annotation
----------------------------------------------------
spare_pool free_host ASSIGNED host       1
    hardwareCpuArchitecture=amd64
    operatingSystemName=Linux
    operatingSystemRelease=24
    resourceHostname=free_host

Now remove free_host from the system and add free_host again to service spare_pool.
% sdmadm rr -r free_host
% sdmadm ar -r free_host -s spare_pool

After that only the mandatory resource properties are set:
% sdmadm sr -all -r free_host
service    id   state    type flags usage annotation
----------------------------------------------------
spare_pool ents ASSIGNED host       1
    resourceHostname=free_host

Now run the reset hook from the TS (53). This fails with the following error:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
SEVERE
runlevel    : "short", (0)
check       : hedeby_install
procedure   : hedeby_check_default_resources
called from : hedeby_install_cleanup
----------------------------------------------------------------
resource "free_host" property "hardwareCpuArchitecture" is missing!
resource "free_host" property "operatingSystemRelease" is missing!
resource "free_host" property "operatingSystemName" is missing!
----------------------------------------------------------------
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Instead, the properties of the affected resource should be restored to the
values they have after the fresh system install.

The problem is that the failing procedure above (hedeby_check_default_resources)
is also called before each test, so no test can run and reset hedeby does not
help either. In this case a full system install is necessary - which is expensive.

Change History (0)

Note: See TracTickets for help on using tickets.