Skip to content

Test Design of xcat inventory osimage phase2

tingtli edited this page Jun 8, 2018 · 5 revisions

Introduction

This document provides an overview of test for export/import the files included (##INCLUDE##) in osimage customized files in osimage definition. This test plan is intended for the use of xCAT FVT team.

The test is against xCAT version 2.14.2. The build of xCAT will be picked up from the xcat.org

The xcat inventory osimage design is under https://github.com/xcat2/xcat-core/wiki/the-mini-design-of-xcat-inventory-export-and-import-for-osimage

Affected attributes

The follow attributes in xcat osimage inventory file might include other files by #INCLUDE:xxxxx# :

package_selection. pkglist
package_selection. otherpkglist
template
diskpartitionspec
filestosync
genimgoptions.postinstall
genimgoptions. exlist

According to the attributes in osimage inventory file. The attributes in osimage definition could be tested

   pkglist
   otherpkglist
   template
   partitionfile
   synclists   
   postinstall
   exlist

Test scenarios

The test case will cover following test scenarios for ##INCLUDE## usage in files

  1. A normal file which has one #INCLUDE in the file, the included file is a normal file which has no INCLUDE in the file.

  2. A normal file which has several #INCLUDE in the file, the included files are normal file which has no INCLUDE in the files.

  3. A normal file which has one #INCLUDE in the file, the included file is a normal file which has one INCLUDE in the file, the second included file has one INCLUDE in the file. The last file has no INCLUDE in the file.

  4. A normal file which has one #INCLUDE in the file, the included file is a normal file which has one INCLUDE in the file, the second included file has one INCLUDE in the file. The last INCLUDE includes the first file.

  5. A normal file which has one INCLUDE in the file. The included file is specified by absolute path.

  6. A normal file which has one INCLUDE in the file. The included file is specified by relative path.

  7. A normal file which has one INCLUDE int the file. The included file is under /opt/xcat/share/xcat/install.

customized osimage definition

For test case usage, We save an osimage definition stanza file under /opt/xcat/share/xcat/tools/autotest/testcase/xcat-inventory/templates. The details are as follows.

[root@boston02 test_osimage]# pwd
/opt/xcat/share/xcat/tools/autotest/testcase/xcat-inventory/templates/imagedata/test_osimage
[root@boston02 test_osimage]# cat test_osimage.stanza
# <xCAT data object stanza file>

test_osimage:
    objtype=osimage
    exlist=/tmp/imagedata/test_osimage/exlist
    imagetype=linux
    otherpkglist=/tmp/imagedata/test_osimage/otherpkglist
    partitionfile=/tmp/imagedata/test_osimage/partitionfile
    pkglist=/tmp/imagedata/test_osimage/pkglist
    postinstall=/tmp/imagedata/test_osimage/postinstall
    provmethod=install
    synclists=/tmp/imagedata/test_osimage/synclists
    template=/tmp/imagedata/test_osimage/template.tmpl

Test case

Test steps:

  1. Define a customized osimage defintion.
[root@boston02 test_osimage]# lsdef -t osimage -o test_osimage
Object name: test_osimage
    exlist=/tmp/imagedata/test_osimage/exlist
    imagetype=linux
    otherpkglist=/tmp/imagedata/test_osimage/otherpkglist
    partitionfile=/tmp/imagedata/test_osimage/partitionfile
    pkglist=/tmp/imagedata/test_osimage/pkglist
    postinstall=/tmp/imagedata/test_osimage/postinstall
    provmethod=install
    synclists=/tmp/imagedata/test_osimage/synclists
    template=/tmp/imagedata/test_osimage/template.tmpl
  1. Run "xcat-inventory export -t osimage -o test_osimage -d /opt/inventory/site/"

  2. Check if the exported files and included files are exported.

  3. Run "rmdef -t osimage -o test_osimage"

  4. Run "xcat-inventory import -t osimage -o test_osimage -d /opt/inventory/site/"

  5. Check if the files are imported.

News

History

  • Oct 22, 2010: xCAT 2.5 released.
  • Apr 30, 2010: xCAT 2.4 is released.
  • Oct 31, 2009: xCAT 2.3 released. xCAT's 10 year anniversary!
  • Apr 16, 2009: xCAT 2.2 released.
  • Oct 31, 2008: xCAT 2.1 released.
  • Sep 12, 2008: Support for xCAT 2 can now be purchased!
  • June 9, 2008: xCAT breaths life into (at the time) the fastest supercomputer on the planet
  • May 30, 2008: xCAT 2.0 for Linux officially released!
  • Oct 31, 2007: IBM open sources xCAT 2.0 to allow collaboration among all of the xCAT users.
  • Oct 31, 1999: xCAT 1.0 is born!
    xCAT started out as a project in IBM developed by Egan Ford. It was quickly adopted by customers and IBM manufacturing sites to rapidly deploy clusters.
Clone this wiki locally