Bare metal service delivery method, apparatus, computer equipment and storage medium

By pre-built a bare metal service resource pool and pre-loading the system proxy service, the problem of slow delivery time of bare metal services in the existing technology is solved, and the second-level delivery of bare metal services is achieved, and the delivery efficiency is improved.

CN112286537BActive Publication Date: 2025-05-02PING AN TECH (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011146531.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-23
Publication Date
2025-05-02
Estimated Expiration
2040-10-23

AI Technical Summary

Technical Problem

The bare metal service delivery solutions of existing cloud manufacturers are slow to achieve and cannot achieve rapid delivery.

Method used

By pre-built a bare metal service resource pool, pre-loading the system proxy service and pre-installing the operating system, filtering the target physical machine from the resource pool after receiving user orders, and calling the system proxy service for network configuration switching and delivery acceptance, achieving rapid delivery.

Benefits of technology

The second-level delivery of bare metal services is achieved, which improves delivery efficiency and reduces delivery time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112286537B_ABST
    Figure CN112286537B_ABST
Patent Text Reader

Abstract

The present application relates to the field of cloud technology, and provides a bare metal service delivery method, device, computer equipment and storage medium. The method comprises: when receiving a user order message, according to the demand parameters carried in the user order message, a target physical machine matching the demand parameters is screened out from a pre-built bare metal service resource pool, and the system proxy service is called to perform network configuration switching and delivery acceptance on the target physical machine. When the delivery acceptance is successful, the target physical machine is removed from the bare metal service resource pool, and the server resources of the target physical machine are delivered; wherein, the delivery acceptance includes the network connectivity acceptance and the agent service survival acceptance of the target physical machine, the bare metal service resource pool is pre-loaded with the system proxy service, and the physical machines in the bare metal service resource pool are pre-installed with the operating system. By adopting this method, when a user order arrives, there is no need to perform system installation, restart and other operations on the physical machine, and the bare metal service can be delivered in seconds.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud technology, and in particular to a bare metal service delivery method, apparatus, computer equipment, and storage medium. Background Art

[0002] Bare Metal Service is a common product service of major cloud vendors. Bare Metal Service (BMS) can provide users with exclusive physical server resources, with excellent computing power and data reading and writing capabilities, and provide a safe and reliable cloud environment to meet the requirements of regulatory isolation. Compared with ordinary ECS cloud servers, BMS has no software virtualization layer, that is, it has the resources of the entire physical server, without virtual layer performance loss, and has a wider range of application scenarios. In addition, tenants have exclusive use of the entire server resources, while ordinary ECS servers share one physical server for multiple tenants. Therefore, it is a must-have service for major vendors.

[0003] At present, in order to achieve the best original performance of physical machines, the bare metal service delivery solutions of various cloud vendors often do not perform any virtualization and directly deliver the server resources of physical machines to users. However, the above solutions have slow delivery time. Summary of the invention

[0004] Based on this, it is necessary to provide a bare metal service delivery method, device, computer equipment and storage medium that can achieve rapid delivery in response to the above technical problems.

[0005] A bare metal service delivery method, the method comprising:

[0006] When receiving a user order message, based on the demand parameters carried in the user order message, select a target physical machine that matches the demand parameters from the pre-built bare metal service resource pool;

[0007] Call the system proxy service to switch the network configuration and perform delivery acceptance on the target physical machine. The delivery acceptance includes the network connectivity acceptance of the target physical machine and the survivability acceptance of the proxy service.

[0008] When the delivery acceptance is successful, the target physical machine is removed from the bare metal service resource pool, and the server resources of the target physical machine are delivered;

[0009] The bare metal service resource pool is preloaded with a system proxy service, and the physical machines in the bare metal service resource pool are preinstalled with an operating system.

[0010] In one embodiment, the bare metal service resource pool is obtained by:

[0011] Receiving operating system installation instructions;

[0012] According to the physical machine identifier carried in the operating system installation instruction, the operating system is installed on the physical machine accordingly;

[0013] Switch the virtual LAN of the switch port connected to the physical machine to the preset bare metal service resource pool management virtual LAN, and initialize the operating system of the physical machine;

[0014] When the operating system is initialized, change the operating system password of the physical machine, monitor the device status of the physical machines in the bare metal service resource pool, and build the bare metal service resource pool.

[0015] In one of the embodiments, the operating system initialization includes configuring the Internet Protocol address of the bare metal service resource pool and installing the system agent service and the monitoring agent service.

[0016] In one embodiment, monitoring the device status of each physical machine in the bare metal service resource pool includes:

[0017] Call the system proxy service and monitoring proxy service at a preset time period to scan the physical machines in the bare metal service resource pool and obtain the status data of each physical machine;

[0018] If a physical machine with abnormal status data is monitored, a preset alarm event will be triggered.

[0019] In one embodiment, before calling the system proxy service to switch the network configuration of the target physical machine, the method further includes:

[0020] Get the network configuration parameters of the target physical machine;

[0021] Calling the system proxy service to switch the network configuration of the target physical machine includes:

[0022] Call the system proxy service, pass the network configuration parameters into the preset network switching script, and execute the preset network switching script to switch the network configuration of the target physical machine.

[0023] In one embodiment, switching the network configuration of the target physical machine includes:

[0024] Perform network configuration on the target physical machine according to the network configuration parameters;

[0025] Delete the configured bare metal service resource pool network configuration data and restart the network service;

[0026] Restart the system proxy service.

[0027] In one embodiment, calling the system proxy service to perform delivery acceptance on the target physical machine includes:

[0028] The system proxy service is called to execute the preset delivery acceptance script according to the preset time period to perform network connectivity acceptance of the target physical machine and proxy service survivability acceptance.

[0029] A bare metal service delivery device, comprising:

[0030] A physical machine screening module is used to screen out a target physical machine matching the demand parameters from a pre-built bare metal service resource pool according to the demand parameters carried in the user order message when receiving a user order message, wherein the bare metal service resource pool is pre-loaded with a system proxy service, and the physical machines in the bare metal service resource pool are pre-installed with an operating system;

[0031] The physical machine configuration acceptance module is used to call the system proxy service to perform network configuration switching and delivery acceptance on the target physical machine. The delivery acceptance includes the network connectivity acceptance of the target physical machine and the survivability acceptance of the proxy service.

[0032] The physical machine delivery module is used to remove the target physical machine from the bare metal service resource pool and deliver the server resources of the target physical machine when the delivery acceptance is successful.

[0033] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0034] When receiving a user order message, based on the demand parameters carried in the user order message, select a target physical machine that matches the demand parameters from the pre-built bare metal service resource pool;

[0035] Call the system proxy service to switch the network configuration and perform delivery acceptance on the target physical machine. The delivery acceptance includes the network connectivity acceptance of the target physical machine and the survivability acceptance of the proxy service.

[0036] When the delivery acceptance is successful, the target physical machine is removed from the bare metal service resource pool, and the server resources of the target physical machine are delivered;

[0037] The bare metal service resource pool is preloaded with a system proxy service, and the physical machines in the bare metal service resource pool are preinstalled with an operating system.

[0038] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0039] When receiving a user order message, based on the demand parameters carried in the user order message, select a target physical machine that matches the demand parameters from the pre-built bare metal service resource pool;

[0040] Call the system proxy service to switch the network configuration and perform delivery acceptance on the target physical machine. The delivery acceptance includes the network connectivity acceptance of the target physical machine and the survivability acceptance of the proxy service.

[0041] When the delivery acceptance is successful, the target physical machine is removed from the bare metal service resource pool, and the server resources of the target physical machine are delivered;

[0042] The bare metal service resource pool is preloaded with a system proxy service, and the physical machines in the bare metal service resource pool are preinstalled with an operating system.

[0043] The above-mentioned bare metal service delivery method, device, computer equipment and storage medium, because before the user order arrives, the pre-built bare metal service resource pool is pre-loaded with the system agent service and the physical machine's operating system is installed. Therefore, when the user order arrives, there is no need to install the operating system on the physical machines in the bare metal service resource pool, restart and other time-consuming operations. It is only necessary to select the target physical machine that meets the user's needs from the pre-built bare metal service resource pool, and perform network configuration and delivery acceptance on the target physical machine through the system agent service, so as to complete the acceptance and delivery, and realize the bare metal service delivery in seconds. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 An application environment diagram of a bare metal service delivery method in an embodiment;

[0045] Figure 2 An architectural design diagram of a bare metal service delivery method in one embodiment;

[0046] Figure 3 A schematic diagram of a bare metal service delivery method in one embodiment;

[0047] Figure 4 A schematic diagram of a process for building a bare metal service resource pool in an embodiment;

[0048] Figure 5 A schematic diagram of a flow chart of network configuration switching steps of a physical machine in one embodiment;

[0049] Figure 6 is a structural block diagram of a bare metal service delivery device in one embodiment;

[0050] Figure 7 It is a structural block diagram of a bare metal service delivery device in another embodiment;

[0051] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] The bare metal service delivery method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the bare metal service (Bare Metal Service, BMS) BMS portal server 104 (hereinafter referred to as BMS server 104) and the server 106 of the bmp physical machine management platform (hereinafter referred to as bmp server 106) through the network. The operation and maintenance personnel estimate user needs, purchase physical machines, perform physical machine deployment and other operations on the bmp physical machine management platform, submit physical machine construction work orders, and the bmp server 106 receives the physical machine construction work order and pre-builds a bare metal service resource pool, wherein the bare metal service resource pool is pre-loaded with a system agent service (hereinafter referred to as OSAgent), and the physical machines in the bare metal service resource pool are pre-installed with an operating system (hereinafter referred to as OS, Operating System) users log in to the BMS portal website through the terminal 102 to select a physical machine that meets their needs, and submit the user order to the BMS server 104. The BMS server 104 then sends the user order message to the bmp server 106. The bmp server 106 receives the user order message (the user order message carries the demand parameters of the physical machine model selected by the user), and selects the target physical machine that matches the demand parameters from the bare metal service resource pool according to the demand parameters carried in the user order message, and calls OSAgent to perform network configuration switching and delivery acceptance (including network connectivity acceptance of the target physical machine and agent service survival acceptance) on the target physical machine. When the delivery acceptance is successful, the physical machine is removed from the bare metal service resource pool and the server resources of the target physical machine are delivered. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The BMS server 104 and the bmp server 106 can be implemented with independent servers or server clusters consisting of multiple servers. In order to more clearly describe the bare metal service delivery method provided in the present application, it can be combined with the following Figure 2 See the architectural design diagram shown for understanding.

[0054] In one embodiment, Figure 3 As shown, a bare metal service delivery method is provided, which is applied to Figure 1 The bmp server 106 in the example is used as an example to illustrate, and the following steps are included:

[0055] Step 202: When a user order message is received, a target physical machine matching the demand parameters is screened out from a pre-built bare metal service resource pool according to the demand parameters carried in the user order message.

[0056] The bare metal service resource pool can be referred to as the BMS resource pool. The bare metal service resource pool is preloaded with the system agent service, i.e., OSAgent, and the physical machines in the bare metal service resource pool are preinstalled with OS. Specifically, the construction of the BMS resource pool includes planning the BMS private network, placing physical machines on the shelves, preinstalling the OS of the physical machines, and pre-initializing the OS.

[0057] In specific implementation, the demand parameters may include information such as the machine model, OS type, and network segment selected by the user. After the physical machine (that is, the physical machine server) enters the pool, it can be called a resource pool server. The physical machine added to the resource pool is set to a state that can be allocated for use, that is, the device status of the physical machine is marked as "in the pool". The physical machine in the pool will continuously monitor its access connectivity, the survival status of related components, and security through the Agent server. If there is an abnormality, the device status will be set to "maintenance". The physical machine in the "maintenance" state cannot be selected by the user for order placement, and the physical machine in the "maintenance" state will attempt to automatically repair, such as security reinforcement, Agent version update, and manual intervention if necessary, such as automatic reporting of hardware failures. After the physical machine is repaired, the status will be updated to "in the pool" for users to place orders and select. Users select physical machines that meet their needs on the BMS portal and place an order. The BMS portal will automatically allocate network configuration parameters and pass them to the bmp server. When receiving the user's order message, the bmp server will combine the user's required parameters such as the selected model, OS type, and network segment information to select the target physical machine that meets the user's required parameters from the resource pool.

[0058] Step 204: Call the system proxy service to perform network configuration switching and delivery acceptance on the target physical machine. The delivery acceptance includes network connectivity acceptance of the target physical machine and proxy service survivability acceptance.

[0059] After selecting the target physical machine that meets the user's needs, the network environment of the target physical machine can be configured by calling OSAgent, and then the delivery acceptance can be carried out. In the specific implementation, the network switch will expose the URL (Uniform Resource Location) interface of the network configuration to the outside, and the network port can be configured by calling this interface. Specifically, the network environment can be configured in combination with the network configuration parameters sent by the BMS. The delivery acceptance can be carried out by checking the network connectivity of the physical machine and the survival of the Agent through ipmi sol.

[0060] Step 206: When the delivery acceptance is successful, the target physical machine is removed from the bare metal service resource pool, and the server resources of the target physical machine are delivered.

[0061] When the target physical machine is successfully delivered and accepted, it means that the physical machine meets the conditions for delivery to the user, and the physical machine can be removed from the BMS resource pool, and then the server resources of the target physical machine can be delivered to the user. The entire process, from the user placing an order to the delivery of the device to the user, takes about 15 seconds. After receiving the order completion message, the user can log in to the host directly through the internal cloud bastion host.

[0062] In the above-mentioned bare metal service delivery method, since the pre-built bare metal service resource pool is pre-loaded with the system agent service and the physical machine's operating system installation is completed before the user order arrives, when the user order arrives, there is no need to install the operating system on the physical machines in the bare metal service resource pool, restart and other time-consuming operations. It is only necessary to select the target physical machine that meets the user's needs from the pre-built bare metal service resource pool, and perform network configuration and delivery acceptance on the target physical machine through the system agent service to complete the acceptance and delivery, thereby realizing the bare metal service delivery in seconds.

[0063] like Figure 4 As shown, in one embodiment, the bare metal service resource pool is obtained by:

[0064] Step 212, receiving an operating system installation instruction;

[0065] Step 222, installing the operating system on the physical machine according to the physical machine identifier carried in the operating system installation instruction;

[0066] Step 232, switching the switch port connected to the physical machine to a preset bare metal service resource pool management virtual local area network (VLAN), and initializing the operating system of the physical machine;

[0067] Step 242, when the operating system initialization is completed, the operating system password of the physical machine is changed;

[0068] Step 252, monitor the device status of each physical machine in the bare metal service resource pool and build the bare metal service resource pool.

[0069] In actual applications, operation and maintenance personnel estimate user needs and purchase physical machines. After the physical machines are in place, they check the physical machines and enter the assets, including serial number, manufacturer, product model, price, product configuration, purchase date, warranty expiration date, billing method, etc. When the physical machines are checked, it is necessary to manage the inventory of the physical machines and add the inventory physical machines to the BMS resource pool, that is, enter the pool. Specifically, the operation and maintenance personnel can enter the bmp physical machine platform operation interface, and then search for the required cloud environment, availability zone, and model on the "Inventory Management" operation page, select the physical machine that needs to be pooled, and then click the "Enter the Pool" button. In the pop-up operation page, select the availability zone that needs to be pooled, the OS that needs to be installed, the disk array that needs to be made, and other information, and click the "Submit" button. At this time, the following actions will be performed after submission:

[0070] a) Automatically apply for out-of-band remote management IP, host name and in-band resource pool management IP (Internet Protocol);

[0071] b) Automatically allocate cabinet location and switch port, and check whether the switch port configuration is not connected. If the port is OK, the installation VLAN will be automatically opened;

[0072] c) Record information such as SN, cabinet, switch port, etc. and automatically submit the construction work order;

[0073] d) Change the physical machine status from In Inventory to Under Construction.

[0074] Subsequently, the operation and maintenance personnel arrange the installation and wiring of the physical machine according to the construction work order. After the implementation is completed, the operation and maintenance personnel choose to automatically install the OS through PXE, send the operating system installation instruction, receive the operating system installation instruction, and install the OS on the physical machine corresponding to the physical machine identifier according to the physical machine identifier carried by the operating system installation instruction. The physical machine identifier can be the serial number or device number of the physical machine and other identification data. When the OS is installed, the VLAN of the switch port connected to the physical machine will automatically switch to the BMS resource pool management VLAN, and the OS will be initialized. Specifically, OS initialization includes configuring the BMS resource pool management Internet Protocol address, that is, the IP (Internet Protocol) address, and installing OSAgent and some other agents, such as monitoring agent, vmagent, and cloudagent. Specifically, OS pre-initialization mainly configures the BMS management network and installs the system management agent and some other agents through ipmi sol. After the OS initialization is completed, the BMS resource pool delivery acceptance is carried out. Specifically, it can be to change the OS password by calling OSAgent and monitor the status of each physical machine in the resource pool. If the PXE automatic installation fails, you can use the out-of-band image to mount the semi-automatic installation, and after the installation is complete, use ipmi sol to perform semi-automatic initialization operations.

[0075] In one embodiment, monitoring the device status of each physical machine in the bare metal service resource pool includes:

[0076] Call the system proxy service and monitoring proxy service at a preset time period to scan the physical machines in the bare metal service resource pool and obtain the status data of each physical machine;

[0077] If a physical machine with abnormal status data is monitored, a preset alarm event will be triggered.

[0078] In specific implementation, after completing OS initialization and changing OS password, OSAgent and monitoring agent can be called every 5 minutes to scan and inspect each physical machine in the BMS resource pool, obtain the status data of the physical machine, and compare whether there is any abnormality in the status data to achieve the purpose of real-time monitoring. The inspection of equipment status can include checking whether the network port status and local scripts (network switching scripts, delivery acceptance scripts and password change scripts) are up to date through status data, whether the relevant Agent port services are connected, etc. If it is found that the local script is not the latest script, the latest script will be automatically sent to the resource pool server. If it is found that there is a down in the network port, an alarm will be issued to issue an event sheet. If the OSAgent cannot manage, an alarm will also be issued to arrange for repair. For physical machines in normal status, users can automatically allocate delivery when purchasing physical machines on the BMS portal. In addition, for physical machines that have expired or physical machines in the resource pool that need to be reinstalled, they can automatically take out the work order and automatically reinstall them by clicking a button. In this embodiment, by obtaining the status of the physical machine in real time, it is possible to quickly locate the physical machine in a healthy state for configuration and then deliver it to the user, thereby improving the success rate of the product.

[0079] In one embodiment, before calling the system proxy service to switch the network configuration of the target physical machine, the method further includes:

[0080] Get the network configuration parameters of the target physical machine;

[0081] Calling the system proxy service to switch the network configuration of the target physical machine includes:

[0082] Call the system proxy service, pass the network configuration parameters into the preset network switching script, and execute the preset network switching script to switch the network configuration of the target physical machine.

[0083] In specific implementation, after the BMS resources are built, the BMS resource pool network has been configured, OSAgent has been installed, and scripts have been placed in the local / root directory of the server OS, including network switching scripts, delivery acceptance scripts, and password modification scripts. When a user order arrives, the BMS portal will automatically assign the user's main network IP, and pass the user's main network IP, mask, gateway, VLANID and other network configuration parameters to the bmp server. After obtaining the network configuration parameters and screening out the target physical machine that meets the user's needs, the switch port connected to the physical machine can be configured to trunk mode, and a business VLAN (this business VLAN is the user's main network VLAN passed above) can be added. At this time, the switch port contains the user's main network VLAN and the aforementioned existing BMS resource pool management VLAN. Then, OSAgent is called again to pass the obtained network configuration parameters to the preset network switching script, execute the preset network switching script, and switch the network configuration of the target physical machine.

[0084] like Figure 5 As shown, in another embodiment, switching the network configuration of the target physical machine includes:

[0085] Step 224, performing network configuration on the target physical machine according to the network configuration parameters;

[0086] Step 244, deleting the configured bare metal service resource pool network configuration data and restarting the network service;

[0087] Step 264, restart the system proxy service.

[0088] In the specific implementation, obtain the user's main network IP, mask, gateway, VLAN ID and other network configuration parameters sent by the BMS portal, call OSAgent, pass the above network parameters to the preset network switching script and execute the script (nohup background execution), this script will perform the following actions: a. Add a new network configuration file and put it under / etc / sysconfig / network-scripts / "ifcfg-bond0. User main network VLAN", this network configuration file configures the user's main network IP, mask, gateway; b. Delete the existing resource pool network configuration file / etc / sysconfig / network-scripts / "ifcfg-bond0. Resource pool VLAN", and close the bond0. Resource pool VLAN interface, and then restart the network service; c. Restart OSAgent. After the script executes the above actions, the network switching is completed, and the resource management IP of the physical machine is switched to the user's main network IP. In this embodiment, the rapid switching of network configuration can be completed by calling OSAgent to execute the network switching script.

[0089] In one embodiment, calling the system proxy service to perform delivery acceptance on the target physical machine includes:

[0090] The system proxy service is called to execute the preset delivery acceptance script according to the preset time period to perform network connectivity acceptance of the target physical machine and proxy service survivability acceptance.

[0091] In specific implementation, after the network configuration is switched, OSAgent can be called again to execute the preset delivery acceptance script every 5 seconds to perform network connectivity acceptance of the target physical machine and Agent survival acceptance. In actual applications, it takes about 20 seconds to execute successfully and deliver to the user (due to network switching or OSAgent process restart in the first 15 seconds, the delivery acceptance script may fail to execute. If the execution fails, the delivery acceptance script is re-executed). Specifically, after the resource management IP is switched to the user's main network IP, the OSAgent process will restart, and the latest IP in the OS will be re-obtained during the restart process. At this time, if the resource pool server can be successfully called through the OSAgent server, it means that the IP has been switched and survived. In order to avoid the situation where the IP has not changed, the delivery acceptance script will be executed to compare the real OS IP with the user's main network IP uploaded by the bms portal. If the two are consistent, it means that the delivery acceptance is successful. When the delivery acceptance is successful, the BMS resource pool management VLAN of the switch port connected to the target physical machine is deleted, the target physical machine is removed from the resource pool, and the server resources of the target physical machine are delivered to the user. The user is not aware of this process. In this embodiment, by executing the delivery acceptance script, the normal use of the physical machine delivered to the user can be guaranteed, thereby improving the success rate of product delivery and enhancing the user experience.

[0092] To more clearly illustrate the bare metal service delivery method provided by this application, the process of the bare metal service delivery method is described below with an example:

[0093] 1) Estimate user needs and purchase physical machines;

[0094] 2) Build a BMS resource pool: plan the BMS proprietary network, put physical machines on the shelves, pre-install the OS, and pre-initialize the OS. After the OS initialization is completed, change the OS password by calling OSAgent, and monitor the status of each physical machine in the resource pool. The status data is obtained through OSAgent and monitoring Agent. Among them, OS pre-installation is mainly carried out through pxe to install the OS standard. After the installation is completed, the VLAN of the switch port connected to the physical machine will automatically switch to the bare metal service resource pool management VLAN; OS initialization is mainly carried out through ipmi sol to configure the BMS management network and install OSAgent and some other agents such as monitoring agent; finally, the network connectivity of the host and the survival of the agent are inspected again through ipmi sol to complete the resource pool acceptance;

[0095] 3) Resource pool host management: The status of the physical machines added to the resource pool is set to a state that can be allocated for use, which is called "in the pool". The machines in the pool will be continuously monitored for access connectivity, survival status of related components, and security through OSAgent and monitoring agent. If there is an abnormality, the device status will be set to maintenance status and cannot be selected by users. Physical machines in maintenance status will attempt to be automatically repaired, such as security reinforcement and Agent version update. If necessary, manual intervention can be performed, such as automatic reporting of hardware failures. After the physical machine is repaired, its status will be updated to "in the pool" for users to place orders and select;

[0096] 4) Users place an order to purchase a physical machine on the BMS portal: Based on the selected machine model, OS type, network segment and other required parameters, select the machine that meets the requirements "in the pool", then configure and switch the network environment through OSAgent, and conduct delivery acceptance. After successful delivery acceptance, the machine will be removed from the resource pool and delivered to the user. Specifically, network configuration switching and delivery acceptance of physical machines may include:

[0097] (1) After the physical machine enters the pool (hereinafter referred to as the resource pool server), the resource pool network has been configured, OSAgent has been installed, and two scripts have been placed in the local / root directory of the server OS: the network switching script, the delivery acceptance script, and the password modification script;

[0098] (2) After receiving the user's order, the BMS portal will automatically assign the user's main network IP and transmit the user's main network IP, mask, gateway, VLAN ID and other parameters to the BMP server;

[0099] (3) The bmp server (hereinafter referred to as bmp) selects a resource pool server that meets the user's needs, adds a VLAN (the above-mentioned parameter transmission VLAN) to the switch port connected to the resource pool server, and configures it into trunk mode, including the user's main network VLAN (newly added) and the resource pool management VLAN (existing);

[0100] (4) bmp calls OSAgent, passes the parameters in step 2 to the local preset network switching script and executes it (nohup background execution). This script performs the following tasks:

[0101] a. Add a new network configuration file in / etc / sysconfig / network-scripts / "ifcfg-bond0.User primary network VLAN", this file configures the user primary network IP, mask, gateway;

[0102] b. Delete the original resource pool network configuration file / etc / sysconfig / network-scripts / "ifcfg-bond0.resource pool VLAN", close the bond0.resource pool VLAN interface, and then restart the network service;

[0103] c. Restart the osagent process.

[0104] (5) Since step (4) is executed in the background, the script will return a successful execution instantly, and then bmp will call OSAgent again to execute the delivery acceptance and password modification script every 5 seconds, perform network connectivity acceptance of the target physical machine and Agent survival acceptance, and modify the host password. If the script fails to execute, it will be retried (the execution may fail in the first 15 seconds because the network is switching or the OSAgent process is restarted), and it will return successfully and be delivered to the user in about 20 seconds;

[0105] (6) If the delivery and acceptance are successful, bmp calls the network tool to delete the resource pool management VLAN of the switch port (without the user's awareness), removes the resource pool server from the BMS resource pool, and delivers it to the user.

[0106] 5) It takes about 15 seconds from placing an order to receiving the device. After receiving the order completion information, the user can log in to the host directly through the internal cloud bastion host. At this point, the bare metal service delivery is completed.

[0107] The bare metal service delivery method provided in this application has the characteristics of lossless performance, second-level delivery, and high product delivery success rate, and there is no dead angle in scene application, which can greatly improve product competitiveness and customer satisfaction. Specifically, since the OS installation of the physical machine in the bare metal service resource pool has been completed before the user order arrives, and OSAgent is pre-installed, when the user order arrives, there is no need to install the OS on the physical machine in the bare metal service resource pool, restart and other time-consuming operations (traditional shelf configuration delivery, the fastest also takes several hours, if there is a resource pool, it also takes at least 10 minutes or more, because the machine needs to be restarted and other time-consuming), only the network layer configuration is performed through OSAgent, and the network service is restarted to complete the acceptance delivery, and the second-level delivery of bare metal services is realized. In addition, the health status of the resource pool machine can be obtained in real time through OSAgent, and the healthy host can be quickly located for configuration and then delivered to the user, which improves the delivery success rate of the product.

[0108] It should be understood that although Figure 3-5The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 3-5 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0109] In one embodiment, if Figure 6 As shown, a bare metal service delivery device is provided, including: a physical machine screening module 510, a physical machine configuration acceptance module 520 and a physical machine delivery module 530, wherein:

[0110] The physical machine screening module 510 is used to screen out a target physical machine matching the demand parameters from a pre-built bare metal service resource pool according to the demand parameters carried in the user order message when receiving the user order message, wherein the bare metal service resource pool is pre-loaded with a system proxy service, and the physical machines in the bare metal service resource pool are pre-installed with an operating system;

[0111] The physical machine configuration acceptance module 520 is used to call the system proxy service to perform network configuration switching and delivery acceptance on the target physical machine. The delivery acceptance includes network connectivity acceptance of the target physical machine and agent service survivability acceptance;

[0112] The physical machine delivery module 530 is used to remove the target physical machine from the bare metal service resource pool and deliver the server resources of the target physical machine when the delivery acceptance is successful.

[0113] like Figure 7 As shown, in one embodiment, the device also includes a resource pool building module 540, which is used to receive an operating system installation instruction, install the operating system on the physical machine accordingly according to the physical machine identifier carried in the operating system installation instruction, switch the virtual LAN of the switch port connected to the physical machine to a preset bare metal service resource pool management virtual LAN, and initialize the operating system for the physical machine. When the operating system initialization is completed, change the operating system password of the physical machine, monitor the device status of the physical machines in the bare metal service resource pool, and build the bare metal service resource pool.

[0114] In one embodiment, the resource pool building module 540 is also used to configure the Internet Protocol address of the bare metal service resource pool and install the system agent service and the monitoring agent service.

[0115] In one of the embodiments, the resource pool building module 540 is also used to call the system agent service and the monitoring agent service according to a preset time period to scan the physical machines in the bare metal service resource pool, obtain the status data of each physical machine, and if a physical machine with abnormal status data is monitored, a preset alarm event is triggered.

[0116] like Figure 7 As shown, in one embodiment, the physical machine configuration acceptance module 520 includes a network configuration switching unit 522, which is used to obtain the network configuration parameters of the target physical machine, call the system proxy service, pass the network configuration parameters into the preset network switching script, and execute the preset network switching script to switch the network configuration of the target physical machine.

[0117] In one of the embodiments, the network configuration switching unit 522 is also used to perform network configuration on the target physical machine according to the network configuration parameters, delete the configured bare metal service resource pool network configuration data, restart the network service, and restart the system proxy service.

[0118] like Figure 7 As shown, in one embodiment, the physical machine configuration acceptance module 520 includes a delivery acceptance unit 524, which is used to call the system agent service to execute a preset delivery acceptance script according to a preset time period to perform network connectivity acceptance of the target physical machine and agent service survivability acceptance.

[0119] For the specific definition of the bare metal service delivery device, please refer to the definition of the bare metal service delivery method above, which will not be repeated here. Each module in the above bare metal service delivery device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.

[0120] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as network configuration parameters, network switching scripts, and delivery acceptance scripts. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a bare metal service delivery method is implemented.

[0121] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0122] In one of the embodiments, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: when a user order message is received, a target physical machine matching the demand parameters is screened out from a pre-built bare metal service resource pool according to the demand parameters carried in the user order message, and a system proxy service is called to perform network configuration switching and delivery acceptance on the target physical machine; when the delivery acceptance is successful, the target physical machine is removed from the bare metal service resource pool and the server resources of the target physical machine are delivered; wherein the delivery acceptance includes network connectivity acceptance and proxy service survivability acceptance of the target physical machine, the bare metal service resource pool is preloaded with the system proxy service, and the physical machines in the bare metal service resource pool are preinstalled with the operating system.

[0123] In one of the embodiments, when the processor executes the computer program, it also implements the following steps: receiving an operating system installation instruction, installing the operating system on the physical machine accordingly according to the physical machine identifier carried in the operating system installation instruction, switching the virtual LAN of the switch port connected to the physical machine to a preset bare metal service resource pool management virtual LAN, and initializing the operating system on the physical machine; when the operating system initialization is completed, changing the operating system password of the physical machine, monitoring the device status of the physical machines in the bare metal service resource pool, and building a bare metal service resource pool.

[0124] In one of the embodiments, when the processor executes the computer program, the processor further implements the following steps: configuring the Internet Protocol address of the bare metal service resource pool and installing the system agent service and the monitoring agent service.

[0125] In one of the embodiments, when the processor executes the computer program, it also implements the following steps: calling the system agent service and the monitoring agent service according to a preset time period to scan the physical machines in the bare metal service resource pool, and obtaining the status data of each physical machine. If a physical machine with abnormal status data is monitored, a preset alarm event is triggered.

[0126] In one of the embodiments, when the processor executes the computer program, it also implements the following steps: obtaining network configuration parameters of the target physical machine, calling the system proxy service, passing the network configuration parameters into a preset network switching script, and executing the preset network switching script to switch the network configuration of the target physical machine.

[0127] In one of the embodiments, when the processor executes the computer program, it also implements the following steps: performing network configuration on the target physical machine according to the network configuration parameters, deleting the configured bare metal service resource pool network configuration data, restarting the network service, and restarting the system proxy service.

[0128] In one of the embodiments, when the processor executes the computer program, the following steps are also implemented: calling the system proxy service to execute a preset delivery acceptance script according to a preset time period to perform network connectivity acceptance of the target physical machine and proxy service survivability acceptance.

[0129] In one of the embodiments, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program implements the following steps when executed by a processor: when a user order message is received, according to the demand parameters carried in the user order message, a target physical machine matching the demand parameters is screened out from a pre-built bare metal service resource pool, and a system proxy service is called to perform network configuration switching and delivery acceptance on the target physical machine; when the delivery acceptance is successful, the target physical machine is removed from the bare metal service resource pool and the server resources of the target physical machine are delivered; wherein the delivery acceptance includes network connectivity acceptance and proxy service survivability acceptance of the target physical machine, the bare metal service resource pool is preloaded with the system proxy service, and the physical machines in the bare metal service resource pool are preinstalled with the operating system.

[0130] In one of the embodiments, when the computer program is executed by the processor, the following steps are also implemented: receiving an operating system installation instruction, installing the operating system on the physical machine accordingly according to the physical machine identifier carried in the operating system installation instruction, switching the virtual LAN of the switch port connected to the physical machine to a preset bare metal service resource pool management virtual LAN, and initializing the operating system on the physical machine; when the operating system initialization is completed, changing the operating system password of the physical machine, monitoring the device status of the physical machines in the bare metal service resource pool, and building a bare metal service resource pool.

[0131] In one of the embodiments, when the computer program is executed by the processor, the following steps are also implemented: configuring the Internet Protocol address of the bare metal service resource pool and installing the system agent service and the monitoring agent service.

[0132] In one of the embodiments, when the computer program is executed by the processor, the following steps are also implemented: calling the system agent service and the monitoring agent service to scan the physical machines in the bare metal service resource pool according to a preset time period, obtaining the status data of each physical machine, and triggering a preset alarm event if a physical machine with abnormal status data is monitored.

[0133] In one of the embodiments, when the computer program is executed by the processor, the following steps are also implemented: obtaining network configuration parameters of the target physical machine, calling the system proxy service, passing the network configuration parameters into a preset network switching script, and executing the preset network switching script to switch the network configuration of the target physical machine.

[0134] In one of the embodiments, when the computer program is executed by the processor, the following steps are also implemented: according to the network configuration parameters, the network configuration of the target physical machine is performed, the configured bare metal service resource pool network configuration data is deleted, the network service is restarted, and the system proxy service is restarted.

[0135] In one of the embodiments, when the computer program is executed by the processor, the following steps are also implemented: calling the system proxy service to execute a preset delivery acceptance script according to a preset time period to perform network connectivity acceptance of the target physical machine and proxy service survivability acceptance.

[0136] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0138] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A bare metal service delivery method, characterized in that: The method comprises: When receiving a user order message, based on the demand parameters carried in the user order message, a target physical machine matching the demand parameters is screened out from the pre-built bare metal service resource pool, where the demand parameters include the physical machine model, operating system type, and network segment information selected by the user; Calling the system proxy service to perform network configuration switching and delivery acceptance on the target physical machine, wherein the delivery acceptance includes network connectivity acceptance and proxy service survivability acceptance of the target physical machine; When the delivery acceptance is successful, the target physical machine is removed from the bare metal service resource pool, and the server resources of the target physical machine are delivered; The bare metal service resource pool is preloaded with a system proxy service, and the physical machines in the bare metal service resource pool are preinstalled with an operating system; The bare metal service resource pool is obtained in the following way: Receive an operating system installation instruction, install the operating system on the physical machine according to the physical machine identifier carried in the operating system installation instruction, switch the virtual local area network of the switch port connected to the physical machine to a preset bare metal service resource pool management virtual local area network, and initialize the operating system on the physical machine; wherein the operating system initialization includes configuring the Internet Protocol address of the bare metal service resource pool, installing the system proxy service and the monitoring proxy service; When the operating system initialization is completed, the operating system password of the physical machine is changed, the device status of the physical machines in the bare metal service resource pool is monitored through the monitoring agent service, and the bare metal service resource pool is built.

2. The method according to claim 1, characterized in that The operating system initialization includes configuring the Internet Protocol address of the bare metal service resource pool and installing the system agent service and the monitoring agent service.

3. The method according to claim 2, characterized in that Monitoring the device status of the physical machine in the bare metal service resource pool by the monitoring agent service includes: Calling the system proxy service and the monitoring proxy service to scan the physical machines in the bare metal service resource pool according to a preset time period to obtain status data of each physical machine; If a physical machine with abnormal status data is monitored, a preset alarm event will be triggered.

4. The method according to claim 1, characterized in that Before calling the system proxy service to switch the network configuration of the target physical machine, the method further includes: Obtaining network configuration parameters of the target physical machine; Calling the system proxy service to switch the network configuration of the target physical machine includes: The system proxy service is called, the network configuration parameters are passed into a preset network switching script, and the preset network switching script is executed to switch the network configuration of the target physical machine.

5. The method according to claim 4, characterized in that The switching of the network configuration of the target physical machine includes: Performing network configuration on the target physical machine according to the network configuration parameters; Delete the configured bare metal service resource pool network configuration data and restart the network service; Restart the system proxy service.

6. The method according to claim 1, characterized in that Calling the system proxy service to perform delivery acceptance on the target physical machine includes: The system proxy service is called to execute the preset delivery acceptance script according to the preset time period to perform network connectivity acceptance of the target physical machine and proxy service survivability acceptance.

7. A bare metal service delivery device, characterized in that: The device comprises: A physical machine screening module, for, when receiving a user order message, screening out a target physical machine matching the demand parameters from a pre-built bare metal service resource pool according to the demand parameters carried in the user order message, wherein the bare metal service resource pool is pre-loaded with a system proxy service, and the physical machines in the bare metal service resource pool are pre-installed with an operating system, and the demand parameters include the physical machine model, operating system type, and network segment information selected by the user; A physical machine configuration acceptance module, used to call the system proxy service to perform network configuration switching and delivery acceptance on the target physical machine, wherein the delivery acceptance includes network connectivity acceptance and proxy service survivability acceptance of the target physical machine; A physical machine delivery module, used to remove the target physical machine from the bare metal service resource pool and deliver the server resources of the target physical machine when the delivery acceptance is successful; A resource pool building module is used to receive operating system installation instructions; according to the physical machine identifier carried in the operating system installation instructions, the operating system is installed on the physical machine accordingly; the virtual LAN of the switch port connected to the physical machine is switched to a preset bare metal service resource pool management virtual LAN, and the operating system is initialized for the physical machine; wherein the operating system initialization includes configuring the network address of the bare metal service resource pool, installing the system agent service and the monitoring agent service; when the operating system initialization is completed, the operating system password of the physical machine is changed; the device status of the physical machines in the bare metal service resource pool is monitored through the monitoring agent service, and the bare metal service resource pool is built.

8. The device according to claim 7, characterized in that The resource pool building module is also used to call the system proxy service and the monitoring proxy service according to a preset time period to scan the physical machines in the bare metal service resource pool, obtain the status data of each physical machine, and trigger a preset alarm event if a physical machine with abnormal status data is monitored.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Provisioning a bare-metal server

    US20180124163A1