CN111124614B - Virtual machine migration flow control test method, device, equipment and storage medium - Google Patents

Virtual machine migration flow control test method, device, equipment and storage medium Download PDF

Info

Publication number
CN111124614B
CN111124614B CN201911328721.4A CN201911328721A CN111124614B CN 111124614 B CN111124614 B CN 111124614B CN 201911328721 A CN201911328721 A CN 201911328721A CN 111124614 B CN111124614 B CN 111124614B
Authority
CN
China
Prior art keywords
migration
flow control
control test
share
virtual machine
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
CN201911328721.4A
Other languages
Chinese (zh)
Other versions
CN111124614A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911328721.4A priority Critical patent/CN111124614B/en
Publication of CN111124614A publication Critical patent/CN111124614A/en
Application granted granted Critical
Publication of CN111124614B publication Critical patent/CN111124614B/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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • 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/45562Creating, deleting, cloning virtual machine instances
    • 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/4557Distribution of virtual machine instances; Migration and load balancing
    • 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

Abstract

The application discloses a virtual machine migration flow control test method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: setting a host share, a storage pool share, a migration source share and a destination share on a virtualization platform in advance; creating a test environment on the virtualization platform, and constructing a flow control test scene in the test environment; creating virtual machines with the quantity larger than the maximum allowed migration quantity determined according to the set share in a flow control test scene, and entering a database of a management node when a migration task is carried out; and checking shares of a migration source end and a migration destination end in the migration task through a database table in the database, and checking the task ID number of the migration task. According to the technical scheme, the flow control test scene is constructed, the information in the database table is checked, the migration flow control process of the virtual machine is tested, and whether the flow control of the virtual machine is realized is verified through the task ID number.

Description

Virtual machine migration flow control test method, device, equipment and storage medium
Technical Field
The present application relates to the field of virtual machine migration technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for testing a virtual machine migration flow control.
Background
Virtualization technology, which is an important component of cloud computing, exhibits great advantages. Hardware such as a physical server, a storage, a network and the like can be changed into a resource pool which can be dynamically managed through a virtualization Technology, and a plurality of virtual machines which are isolated from each other are deployed according to the requirements of customers, so that the whole IT (Internet Technology) environment has better resource availability, safety and expansibility.
In some cases, multiple virtual machines on a physical server in the system need to be migrated to another host or another storage pool at the same time, but in the concurrent migration process of multiple virtual machines, the memory, the CPU (central processing unit), the storage, and the network IO (Input/Output) of the host are likely to be full, so that flow control needs to be performed on the virtual machine migration. However, at present, no graphical interface displays whether flow control is implemented, so that a worker cannot know whether flow control is implemented in the virtual machine migration process.
In summary, how to test the migration flow control of the virtual machine to verify whether the flow control of the virtual machine is implemented through the test is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In view of this, an object of the present application is to provide a method for testing a virtual machine migration flow control, which is used to test the virtual machine migration flow control so as to verify whether the flow control is implemented by the virtual machine through the test.
In order to achieve the above purpose, the present application provides the following technical solutions:
a virtual machine migration flow control test method comprises the following steps:
setting host share, storage pool share, migration source end share and destination end share on a virtualization platform in advance;
creating a test environment on the virtualization platform, and constructing a flow control test scene in the test environment; the test environment comprises a management node, a computing node, a shared storage pool and a shared server;
creating virtual machines with the number larger than the maximum allowed migration number determined according to the set share in the flow control test scene, and entering a database of the management node when a migration task is performed;
and checking shares of a migration source end and a migration destination end in the migration task through a database table in the database, and checking the task ID number of the migration task.
Preferably, the accessing the database of the management node includes:
and entering the database of the management node through the xshell.
Preferably, the virtualization platform is InCloud Sphere.
Preferably, the constructing a fluidic test scenario in the test environment includes:
constructing a plurality of different flow control test scenarios in the test environment;
creating virtual machines with the number larger than the maximum allowed migration number determined according to the set share in the flow control test scene, wherein the virtual machines comprise:
and creating virtual machines with the number larger than the maximum allowable migration number determined according to the set share in one flow control test scene in a plurality of different flow control test scenes each time.
Preferably, a plurality of different fluidic test scenarios are constructed in the test environment, including:
and constructing a single-host concurrent cross-host migration flow control test scene, a single-host concurrent cross-storage migration flow control test scene, a single-host concurrent cross-host and cross-storage migration flow control test scene and a single-storage pool concurrent cross-storage migration flow control test scene in the test environment.
Preferably, before creating virtual machines in the flow control test scenario, the number of which is greater than the maximum allowable migration number determined according to the set share, the method further includes:
and closing the running business operation in the virtualization platform.
A virtual machine migration flow control test device comprises:
the system comprises a setting module, a migration module and a migration module, wherein the setting module is used for setting host share, storage pool share, migration source end share and destination end share on a virtualization platform in advance;
the system comprises a first establishing module, a second establishing module and a third establishing module, wherein the first establishing module is used for establishing a testing environment on the virtualization platform and establishing a flow control testing scene in the testing environment; the test environment comprises a management node, a computing node, a shared storage pool and a shared server;
the second creating module is used for creating virtual machines with the number larger than the maximum allowed migration number determined according to the set share in the flow control test scene, and entering a database of the management node when a migration task is performed;
and the checking module is used for checking shares of a migration source end and a migration destination end in the migration task through a database table in the database, and checking the task ID number of the migration task.
Preferably, the second creating module includes:
and the creating unit is used for entering the database of the management node through the xshell.
A virtual machine migration flow control test apparatus, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the virtual machine migration flow control test method when the computer program is executed.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the virtual machine migration flow control testing method according to any one of the preceding claims.
The application provides a method, a device, equipment and a computer readable storage medium for testing migration flow control of a virtual machine, wherein the method comprises the following steps: setting host share, storage pool share, migration source end share and destination end share on a virtualization platform in advance; creating a test environment on the virtualization platform, and constructing a flow control test scene in the test environment; the test environment comprises a management node, a computing node, a shared storage pool and a shared server; creating virtual machines with the quantity larger than the maximum allowed migration quantity determined according to the set share in a flow control test scene, and entering a database of a management node when a migration task is carried out; and checking shares of a migration source end and a migration destination end in the migration task through a database table in the database, and checking the task ID number of the migration task.
According to the technical scheme, the test environment is created on the virtualization management platform, the flow control test scene is created in the test environment, the number of the virtual machines which is larger than the maximum allowable migration number determined according to the set share is created in the flow control test scene, when the migration task is carried out in the flow control test scene, the database of the management node is entered, the shares of the migration source end and the migration destination end in the migration task are checked through the database table in the database, the task ID number of the migration task is checked, the migration flow control process of the virtual machines is tested by constructing the flow control test scene and checking the information in the database table, and whether the flow control of the virtual machines is achieved or not is verified through the task ID number, so that a worker can specifically know whether the flow control of the migration process of the virtual machines is achieved or not.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a virtual machine migration flow control testing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of a test environment constructed according to an embodiment of the present application;
fig. 3 is a schematic diagram of a virtual machine migration method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a virtual machine migration flow control testing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a virtual machine migration flow control test apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, which shows a flowchart of a virtual machine migration flow control testing method provided in an embodiment of the present application, a virtual machine migration flow control testing method provided in an embodiment of the present application may include:
s11: host shares, storage pool shares, migration source shares, and destination shares are set on the virtualization platform in advance.
In the application, the whole virtual machine migration flow control adopts share design, and a host share, a storage pool share, a migration source share and a destination share are set on a virtualization platform in advance.
The above mentioned shares are set after comprehensively considering resources such as a disk, IO, network bandwidth, CPU, memory, etc., and the present application takes a host share of 200, a storage pool share of 200, a migration source end and a destination end each allocated 50 when applying for the host share in a virtual machine migration process, and a cross-storage migration allocated 120 as an example to illustrate, and in addition, since a storage pool mainly involves disk replication, a migration source end and a destination end each allocated 50 are taken as an example to illustrate.
S12: creating a test environment on the virtualization platform, and constructing a flow control test scene in the test environment; the test environment may include a management node, a computing node, a shared storage pool, and a shared server.
In the process of virtual machine migration flow control test, a test environment is created on a virtualization platform, a flow control test scene is constructed in the test environment, so that a virtual machine can be created in the test environment conveniently, virtual machine migration is performed through the constructed flow control test scene, and whether the virtual machine migration flow control function is reliable is verified.
The created test environment includes a management node, a computing node, a shared storage pool, and a shared server, and specifically, refer to fig. 2, which shows a schematic structural diagram of a test environment constructed according to an embodiment of the present disclosure, where fig. 2 illustrates an example of a test environment including 1 management node (ICenter management node), 2 computing nodes (iNode-01 computing node and iNode-02 computing node, respectively), 1 shared server, 5 shared storage pools (CFS (cloud file service) storage 1, CFS storage 2, CFS storage 3, CFS storage 4, and CFS storage 5, respectively).
S13: and creating virtual machines with the quantity larger than the maximum allowed migration quantity determined according to the set share in a flow control test scene, and entering a database of the management node when a migration task is carried out.
After the flow control test scene is constructed, virtual machines with the number larger than the maximum allowable migration number are created in the flow control test scene, and all the created virtual machines are used for executing migration tasks. The migration task can be entered into a database of the management node during the migration task, so that information corresponding to the migration task generated in the execution process of the migration task can be obtained through the database.
The virtual machines with the number larger than the maximum allowable migration number are created in the flow control test scene for migration, so that whether migration flow control is realized or not can be verified according to the relation between the number of the virtual machines actually migrated in the flow control test scene and the maximum allowable migration number. Wherein, the maximum allowable migration quantity is calculated according to preset host share, storage pool share, migration source share and destination share, for example: when a single host concurrently migrates across hosts in a test scenario, a maximum of 200/50=4 virtual machines are allowed to migrate, and at this time, a number of virtual machines greater than 4 (specifically, 5 or 6, etc.) may be created in the test scenario.
S14: and checking shares of a migration source end and a migration destination end in the migration task through a database table in the database, and checking the task ID number of the migration task.
After entering the database of the management node, the shares of the migration source end and the migration destination end in the migration task can be checked through the database table in the database to determine whether the shares of the migration source end and the migration destination end are equal to the shares set in the virtualization platform in advance, and the task ID number of the migration task can be checked to determine whether the task ID number of the migration task is equal to the maximum allowable migration number, so that whether migration flow control is realized is verified.
In addition, the database table contains a plurality of contents, and specifically, see table 1, which shows the form of the database table provided by the embodiment of the present application:
table 1 database table
id name host_id datastore_id share task_id
111111 aaaaaa xxxxxxxxx iii tttttt1
222222 bbbbbb yyyyyyyyy jjj tttttt1
In the database table, ID is an identifier of the virtual machine, name is a name of the virtual machine, a physical host where a host _ ID virtual machine is located, datastore _ ID is a storage pool ID where the virtual machine is located, share is a share occupied by the virtual machine during migration, and task-ID is a task ID of a migration task.
According to the technical scheme, a test environment is created on a virtualization management platform, a flow control test scene is created in the test environment, virtual machines with the quantity larger than the maximum allowable migration quantity determined according to the set shares are created in the flow control test scene, when a migration task is performed in the flow control test scene, a database of a management node is entered, the shares of a migration source end and a migration destination end in the migration task are checked through a database table in the database, the task ID number of the migration task is checked, the migration flow control process of the virtual machines is tested by constructing the flow control test scene and checking information in the database table, and whether the flow control of the virtual machines is realized or not is verified through the task ID number, so that a worker can specifically know whether the flow control of the migration process of the virtual machines is realized or not.
The virtual machine migration flow control test method provided by the embodiment of the present application, entering a database of a management node, may include:
and entering a database of the management node through the xshell.
Specifically, the database of the management node may be entered through the xshell, specifically, the IP of the management node is logged in through the xshell, and then, the database in the management node is entered.
The xshell refers to software for providing a user interface, and generally refers to a command line interface parser, which can receive a user command and then call a corresponding application program to enter a database of the management node.
In the method for testing the migration flow control of the virtual machine provided by the embodiment of the application, the virtualization platform is InCloud Sphere.
In the application, the InCloud Sphere can be specifically used as a virtualization platform, and the method has the characteristics of high reliability, openness and compatibility and the like.
The method for testing the migration flow control of the virtual machine, provided by the embodiment of the application, for constructing a flow control test scene in a test environment, may include:
constructing a plurality of different flow control test scenes in a test environment;
creating a number of virtual machines in the flow control test scenario, which is greater than the maximum allowable migration number determined according to the set shares, may include:
and creating virtual machines with the number larger than the maximum allowable migration number determined according to the set share in only one flow control test scene in a plurality of different flow control test scenes each time.
When a flow control test scenario is constructed in a test environment, a plurality of different flow control test scenarios can be specifically constructed, so that a virtualization platform can be used for performing virtual machine migration flow control tests on the plurality of migration flow control test scenarios.
After a plurality of different flow control test scenes are constructed in a test environment, when flow control test is carried out, only one virtual machine with the quantity larger than the maximum allowable migration quantity of the flow control test scene is created in one flow control test scene each time, namely, only one flow control test scene is tested and verified each time, so that the interference of the parallel test of the flow control test scenes on the test result is avoided as much as possible, the accuracy of the test result is improved, and the reliability of the verification is further improved.
The method for testing the migration flow control of the virtual machine provided by the embodiment of the application constructs a plurality of different flow control test scenes in a test environment, and can include the following steps:
the method comprises the steps of constructing a single-host concurrent cross-host migration flow control test scene, a single-host concurrent cross-storage migration flow control test scene, a single-host concurrent cross-host and cross-storage migration flow control test scene and a single-storage pool concurrent cross-storage migration flow control test scene in a test environment.
Specifically, a single-host concurrent cross-host migration flow control test scenario, a single-host concurrent cross-storage migration flow control test scenario, a single-host concurrent cross-host and cross-storage migration flow control test scenario, and a single-storage-pool concurrent cross-storage migration flow control test scenario may be constructed in a test environment, where the single-host concurrent cross-host migration includes migration in and migration out. For migration of a virtual machine, refer to fig. 3 correspondingly, which shows a schematic diagram of a virtual machine migration manner provided in the embodiment of the present application.
In addition, by combining the above-mentioned preset shares, it can be known that 200/50=4 virtual machines are allowed to be migrated at most in a single-host concurrent cross-host migration flow control test scenario, 200/120=1 virtual machine is allowed to be migrated at most in a single-host concurrent cross-storage migration flow control test scenario, 200/120=1virtual machine is allowed to be migrated at most in a single-host concurrent cross-host and cross-storage migration flow control test scenario, and 200/50=4virtual machines are allowed to be migrated at most in a single-storage-pool concurrent cross-storage migration flow control test scenario.
For a single-host concurrent cross-host migration flow control test scenario, 5 virtual machines can be created on an iNode-01 computing node in fig. 2 and simultaneously migrated to an iNode-02 computing node, after a migration task starts, a database table is entered, whether share values of a source host (i.e., the iNode-01 computing node) and a target host (i.e., the iNode-02 computing node) are both 50 is checked, whether records of 4 different task-ids are only recorded is checked, if yes, it is indicated that at most 4 virtual machines are allowed to be concurrently migrated, and that is, the flow control test scenario is verified to realize flow control.
For a single-host concurrent cross-storage migration flow control test scenario, the preconditions are as follows: CFS store 1 and CFS store 2 are associated with two hosts, an iNode-01 compute node and an iNode-02 compute node. Creating 2 virtual machines on an iNode-01 computing node, simultaneously executing cross-storage migration of the 2 virtual machines on the iNode-01 computing node to a storage different from a source storage, entering a database table after a migration task starts, checking whether share values are all 120 and whether only 1 task-id record exists, if so, indicating that the migration of 1 virtual machine is allowed at most, namely, verifying that the flow control test scene realizes flow control.
For a single-host concurrent cross-host and cross-storage migration flow control test scenario, the precondition is as follows: (1) The CFS storage 1 and the CFS storage 2 are simultaneously associated with two hosts, namely an iNode-01 computing node and an iNode-02 computing node; (2) 2 virtual machines are created on the iNode-01 computing node and are respectively mounted in different shared storage pools. And simultaneously executing cross-host and storage migration of 2 virtual machines on the iNode-01 computing node to storage different from source storage on the iNode-02 computing node, entering a database table after a migration task starts, checking whether share values are all 120 and only 1 task-id record exists, and if yes, indicating that the migration of 1 virtual machine is allowed at most, namely verifying that the flow control test scene realizes flow control.
For a single storage pool concurrent cross-storage migration flow control test scenario, the precondition is as follows: (1) there are multiple shared storage pools: CFS storage 1, CFS storage 2, CFS storage 3, FC (fibre channel protocol) storage 1, FC storage 2, FC storage 3 (where FC storage 2, FC storage 3 are all created on a virtualization platform), and these storage pools are associated with 5 hosts at the same time; (2) 5 virtual machines are created, each located on a different host, the same storage (e.g., CFS storage 1). And simultaneously executing cross-storage migration on the 5 virtual machines on the CFS storage 1, wherein the virtual machine 1 is migrated to the CFS storage 2, the virtual machine 2 is migrated to the CFS storage 3, the virtual machine 3 is migrated to the FC storage 1, the virtual machine 4 is migrated to the FC storage 2, the virtual machine 5 is migrated to the FC storage 3, after a migration task starts, the virtual machine enters a database table, whether share values are all 50 and only 4 task-id records exist is checked, if yes, the parallel migration of the 4 virtual machines is allowed at most, and the test scene is verified to realize flow control.
Before creating virtual machines with a number greater than the maximum allowed migration number determined according to the set shares in a flow control test scenario, the method for testing migration flow control of a virtual machine provided in the embodiment of the present application may further include:
and closing the running business operation in the virtualization platform.
In order to avoid interference of other services on the migration flow control test and improve the accuracy and reliability of the migration flow control test, before virtual machines with a number greater than the maximum allowed migration number determined according to the set share are created in a test scene, the running service operation in the virtualization platform can be closed, so that only the task of creating the virtual machines and migrating the virtual machines is performed.
An embodiment of the present application further provides a virtual machine migration flow control testing apparatus, and referring to fig. 4, a schematic structural diagram of the virtual machine migration flow control testing apparatus provided in the embodiment of the present application is shown, where the schematic structural diagram may include:
a setting module 41, configured to set a host share, a storage pool share, a migration source share, and a destination share on the virtualization platform in advance;
a first creating module 42, configured to create a test environment on the virtualization platform, and construct a flow control test scenario in the test environment; the test environment can comprise a management node, a computing node, a shared storage pool and a shared server;
a second creating module 43, configured to create, in a flow control test scenario, virtual machines whose number is greater than the maximum allowed migration number determined according to the set share, and enter a database of a management node when performing a migration task;
and the checking module 44 is configured to check shares of the migration source end and the migration destination end in the migration task through a database table in the database, and check the task ID number of the migration task.
In the apparatus for testing a virtual machine migration flow control provided in the embodiment of the present application, the second creating module 43 may include:
and the creating unit is used for entering the database of the management node through the xshell.
According to the testing device for the migration flow control of the virtual machine, a virtualization platform is InCloud Sphere.
In an apparatus for testing a migration flow control of a virtual machine provided in an embodiment of the present application, a first creating module 42 may include:
the construction unit is used for constructing a plurality of different flow control test scenes in a test environment;
the second creating module 43 may include:
and the creating unit is used for creating the virtual machines with the number larger than the maximum allowable migration number determined according to the set share in one flow control test scene in a plurality of different flow control test scenes at a time.
The virtual machine migration flow control testing apparatus provided in the embodiment of the present application, the building unit may include:
and the construction subunit is used for constructing a single-host concurrent cross-host migration flow control test scene, a single-host concurrent cross-storage migration flow control test scene, a single-host concurrent cross-host and cross-storage migration flow control test scene and a single-storage pool concurrent cross-storage migration flow control test scene in the test environment.
The virtual machine migration flow control testing apparatus provided in the embodiment of the present application may further include:
and the closing module is used for closing the running business operation in the virtualization platform before the virtual machines with the quantity larger than the maximum allowable migration quantity determined according to the set share are created in the flow control test scene.
Referring to fig. 5, a schematic structural diagram of a virtual machine migration flow control test apparatus provided in the embodiment of the present application is shown, and the apparatus may include:
a memory 51 for storing a computer program;
the processor 52, when executing the computer program stored in the memory 51, may implement the following steps:
setting a host share, a storage pool share, a migration source share and a destination share on a virtualization platform in advance; creating a test environment on the virtualization platform, and constructing a flow control test scene in the test environment; the test environment can comprise a management node, a computing node, a shared storage pool and a shared server; creating virtual machines with the quantity larger than the maximum allowed migration quantity determined according to the set share in a flow control test scene, and entering a database of a management node when a migration task is carried out; and checking shares of a migration source end and a migration destination end in the migration task through a database table in the database, and checking the task ID number of the migration task.
The computer-readable storage medium provided in the embodiments of the present application stores a computer program thereon, and when executed by a processor, the computer program can implement the following steps:
setting a host share, a storage pool share, a migration source share and a destination share on a virtualization platform in advance; creating a test environment on the virtualization platform, and constructing a flow control test scene in the test environment; the test environment can comprise a management node, a computing node, a shared storage pool and a shared server; creating virtual machines with the quantity larger than the maximum allowable migration quantity determined according to the set share in a flow control test scene, and entering a database of a management node when a migration task is carried out; and checking shares of a migration source end and a migration destination end in the migration task through a database table in the database, and checking the task ID number of the migration task.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For a description of a relevant part in a virtual machine migration flow control test device, a piece of equipment, and a computer-readable storage medium provided in the embodiments of the present application, reference may be made to a detailed description of a corresponding part in a virtual machine migration flow control test method provided in the embodiments of the present application, and details are not repeated here.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include elements inherent in the list. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element. In addition, parts of the technical solutions provided in the embodiments of the present application that are consistent with implementation principles of corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A virtual machine migration flow control test method is characterized by comprising the following steps:
setting host share, storage pool share, migration source end share and destination end share on a virtualization platform in advance;
creating a test environment on the virtualization platform, and constructing a flow control test scene in the test environment; the test environment comprises a management node, a computing node, a shared storage pool and a shared server;
creating virtual machines with the number larger than the maximum allowed migration number determined according to the set share in the flow control test scene, and entering a database of the management node when a migration task is performed;
and checking shares of a migration source end and a migration destination end in the migration task through a database table in the database, and checking the task ID number of the migration task.
2. The method for testing the migration flow control of the virtual machine according to claim 1, wherein entering the database of the management node comprises:
and entering the database of the management node through the xshell.
3. The method for testing the migration flow control of the virtual machine according to claim 1, wherein the virtualization platform is an InCloud Sphere.
4. The method for testing the flow control in the migration of the virtual machine according to claim 2, wherein constructing a flow control test scenario in the test environment comprises:
constructing a plurality of different flow control test scenes in the test environment;
creating virtual machines with the number larger than the maximum allowed migration number determined according to the set share in the flow control test scene, wherein the virtual machines comprise:
and creating virtual machines with the number larger than the maximum allowable migration number determined according to the set share in one flow control test scene in a plurality of different flow control test scenes each time.
5. The method according to claim 4, wherein constructing a plurality of different flow control test scenarios in the test environment comprises:
and constructing a single-host concurrent cross-host migration flow control test scene, a single-host concurrent cross-storage migration flow control test scene, a single-host concurrent cross-host and cross-storage migration flow control test scene and a single-storage pool concurrent cross-storage migration flow control test scene in the test environment.
6. The virtual machine migration flow control test method according to any one of claims 1 to 5, wherein before creating virtual machines in the flow control test scenario, the number of which is greater than the maximum allowable migration number determined according to the set share, the method further includes:
and closing the running business operation in the virtualization platform.
7. A virtual machine migration flow control test device is characterized by comprising:
the system comprises a setting module, a migration module and a migration module, wherein the setting module is used for setting host share, storage pool share, migration source end share and destination end share on a virtualization platform in advance;
the system comprises a first establishing module, a second establishing module and a third establishing module, wherein the first establishing module is used for establishing a testing environment on the virtualization platform and establishing a flow control testing scene in the testing environment; the test environment comprises a management node, a computing node, a shared storage pool and a shared server;
the second creating module is used for creating virtual machines with the number larger than the maximum allowed migration number determined according to the set share in the flow control test scene, and entering a database of the management node when a migration task is performed;
and the checking module is used for checking shares of a migration source end and a migration destination end in the migration task through a database table in the database, and checking the task ID number of the migration task.
8. The virtual machine migration flow control testing apparatus according to claim 7, wherein the second creating module includes:
and the creating unit is used for entering the database of the management node through the xshell.
9. A virtual machine migration flow control test apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the virtual machine migration flow control testing method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the virtual machine migration flow control test method according to any one of claims 1 to 6.
CN201911328721.4A 2019-12-20 2019-12-20 Virtual machine migration flow control test method, device, equipment and storage medium Active CN111124614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911328721.4A CN111124614B (en) 2019-12-20 2019-12-20 Virtual machine migration flow control test method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911328721.4A CN111124614B (en) 2019-12-20 2019-12-20 Virtual machine migration flow control test method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111124614A CN111124614A (en) 2020-05-08
CN111124614B true CN111124614B (en) 2022-11-25

Family

ID=70500807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911328721.4A Active CN111124614B (en) 2019-12-20 2019-12-20 Virtual machine migration flow control test method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111124614B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880905B (en) * 2020-08-03 2023-05-23 浪潮云信息技术股份公司 Method for migrating virtual machines across cells by using openstack
CN113326102B (en) * 2021-08-02 2021-12-10 中电长城网际安全技术研究院(北京)有限公司 Large-scale virtual machine creating method and device, computer equipment and readable medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107092541A (en) * 2017-04-27 2017-08-25 郑州云海信息技术有限公司 A kind of method that utilization virtual machine carries out storage performance test
CN109086118A (en) * 2018-07-25 2018-12-25 浪潮(北京)电子信息产业有限公司 VTPM virtual machine migration method, device and equipment based on KVM

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107092541A (en) * 2017-04-27 2017-08-25 郑州云海信息技术有限公司 A kind of method that utilization virtual machine carries out storage performance test
CN109086118A (en) * 2018-07-25 2018-12-25 浪潮(北京)电子信息产业有限公司 VTPM virtual machine migration method, device and equipment based on KVM

Also Published As

Publication number Publication date
CN111124614A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
US11079966B2 (en) Enhanced soft fence of devices
US10594789B2 (en) Managing migration of an application from a source to a target
US10083027B2 (en) Systems and methods for managing software development environments
US11924117B2 (en) Automated local scaling of compute instances
US20200092168A1 (en) Production software application performance and resiliency testing
US9507676B2 (en) Cluster creation and management for workload recovery
US9692653B1 (en) Automatic generation of validators to validate deployment code used for configuring servers
US10305936B2 (en) Security inspection of massive virtual hosts for immutable infrastructure and infrastructure as code
US9946630B2 (en) Efficiently debugging software code
US10656934B2 (en) Efficient software testing
CN111124614B (en) Virtual machine migration flow control test method, device, equipment and storage medium
US10649834B2 (en) Distributed product deployment validation
JP7212440B2 (en) Method, computer program, and apparatus for post-failure recovery using checkpoints in a time-sequenced log-structured key-value store in a system
US11783049B2 (en) Automated code analysis tool
CN112328363B (en) Cloud hard disk mounting method and device
US10762088B2 (en) Automated database manager
US10831794B2 (en) Dynamic alternate keys for use in file systems utilizing a keyed index
US11163636B2 (en) Chronologically ordered log-structured key-value store from failures during garbage collection
US10606714B2 (en) Stopping central processing units for data collection based on event categories of events
Baset et al. Toward achieving operational excellence in a cloud
US11381496B1 (en) Testing a two-phase commit protocol conformance of a cloud based online transaction processing platform
US11593511B2 (en) Dynamically identifying and redacting data from diagnostic operations via runtime monitoring of data sources
US11360939B2 (en) Testing of file system events triggered by file access
CN110045930B (en) Method, device, equipment and medium for virtual platform to manage storage equipment volume

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