CN107133084B - Test method for XenServer virtualization system authentication of storage product - Google Patents

Test method for XenServer virtualization system authentication of storage product Download PDF

Info

Publication number
CN107133084B
CN107133084B CN201710398362.4A CN201710398362A CN107133084B CN 107133084 B CN107133084 B CN 107133084B CN 201710398362 A CN201710398362 A CN 201710398362A CN 107133084 B CN107133084 B CN 107133084B
Authority
CN
China
Prior art keywords
test
storage
xenserver
module
storage product
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710398362.4A
Other languages
Chinese (zh)
Other versions
CN107133084A (en
Inventor
常金恒
邢科钰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710398362.4A priority Critical patent/CN107133084B/en
Publication of CN107133084A publication Critical patent/CN107133084A/en
Application granted granted Critical
Publication of CN107133084B publication Critical patent/CN107133084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a test method for carrying out XenServer virtualization system authentication on a storage product, which comprises the following steps: s1, establishing a XenServer virtualization test environment for the storage product; s2, setting the configuration information of the test environment and executing the test suite; and S3, collecting the test result, and forming a test report of the storage product XenServer virtualization certification. Compared with the prior art, the invention can meet the requirement of carrying out authentication test on the storage product on the XenServer at one time, save time and improve working efficiency.

Description

Test method for XenServer virtualization system authentication of storage product
Technical Field
The invention relates to the technical field of virtualization system authentication, in particular to a test method for carrying out XenServer virtualization system authentication on a storage product.
Background
The XenServer is a complete server virtualization platform, is optimized for Windows and Linux virtual servers, and has all functions required for creating and managing a virtual infrastructure. XenServer runs directly on the server hardware without the need for an underlying operating system, and is thus an efficient and scalable system. XenServer works by extracting elements (e.g., hard drives, resources, and ports) from a physical Machine and then allocating them to a Virtual Machine (VM) running on the physical Machine. The XenServer can be used to create VMs, generate VM disk snapshots, and manage VM workloads.
XenCenter is a Windows-based graphical user interface. The XenCenter allows management of XenServer hosts, pools, and shared storage, as well as deployment, management, and monitoring of VMs from a Windows desktop computer.
When the storage product is authenticated by the XENServer virtualization system, a complete authentication test method is not provided, so that the problem that an authentication test module is lost due to unclear requirements during the XENServer authentication test is caused, a test conclusion cannot reach the condition required by authentication, a supplementary test is required, the authentication passing rate is low, and the authentication test time is prolonged.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide the test method for performing the authentication of the XenServer virtualization system on the storage product, which can meet the requirement of performing the authentication test on the storage product on the XenServer at one time, save time and improve the working efficiency.
The technical scheme adopted by the invention for solving the technical problems is as follows: a test method for carrying out XenServer virtualization system authentication on a storage product is characterized by comprising the following steps: comprises the following steps of (a) carrying out,
s1, establishing a XenServer virtualization test environment for the storage product;
s2, setting the configuration information of the test environment and executing the test suite;
and S3, collecting the test result, and forming a test report of the storage product XenServer virtualization certification.
Further, the test environment includes two at least hosts, ethernet switch, fibre channel switch, storage product and PC, the host computer all connects the ethernet switch through the IP link, connects through the FC link the fibre channel switch, the ethernet switch still connects PC, storage product and fibre channel switch respectively through the IP link, the fibre channel switch still connects through the FC link the storage product.
Furthermore, the hosts are all installed with XenServer in a pure mode and are specially used for running the managed virtual machines; and the XenCenter is installed on the PC and used for running a XenCenter application program.
Further, the test environment configuration information includes a storage type, a stored IP, a stored IQN number, and a port number of the switch.
Further, the test suite includes test scripts for 5 test modules.
Further, the testing module comprises a function testing module, a control path pressure testing module, a multi-path configuration verifying module, a storage pool module and a multi-path starting testing module.
Further, the functional test module tests whether all virtual machines obtain the same LUN and LUN number by capturing the SCSI ID of the LUN and the space size information of the LUN.
Further, the control path pressure test module verifies that the Xen API controls paths of various storage types by controlling virtual machines to create a storage library, load and unload a physical block device and delete the storage library.
Further, the analysis methods of the multipath configuration verification module and the multipath starting test module are consistent: the method comprises the steps of creating a virtual block device, writing data into the virtual block device, cutting off a path of the virtual block device, and judging whether multipath is configured according to the writing situation of the data after the path is cut off.
Further, the storage pool module determines whether the number of paths for the shared storage is consistent among the hosts in the pool by creating a shared storage pool and verifying the physical block device records to see if the number of paths for each host in the pool is the same.
The invention has the beneficial effects that:
the invention establishes a complete test environment for XenServer virtualization certification of a storage product, performs configuration of corresponding requirements on the test environment, provides hardware and software support for the operation of subsequent test suite scripts, and ensures the smooth operation of certification test;
the invention starts from the requirement of authentication, 5 task modules are analyzed for XenServer virtualization authentication of a storage product, test scripts of the 5 task modules are combined into a test suite, and when the authentication test is carried out, only a script execution command is sent to the test suite, the result of the authentication test can be obtained from a PC, all the requirements of the authentication test are completed at one time, the test period is shortened, the time is saved, and the working efficiency is improved.
Drawings
FIG. 1 is a schematic flow diagram of the process of the present invention;
FIG. 2 is a block diagram of a virtualized test environment in an embodiment of the invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
In order to carry out XenServer certification on a storage product and achieve the aim of meeting all requirements by one-time certification, the invention provides a set of complete certification testing method.
As shown in fig. 1, the method of the present invention comprises the steps of,
s1, establishing a XenServer virtualization test environment for the storage product;
s2, setting the configuration information of the test environment and executing the test suite;
and S3, collecting the test result, and forming a test report of the storage product XenServer virtualization certification.
The step S1 of building the virtualization test environment includes at least two hosts, an ethernet switch, a fibre channel switch, a storage product, and a PC, as shown in fig. 2, in the embodiment, two hosts are used, which are named as host 1 and host 2, the hosts are connected to the ethernet switch through IP links, and are connected to the fibre channel switch through FC links, the ethernet switch is further connected to the PC, the storage product, and the fibre channel switch is further connected to the storage product through FC links.
On the basis of the above devices, the virtual test environment needs to be successfully established, and XenServer configuration, configuration storage and network configuration are also needed.
The XenServer configuration requires at least two separate physical computers: one as the XenServer host and the other for running the XenCenter application. The XenServer host computer is dedicated to running the managed VM's XenServer and not used to run other applications. The computer running the XenCenter can be any general purpose Windows computer that meets the hardware requirements, and can also be used to run other applications.
In the embodiment of the invention, as shown in fig. 2, the XenCenter application is installed on the PC, and the XenCenter is a graphical user interface based on Windows. The XenCenter allows management of XenServer hosts, pools, and shared storage, as well as deployment, management, and monitoring of VMs from a Windows desktop computer.
To complete the authentication test, a host group containing 2 or more hosts is established, in the embodiment of the invention, 2 hosts are utilized, and each host is provided with a XenServer in a pure way.
In a storage configuration where all storage targets must be visible to all hosts in the host pool as well, the test will verify that for each target, the same LUN should be visible accessible for each physical link.
All visible LUNs are at least 1GB in size, preferably 10GB in size on average per LUN.
In network configuration, no additional IP address can be configured on the host to prevent the iSCSI storage multipath failover test from being destroyed. For multi-path fail-over testing, at least two paths must be available with all visibility.
The test environment configuration information in step S2 includes: setting a storage type, such as lvmoiscs i, lvmohba, nfs, isl, wherein the storage type is preferably set to lvmoiscs i; setting a storage target, and inputting an IP to be stored; setting the IQN number of the target storage; calling a script for opening and closing the port of the switch; the number of times the switch ports are opened and closed is set.
The test suite is a test script that includes 5 test modules. The testing module comprises a function testing module, a control path pressure testing module, a multi-path configuration verification module, a storage pool module and a multi-path starting testing module.
The test suite is installed on a host machine provided with a XenServer virtualization system, the process of executing the test suite is the verification test process of 5 test modules, and the specific analysis process is as follows:
the function testing module: the test suite automatically captures SCSI ID of lun, space size of lun and other information, and displays the acquired information on the PC to ensure that all virtual machines acquire the same lun and lun quantity.
A control path pressure test module: the Xen API (tool interface for Xen) is verified to control the path of various storage types by creating a repository on the Xenerver virtual machine, loading and unloading physical block devices, and deleting the repository.
A multipath configuration verification module: the test suite creates virtual block equipment on the XenServer and loads the virtual block equipment to the virtual machine for use, one path of the virtual block equipment is cut off while data is written into the virtual block equipment, and the data can be normally written into the virtual block equipment after the path is cut off. In this way it is verified whether the multipath, failover and recovery actions are correctly configured on the system in compliance with the supported standards.
A storage pool module: the test script automatically creates a shared storage library and verifies the physical block device records, and whether the path number of each host in the pool is the same or not is checked to judge whether the path number of the shared storage is consistent among the hosts in the pool or not.
Multipath startup test module: the method is the same as the analysis method of the multi-path configuration verification module, namely, the test suite creates virtual block equipment on the XenServer and loads the virtual block equipment to the virtual machine for use, one path of the virtual block equipment is cut off while data is written into the virtual block equipment, and the data can be normally written into the virtual block equipment after the path is cut off. In this way it is verified whether the multipath, failover and recovery actions are correctly configured on the system in compliance with the supported standards.
After the authentication test of the 5 test modules is completed, the result is collected through the XenServer application program and displayed on the screen of the PC, a log file is automatically generated, and an authentication test report is printed through the PC.
The foregoing is only a preferred embodiment of the present invention, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the invention, and such modifications and improvements are also considered to be within the scope of the invention.

Claims (4)

1. A test method for carrying out XenServer virtualization system authentication on a storage product is characterized by comprising the following steps: comprises the following steps of (a) carrying out,
s1, establishing a XenServer virtualization test environment for the storage product;
s2, setting the configuration information of the test environment and executing the test suite;
s3, collecting the test result, and forming a test report of the XenServer virtualization certification of the storage product;
the test suite comprises test scripts of 5 test modules;
the testing module comprises a function testing module, a control path pressure testing module, a multi-path configuration verification module, a storage pool module and a multi-path starting testing module;
the function test module tests whether all virtual machines obtain the same LUN and LUN number by capturing SCSI ID of the LUN and space size information of the LUN;
the control path pressure testing module verifies that the Xen API controls paths of various storage types by controlling a virtual machine to create a storage library, load and unload physical block equipment and delete the storage library;
the analysis methods of the multipath configuration verification module and the multipath starting test module are consistent: the method comprises the steps that a virtual block device is created, a path of the virtual block device is cut off while data are written into the virtual block device, and whether multipath is configured or not is judged according to the writing condition of the data after the path is cut off;
the storage pool module determines whether the number of paths for the shared storage is consistent among the hosts in the pool by creating a shared storage pool and verifying the physical block device records to see if the number of paths for each host in the pool is the same.
2. The method of claim 1, wherein the method comprises: the test environment comprises at least two hosts, an Ethernet switch, a fiber channel switch, a storage product and a PC (personal computer), wherein the hosts are connected with the Ethernet switch through IP (Internet protocol) links, and are connected with the fiber channel switch through FC (fiber channel) links, the Ethernet switch is also connected with the PC, the storage product and the fiber channel switch through the IP links, and the fiber channel switch is also connected with the storage product through FC links.
3. The method of claim 2, wherein the method comprises: the hosts are all installed with XenServer in a pure mode and are special for running the managed virtual machine; and the XenCenter is installed on the PC and used for running a XenCenter application program.
4. The method of claim 1, wherein the method comprises: the test environment configuration information comprises a storage type, a stored IP, a stored IQN number and a port number of the switch.
CN201710398362.4A 2017-05-31 2017-05-31 Test method for XenServer virtualization system authentication of storage product Active CN107133084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710398362.4A CN107133084B (en) 2017-05-31 2017-05-31 Test method for XenServer virtualization system authentication of storage product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710398362.4A CN107133084B (en) 2017-05-31 2017-05-31 Test method for XenServer virtualization system authentication of storage product

Publications (2)

Publication Number Publication Date
CN107133084A CN107133084A (en) 2017-09-05
CN107133084B true CN107133084B (en) 2020-06-02

Family

ID=59733559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710398362.4A Active CN107133084B (en) 2017-05-31 2017-05-31 Test method for XenServer virtualization system authentication of storage product

Country Status (1)

Country Link
CN (1) CN107133084B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107645428A (en) * 2017-10-10 2018-01-30 郑州云海信息技术有限公司 A kind of automatic test approach and device
CN109213649A (en) * 2018-09-18 2019-01-15 郑州云海信息技术有限公司 GTX video card deep learning optimal inspection method, apparatus, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8132058B1 (en) * 2001-09-07 2012-03-06 Netapp, Inc. Auto regression tester for network-based storage virtualization system
CN102571474A (en) * 2010-12-30 2012-07-11 北京首信科技股份有限公司 Virtualized Radius testing system and method
CN104270290A (en) * 2014-10-21 2015-01-07 浪潮电子信息产业股份有限公司 Multi-network interface performance test method
CN104618196A (en) * 2015-02-25 2015-05-13 浪潮电子信息产业股份有限公司 Method for verifying compatibility of server and Citrix system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8132058B1 (en) * 2001-09-07 2012-03-06 Netapp, Inc. Auto regression tester for network-based storage virtualization system
CN102571474A (en) * 2010-12-30 2012-07-11 北京首信科技股份有限公司 Virtualized Radius testing system and method
CN104270290A (en) * 2014-10-21 2015-01-07 浪潮电子信息产业股份有限公司 Multi-network interface performance test method
CN104618196A (en) * 2015-02-25 2015-05-13 浪潮电子信息产业股份有限公司 Method for verifying compatibility of server and Citrix system

Also Published As

Publication number Publication date
CN107133084A (en) 2017-09-05

Similar Documents

Publication Publication Date Title
US10210061B2 (en) Fault tolerant application storage volumes for ensuring application availability and preventing data loss using forking techniques
US20190087244A1 (en) Hyperconverged system including a user interface, a services layer and a core layer equipped with an operating system kernel
US10656877B2 (en) Virtual storage controller
US10001929B2 (en) Method and systems for simulating a workload of a storage system
US9317315B2 (en) Method for generating secure snapshots
US20170322827A1 (en) Testing and benchmarking for enterprise data centers
US20130298122A1 (en) Virtual machine migration
US9282021B2 (en) Method and apparatus for simulated failover testing
US10540498B2 (en) Technologies for hardware assisted native malware detection
US20150067399A1 (en) Analysis, recovery and repair of devices attached to remote computing systems
US9626284B2 (en) Systems and methods to test programs
US20140006346A1 (en) Preserving user profiles across remote desktop sessions
US20120089875A1 (en) Multi-user test framework
US10339012B2 (en) Fault tolerant application storage volumes for ensuring application availability and preventing data loss using suspend-resume techniques
US10430261B2 (en) Detecting a guest operating system crash on a virtual computing instance
CN107133084B (en) Test method for XenServer virtualization system authentication of storage product
US11176023B2 (en) Performing software updates using environment emulation
US10922305B2 (en) Maintaining storage profile consistency in a cluster having local and shared storage
Mohan et al. M2: Malleable metal as a service
CN105653342A (en) Method and system for achieving automatic domain entering of Windows pool desktop
CN110543385A (en) Virtual backup method and virtual backup restoration method
US11818000B2 (en) Continuous delivery of management configurations
US11086652B2 (en) Fault-tolerant application virtualization using computer vision
Ver Dynamic load balancing based on live migration of virtual machines: Security threats and effects
US10740021B1 (en) Systems and methods for recovery of computing environments via a replication solution

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant