A kind of Openstack that provides under cloud computing environment is the method servicedTechnical field
The present invention relates to field of cloud computer technology, the offer Openstack under specifically a kind of cloud computing environment isThe method of service.
Background technique
Cloud computing is a kind of IT business model of innovation, be distributed computing, parallel computation, grid computing continuity.ItsCore concept is to be attached with network to computing resource, it is made to constitute a huge computing resource pool, by shielding bottomInfrastructure, provide resources of virtual machine and it is various service for the transparent use of user, and according to user using resource situation toUser collects certain expense.Cloud computing mode makes the IT operation mode of enterprise that basic change occur, certainly by pervious self-sufficiencyFoot becomes by cloud computing service carrier supplying service.Cloud computing is divided into publicly-owned according to the relationship of cloud computing supplier and userFour class of cloud, private clound society cloud and mixed cloud;Public cloud is that You Yun provider or cloud service provider are provided to enterprise or userThe cloud of service, enterprise or user, which do not need oneself to build hardware and software platform, can use service in cloud, eliminate creation andSafeguard the cost and worry of cloud platform.
With the fast development of cloud computing technology, public cloud has become the side of the future development of more and more enterprisesTo.Enterprise increasingly starts for business to be transferred in public cloud.But many enterprises is self-built internalOpenstack cluster, the business of enterprise also since Openstack provide interface.In order to enable the enterprise to industry fasterBusiness is transferred in public cloud, it is desirable to provide comprehensive Openstack API is supported.
A kind of existing method be by OpenStack deployment on a virtual machine, such as a kind of creation OpenStack virtual machineMethod and OpenStack virtual machine system (application number: 201710457887.0), configure control node and multiple calculating sectionPoint;Server is configured by control node, configures calculate node to the virtual machine pre-created;Control node is each calculating sectionPoint distribution IP address;Using virtual network realization mechanism, communication connection is provided for control node and calculate node, and configure peaceFull group rule;In the virtual machine of OpenStack interface creating calculate node, preset mirror image is selected in the virtual machine of calculate nodeAnd the secure group rule of configuration;Start the virtual machine of each calculate node, testing and control node respectively with each calculate nodeThe network connection of virtual machine.The present invention is based on Neutron models to be realized using Linux bridge, can effectively break through conventional modelLimitation, promoted OpenStack virtual machine network performance.But there are the drawbacks of it is as follows: this method exists nested emptyThe side effect of quasi-ization, the problem of in addition support there is also service supplier.
Summary of the invention
Technical assignment of the invention is place against the above deficiency, provides a kind of offer Openstack under cloud computing environment i.e.The method of service reduces the complexity of deployment, avoids nesting under the premise of providing standard Openstack API supportVirtualizing bring performance influences.
The technical solution adopted by the present invention to solve the technical problems is: the offer under a kind of cloud computing environmentOpenstack is the method serviced, and the specific method is as follows:
User calls OpenStackAPI, initiates to request to the end Controller;
Controller termination is requested, and judges whether that required information can be directly acquired;
If information required for user cannot be obtained directly from database, Controller registers one into message queue in endItem or a plurality of information;
Server supports the request in continuous monitoring information queue, if after receiving request, according to the data in request, calling directlyThe interface of public cloud supplier executes creation operation;The end Server shifts the intermediate state during creation on message queue onto,Controller is updated the state that it is recorded;
The end Server will create successful message and shift on message queue;Controller receives the successful message of creation, moreNew database, and successful message will be created back to user interface.
Further, preferred method is,
The creation operation is one of creation virtual machine, creation cloud hard disk, creation cloud network or several.
Further, preferred method is that multi-user is isolated on message queue by way of fictitious host computer.
Further, preferred method is on the one hand Openstack message translation is rear end institute by the end ServerThe form needed, is on the other hand translated into the form that Openstack can be recognized for the response of rear end.
A kind of Openstack that provides under cloud computing environment is the system serviced, including control module, message queue module andThe virtual resource module of rear end;
Control module, for user's request being published on message queue module and being received the creation message of message queue module,Then creation message is returned into user interface;
Message queue module after receiving the user's request for front-end A PI forwards requests to message queue moduleOn;Message queue module receives service module and requests the key message generated in treatment process in user;
The virtual resource module of rear end executes creation operation for calling the interface of public cloud manufacturer.
Further, preferred structure is that message queue module further includes message adaptation layer unit;
On the one hand Openstack message translation is form needed for rear end, on the other hand by rear end by message adaptation layer unitResponse is translated into the form that Openstack can be recognized.
Further, preferred structure is the message adaptation layer unit, is infused on different fictitious host computers for monitoringThe message of volume, and user is identified by fictitious host computer, the permission and quota of user are obtained, to decide whether to carry out downSingle stepping.
Further, preferred structure is that rear end virtual module includes virtual machine unit, cloud hard disk unit and cloud network listMember;
Virtual machine unit executes the creation, deletion, migration of virtual machine, and message is sent out for calling the API of public cloud manufacturerIt returns on message queue module;
Cloud hard disk unit, for calling public cloud manufacturer software to define the operation of storage;
Cloud network unit, the operation of the virtual network interface for calling public cloud manufacturer.
Further, preferred structure is that public cloud manufacturer software is called to define the operation of storage, and operation includes creation cloudHard disk deletes cloud hard disk and cloud hard disk is mounted on virtual machine;
The operation of the virtual network interface of public cloud manufacturer is called, operation includes creation network, deletes network and adjustment networkTopology.
Compared to the prior art the method that Openstack is serviced of providing under a kind of cloud computing environment of the invention, hasBeneficial effect is as follows:
1, deployment is simple and easy, directly deployment OpenStack infrastructure component and control planar module;
2, the API of each version of compatible OpenStack, is not necessarily to overlapping development API code, improves the efficiency of exploitation, avoidDuplicate operation;
3, the control planar module that can directly dispose OpenStack, by the virtual master for the message being registered on message queueMachine system (virtual host) distinguishes user, simple and easy;
4, in the way of message queue, on the one hand message queue alleviates the pressure of back-end server, another aspect user is notMessage queue can be directly accessed, safety is improved;
5, by the modification to back-end server, it can be adapted to different cloud suppliers, OpenStack adapter tube can be made different nextThe virtual resource in source realizes the demand of unified OpenStack cluster management difference supplier's virtual machine and hard disk, improves spiritActivity;
6, it calls directly that supplier interface is instant to be taken, avoids because nested virtualization bring performance is lost;
7, allow multiple tenants to register by message queue, so that message adaptation layer can directly service multiple users, improveEfficiency reduces the complexity of deployment.
Detailed description of the invention
The following further describes the present invention with reference to the drawings.
Attached drawing 1 is to provide the schematic diagram for the method that Openstack is serviced under a kind of cloud computing environment.
Attached drawing 2 is to provide the apparatus structure schematic diagram for the method that Openstack is serviced under a kind of cloud computing environment.
Specific embodiment
The present invention will be further explained below with reference to the attached drawings and specific examples.
The present invention is to provide the Openstack method serviced under a kind of cloud computing environment,
Embodiment 1:
As shown in Fig. 2, the Openstack that provides under a kind of cloud computing environment is the system serviced, including control module, messageThe virtual resource module of Queue module and rear end;Message queue module includes message queue (MQ) and message adaptation layer unit;
Control module, Openstack Controller: primary Openstack controls planar module, mainly includes virtual machineRelated, virtual network correlation and software definition store relevant API.These components externally provide the service of Http/Https, andBy instruction hair less than on message queue.Sub- api layer also includes MySql database.
Message queue, message-oriented middleware realize the decoupling of front-end and back-end component, and front-end A PI is receiving asking for userIt after asking, can forward requests on message queue, the message in the component meeting monitoring information queue of rear end, and be asked receivingRelevant operation will be executed after asking, the result operated shoulder to shoulder is sent back on message queue;Message queue can permit multiple tenantsIt registers to use, the fictitious host computer function of message queue offer can be used in the isolation of tenant, and user cannot directly access message teamColumn also change the fictitious host computer information of message queue.Adaptation layer can be made directly to service multiple users in this way, improve efficiency,Reduce the complexity of deployment.
Message adaptation layer is the bridge of Openstack and rear end, can be mark by message transformation by the adaptation of messageQuasiconfiguaration is identified by the application of Openstack control plane.
Virtual resource module;Including virtual machine unit, cloud hard disk unit and cloud network unit;Wherein:
Virtual machine is related: the API of practical public cloud manufacturer called, the relevant operation of virtual machine: creation, deletion, migration etc. is executed,And message is sent back on message queue.
Cloud hard disk correlation: call the definition of public cloud manufacturer software to store relevant operation: creation cloud hard disk, deletion cloud are hardCloud hard disk is mounted on virtual machine by disk.
Cloud network is related: the interface of the creation virtual network of public cloud manufacturer called, executes and operates: creation network,Delete network, adjustment network topology etc..
A kind of Openstack that provides under cloud computing environment is the method serviced, and referring to attached drawing 1, user is calledOpenstack API initiates to request to Controller;Controller receives request, judges whether to directly acquireRequired information;If information needed for user cannot be obtained directly from database, Controller is infused into message queueOne or more information of volume;
The unanimously request in monitoring information queue of the end Server, after receiving request, according to the data in request, directlyThe interface for calling public cloud supplier executes relevant operation: creation virtual machine, creation cloud hard disk, creation cloud network;ServerEnd shifts the intermediate state during creation on message queue onto, and Controller is updated the state that it is recorded;Server will create successful message and shift on message queue;Controller receives the successful message of creation, more new dataLibrary, and successful message will be created back to user interface.
Specific mode of operation is as follows:
OpenStack control platform, installation database and Message Queuing Middleware are built, it is directly primary using OpenStackControl planar module, make deployment it is simpler;Multi-user is isolated on message queue by way of fictitious host computer.AltogetherEnjoy the message adaptation layer and calling interface of rear end.The adaptation layer of rear end can monitor the message of the registration on different fictitious host computers,And user is identified by fictitious host computer, the permission and quota of user are obtained, to decide whether further next stepOperation.
Back-end process calls the corresponding API of cloud supplier after receiving the message of adaptation layer, according to the type of message.OpenStack collects the information of message queue, and storage in the database, realizes the registration to virtual machine, avoids nested voidQuasi-ization, and unified management can be carried out to virtual machine.The starting of virtual machine stops, restarting;Deletion, the carry reconciliation of hard diskIt ties up;Addition and deletion of network etc.;By adaptation layer, it is adjusted to the standard interface of other manufacturers.And by the return of calling interfaceValue, by recompiling, authenticates the information received by OpenStack.
This framework also facilitates collection monitoring information, and each cloud supplier has also been provided to be believed than more rich monitoringBreath, when user is using the service such as ceilometer, it is only necessary to install control assembly, and send message for monitoring dataIn queue, ceilometer control layer can receive message, user can directly carry out using.
The present invention realizes a kind of interface supplied in cloud computing environment by calling directly cloud, mentions for openstackFor the method for virtual machine, network and storage service;Openstack control layer software is disposed first, is registered in by capturing api layerMessage on message queue, carries out the operation of related creation virtual machine, cloud hard disk, and the information that operation executes is fitted by messageBe with layer after being made into Openstack standard message, resend on message queue, thus be virtual machine, hard disk etc. atFunction is managed by Openstack.The present invention, which is realized, provides user the effect of the Openstack service of isolation.It is mentioningUnder the premise of being supported for standard Openstack API, the complexity of deployment is reduced, nested virtualization bring performance is avoidedIt influences.The present invention also supports the collection of monitoring data, and the monitoring data of the available different operator of client protects userData and service safe.
The technical personnel in the technical field can readily realize the present invention with the above specific embodiments,.But it answersWork as understanding, the present invention is not limited to above-mentioned several specific embodiments.On the basis of the disclosed embodiments, the technologyThe technical staff in field can arbitrarily combine different technical features, to realize different technical solutions.