CN112836220B - Cloud center environment inspection method - Google Patents

Cloud center environment inspection method Download PDF

Info

Publication number
CN112836220B
CN112836220B CN202110174091.0A CN202110174091A CN112836220B CN 112836220 B CN112836220 B CN 112836220B CN 202110174091 A CN202110174091 A CN 202110174091A CN 112836220 B CN112836220 B CN 112836220B
Authority
CN
China
Prior art keywords
inspection
environment
script
environment inspection
cloud
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
CN202110174091.0A
Other languages
Chinese (zh)
Other versions
CN112836220A (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.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud 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 Inspur Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN202110174091.0A priority Critical patent/CN112836220B/en
Publication of CN112836220A publication Critical patent/CN112836220A/en
Application granted granted Critical
Publication of CN112836220B publication Critical patent/CN112836220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/577Assessing vulnerabilities and evaluating computer system security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a cloud center environment inspection method, and relates to the technical field of cloud deployment; the method comprises the steps that a central warehouse issues environment inspection tasks to all local cloud centers, according to the environment inspection tasks, all the local cloud centers perform built-in environment inspection and custom environment inspection, the built-in environment inspection corresponds to an inspection method through a unique code, corresponding inspection method scripts are called to be executed on a target host of the cloud center, the custom environment inspection calls the custom inspection scripts, relevant parameters are input to be executed on the target host, all the local cloud centers return inspection results to the central warehouse, and inspection reports of the built-in environment inspection and the custom environment are stored.

Description

Cloud center environment inspection method
Technical Field
The invention discloses a method, relates to the technical field of cloud deployment, and particularly relates to a cloud center environment inspection method.
Background
A cloud center built based on the cloud computing technology can provide resources such as virtualized hardware resources, middleware and software services for the outside. The cloud computing is grounded to form a cloud center, and numerous software and hardware devices such as physical server deployment, storage building, network planning, component installation and the like are involved. The cloud center completes a part of deployment, sometimes the integrity and correctness of the part of deployment need to be ensured, and the next deployment is not influenced, otherwise, once the next deployment fails, the debugging process is a difficult process. The cloud center deployment is completed, how to ensure the integrity and the success of the deployment and how to ensure that the deployment can be delivered to a user for use safely is a troublesome problem.
The operation and maintenance personnel often arrange an inspection list, then compare the inspection list, perform manual test, finally form a screenshot, arrange the screenshot into a document, and finally form an inspection report through manual judgment, so that the inspection report is used as a basis for whether the cloud center is successfully deployed. This process is often tedious and takes a long time, which will seriously affect the dimension progress.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a cloud center environment inspection method, which can improve the automation efficiency of cloud center environment inspection by utilizing built-in environment inspection and custom environment inspection. Meanwhile, the central warehouse can uniformly issue environment inspection tasks to the cloud centers of all places, so that the environment inspection conditions of the cloud centers of all places can be uniformly mastered, and the operation and maintenance efficiency is improved.
The specific scheme provided by the invention is as follows:
a cloud center environment inspection method, which issues environment inspection tasks to cloud centers of various places through a center warehouse,
according to the environment inspection task, the cloud centers carry out built-in environment inspection and self-defined environment inspection,
the built-in environment inspection is executed on a target host of the cloud center by calling a corresponding inspection method script through a unique code corresponding to the inspection method,
the custom environment check calls a custom check script, inputs related parameters to be executed on a target host,
and the cloud centers return the inspection results to the central warehouse and store the inspection reports of the built-in environment inspection and the custom environment.
Preferably, in the cloud center environment inspection method, the center warehouse issues the environment inspection task according to the id of the cloud center,
the respective cloud centers claim the environment inspection task,
and each cloud center executes the environment inspection task and returns the inspection result to the central warehouse.
Preferably, in the cloud center environment inspection method, each cloud center periodically queries the center warehouse to check whether an environment inspection task exists.
Preferably, in the cloud center environment inspection method, the environment inspection task list of each cloud center is maintained by the central warehouse.
Preferably, in the cloud-centric environment inspection method, the inspection report of the built-in environment inspection and the customized environment is output as a comprehensive inspection report, the comprehensive inspection report includes a directory and each environment inspection detail, and the contents of the environment inspection details include inspection time, inspection content, inspection method, inspection process and inspection result.
Preferably, in the cloud center environmental inspection method, the comprehensive inspection report is stored in a common object bucket, and the central warehouse pulls the comprehensive inspection report from the object bucket for the executed environmental inspection task according to the environmental inspection task issued each time.
Preferably, the cloud center environment inspection method includes an environment inspection:
acquiring information of all hosts of the cloud center, designating a target host for carrying out built-in environment inspection,
selecting the check method corresponding to the unique code, calling the corresponding check method script to execute on the target host,
and outputting the checking result.
Preferably, in the cloud center environment inspection method, the custom environment inspection:
uploading a self-defined inspection script and related parameters,
acquiring information of all hosts of the cloud center, designating a target host for custom environment inspection,
selecting a custom check script, executing the custom check script on the target host in batch through the ansable,
and outputting the checking result.
The invention has the advantages that:
the invention provides a cloud center environment inspection method, which is characterized in that a central warehouse uniformly issues inspection tasks, built-in environment inspection and custom environment inspection are carried out according to the conditions of cloud centers of all places, an inspection method can be selected during the built-in environment inspection according to a unique code, and a custom inspection script is selected according to a target host during the custom inspection, so that the original manual inspection work is changed into automatic inspection work, an inspection result or an inspection report is automatically given, the environment inspection conditions of all the cloud centers can be comprehensively known without logging in the cloud centers for inspection, the original manual inspection is greatly simplified, the operation and maintenance efficiency is improved, the inspection can be carried out according to the actual inspection requirements, and the cross-dimension period is greatly shortened.
Drawings
FIG. 1 is a schematic diagram of the application of the method framework of the present invention;
FIG. 2 is a flow chart of the method built-in environment check of the present invention;
FIG. 3 is a flow chart of the method custom environment check of the present invention.
Detailed Description
The present invention is further described below in conjunction with the following figures and specific examples so that those skilled in the art may better understand the present invention and practice it, but the examples are not intended to limit the present invention.
The invention provides a cloud center environment inspection method, which issues environment inspection tasks to cloud centers of various places through a center warehouse,
according to the environment inspection task, the cloud centers carry out built-in environment inspection and self-defined environment inspection,
the built-in environment inspection is executed on a target host of the cloud center by calling a corresponding inspection method script through a unique code corresponding to the inspection method,
the custom environment check calls a custom check script, inputs related parameters to be executed on a target host,
and the cloud centers return the inspection results to the central warehouse and store the inspection reports of the built-in environment inspection and the custom environment.
The environment inspection of the invention mainly comprises two parts, namely built-in environment inspection and self-defined environment inspection. The built-in environment inspection is some environment inspection items solidified by the operation and maintenance system in advance according to the common requirements of the cloud centers of all places, and an inspection report can be directly output. The user-defined environment inspection is that if the cloud centers in various places have personalized environment inspection requirements, the inspection scripts can be written off-line and uploaded to the operation and maintenance system, the executed target host is selected, the operation and maintenance system is responsible for executing the inspection scripts, and inspection results are output. The central warehouse provided by the invention can uniformly issue the inspection tasks to the cloud centers of all places, and can comprehensively master the environment inspection conditions of the cloud centers of all places.
In some embodiments of the present invention, the central repository in the overall architecture is responsible for issuing inspection tasks, which include the id of the cloud center and which environmental inspections are to be performed.
The cloud center claims the task. And each local cloud center regularly inquires the central warehouse to check whether the cloud center has an environment checking task. And if the environment inspection task of the cloud center is available, starting to execute the comprehensive environment inspection task. The comprehensive inspection task sequentially executes each environmental inspection task, and outputs the result of each environmental inspection to a comprehensive pdf inspection report. The general inspection report is divided into two parts: a directory, details of each environmental check, the directory section indicating which environmental checks the comprehensive check report contains, and linked to the environmental check details in a hyperlink. The environment inspection detail content is divided into five parts: checking time, checking content, checking method, checking process and checking result.
And each cloud center executes the comprehensive environment inspection task, uploads the comprehensive inspection report to a public object storage bucket, and returns the inspection result to the central warehouse, namely, informs the central warehouse of metadata such as the end of inspection, the inspection time and the like.
And checking the comprehensive inspection report. The central warehouse maintains a list of inspection tasks of the cloud centers of each place, and can pull a comprehensive inspection report from the object storage bucket for the inspection tasks completed according to the inspection tasks issued each time.
Under the above architecture, the cloud-centric environment inspection mainly includes network inspection, inspection of installation components, and the like. Whether the current network of the cloud center is normal or not and whether the assembly installation is successful or not can be known through the checking, whether the whole cloud center is completely and successfully deployed or not is further obtained, the environmental condition of the cloud center can be quickly checked, and the positioning problem of operation and maintenance personnel can be helped. In some embodiments of the present invention, when the built-in environment inspection is performed, it is known that each inspection method corresponds to a unique code, and the code uniquely represents an inspection method, that is, the code corresponds to an execution method, and if some or all of the environment inspection is specified to be performed by the code, the corresponding method is executed according to the code.
The specific process of the built-in environment inspection comprises the following steps:
acquiring all host information of the cloud center, wherein the host information comprises: host name, host ip, user name, password, key location, ssh port. The host name and the ip information can be automatically acquired through a relevant configuration file when the host is deployed.
And selecting a corresponding built-in script through the unique code to realize environment checking. The environment checking script is uploaded to the operation and maintenance system in advance, a target host machine in which the environment checking script operates is appointed during execution, the environment checking script is temporarily copied to the target host machine, and the environment checking script of the target host machine is deleted after the target host machine completes execution and obtains a result. The built-in script is realized through built-in codes when being executed, and the built-in codes realize a general method for executing commands and calling interfaces. Specifies at which target host the command is to be executed, and obtains the execution result. And calling the interface and acquiring an interface response. The method can execute a plurality of commands and call a plurality of interfaces according to the environment inspection requirement, and the execution is performed in sequence according to the steps.
And outputting a pdf report according to a certain format after the examination is finished, wherein the pdf report is the detail content of the environmental examination and is mainly divided into five parts: checking time, checking content, checking method, checking process and checking result.
The end of the check will inform the foreground of the end of the execution, where the pdf report can be previewed or downloaded by the foreground.
On the basis of the built-in environment inspection, the process of carrying out the custom environment inspection comprises the following steps:
the custom environment check is that the user can execute the environment check by uploading the check script. The method is divided into two parts: script management and task management. The structure and flow of the custom environment check are shown in fig. 3.
And (4) compiling the script, and compiling the inspection script offline by operation and maintenance personnel according to different requirements of cloud centers in various places. The self-defined environment inspection method provided by the invention supports the inspection scripts of the shell language and the python language, and the two languages have wider use range in operation and maintenance and can meet the requirement of compiling the inspection scripts.
Uploading scripts and filling parameters. After the script is written, the script is uploaded through the script management part, and if the script needs to input parameters, the input parameter values need to be filled. The custom environment inspection method provided by the invention supports the transmission of the filled parameters to the script according to the filling sequence.
And acquiring target host information. And maintaining all host information of the cloud center in advance, and selecting target hosts on which the inspection scripts need to be executed for the inspection scripts, so that the maintenance of one inspection script is completed.
After claiming the inspection task, the cloud center creates an environment inspection task, selects a script which needs to be executed by self-defined inspection in the inspection task, and can select a plurality of scripts, namely the inspection task and the inspection script are in a one-to-many relationship, namely the inspection script can be executed in batch.
And executing the task. The custom environment check provided by the invention can realize batch operation by using ansable. The ansable has the advantages of no need of installing a third agent and more modules, so the ansable is preferably selected. And executing the environment checking tasks in batches by using the ansable, and recording an execution log, wherein each checking script forms a checking log. The inspection tasks may be performed in batches.
The analysis log forms an execution result. By analyzing the ansible log, an execution result is formed according to the script and the target host. The execution result is mainly divided into: target host, check result and error information.
After the built-in environment inspection and the custom inspection are carried out, each cloud center executes the comprehensive environment inspection task, uploads the comprehensive inspection report to a public object storage bucket, and returns the inspection result to the central warehouse, namely, the central warehouse is informed of metadata such as the end of the inspection, the inspection time and the like. The central warehouse can obtain comprehensive inspection reports of the cloud centers of all places without logging in the cloud centers one by one for inspection, so that the environment inspection conditions of all the cloud centers can be comprehensively known, and the operation and maintenance time is greatly reduced.
The above-mentioned embodiments are merely preferred embodiments for fully illustrating the present invention, and the scope of the present invention is not limited thereto. The equivalent substitution or change made by the technical personnel in the technical field on the basis of the invention is all within the protection scope of the invention. The protection scope of the invention is subject to the claims.

Claims (4)

1. A cloud center environment inspection method is characterized in that a center warehouse issues environment inspection tasks to cloud centers of various places,
according to the environment inspection task, carrying out built-in environment inspection and custom environment inspection by each local cloud center;
the built-in environment inspection is executed on a target host of the cloud center by calling a corresponding inspection method script through a unique code, and the specific process of the built-in environment inspection is as follows: the method comprises the steps of obtaining all host information of a cloud center, wherein the host information comprises a host name, a host ip, a user name, a password, a key position and a ssh port, the host name and the ip information are automatically obtained through relevant configuration files when the host is deployed, selecting a corresponding built-in script through a unique code to realize environment inspection, uploading the environment inspection script to an operation and maintenance system in advance, appointing a target host in which the environment inspection script operates when executing, temporarily copying the environment inspection script to the target host, deleting the environment inspection script of the target host after the target host executes and obtains a result, realizing the internal script through the built-in code when executing the built-in script, realizing a general execution command and an interface calling method through the built-in code, appointing which target host executes the command and obtains an execution result, calling the interface and obtaining an interface response, executing a plurality of commands according to the environment inspection requirement, calling the plurality of interfaces, and sequentially executing according to the steps;
the user-defined environment inspection calls a user-defined inspection script, relevant parameters are input to be executed on a target host, and on the basis of the built-in environment inspection, the process of the user-defined environment inspection is as follows: the custom environment check is divided into two parts, including script management and task management,
according to different requirements of cloud centers in various places, an inspection script is written off-line, the self-defined environment inspection method supports inspection scripts of two languages of shell and python,
after the script is written, the script is uploaded through script management, if the script needs to input parameters, the input parameter values need to be filled, the self-defined environment inspection method supports that the input parameters are transmitted to the script according to the filling sequence,
acquiring target host information, maintaining all host information of the cloud center in advance, selecting target hosts on which the inspection script needs to be executed for the inspection script, and completing the maintenance of one inspection script,
after claiming the inspection tasks, the cloud center creates environment inspection tasks, selects scripts which need to be executed in the inspection tasks in a self-defined inspection mode, and executes the inspection scripts in batches, wherein the inspection tasks and the inspection scripts are in one-to-many relation,
self-defining environment inspection, namely using the ansable to realize batch operation, executing environment inspection tasks in batches by the ansable, recording execution logs, and forming an inspection log by each inspection script;
and the central warehouse pulls the comprehensive inspection report from the object storage bucket according to the environment inspection task issued each time.
2. The method of claim 1, wherein the central repository issues the environmental inspection task according to the id of the cloud center,
the respective cloud centers claim the environment inspection task,
and each cloud center executes the environment inspection task and returns the inspection result to the central warehouse.
3. The method as claimed in claim 1 or 2, wherein each local cloud center periodically queries a central warehouse to see whether an environmental inspection task exists.
4. The method as claimed in claim 3, wherein the cloud center environment inspection task list of each local cloud center is maintained by the central warehouse.
CN202110174091.0A 2021-02-07 2021-02-07 Cloud center environment inspection method Active CN112836220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110174091.0A CN112836220B (en) 2021-02-07 2021-02-07 Cloud center environment inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110174091.0A CN112836220B (en) 2021-02-07 2021-02-07 Cloud center environment inspection method

Publications (2)

Publication Number Publication Date
CN112836220A CN112836220A (en) 2021-05-25
CN112836220B true CN112836220B (en) 2023-03-24

Family

ID=75932873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110174091.0A Active CN112836220B (en) 2021-02-07 2021-02-07 Cloud center environment inspection method

Country Status (1)

Country Link
CN (1) CN112836220B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821319A (en) * 2021-08-27 2021-12-21 浪潮云信息技术股份公司 Task issuing processing method and system for regional cloud center

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038933A (en) * 2017-12-06 2018-05-15 郑州云海信息技术有限公司 A kind of automatic detecting method and apparatus
CN110912779A (en) * 2019-12-05 2020-03-24 苏州浪潮智能科技有限公司 Cluster host health detection method, system, equipment and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259681A (en) * 2013-05-16 2013-08-21 浪潮通信信息系统有限公司 Method for automatic routing inspection of communication network host
CN110286921B (en) * 2019-06-27 2023-11-10 四川中电启明星信息技术有限公司 CDH method for automatically installing distributed big data platform
CN110798336A (en) * 2019-09-25 2020-02-14 苏州浪潮智能科技有限公司 Method and device for environmental inspection of large data platform deployment server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038933A (en) * 2017-12-06 2018-05-15 郑州云海信息技术有限公司 A kind of automatic detecting method and apparatus
CN110912779A (en) * 2019-12-05 2020-03-24 苏州浪潮智能科技有限公司 Cluster host health detection method, system, equipment and readable storage medium

Also Published As

Publication number Publication date
CN112836220A (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN112882700B (en) IOS application program construction method and device, electronic equipment and storage medium
CN110347395B (en) Software release method and device based on cloud computing platform
WO2018036342A1 (en) Csar-based template design visualization method and device
CN113434158B (en) Custom management method, device, equipment and medium for big data component
US11573788B2 (en) Creation and execution of customized code for a data processing platform
JP4757811B2 (en) Apparatus and method for generating job network flow from job control statements described in job control language
CN112199355B (en) Data migration method and device, electronic equipment and storage medium
CN111462811A (en) Automatic testing method and device, storage medium and electronic equipment
CN115454869A (en) Interface automation test method, device, equipment and storage medium
CN114115838A (en) Data interaction method and system based on distributed components and cloud platform
CN114153743A (en) Automatic testing method based on interface
CN112836220B (en) Cloud center environment inspection method
CN111813420A (en) Method for carrying out automated performance test on OpenStack cluster
CN113760462A (en) Method and device for constructing verification environment of dispatching automation system
CN116719735A (en) Test case generation method and device
JPWO2018174223A1 (en) Operation management server, development operation support system, their method and program
CN115185561A (en) CICD system based on service Jenkins and implementation method
CN114925516A (en) Method and device for automatic modeling and simulation
CN113377468A (en) Script execution method and device, electronic equipment and storage medium
CN114168438A (en) Visual operation and maintenance control arrangement method and system realized in low-code mode
CN112685051A (en) Method, device, platform and storage medium for automatically executing shell script
CN111897557A (en) Method, device, equipment and storage medium for updating service system
US20060277251A1 (en) Information processing apparatus and system development method
CN117762802A (en) Automatic test method, device, equipment and storage medium
Song et al. Test Environment Construction Method Using Parameterized Test Environments

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