CN107888695B - The method and cloud platform equipment of cloud platform creation mirror image - Google Patents

The method and cloud platform equipment of cloud platform creation mirror image Download PDF

Info

Publication number
CN107888695B
CN107888695B CN201711190001.7A CN201711190001A CN107888695B CN 107888695 B CN107888695 B CN 107888695B CN 201711190001 A CN201711190001 A CN 201711190001A CN 107888695 B CN107888695 B CN 107888695B
Authority
CN
China
Prior art keywords
user
cloud platform
image file
image
mirror image
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
CN201711190001.7A
Other languages
Chinese (zh)
Other versions
CN107888695A (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.)
New H3C Cloud Technologies Co Ltd
Original Assignee
New H3C Cloud Technologies 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 New H3C Cloud Technologies Co Ltd filed Critical New H3C Cloud Technologies Co Ltd
Priority to CN201711190001.7A priority Critical patent/CN107888695B/en
Publication of CN107888695A publication Critical patent/CN107888695A/en
Application granted granted Critical
Publication of CN107888695B publication Critical patent/CN107888695B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application provides the methods and cloud platform equipment of a kind of cloud platform creation mirror image, belong to cloud platform technical field.The method and cloud platform equipment of cloud platform creation mirror image provided by the embodiments of the present application, the user information of cloud platform front end is synchronous with the associated user information of the FTP service of cloud platform rear end, when cloud platform receives the mirror image request to create of user, the user identifier that can be carried according to mirror image request to create, corresponding image file mark and image file path are obtained to FTP service, it automatically generates image parameter information and is sent to Glance service, make Glance service according to the image parameter information creating mirror image, simplify the user's operation mode during mirror image creation, improve the Experience Degree of user.

Description

The method and cloud platform equipment of cloud platform creation mirror image
Technical field
This application involves cloud computing correlative technology fields, more particularly, to the method and Yun Ping of a kind of cloud platform creation mirror image Platform equipment.
Background technique
Cloud management platform (hereinafter referred to as cloud platform) is related to a kind of network application mode, will can largely use network connection Unified management of computing resources and scheduling constitute a computing resource pool to user's on-demand service.Cloud platform provide service include Three aspects: IaaS (Infrastructure as a Service, infrastructure service), PaaS (Platform as a Service, platform service), SaaS ((Software as a Service, software i.e. service).Virtual machine technique is a kind of The effectively important means of management and sufficiently shared physical resource, can introduce level of abstraction between the soft and hardware of computer system, Independent operating environment is provided for upper layer application, and realizes the shared multiplexing of hardware resource.The IaaS and PaaS that cloud platform provides are equal It needs based on virtual machine.
Through OpenStack software during creating virtual machine in cloud platform, newly-built mirror image is needed.User terminal is logical It crosses OpenStack software and creates mirror image two steps of needs, the first step is to call the interface of creation image parameter information, creates mirror As parameter information, second step is to call to upload interface, upload image file, and in whole process, user needs to rest on mirror always As the corresponding click of creation page cooperation or selection operation, it is otherwise unable to complete mirror image creation.
Summary of the invention
In view of this, a kind of method and cloud platform equipment for being designed to provide cloud platform creation mirror image of the application, with Simplify the user's operation mode during mirror image creation, promotes the Experience Degree of user.
To achieve the goals above, the application the technical solution adopted is as follows:
In a first aspect, this application provides a kind of method of cloud platform creation mirror image, the method is flat applied to the cloud Platform rear end, which comprises
Receive the information acquisition request comprising user identifier;Wherein, the corresponding user information of the user identifier is same In the user information database for walking local FTP (File Transfer Protocol, File Transfer Protocol) service, and the user It identifies corresponding image file and is previously stored to the user identifier is corresponding and be locally stored under path;
According to the user identifier, determines and send image file mark corresponding with the user identifier and image file Store path, so that the image parameter information comprising image file mark and image file store path is sent to mirror image Glance service triggers the Glance service according to the image parameter information creating mirror image.
Second aspect, this application provides a kind of method of cloud platform creation mirror image, the method is flat applied to the cloud Platform front end, comprising:
Mirror image request to create is received, the mirror image request to create carries user identifier;Wherein, the user identifier is corresponding User information be synchronized in the user information database of FTP service, the FTP service runs on the cloud platform rear end, institute The corresponding image file of user identifier is stated to be previously stored to the corresponding cloud platform rear end store path of the user identifier;
The information acquisition request including the user identifier is sent, the corresponding image file mark of the user identifier is obtained With image file store path;
Image parameter information comprising image file mark and image file store path is sent to the cloud to put down The mirror image Glance of platform rear end is serviced, to trigger the Glance service according to the image parameter information creating mirror image.
The third aspect, the embodiment of the present application provide a kind of cloud platform equipment, are applied to cloud platform front end, including memory And processor;Wherein, the memory is for storing one or more computer instruction, one or more computer instruction It is executed by the processor, to realize method documented by first aspect.
Fourth aspect, the embodiment of the present application provide a kind of cloud platform equipment, are applied to cloud platform rear end, including memory And processor;Wherein, the memory is for storing one or more computer instruction, one or more computer instruction It is executed by the processor, to realize method documented by second aspect.
The embodiment of the present application bring it is following the utility model has the advantages that
The method, apparatus and cloud platform system of cloud platform creation mirror image provided by the embodiments of the present application, cloud platform front end User information is synchronous with the user information of the FTP service of cloud platform rear end, when cloud platform receives the mirror image request to create of user When, the user identifier that can be carried according to mirror image request to create obtains corresponding image file mark and mirror image text to FTP service Part path automatically generates image parameter information and is sent to Glance service, creates Glance service according to the image parameter information Mirror image is built, the user's operation mode during mirror image creation is simplified, improves the Experience Degree of user.
Other feature and advantage of the application will illustrate in the following description, alternatively, Partial Feature and advantage can be with Deduce from specification or unambiguously determine, or the above-mentioned technology by implementing the application it can be learnt that.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the application specific embodiment or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the application, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of cloud platform provided by the embodiments of the present application;
Fig. 2 is the flow chart for the method that a kind of cloud platform that the application first embodiment provides creates mirror image;
Fig. 3 is the flow chart for the method that a kind of cloud platform that the application second embodiment provides creates mirror image;
Fig. 4 is the flow chart for the method that a kind of cloud platform that the application 3rd embodiment provides creates mirror image;
Fig. 5 is the flow chart for the method that a kind of cloud platform that the application fourth embodiment provides creates mirror image;
Fig. 6 is a kind of cloud platform front end and cloud platform rear end provided by the embodiments of the present application in user information synchronizing process Interaction schematic diagram;
Fig. 7 is a kind of friendship of cloud platform front end and cloud platform rear end provided by the embodiments of the present application during mirror image creates Mutual schematic diagram;
Fig. 8 is the structural block diagram for the device that a kind of cloud platform that the 5th embodiment of the application provides creates mirror image;
Fig. 9 is the structural block diagram for the device that a kind of cloud platform that the application sixth embodiment provides creates mirror image;
Figure 10 is the structural block diagram for the device that a kind of cloud platform that the 7th embodiment of the application provides creates mirror image.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with attached drawing to the application Technical solution be clearly and completely described, it is clear that described embodiment is some embodiments of the present application, rather than Whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall in the protection scope of this application.
Currently, needing user to rest on mirror always when creating virtual machine image by OpenStack software in cloud platform As the corresponding click of creation page cooperation or selection operation, it is otherwise unable to complete mirror image creation.In order to improve above situation, this Shen Please embodiment provide the method, apparatus and cloud platform system of a kind of cloud platform creation mirror image, can simplify mirror image creation process In user's operation mode, rapidly and efficiently be created that available mirror image, improve the Experience Degree of user.
The method that cloud platform provided by the embodiment of the present application creates mirror image is applied to cloud platform shown in FIG. 1 (or cloud Manage platform) on.The cloud platform may include cloud platform front end and cloud platform rear end.Wherein, cloud platform front end and cloud platform Rear end can be two independent equipment, and the two parts being also possible in an integrated equipment, front end is more leaned on relative to rear end The interaction of nearly user side, rear end are similar to the backstage of equipment, and the two cooperates.
The cloud platform front end is used to store the user information of the user registered in cloud platform, and for receiving The mirror image request to create of user, and mirror image creation is completed by the Glance of cloud platform rear end service.Optionally, cloud platform front end It is provided with subscriber information management module and mirror module, wherein subscriber information management module is enterprising in cloud platform for storing The user information of the user of row registration.Mirror module is used to receive the mirror image request to create of user, and passes through cloud platform rear end Mirror image creation is completed in Glance service.
Cloud platform rear end is provided with controller layers of Openstack (being referred to as cloud platform back-end controller), Controller layers of Openstack be Openstack software control layer, be provided in controller layers of Openstack RabbitMQ (intermediary message transmission service), FTP service and Glance (mirror image) service.
User information database associated with FTP service is additionally provided in controller layers of Openstack.User letter The user information stored in the user information and subscriber information management module stored in breath library is synchronous, i.e., the two is identical.Namely It says, the FTP service can be logged in by the user information stored in subscriber information management module.
Above-mentioned FTP service runs File Transfer Protocol, for receiving the image file of user's upload and storing, image file It can store at above-mentioned Openstack controller layers, the store path of image file can be in subscriber information management module It is user configuration by FTP service when progress user information is synchronous between FTP service;It can also be in the mirror image for receiving user It is user configuration by FTP service when file.
In order to enhance the safety of FTP service, user needs before uploading image file to FTP service in cloud platform Front end registration, the user for limiting accessible FTP service is only registered user in cloud platform, avoids non-registered users Malice attacks FTP service, uploads a large amount of image file in a manner of occupying cloud platform storage resource.It cloud platform front end will The user information (such as user identifier and password etc.) of registration user is synchronized to the FTP service of cloud platform rear end.When FTP service connects When receiving the image file of user's upload, which can be verified according to the user information in the associated user information database of FTP service Whether the identity at family is legal, if including the user identifier of the user in the user information of user information database, illustrates the user For registered users, belong to legitimate user;If there is no the user identifier of the user in the user information of user information database, say The bright user is illegal user.For legitimate user, the storage road of image file can be searched according to the user identifier of the user The image file can be stored in the storage road by diameter or the store path that image file is distributed for the user, such FTP service The corresponding memory block of diameter.
Message is transmitted by RabbitMQ between subscriber information management module and FTP service, carries out the synchronization of user information. Subscriber information management module includes increase, deletion, modification and password resetting, permission change etc. to the operation of user, these are grasped FTP service can be all synchronized to by making corresponding information, to realize in cloud platform front end and the associated user information database of FTP service The consistency of user information, to realize that (data volume is more than the mirror of preset threshold to different user to each arrogant mirror image in cloud platform As the corresponding mirror image of file is referred to as big mirror image, wherein predicted threshold value can be specifically arranged according to the actual situation, and the application, which is not done, to be had Body requirement) creation.
Glance service is a functional unit of OpenStack software, can be created during newly-built virtual machine Mirror image.The mirror module of cloud platform front end and the FTP service and Glance of cloud platform rear end are serviced and are transmitted also by RabbitMQ Message.
A kind of flow chart of the method for cloud platform creation mirror image that first embodiment shown in Figure 2 provides, this method Applied to cloud platform rear end, in a possible application scenarios, this method can run on the FTP service of the cloud platform rear end On.Described method includes following steps.
Step S202 receives the information acquisition request comprising user identifier.
The information acquisition request is from cloud platform front end.When the mirror image request to create of cloud platform front end receiver to user When, the information acquisition request comprising user identifier is issued to the FTP service of cloud platform rear end.It wherein, should for cloud platform rear end The corresponding user information of user identifier has been synchronized in the associated user information database of local FTP service, and the user identifier pair The image file answered is previously stored to user identifier is corresponding and is locally stored under path.
Wherein, the associated user information database of local FTP service refers to that the FTP service is accessible and is stored in cloud platform rear end User information database, such as: in the memory block that controller layers of Openstack, the accessible memory block of FTP service, into And read the user information database or operation etc. is updated to the user information database, so the user information database can be understood as FTP service, it is understood that be the associated user information database of FTP service.
After user registers in cloud platform, cloud platform front end can save the user information of the user, these users Information includes user identifier and password, and cloud platform front end can also send the user information of the user to cloud platform rear end, Yun Ping It platform rear end then can be by the synchronous preservation of received user information into user information database associated with FTP service.Then, Yong Huke To use the user information to log in FTP service, image file is uploaded to cloud platform by FTP service.
When FTP service receives the image file upload request of user, which carries user Mark and image file obtain corresponding store path according to user identifier, image file are stored corresponding to the store path Memory block.Wherein, obtaining corresponding store path according to user identifier may include: (1) according to user identifier lookup FTP clothes Business is in advance the store path of user identifier distribution.For example, FTP service receive include the user identifier user letter The store path distributed when breath.(2) it in the image file upload request for receiving the user, is deposited for user identifier distribution Store up path.No matter which kind of mode, can guarantee that the store path of image file is corresponding with user identifier, this corresponding relationship Store path for subsequent automatic lookup image file provides reliable Data safeguard.Such as: user A logs in FTP service, FTP Service determines the user A by above-mentioned user information database to distribute a root for the user A after registered users: // use Family A, the root are above-mentioned store path.The image file of the subsequent upload of user A in this way will be deposited under the root.
It should be noted that FTP service can be docked with third party's client of File Transfer Protocol is supported, it is logical to receive user Cross the image file of third party's client upload.Third party's client can be XFTP or other clients.XFTP is based on MS The ftp file transmitting software of windows platform, the transmission rate of transmission file, which is much larger than, to be transmitted using browser or is directly passed It is defeated.Especially when transmitting biggish file, the upload of file can be rapidly completed using XFTP client.
Step S204 is determined according to user identifier and is sent image file mark corresponding with user identifier and mirror image text Part store path, so that the image parameter information comprising image file mark and image file store path is sent to Glance Service, triggering Glance service is according to image parameter information creating mirror image.
After FTP service receives above- mentioned information acquisition request, the user identifier that can be carried according to information acquisition request is searched The store path of above-mentioned image file and the corresponding relationship of user identifier obtain the corresponding store path of the user identifier, can incite somebody to action The store path is determined as image file store path;Because being stored with image file under the store path, and then obtain mirror image text Part mark sends image file mark and image file store path, such as image file mark and image file is stored road Diameter is sent to cloud platform front end, and cloud platform front end is made to generate image parameter according to image file mark and image file store path Information, and image parameter information is transmitted into service by intermediary message and is sent to Glance service, to trigger Glance service root Corresponding image file is obtained from store path according to image parameter information, creates corresponding mirror image.
After mirror image creation is completed, FTP service can delete the image file saved in memory block, to save cloud platform Memory space.
The method of cloud platform creation mirror image provided in this embodiment, user information and the cloud platform rear end of cloud platform front end The user information of FTP service is synchronous, when the mirror image request to create of cloud platform front end receiver to user, can be created according to mirror image The user identifier carried is requested, corresponding image file mark and image file path is obtained to FTP service, automatically generates mirror image Parameter information is sent to Glance service, makes Glance service according to the image parameter information creating mirror image.It is this to be taken by FTP Business uploads the mode of image file, improves the uploading speed of image file, when reducing the waiting of user's upload image file Between, and alleviate and image file is uploaded because uploading asking for failure caused by the larger browser timeout of image file by browser Topic.Meanwhile after user issues mirror image request to create, do not need to provide the storage road of image file during the creation of mirror image Diameter, FTP service can get the store path of image file according to user identifier automatically, and then cloud platform front-end and back-end can To cooperate automatically, subsequent mirror image creation process is completed, the user's operation mode during mirror image creation is simplified, improves use The Experience Degree at family.
Fig. 3 shows a kind of flow chart of the method for cloud platform creation mirror image of the application second embodiment offer;The party Method applies equally to cloud platform rear end.As shown in figure 3, this method comprises the following steps:
Step S302 receives the information acquisition request comprising user identifier.
Wherein, the corresponding user information of the user identifier has been synchronized in the user information database of FTP service, and the user It identifies corresponding image file and is previously stored to user identifier is corresponding and be locally stored under path.
Step S304 is determined according to user identifier and is sent image file mark corresponding with user identifier and mirror image text Part store path, so that the image parameter information comprising image file mark and image file store path is sent to Glance Service, triggering Glance service is according to image parameter information creating mirror image.
Step S306, obtains the progress of local Glance service-creation mirror image, and the progress prompting for sending creation mirror image disappears Breath.
Specifically, progress reminder message can be sent to cloud platform front end, so that cloud platform front end is in user identifier pair The progress reminder message that setting mirror image creates in the system notice answered, for example, the reminder message can be sent to cloud platform front end Mirror module, the mirror module create progress reminder message;It can also directly be sent to the corresponding user terminal of user identifier The progress reminder message, user terminal can save the progress reminder message received into operation log.
Using the method for cloud platform provided in this embodiment creation mirror image, user is not necessarily to after sending creation mirror request The mistake of creation mirror image can be automatically performed by resting on the corresponding click of mirror image creation page cooperation or selection operation, cloud platform always Journey, and the progress for creating mirror image is sent to user by progress reminder message, facilitate user to check and understand creation mirror image Progress situation simplifies the user's operation mode during mirror image creation, improves the Experience Degree of user.
Optionally, when the FTP service of cloud platform rear end receives the synchronization message including operation object and operational order, The corresponding operation of the operational order is carried out to the corresponding user information of the operation object.Wherein, the synchronization message is when cloud is flat To what is generated when operation to user information, which includes at least one of the following: the information that Adds User, deletes platform front-end detection User information updates user information, and the user information includes at least one of the following: user identifier, code characters.User identifier It can be user name or unique identification code for user configuration.In this way, the embodiment of the present application may be implemented before cloud platform When the user information at end updates, the user information of cloud platform front end and the associated user information of the FTP service of cloud platform rear end are protected It holds consistent.
Fig. 4 shows a kind of flow chart of the method for cloud platform creation mirror image of the application 3rd embodiment offer.The party Method is applied to cloud platform front end, as shown in figure 4, this method comprises the following steps.
Step S402, receives mirror image request to create, which carries user identifier.
Wherein, the corresponding user information of the user identifier has been synchronized in the associated user information database of FTP service, FTP Service operation is previously stored in cloud platform rear end, the corresponding image file of user identifier to the corresponding cloud platform of user identifier It holds under store path.
Step S404 sends the information acquisition request including user identifier, obtains the corresponding image file mark of user identifier Know and image file store path.
The mirror image request to create that cloud platform front end receiver user sends, according to the mirror image request to create, to cloud platform rear end FTP service send include user identifier information acquisition request, search the corresponding mirror image of the user identifier to trigger FTP service File identification and image file store path.The image file mark and image file that cloud platform front end receiver FTP service returns Store path.
Image parameter information comprising image file mark and image file store path is sent to cloud and put down by step S406 The Glance of platform rear end is serviced, to trigger Glance service according to image parameter information creating mirror image.
The method of cloud platform creation mirror image provided in this embodiment, the user and cloud platform rear end FTP of cloud platform front end take The user being engaged in associated user information database is that synchronous user can be according to mirror when cloud platform receives mirror image request to create As the user identifier that request to create carries, corresponding image file mark and image file path are obtained to FTP service, will include Image file mark and the image parameter information of image file store path are sent to the Glance service of cloud platform rear end, with touching Glance service is sent out according to image parameter information creating mirror image.This store path that image file is obtained by FTP service Mode does not need user's operation, subsequent without continuing waiting in cloud platform front end after user distributes mirror image request to create Mirror image create process can from cloud platform front-end and back-end automatically with complete, simplify mirror image creation during user's operation Mode improves the Experience Degree of user.
Fig. 5 shows a kind of flow chart of the method for cloud platform creation mirror image of the application 3rd embodiment offer;The party Method is applied to cloud platform front end, as shown in figure 5, this method comprises the following steps:
Step S502, receives mirror image request to create, which carries user identifier.
Wherein, the corresponding user information of the user identifier has been synchronized in the associated user information database of FTP service, FTP Service operation is previously stored in cloud platform rear end, the corresponding image file of user identifier to the corresponding cloud platform of user identifier It holds under store path.
Step S504 sends the information acquisition request including user identifier, obtains the corresponding image file mark of user identifier Know and image file store path.
Image file check value is arranged for image file mark and image file store path in step S506.
Step S508, using image file mark, image file store path and image file check value as image parameter Information.
Mirror image text is arranged when generating image parameter information, for image file mark and image file path in cloud platform front end Part check value.Wherein, image file check value can be determining by dedicated computing tool or be provided by special-purpose software.For example, mirror As file verification value can be MD5 check code or cryptographic Hash.MD5 (Message-Digest Algorithm 5, information-abstract Algorithm 5) it is a kind of hash function that computer safety field uses, for ensuring that information transmission is complete consistent.Cryptographic Hash is root It is the unique and extremely compact number of one piece of data according to the perhaps smaller binary value that is obtained by logical operation of data in file It is worth representation, is equally used for ensuring that data are completely consistent.It should be understood that image file check value is also possible to the school MD2 Test code, MD3 check code or MD4 check code or other check codes that can be used for verification of data integrity.
Step S510 services the Glance that image parameter information is sent to cloud platform rear end, to trigger Glance service According to image parameter information creating mirror image.
Step S512 receives the progress reminder message of creation mirror image.
During Glance service-creation mirror image, cloud platform rear end can be with timing acquisition Glance service-creation mirror image Progress, the progress reminder message for creating mirror image is sent to cloud platform front end.
Cloud platform front end receiver creates the progress reminder message of mirror image, and progress reminder message is sent to the user terminal or is incited somebody to action Progress reminder message is stored in the corresponding system notice of user identifier.
It can be quickly and efficiently created that available by the above method using image file stored in cloud platform Mirror image makes user after sending creation mirror request, and without resting on always, mirror image creation page cooperation is corresponding to be clicked or select Extract operation, cloud platform front-end and back-end can be automatically performed the process of creation mirror image, and the progress for creating mirror image is passed through progress Reminder message is sent to user, facilitate user check and understand creation mirror image progress situation, simplify mirror image creation during User's operation mode, improve the Experience Degree of user.
Since the user information of cloud platform front end and the associated user information of FTP service of cloud platform rear end will keep one It causes, therefore, cloud platform front end can be by the user information database of registered local user's synchronizing information to FTP service.When cloud is flat When the FTP service of platform rear end receives the user information of the registered users of cloud platform front end, user information is stored to local The associated user information database of FTP service.
When detecting the operation to local user's information, cloud platform front end is generated and sent including operation object and operation The synchronization message of instruction carries out the corresponding operation of the operational order to the corresponding user information of the operation object with triggering. The FTP service of cloud platform rear end receives the synchronization message including operation object and operational order, use corresponding to the operation object Family information carries out the corresponding operation of the operational order.Wherein, which includes at least one of the following: the information that Adds User, deletes User information updates user information, and the user information includes at least one of the following: user identifier, code characters.User identifier It can be user name or unique identification code for user configuration.In this way, the embodiment of the present application may be implemented before cloud platform When the user information at end updates, the user information of cloud platform front end and the associated user information of the FTP service of cloud platform rear end are protected It holds consistent.
For example, operation object may include user identifier and code characters, operational order when transmission Adds User message It can be newly-increased.When sending deletion user message, operation object can be user identifier, and operational order can be deletion.When When sending update user information message, operation object can be can be more with the user information of user identifier and update, operational order Newly.
Fig. 6 shows a kind of cloud platform front end and interaction figure of the cloud platform rear end in user information synchronizing process, such as Fig. 6 Shown, the process is specific as follows.
(1.1) when new user registers in cloud platform, subscriber information management module saves user's letter of new user Breath;Wherein, which includes the information such as user identifier and password.
(1.2) subscriber information management module transmits service by average information and sends the message that Adds User to FTP service;It should The message that Adds User carries the user information of new user.
(1.3) FTP service transmits service from average information and receives the message that Adds User, and the user information of new user is stored Into user information database.
(2.1) when the registered users of cloud platform carry out user log off, before subscriber information management module deletes cloud platform Hold the user information of the user saved.
(2.2) subscriber information management module transmits service by average information and sends deletion user message to FTP service;It should Delete the user identifier that user message at least carries logging off users.
(2.3) FTP service transmits service from average information and receives deletion user message, by use corresponding to the user identifier Family information is deleted from user information database.
(3.1) when the registered users of cloud platform update user information, such as change password, subscriber information management module is protected Deposit updated user information.
(3.2) subscriber information management module is transmitted service and sent by average information updates user information message to FTP clothes Business;The update user information message carries the user identifier before updating and the user information of update.
(3.3) FTP service transmits service and receive from average information updates user information message, using the user information of update Replace user information corresponding to the user identifier in user information database.
The above process can be such that the user information of the FTP service of cloud platform rear end and the user information of cloud platform front end keeps It is synchronous, family can be used using in the user information that cloud platform front end is registered and log in the FTP service of cloud platform rear end.It should be understood that Be the synchronizing information processes that Adds User that (1.1)-(1.3) are cloud platform front end, cloud platform rear end, (2.1)-(2.3) are clouds The deletion user information synchronizing process of platform front end, cloud platform rear end, (3.1)-(3.3) are cloud platform front end, cloud platform rear end Update user information synchronizing process, there is no special sequences to limit for these three synchronizing processes, and also there is no limit to go out Now in the same embodiment, such as in a certain embodiment, it is possible to will include at least one following synchronizing process: Add User Synchronizing information process deletes user information synchronizing process, updates user information synchronizing process.
Fig. 7 shows a kind of interaction figure of cloud platform front end and cloud platform rear end during mirror image creates, such as Fig. 7 institute Show, which includes the following steps:
(1) after user logs in cloud platform, the mirror image request to create for carrying user identifier can be initiated to cloud platform.Mirror image Module receives Client-initiated mirror image request to create, generates the information acquisition request comprising user identifier.
(2) information acquisition request is transmitted service by intermediary message and is sent to FTP service by mirror module.
(3) FTP service receives information acquisition request from intermediate Messaging Service, according to the user in information acquisition request The corresponding image file mark of identifier lookup and image file store path, and serviced by intermediary message transmission by image file Mark and image file store path are sent to mirror module.Wherein, image file has been previously stored to cloud platform rear end Memory block.
(4) mirror module receives the image file mark and image file that FTP service returns from intermediate Messaging Service Image file check value is arranged for image file mark and image file store path in store path, by image file mark, mirror As file store path and image file check value are as image parameter information.
(5) image parameter information is transmitted service by intermediary message and is sent to Glance service by mirror module.
(6) Glance service receives image parameter information from intermediate Messaging Service, carries out to image file check value Verifying after verifying is errorless, obtains image file according to image file mark and image file store path, according to the mirror image of acquisition Document creation mirror image, by the mirrored storage of creation to specified memory block, so as to ensure to create the correctness of mirror image.
(7) it after Glance, which is serviced, completes mirror image creation, generates mirror image creation and completes message, transmitted and taken by intermediary message Business is sent to mirror module.
(8) after mirror module receives mirror image creation completion message, the progress that mirror image creation is completed is sent to user and is reminded Message prompts the creation of user's mirror image to be completed.
It is understood that during Glance service-creation mirror image, also can be monitored in real time mirror image creation into Journey periodically sends progress reminder message to mirror module, to facilitate user to understand the current schedules of mirror image creation in time.
The method provided using the above embodiments of the present application, the information exchange mistake between cloud platform front end and cloud platform rear end Journey, the form for being all made of message issue realization, and it is asynchronous procedure which, which issues mode, therefore user is submitting creation mirror image to ask After asking, mirror image creation page cooperation is corresponding to be clicked or selection operation without resting on, without to be created at interface etc. as a result, Operation log need to only be then looked to.Using the method for cloud platform provided in this embodiment creation mirror image, in creation mirror image In the process, the other operations for not influencing user, improve the service efficiency of user terminal and the Experience Degree of user.
It should be noted that above-mentioned, various embodiments are described in a progressive manner, what each embodiment stressed It is the difference from other embodiments, the non-repeated description in same and similar part between each embodiment can refer to each other.
With the above-mentioned embodiment of the method applied to cloud platform rear end correspondingly, the embodiment of the present application also provides one kind to answer The device of cloud platform creation mirror image for cloud platform rear end.The structure of the device of cloud platform creation mirror image shown in Figure 8 Schematic diagram, the device include following part:
Request-response unit 81, for receiving the information acquisition request comprising user identifier;Wherein, user identifier is corresponding User information has been synchronized in the associated user information database of local FTP service, and the corresponding image file of user identifier is pre- It first stores to user identifier is corresponding and is locally stored under path;
Information transmitting unit 82, for determining and sending image file mark corresponding with user identifier according to user identifier Knowledge and image file store path, so that the image parameter information comprising image file mark and image file store path is sent out It send to Glance and services, triggering Glance service is according to image parameter information creating mirror image.
In an optional embodiment, as shown in figure 9, the device further include:
Progress message transmission unit 94 for obtaining the progress of local Glance service-creation mirror image, and sends creation mirror The progress reminder message of picture;
User information storage unit 91, for inciting somebody to action when receiving the user information of registered users of cloud platform front end User information is stored to the associated user information database of the local FTP service;
User information updating unit 92, for receiving the synchronization message including operation object and operational order, to operation pair As corresponding user information carries out the corresponding operation of operational order;Wherein, which includes at least one of the following: the letter that Adds User Breath deletes user information, updates user information, and the user information includes at least one of the following: user identifier, code characters.
Image file storage unit 93, for receiving image file upload request, image file upload request carries useful Family mark and image file;Obtain the corresponding store path of user identifier;Image file is stored to store path is corresponding and is deposited Storage area.
With the above-mentioned embodiment of the method applied to cloud platform front end correspondingly, the embodiment of the present application also provides one kind to answer The device of cloud platform creation mirror image for cloud platform front end.The structure of the device of cloud platform creation mirror image shown in Figure 10 Schematic diagram, the device include following part:
Subscriber information management module 1001, for receiving mirror image request to create, which carries user's mark Know;Wherein, the corresponding user information of user identifier has been synchronized in the associated user information database of FTP service, FTP service operation In cloud platform rear end, the corresponding image file of user identifier is previously stored cloud platform rear end storage road corresponding to user identifier Under diameter;
Mirror module 1002 obtains the corresponding mirror of user identifier for sending the information acquisition request including user identifier As file identification and image file store path;And for image file mark and image file store path will to be included Image parameter information be sent to the Glance service of the cloud platform rear end, believed with triggering Glance service according to image parameter Breath creation mirror image.
Wherein, mirror module 1002 can be also used for: mirror image is arranged for image file mark and image file store path File verification value;Using image file mark, image file store path and image file check value as image parameter information.
In an optional embodiment, mirror module 1002 is also used to receive the progress reminder message of creation mirror image.
In an optional embodiment, subscriber information management module 1001 is also used to registered local user's information is same It walks to the user information database of FTP service.And it is also used to generate and send packet when detecting the operation to local user's information The synchronization message of operation object and operational order is included, the operational order is carried out to the corresponding user information of operation object with triggering Corresponding operation;Wherein, which includes at least one of the following: the information that Adds User, deletes user information, updates user's letter Breath, user information include at least one of the following: user identifier, code characters.
The device of cloud platform provided by the embodiments of the present application creation mirror image, after the user information and cloud platform of cloud platform front end The user information of the FTP service at end is synchronous, when cloud platform receives the mirror image request to create of user, can be created according to mirror image The user identifier carried is requested, corresponding image file mark and image file path is obtained to FTP service, automatically generates mirror image Parameter information is sent to Glance service, makes Glance service according to the image parameter information creating mirror image, simplifies mirror image wound User's operation mode during building, improves the Experience Degree of user.
The embodiment of the present application also provides a kind of cloud platform equipment, are applied to cloud platform front end, including processor and machine Readable storage medium storing program for executing.Wherein, machine readable storage medium is stored with the machine-executable instruction that can be executed by processor, processing Device executes the machine-executable instruction to realize the above method for being applied to cloud platform front end.
The embodiment of the present application also provides a kind of cloud platform equipment, are applied to cloud platform rear end, including processor and machine Readable storage medium storing program for executing, machine readable storage medium are stored with the machine-executable instruction that can be executed by processor, the processing Device executes the machine-executable instruction to realize the above method for being applied to cloud platform rear end.
Further, above-mentioned cloud platform equipment further includes bus, by total between processor and machine readable storage medium Line connection.
Wherein, machine readable storage medium may include high-speed random access memory (RAM, Random Access Memory), it is also possible to further include non-labile memory (non-volatile memory), a for example, at least disk is deposited Reservoir.
Bus can be isa bus, pci bus or eisa bus etc..It is total that the bus can be divided into address bus, data Line, control bus etc..
Processor may be a kind of IC chip, the processing capacity with signal.During realization, the above method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor or software form.Above-mentioned processing Device can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally In the storage medium of field maturation.
Further, the embodiment of the invention also provides a kind of machine readable storage medium, which is deposited Machine-executable instruction is contained, when being called and being executed by processor, machine-executable instruction promotes the machine-executable instruction The method that processor realizes the above-mentioned cloud platform creation mirror image applied to cloud platform front end.
Further, the embodiment of the invention also provides a kind of machine readable storage medium, which is deposited Machine-executable instruction is contained, when being called and being executed by processor, machine-executable instruction promotes the machine-executable instruction The method that processor realizes the above-mentioned cloud platform creation mirror image applied to cloud platform rear end.
Cloud platform provided by the embodiment of the present application creates the method, apparatus of mirror image and the computer program of cloud platform system Product, the machine readable storage medium including storing program code, before the instruction that said program code includes can be used for execution Method described in the embodiment of the method for face, specific implementation can be found in embodiment of the method, and details are not described herein.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that embodiment described above, the only specific embodiment of the application, to illustrate the application Technical solution, rather than its limitations, the protection scope of the application is not limited thereto, although with reference to the foregoing embodiments to this Shen It please be described in detail, those skilled in the art should understand that: anyone skilled in the art Within the technical scope of the present application, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of the embodiment of the present application technical solution, should all cover the protection in the application Within the scope of.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.

Claims (12)

1. a kind of method of cloud platform creation mirror image, which is characterized in that the method is applied to the cloud platform rear end, the side Method includes:
Receive the information acquisition request comprising user identifier;Wherein, the corresponding user information of the user identifier has been synchronized to In the associated user information database of local file transport protocol FTP service, and the corresponding image file of the user identifier is preparatory It stores to the user identifier is corresponding and is locally stored under path;
According to the user identifier, determines and send image file mark corresponding with the user identifier and image file storage Path, so that the image parameter information comprising image file mark and image file store path is sent to mirror image Glance service triggers the Glance service according to the image parameter information creating mirror image.
2. the method according to claim 1, wherein the method also includes:
When receiving the user information of registered users of the cloud platform front end, the user information is stored to described The associated user information database of ground FTP service.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
The synchronization message including operation object and operational order is received, to described in the progress of the operation object corresponding user information The corresponding operation of operational order;Wherein, the operation includes at least one of the following: the information that Adds User, deletes user information, more New user information, the user information include at least one of the following: user identifier, code characters.
4. the method according to claim 1, wherein the method also includes: obtain local Glance service creates The progress of mirror image is built, and sends the progress reminder message of creation mirror image.
5. the method according to claim 1, wherein the method also includes:
Image file upload request is received, the image file upload request carries user identifier and image file;
Obtain the corresponding store path of the user identifier;
The image file is stored into memory block corresponding to the store path.
6. a kind of method of cloud platform creation mirror image, which is characterized in that the method is applied to the cloud platform front end, comprising:
Mirror image request to create is received, the mirror image request to create carries user identifier;Wherein, the corresponding use of the user identifier Family information has been synchronized in the associated user information database of File Transfer Protocol FTP service, and the FTP service runs on the cloud Platform rear end, the corresponding image file of the user identifier, which is previously stored to the corresponding cloud platform rear end of the user identifier, to be deposited It stores up under path;
The information acquisition request including the user identifier is sent, the corresponding image file mark of the user identifier and mirror are obtained As file store path;
After image parameter information comprising image file mark and image file store path is sent to the cloud platform The mirror image Glance at end is serviced, to trigger the Glance service according to the image parameter information creating mirror image.
7. according to the method described in claim 6, it is characterized in that, the image parameter information generates in the following manner:
For image file mark and image file store path, image file check value is set;
Using image file mark, image file store path and the image file check value as image parameter information.
8. according to the method described in claim 6, it is characterized in that, the method also includes:
Receive the progress reminder message of creation mirror image.
9. according to the method described in claim 6, it is characterized in that, the method also includes:
By registered local user's synchronizing information to the associated user information database of the FTP service.
10. the method according to claim 6, which is characterized in that the method also includes:
When detecting the operation to local user's information, generate and send including operation object and operational order synchronize disappear Breath carries out the corresponding operation of the operational order to the corresponding user information of the operation object with triggering;Wherein, the operation It includes at least one of the following: the information that Adds User, deletes user information, updates user information, the user information includes following At least one of: user identifier, code characters.
11. a kind of cloud platform equipment, which is characterized in that including memory and processor;Wherein, the memory is for storing one Item or a plurality of computer instruction, one or more computer instruction are executed by the processor, with realize claim 1 to 5 described in any item methods.
12. a kind of cloud platform equipment, which is characterized in that including memory and processor;Wherein, the memory is for storing one Item or a plurality of computer instruction, one or more computer instruction are executed by the processor, with realize claim 6 to 10 described in any item methods.
CN201711190001.7A 2017-11-23 2017-11-23 The method and cloud platform equipment of cloud platform creation mirror image Active CN107888695B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711190001.7A CN107888695B (en) 2017-11-23 2017-11-23 The method and cloud platform equipment of cloud platform creation mirror image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711190001.7A CN107888695B (en) 2017-11-23 2017-11-23 The method and cloud platform equipment of cloud platform creation mirror image

Publications (2)

Publication Number Publication Date
CN107888695A CN107888695A (en) 2018-04-06
CN107888695B true CN107888695B (en) 2019-09-13

Family

ID=61774924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711190001.7A Active CN107888695B (en) 2017-11-23 2017-11-23 The method and cloud platform equipment of cloud platform creation mirror image

Country Status (1)

Country Link
CN (1) CN107888695B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924186A (en) * 2018-06-04 2018-11-30 郑州云海信息技术有限公司 The creation method and system of file storage in a kind of cloud pipe platform
CN109460281B (en) * 2018-09-17 2021-02-26 华为技术有限公司 Virtual machine management method and device of cloud platform
CN109634718B (en) * 2018-12-13 2020-03-31 无锡华云数据技术服务有限公司 Method and system for creating mirror image by cloud platform
CN111435936B (en) * 2018-12-25 2023-06-02 北京嘀嘀无限科技发展有限公司 Cloud host creation method, cloud host creation device, server and computer readable storage medium
CN112148419B (en) * 2019-06-28 2024-01-02 杭州海康威视数字技术股份有限公司 Mirror image management method, device and system in cloud platform and storage medium
CN110427342B (en) * 2019-07-09 2022-05-24 苏州浪潮智能科技有限公司 Method, equipment and readable medium for creating mirror library
CN112445511A (en) * 2019-08-28 2021-03-05 北京东土科技股份有限公司 Cloud application creation method and device based on industrial cloud platform, terminal and server
CN110795182A (en) * 2019-09-18 2020-02-14 平安科技(深圳)有限公司 Cloud host creation method and system
CN111124603A (en) * 2019-11-30 2020-05-08 北京浪潮数据技术有限公司 CD-ROM mounting method, device and related equipment
CN112181721B (en) * 2020-09-14 2024-03-19 东云睿连(武汉)计算技术有限公司 Artificial intelligence job mirror image management method and system
CN112491953B (en) * 2020-10-21 2022-06-14 苏州浪潮智能科技有限公司 Implementation method, system, equipment and medium supporting continuous transmission of cloud platform mirror image data
CN112463170B (en) * 2020-10-29 2022-08-23 苏州浪潮智能科技有限公司 Method, device and equipment for making mirror image on cloud platform and storage medium
CN114945020B (en) * 2022-05-17 2023-08-08 宝信软件(武汉)有限公司 Cloud edge cooperative data access method and system based on cloud platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002088909A2 (en) * 2001-02-02 2002-11-07 Family Systems, Ltd. Methods, systems and devices for automated web publishing and distribution
CN105487880A (en) * 2015-06-25 2016-04-13 哈尔滨安天科技股份有限公司 Mirror image distribution and use method based on service request and mirror image distribution and use system based on service request
CN105912382A (en) * 2016-04-07 2016-08-31 浪潮电子信息产业股份有限公司 Mirror image management device, system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8407768B1 (en) * 2010-01-27 2013-03-26 Google Inc. Data and application access combined with communication services
CN106487850B (en) * 2015-08-29 2019-10-25 华为技术有限公司 The methods, devices and systems of mirror image are obtained under a kind of cloud environment
CN107291525B (en) * 2016-04-01 2021-06-01 华为技术有限公司 Method, host machine and system for deploying virtual machine
CN105955674B (en) * 2016-06-16 2019-02-12 北京航空航天大学 The quick assemble method of magnetic disk of virtual machine mirror moduleization, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002088909A2 (en) * 2001-02-02 2002-11-07 Family Systems, Ltd. Methods, systems and devices for automated web publishing and distribution
CN105487880A (en) * 2015-06-25 2016-04-13 哈尔滨安天科技股份有限公司 Mirror image distribution and use method based on service request and mirror image distribution and use system based on service request
CN105912382A (en) * 2016-04-07 2016-08-31 浪潮电子信息产业股份有限公司 Mirror image management device, system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IaaS中虚拟镜像管理子系统的设计与实现;聂璐;《中国优秀硕士学位论文全文数据库信息科技辑》;20150815;正文"1.2.1 IaaS平台管理架构研究概况"、"2.1.2 FTP服务Vsftpd"、"3.1 系统拓扑结构"、"6.4 镜像文件分发模块设计与实现" *

Also Published As

Publication number Publication date
CN107888695A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN107888695B (en) The method and cloud platform equipment of cloud platform creation mirror image
US9112852B2 (en) Method and apparatus for managing identity for mobile terminal
CN108092984B (en) Authorization method, device and equipment for application client
CN110611723B (en) Scheduling method and device of service resources
TWI678909B (en) Safety authentication method, device and system
CN108683668B (en) Resource checking method, device, storage medium and equipment in content distribution network
US9049596B1 (en) Prevention of fraud in mobile SIM reissuing via knowledge based authentication
CN108259502A (en) For obtaining the identification method of interface access rights, server-side and storage medium
CN108259618B (en) Synchronous data interaction processing method and device
CN103841111A (en) Method for preventing data from being submitted repeatedly and server
KR20150119949A (en) Method and device for updating client
CN110493207A (en) A kind of data processing method, device, electronic equipment and storage medium
CN109729000B (en) Instant messaging method and device
CN105141628A (en) Method and apparatus for realizing pushing
CN110311880A (en) Method for uploading, the apparatus and system of file
CN112351117A (en) Domain name management method and device, electronic equipment and storage medium
CN111935242A (en) Data transmission method, device, server and storage medium
CN107094085B (en) Signaling transmission method and device
CN105184559B (en) A kind of payment system and method
CN113886803A (en) Object storage system of instant messaging, object storage request method and device
CN104703173B (en) The configuration of terminal applies account and detection method, apparatus and system
CN104767672A (en) Account relation establishing method and device
CN108460042B (en) Page display method, related equipment and system
CN103313245B (en) Based on the Network access method of mobile phone terminal, equipment and system
CN110618989B (en) Information processing method, information processing device and related products

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