[go: up one dir, main page]

CN107819863A - A kind of Explore of Unified Management Ideas and device of cloud platform user - Google Patents

A kind of Explore of Unified Management Ideas and device of cloud platform user Download PDF

Info

Publication number
CN107819863A
CN107819863A CN201711134918.5A CN201711134918A CN107819863A CN 107819863 A CN107819863 A CN 107819863A CN 201711134918 A CN201711134918 A CN 201711134918A CN 107819863 A CN107819863 A CN 107819863A
Authority
CN
China
Prior art keywords
cloud platform
user information
openstack
user
synchronization
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.)
Pending
Application number
CN201711134918.5A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201711134918.5A priority Critical patent/CN107819863A/en
Publication of CN107819863A publication Critical patent/CN107819863A/en
Pending legal-status Critical Current

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/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

本发明实施例公开了一种云平台用户的统一管理方法和装置,所述方法包括:在云平台根据预先设置的定时任务和同步策略,每隔预定时间执行用户信息的数据同步;其中,所述定时任务是使用所述云平台的任务管理功能设置的,所述用户信息包括云计算管理平台openstack和所述云平台的用户信息。本发明实施例可以将openstack中的用户信息同步到云平台中,在云平台中进行统一管理。

The embodiment of the present invention discloses a unified management method and device for cloud platform users. The method includes: performing data synchronization of user information on the cloud platform at predetermined intervals according to preset timing tasks and synchronization strategies; wherein, the The timed task is set using the task management function of the cloud platform, and the user information includes cloud computing management platform openstack and user information of the cloud platform. The embodiment of the present invention can synchronize the user information in the openstack to the cloud platform, and perform unified management on the cloud platform.

Description

一种云平台用户的统一管理方法和装置A unified management method and device for cloud platform users

技术领域technical field

本发明涉及云计算数据中心技术,尤指一种云平台用户的统一管理方法和装置。The invention relates to cloud computing data center technology, in particular to a unified management method and device for cloud platform users.

背景技术Background technique

openstack作为知名的云计算管理平台,功能强大,已被各个云计算厂商融合到自己的云数据中心管理平台中。云计算厂商开发出自己的云数据中心管理平台,然后集成openstack,将openstack作为一种虚拟化平台,通过调用openstack接口读取并管理openstack里面的计算、存储、网络等资源,这也是是当下很多云计算管理平台的解决方案。同时,云平台中会创建许多账户,供管理员和租户使用。但是这样做会有一定的问题,openstack中也有自己的用户系统,如果在openstack中创建了用户,则无法体现到云平台中。另一方面,如果通过openstack平台进行管理,则无法实现云平台用户的统一管理。并且相比云平台提供的在部门、项目、组织等多个维度对用户进行管理的丰富的用户管理功能,openstack用户管理功能比较简单。As a well-known cloud computing management platform, openstack has powerful functions and has been integrated into its own cloud data center management platform by various cloud computing vendors. Cloud computing manufacturers develop their own cloud data center management platform, and then integrate openstack, using openstack as a virtualization platform, by calling the openstack interface to read and manage the computing, storage, network and other resources in openstack, which is also the current situation of many Cloud computing management platform solutions. At the same time, many accounts will be created in the cloud platform for administrators and tenants to use. However, there will be certain problems in doing so. Openstack also has its own user system. If a user is created in openstack, it cannot be reflected in the cloud platform. On the other hand, if management is performed through the openstack platform, unified management of cloud platform users cannot be realized. And compared to the rich user management functions provided by the cloud platform to manage users in multiple dimensions such as departments, projects, and organizations, the openstack user management function is relatively simple.

发明内容Contents of the invention

为了解决上述技术问题,本发明实施例提供了一种云平台用户的统一管理方法和装置,可以将openstack中的用户信息同步到云平台中,在云平台中进行统一管理。In order to solve the above technical problems, embodiments of the present invention provide a unified management method and device for cloud platform users, which can synchronize user information in openstack to the cloud platform, and perform unified management on the cloud platform.

为了达到本发明目的,一方面,本发明实施例提供了一种云平台用户的统一管理方法,包括:In order to achieve the purpose of the present invention, on the one hand, the embodiment of the present invention provides a unified management method for cloud platform users, including:

在云平台根据预先设置的定时任务和同步策略,每隔预定时间执行用户信息的数据同步;其中,所述定时任务是使用所述云平台的任务管理功能设置的,所述用户信息包括云计算管理平台openstack和所述云平台的用户信息。On the cloud platform, according to the preset timing tasks and synchronization strategies, the data synchronization of user information is performed every predetermined time; wherein, the timing tasks are set using the task management function of the cloud platform, and the user information includes cloud computing Management platform openstack and user information of the cloud platform.

可选地,所述同步策略包括:Optionally, the synchronization strategy includes:

读取所述openstack的第一用户信息;Read the first user information of the openstack;

将所述第一用户信息与所述云平台中存储的的第二用户信息对比;comparing the first user information with the second user information stored in the cloud platform;

如果所述第一用户信息与所述第二用户信息相同,则不作处理;如果所述第一用户信息与所述第二用户信息不相同,则以所述openstack为基准执行所述用户信息的数据同步,将不一致的数据同步到所述云平台中。If the first user information is the same as the second user information, do not process; if the first user information is different from the second user information, perform the user information based on the openstack Data synchronization, synchronizing inconsistent data to the cloud platform.

可选地,所述用户信息包括:基本信息和项目信息。Optionally, the user information includes: basic information and item information.

可选地,在执行用户信息的数据同步之前,所述方法还包括:Optionally, before performing data synchronization of user information, the method further includes:

构造所述云平台和所述openstack平台的关联关系。An association relationship between the cloud platform and the openstack platform is constructed.

可选地,所述方法还包括:Optionally, the method also includes:

通过手动同步方式执行所述用户信息的数据同步。The data synchronization of the user information is performed by manual synchronization.

可选地,所述读取所述openstack的第一用户信息包括:Optionally, said reading the first user information of said openstack includes:

遍历所述云平台的openstack类型的用户信息;Traversing the user information of the openstack type of the cloud platform;

根据每一个openstack类型的用户信息的底层身份标识ID查找在所述openstack环境对应的用户;Find the user corresponding to the openstack environment according to the underlying identity ID of each openstack type user information;

如果在所述openstack环境未查找到对应的用户,则将所述云平台中该用户的状态修改为已删除;如果在所述openstack环境查找到了对应的用户,则获取该对应的用户的第一用户信息。If the corresponding user is not found in the openstack environment, then the status of the user in the cloud platform is modified to deleted; if the corresponding user is found in the openstack environment, then the corresponding user's first ID is obtained User Info.

可选地,在执行用户信息的数据同步之前,所述方法还包括:Optionally, before performing data synchronization of user information, the method further includes:

查询用户和openstack项目的关联关系,如果所述关联关系发生了变化,则在所述云平台中修改关联关系,以保持关联关系的一致性。Query the association relationship between the user and the openstack project, and if the association relationship changes, modify the association relationship in the cloud platform to maintain the consistency of the association relationship.

可选地,所述同步策略还包括:Optionally, the synchronization strategy also includes:

对于所述openstack底层新增的用户,直接将所述新增用户的用户信息同步到所述云平台中。For the newly added user at the bottom of the openstack, the user information of the newly added user is directly synchronized to the cloud platform.

另一方面,本发明实施例还提供了一种云平台用户的统一管理装置,包括:On the other hand, the embodiment of the present invention also provides a unified management device for cloud platform users, including:

同步模块,用于在云平台根据预先设置的定时任务和同步策略,每隔预定时间执行用户信息的数据同步;其中,所述定时任务是使用所述云平台的任务管理功能设置的,所述用户信息包括云计算管理平台openstack和所述云平台的用户信息。The synchronization module is used to perform data synchronization of user information at predetermined intervals on the cloud platform according to a preset timing task and synchronization strategy; wherein, the timing task is set using the task management function of the cloud platform, and the The user information includes the cloud computing management platform openstack and the user information of the cloud platform.

可选地,所述同步策略包括:Optionally, the synchronization strategy includes:

读取所述openstack的第一用户信息;Read the first user information of the openstack;

将所述第一用户信息与所述云平台中存储的的第二用户信息对比;comparing the first user information with the second user information stored in the cloud platform;

如果所述第一用户信息与所述第二用户信息相同,则不作处理;如果所述第一用户信息与所述第二用户信息不相同,则以所述openstack为基准执行所述用户信息的数据同步,将不一致的数据同步到所述云平台中。If the first user information is the same as the second user information, do not process; if the first user information is different from the second user information, perform the user information based on the openstack Data synchronization, synchronizing inconsistent data to the cloud platform.

可选地,所述用户信息包括:基本信息和项目信息。Optionally, the user information includes: basic information and item information.

可选地,所述装置还包括:Optionally, the device also includes:

构造模块,用于所述云平台和所述openstack平台的关联关系。The construction module is used for the association relationship between the cloud platform and the openstack platform.

可选地,所述装置还用于:Optionally, the device is also used for:

通过手动同步方式执行所述用户信息的数据同步。The data synchronization of the user information is performed by manual synchronization.

可选地,所述装置还用于:Optionally, the device is also used for:

遍历所述云平台的openstack类型的用户信息;Traversing the user information of the openstack type of the cloud platform;

根据每一个openstack类型的用户信息的底层身份标识ID查找在所述openstack环境对应的用户;Find the user corresponding to the openstack environment according to the underlying identity ID of each openstack type user information;

如果在所述openstack环境未查找到对应的用户,则将所述云平台中该用户的状态修改为已删除;如果在所述openstack环境查找到了对应的用户,则获取该对应的用户的第一用户信息。If the corresponding user is not found in the openstack environment, then the status of the user in the cloud platform is modified to deleted; if the corresponding user is found in the openstack environment, then the corresponding user's first ID is obtained User Info.

可选地,所述装置还用于:Optionally, the device is also used for:

查询用户和openstack项目的关联关系,如果所述关联关系发生了变化,则在所述云平台中修改关联关系,以保持关联关系的一致性。Query the association relationship between the user and the openstack project, and if the association relationship changes, modify the association relationship in the cloud platform to maintain the consistency of the association relationship.

可选地,所述同步策略还包括:Optionally, the synchronization strategy also includes:

对于所述openstack底层新增的用户,直接将所述新增用户的用户信息同步到所述云平台中。For the newly added user at the bottom of the openstack, the user information of the newly added user is directly synchronized to the cloud platform.

本发明实施例通过在云平台根据预先设置的定时任务和同步策略,每隔预定时间执行用户信息的数据同步;其中,所述定时任务是使用所述云平台的任务管理功能设置的,所述用户信息包括云计算管理平台openstack和所述云平台的用户信息。本发明实施例可以将openstack中的用户信息同步到云平台中,在云平台中进行统一管理。In the embodiment of the present invention, data synchronization of user information is performed at predetermined intervals on the cloud platform according to a preset timing task and synchronization strategy; wherein, the timing task is set using the task management function of the cloud platform, and the The user information includes the cloud computing management platform openstack and the user information of the cloud platform. The embodiment of the present invention can synchronize the user information in the openstack to the cloud platform, and perform unified management on the cloud platform.

本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.

附图说明Description of drawings

附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present invention, and constitute a part of the description, and are used together with the embodiments of the application to explain the technical solution of the present invention, and do not constitute a limitation to the technical solution of the present invention.

图1为本发明实施例云平台用户的统一管理方法的流程图;Fig. 1 is the flowchart of the unified management method of cloud platform user in the embodiment of the present invention;

图2为本发明实施例云平台用户的统一管理方法的结构图。FIG. 2 is a structural diagram of a unified management method for cloud platform users according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

图1为本发明实施例云平台用户的统一管理方法的流程图,如图1所示,本发明实施例的方法包括以下步骤:Fig. 1 is the flowchart of the unified management method of cloud platform user of the embodiment of the present invention, as shown in Fig. 1, the method of the embodiment of the present invention comprises the following steps:

步骤100:在云平台根据预先设置的定时任务和同步策略,每隔预定时间执行用户信息的数据同步;其中,所述定时任务是使用所述云平台的任务管理功能设置的,所述用户信息包括云计算管理平台openstack和所述云平台的用户信息。Step 100: Perform data synchronization of user information at predetermined intervals on the cloud platform according to a preset timing task and synchronization strategy; wherein, the timing task is set using the task management function of the cloud platform, and the user information Including the cloud computing management platform openstack and the user information of the cloud platform.

具体地,所述同步是在所述云平台设置开启定时任务,并设置自动同步时间间隔,执行所述用户信息的数据同步。例如,每隔十分钟进行一次用户信息的数据同步。Specifically, the synchronization is to set and start a timed task on the cloud platform, and set an automatic synchronization time interval to perform data synchronization of the user information. For example, data synchronization of user information is performed every ten minutes.

可选地,所述同步策略包括:Optionally, the synchronization strategy includes:

读取所述openstack的第一用户信息;Read the first user information of the openstack;

将所述第一用户信息与所述云平台中存储的的第二用户信息对比;comparing the first user information with the second user information stored in the cloud platform;

如果所述第一用户信息与所述第二用户信息相同,则不作处理;如果所述第一用户信息与所述第二用户信息不相同,则以所述openstack为基准执行所述用户信息的数据同步,将不一致的数据同步到所述云平台中,使得两侧数据一致,以对同步到所述云平台中所述openstack的用户信息进行统一管理。If the first user information is the same as the second user information, do not process; if the first user information is different from the second user information, perform the user information based on the openstack Data synchronization, synchronizing inconsistent data to the cloud platform, so that the data on both sides are consistent, so as to uniformly manage the user information synchronized to the openstack in the cloud platform.

其中,所述openstack的用户信息同步到所述云平台中后,将用户类型设置为所述openstack类型。Wherein, after the user information of the openstack is synchronized to the cloud platform, the user type is set as the openstack type.

具体地,本发明实施例提出的云平台用户的统一管理方法,将openstack中的用户信息同步到云平台中,在云平台中进行统一管理。在云平台设置定时任务,每隔一段时间执行用户同步的策略。在同步用户的策略里,使用特定算法,读取openstack的用户数据,包括基本信息、项目信息等,并与云平台的用户数据对比,以openstack为基准,将不一致的内容同步到云平台中,使得两侧数据一致。Specifically, the unified management method for cloud platform users proposed by the embodiment of the present invention synchronizes user information in openstack to the cloud platform, and performs unified management on the cloud platform. Set up scheduled tasks on the cloud platform, and execute user synchronization strategies at regular intervals. In the strategy of synchronizing users, use a specific algorithm to read the user data of openstack, including basic information, project information, etc., and compare it with the user data of the cloud platform, and use openstack as the benchmark to synchronize inconsistent content to the cloud platform. Make the data on both sides consistent.

本发明实施例使用云平台已有的任务管理功能,设置定时任务,每隔十分钟进行一次用户信息的数据同步。用户信息包括基本信息,项目信息等,但是不同步密码信息,云平台中openstack类型的用户的最终认证过程还是需要通过接口调用在openstack平台完成,保证用户信息和角色信息与openstack底层一致。Openstack用户同步到云平台中后,需要将用户类型设置为openstack类型,便于下次同步的比对和校验。同时构造云平台用户和openstack用户的关联关系表,并将底层id同步到云平台中,The embodiment of the present invention uses the existing task management function of the cloud platform to set a timed task and perform data synchronization of user information every ten minutes. User information includes basic information, project information, etc., but without synchronizing password information, the final authentication process of openstack users in the cloud platform still needs to be completed on the openstack platform through interface calls to ensure that user information and role information are consistent with the bottom layer of openstack. After the Openstack user is synchronized to the cloud platform, the user type needs to be set to the openstack type to facilitate the comparison and verification of the next synchronization. At the same time, construct the relationship table between cloud platform users and openstack users, and synchronize the underlying id to the cloud platform.

通过将openstack用户同步到云平台中的方法,在云平台中进行统一管理,可以丰富openstack的用户管理。同时,采用定时任务和特定算法自动同步openstack和云平台的用户数据,能够使二者数据保持一致,保证云平台能够获取到openstack底层的用户信息和角色,提高云管理平台的易用性和准确性。Through the method of synchronizing openstack users to the cloud platform and performing unified management on the cloud platform, the user management of openstack can be enriched. At the same time, using scheduled tasks and specific algorithms to automatically synchronize the user data of openstack and the cloud platform can make the two data consistent, ensure that the cloud platform can obtain the user information and roles at the bottom of openstack, and improve the usability and accuracy of the cloud management platform sex.

本发明实施例技术实现的具体实施过程如下:The specific implementation process of the technical realization of the embodiment of the present invention is as follows:

首先,云平台提供了两种同步方式,手动同步和自动同步。自动同步需要在云平台设置开启定时任务,并设置自动同步时间间隔,执行用户信息同步策略。First of all, the cloud platform provides two synchronization methods, manual synchronization and automatic synchronization. Automatic synchronization needs to be set to enable scheduled tasks on the cloud platform, set the automatic synchronization time interval, and implement the user information synchronization strategy.

然后,自动同步由后台定时任务去定时执行。手动同步则需要云平台用户去手动触发。其步骤如下:Then, the automatic synchronization is performed regularly by the background timing task. Manual synchronization requires cloud platform users to manually trigger. The steps are as follows:

S101,设置与openstack平台的关联关系参数,需要说明的是自动同步也需要设置,否则无法开启。填写openstack平台的IP地址,版本,并提供管理员账号和密码进行连接。S101, setting the parameters associated with the openstack platform. It should be noted that automatic synchronization also needs to be set, otherwise it cannot be enabled. Fill in the IP address and version of the openstack platform, and provide an administrator account and password to connect.

S102,参数设置完成后,点击保存,如果信息不正确,云平台会保存失败,并给出错误信息,用户需要修改信息后再次保存。S102. After the parameter setting is completed, click Save. If the information is incorrect, the cloud platform will fail to save and give an error message. The user needs to modify the information and save it again.

S103,关联关系设置完成后,可以点击openstack用户同步,弹出的列表中会列出openstack底层用户的列表信息,此处为了提高云平台的易用性,此列表只展示openstack中存在,但是未同步到云平台中的用户,已经同步到云平台中的用户不再展示,避免用户手动筛选。S103, after the association relationship is set, you can click openstack user synchronization, and the pop-up list will list the list information of the bottom-level users of openstack. Here, in order to improve the usability of the cloud platform, this list only shows that it exists in openstack, but it is not synchronized. Users who have been synchronized to the cloud platform will no longer be displayed to avoid manual screening by users.

S104,选择需要同步的用户信息,点击同步。系统会在后台自动同步。S104, select user information to be synchronized, and click Synchronize. The system will automatically sync in the background.

S105,用户同步完成后,可以点击同步openstack项目同步,弹出列变中会展示openstack中的项目信息,选择具体项目并同步。S105. After the synchronization is completed, the user can click to synchronize the openstack project, and the project information in the openstack will be displayed in the pop-up list, and a specific project is selected and synchronized.

S106,在项目同步过程中,如果同步过来的项目中的用户也已经同步到云平台中,则在云平台中自动构建用户和项目的关联关系。S106. During the project synchronization process, if the users in the synchronized project have also been synchronized to the cloud platform, automatically build an association relationship between the user and the project on the cloud platform.

最后,同步到云平台中的用户可以直接在云平台的登录界面进行认证。系统后台在得到认证请求后,由于云平台并不保存密码信息,云平台会将认证信息发送到openstack平台进行认证,并返回认证结果。Finally, users who are synchronized to the cloud platform can directly perform authentication on the login interface of the cloud platform. After the system background receives the authentication request, since the cloud platform does not save the password information, the cloud platform will send the authentication information to the openstack platform for authentication and return the authentication result.

本发明实施例通过将openstack用户同步到云平台中实现统一管理。同时采用定时任务和程序控制同步策略的方法,实现了云平台自动同步openstack用户信息的功能。这样既能获保证云平台和openstack的用户数据的一致性,也使openstack用户能够统一到云平台的用户管理中。本发明实施例提高了云平台中网络资源数据的准确性,提高了平台的易用性。The embodiment of the present invention realizes unified management by synchronizing openstack users to the cloud platform. At the same time, the method of timing tasks and program control synchronization strategy is adopted to realize the function of automatic synchronization of openstack user information on the cloud platform. This can not only ensure the consistency of user data on the cloud platform and openstack, but also enable openstack users to be unified in the user management of the cloud platform. The embodiment of the present invention improves the accuracy of network resource data in the cloud platform, and improves the usability of the platform.

可选地,所述用户信息包括:基本信息和项目信息。Optionally, the user information includes: basic information and item information.

可选地,在执行用户信息的数据同步之前,所述方法还包括:Optionally, before performing data synchronization of user information, the method further includes:

构造所述云平台和所述openstack平台的关联关系,实现将底层身份标识ID同步到所述云平台。The association relationship between the cloud platform and the openstack platform is constructed to realize the synchronization of the underlying identity ID to the cloud platform.

可选地,所述方法还包括:Optionally, the method also includes:

通过手动同步方式执行所述用户信息的数据同步。The data synchronization of the user information is performed by manual synchronization.

可选地,所述读取所述openstack的第一用户信息包括:Optionally, said reading the first user information of said openstack includes:

遍历所述云平台的openstack类型的用户信息;Traversing the user information of the openstack type of the cloud platform;

根据每一个openstack类型的用户信息的底层身份标识ID查找在所述openstack环境对应的用户;Find the user corresponding to the openstack environment according to the underlying identity ID of each openstack type user information;

如果在所述openstack环境未查找到对应的用户,则将所述云平台中该用户的状态修改为已删除;如果在所述openstack环境查找到了对应的用户,则获取该对应的用户的第一用户信息。If the corresponding user is not found in the openstack environment, then the status of the user in the cloud platform is modified to deleted; if the corresponding user is found in the openstack environment, then the corresponding user's first ID is obtained User Info.

可选地,在执行用户信息的数据同步之前,所述方法还包括:Optionally, before performing data synchronization of user information, the method further includes:

查询用户和openstack项目的关联关系,如果所述关联关系发生了变化,则在所述云平台中修改关联关系,以保持关联关系的一致性。Query the association relationship between the user and the openstack project, and if the association relationship changes, modify the association relationship in the cloud platform to maintain the consistency of the association relationship.

可选地,所述同步策略还包括:Optionally, the synchronization strategy also includes:

对于所述openstack底层新增的用户,直接将所述新增用户的用户信息同步到所述云平台中。For the newly added user at the bottom of the openstack, the user information of the newly added user is directly synchronized to the cloud platform.

本发明实施例中,通过将openstack用户同步到云平台中的方法,在云平台中进行统一管理,可以丰富openstack的用户管理。In the embodiment of the present invention, through the method of synchronizing openstack users to the cloud platform, unified management is performed on the cloud platform, which can enrich the user management of openstack.

可选地,通过手动或定时任务自动执行同步策略,通过特定算法实现openstack环境和云平台中用户信息的同步。Optionally, the synchronization strategy is automatically executed through manual or scheduled tasks, and the synchronization of user information in the openstack environment and the cloud platform is realized through a specific algorithm.

具体地,主要包括如下几个步骤:Specifically, it mainly includes the following steps:

步骤一:遍历云平台的openstack类型的用户数据;Step 1: traverse the user data of the openstack type of the cloud platform;

步骤二:对每一个用户,根据其底层ID查找在openstack环境对应的用户;Step 2: For each user, find the corresponding user in the openstack environment according to its underlying ID;

步骤三:如果在openstack查不到,表示底层已经删除,则将云平台中该用户的状态修改为已删除;Step 3: If it cannot be found in openstack, it means that the bottom layer has been deleted, then change the status of the user in the cloud platform to deleted;

步骤四:如果在openstack查到了该用户,判断openstack中用户的各个属性值和云平台中是否相同;Step 4: If the user is found in openstack, determine whether each attribute value of the user in openstack is the same as that in the cloud platform;

步骤五:如果不同,则以openstack为基准,修改云平台的用户属性;如果相同,则不做修改,减少数据库的写次数;Step 5: If they are different, modify the user attributes of the cloud platform based on openstack; if they are the same, do not make modifications to reduce the number of database writes;

步骤六:遍历云平台下的所有项目,同上述步骤一样,查找openstack的对应项目中的用户,如果底层openstack项目不存在,则在云平台中将此项目设置为禁用。Step 6: Traversing all the projects under the cloud platform, as in the above steps, find the users in the corresponding project of openstack, if the underlying openstack project does not exist, set this project to disabled in the cloud platform.

步骤七:查询用户和项目的关联关系,如果底层关联关系发生了变化,则需要在云平台中修改关联关系,保持关联关系的一致性。Step 7: Query the relationship between users and projects. If the underlying relationship changes, you need to modify the relationship in the cloud platform to maintain the consistency of the relationship.

步骤八:转到第二步,循环操作,直到完成所有用户信息的同步。Step 8: Turn to the second step and repeat the operation until the synchronization of all user information is completed.

步骤九:对于openstack底层新增的用户,可以直接将信息同步到云平台中。Step 9: For the newly added users at the bottom of openstack, the information can be directly synchronized to the cloud platform.

本发明实施例的技术关键点是:将openstack用户纳入到云平台系统中,并且通过特定算法,基于底层ID实现openstack环境和云平台中用户信息的同步,实现云平台对openstack用户的统一管理。The technical key point of the embodiment of the present invention is: incorporate openstack users into the cloud platform system, and realize the synchronization of the openstack environment and user information in the cloud platform based on the underlying ID through a specific algorithm, and realize the unified management of the openstack users by the cloud platform.

本发明实施例所应用的产品如用于InCloud Manager,实现与openstack的用户管理对接,丰富了用户管理功能。For example, the product applied in the embodiment of the present invention is used in InCloud Manager to realize the connection with the user management of openstack, which enriches the user management function.

图2为本发明实施例云平台用户的统一管理装置的结构图,如图2所示,本发明实施例另一方面提供的一种云平台用户的统一管理装置,包括:FIG. 2 is a structural diagram of a unified management device for cloud platform users in an embodiment of the present invention. As shown in FIG. 2 , a unified management device for cloud platform users provided by an embodiment of the present invention includes:

同步模块201,用于在云平台根据预先设置的定时任务和同步策略,每隔预定时间执行用户信息的数据同步;其中,所述定时任务是使用所述云平台的任务管理功能设置的,所述用户信息包括云计算管理平台openstack和所述云平台的用户信息。The synchronization module 201 is configured to perform data synchronization of user information at predetermined intervals on the cloud platform according to a preset timing task and synchronization strategy; wherein, the timing task is set using the task management function of the cloud platform, so The user information includes cloud computing management platform openstack and user information of the cloud platform.

可选地,所述同步策略包括:Optionally, the synchronization strategy includes:

读取所述openstack的第一用户信息;Read the first user information of the openstack;

将所述第一用户信息与所述云平台中存储的的第二用户信息对比;comparing the first user information with the second user information stored in the cloud platform;

如果所述第一用户信息与所述第二用户信息相同,则不作处理;如果所述第一用户信息与所述第二用户信息不相同,则以所述openstack为基准执行所述用户信息的数据同步,将不一致的数据同步到所述云平台中。If the first user information is the same as the second user information, do not process; if the first user information is different from the second user information, perform the user information based on the openstack Data synchronization, synchronizing inconsistent data to the cloud platform.

可选地,所述用户信息包括:基本信息和项目信息。Optionally, the user information includes: basic information and item information.

可选地,所述装置还包括:Optionally, the device also includes:

构造模块202,用于所述云平台和所述openstack平台的关联关系。The construction module 202 is used for the association relationship between the cloud platform and the openstack platform.

可选地,所述装置还用于:Optionally, the device is also used for:

通过手动同步方式执行所述用户信息的数据同步。The data synchronization of the user information is performed by manual synchronization.

可选地,所述装置还用于:Optionally, the device is also used for:

遍历所述云平台的openstack类型的用户信息;Traversing the user information of the openstack type of the cloud platform;

根据每一个openstack类型的用户信息的底层身份标识ID查找在所述openstack环境对应的用户;Find the user corresponding to the openstack environment according to the underlying identity ID of each openstack type user information;

如果在所述openstack环境未查找到对应的用户,则将所述云平台中该用户的状态修改为已删除;如果在所述openstack环境查找到了对应的用户,则获取该对应的用户的第一用户信息。If the corresponding user is not found in the openstack environment, then the status of the user in the cloud platform is modified to deleted; if the corresponding user is found in the openstack environment, then the corresponding user's first ID is obtained User Info.

可选地,所述装置还用于:Optionally, the device is also used for:

查询用户和openstack项目的关联关系,如果所述关联关系发生了变化,则在所述云平台中修改关联关系,以保持关联关系的一致性。Query the association relationship between the user and the openstack project, and if the association relationship changes, modify the association relationship in the cloud platform to maintain the consistency of the association relationship.

可选地,所述同步策略还包括:Optionally, the synchronization strategy also includes:

对于所述openstack底层新增的用户,直接将所述新增用户的用户信息同步到所述云平台中。For the newly added user at the bottom of the openstack, the user information of the newly added user is directly synchronized to the cloud platform.

本发明实施例通过在云平台根据预先设置的定时任务和同步策略,每隔预定时间执行用户信息的数据同步;其中,所述定时任务是使用所述云平台的任务管理功能设置的,所述用户信息包括云计算管理平台openstack和所述云平台的用户信息。本发明实施例可以将openstack中的用户信息同步到云平台中,在云平台中进行统一管理。In the embodiment of the present invention, data synchronization of user information is performed at predetermined intervals on the cloud platform according to a preset timing task and synchronization strategy; wherein, the timing task is set using the task management function of the cloud platform, and the The user information includes the cloud computing management platform openstack and the user information of the cloud platform. The embodiment of the present invention can synchronize the user information in the openstack to the cloud platform, and perform unified management on the cloud platform.

虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the embodiments disclosed in the present invention are as above, the described content is only an embodiment adopted for understanding the present invention, and is not intended to limit the present invention. Anyone skilled in the field of the present invention can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed by the present invention, but the patent protection scope of the present invention must still be The scope defined by the appended claims shall prevail.

Claims (10)

1.一种云平台用户的统一管理方法,其特征在于,所述方法包括:1. A unified management method for cloud platform users, characterized in that the method comprises: 在云平台根据预先设置的定时任务和同步策略,每隔预定时间执行用户信息的数据同步;其中,所述定时任务是使用所述云平台的任务管理功能设置的,所述用户信息包括云计算管理平台openstack和所述云平台的用户信息。On the cloud platform, according to the preset timing tasks and synchronization strategies, the data synchronization of user information is performed every predetermined time; wherein, the timing tasks are set using the task management function of the cloud platform, and the user information includes cloud computing Management platform openstack and user information of the cloud platform. 2.根据权利要求1所述的云平台用户的统一管理方法,其特征在于,所述同步策略包括:2. The unified management method of cloud platform user according to claim 1, is characterized in that, described synchronization policy comprises: 读取所述openstack的第一用户信息;Read the first user information of the openstack; 将所述第一用户信息与所述云平台中存储的的第二用户信息对比;comparing the first user information with the second user information stored in the cloud platform; 如果所述第一用户信息与所述第二用户信息相同,则不作处理;如果所述第一用户信息与所述第二用户信息不相同,则以所述openstack为基准执行所述用户信息的数据同步,将不一致的数据同步到所述云平台中。If the first user information is the same as the second user information, do not process; if the first user information is different from the second user information, perform the user information based on the openstack Data synchronization, synchronizing inconsistent data to the cloud platform. 3.根据权利要求1所述的云平台用户的统一管理方法,其特征在于,所述用户信息包括:基本信息和项目信息。3. The method for unified management of cloud platform users according to claim 1, wherein the user information includes: basic information and project information. 4.根据权利要求3所述的云平台用户的统一管理方法,其特征在于,在执行用户信息的数据同步之前,所述方法还包括:4. the unified management method of cloud platform user according to claim 3, is characterized in that, before performing the data synchronization of user information, described method also comprises: 构造所述云平台和所述openstack平台的关联关系。An association relationship between the cloud platform and the openstack platform is constructed. 5.根据权利要求1所述的云平台用户的统一管理方法,其特征在于,还包括:5. The unified management method of cloud platform user according to claim 1, is characterized in that, also comprises: 通过手动同步方式执行所述用户信息的数据同步。The data synchronization of the user information is performed by manual synchronization. 6.根据权利要求2所述的云平台用户的统一管理方法,其特征在于,所述读取所述openstack的第一用户信息包括:6. the unified management method of cloud platform user according to claim 2, is characterized in that, described reading the first user information of described openstack comprises: 遍历所述云平台的openstack类型的用户信息;Traversing the user information of the openstack type of the cloud platform; 根据每一个openstack类型的用户信息的底层身份标识ID查找在所述openstack环境对应的用户;Find the user corresponding to the openstack environment according to the underlying identity ID of each openstack type user information; 如果在所述openstack环境未查找到对应的用户,则将所述云平台中该用户的状态修改为已删除;如果在所述openstack环境查找到了对应的用户,则获取该对应的用户的第一用户信息。If the corresponding user is not found in the openstack environment, then the status of the user in the cloud platform is modified to deleted; if the corresponding user is found in the openstack environment, then the corresponding user's first ID User Info. 7.根据权利要求1所述的云平台用户的统一管理方法,其特征在于,在执行用户信息的数据同步之前,所述方法还包括:7. The unified management method of cloud platform users according to claim 1, characterized in that, before performing data synchronization of user information, said method also includes: 查询用户和openstack项目的关联关系,如果所述关联关系发生了变化,则在所述云平台中修改关联关系,以保持关联关系的一致性。Query the association relationship between the user and the openstack project, and if the association relationship changes, modify the association relationship in the cloud platform to maintain the consistency of the association relationship. 8.根据权利要求2所述的云平台用户的统一管理方法,其特征在于,所述同步策略还包括:8. The unified management method of cloud platform user according to claim 2, is characterized in that, described synchronization policy also comprises: 对于所述openstack底层新增的用户,直接将所述新增用户的用户信息同步到所述云平台中。For the newly added user at the bottom of the openstack, the user information of the newly added user is directly synchronized to the cloud platform. 9.一种云平台用户的统一管理装置,其特征在于,包括:9. A unified management device for cloud platform users, characterized in that it comprises: 同步模块,用于在云平台根据预先设置的定时任务和同步策略,每隔预定时间执行用户信息的数据同步;其中,所述定时任务是使用所述云平台的任务管理功能设置的,所述用户信息包括云计算管理平台openstack和所述云平台的用户信息。The synchronization module is used to perform data synchronization of user information at predetermined intervals on the cloud platform according to a preset timing task and synchronization strategy; wherein, the timing task is set using the task management function of the cloud platform, and the The user information includes the cloud computing management platform openstack and the user information of the cloud platform. 10.根据权利要求9所述的云平台用户的统一管理装置,其特征在于,所述同步策略包括:10. The unified management device of cloud platform users according to claim 9, wherein the synchronization strategy comprises: 读取所述openstack的第一用户信息;Read the first user information of the openstack; 将所述第一用户信息与所述云平台中存储的的第二用户信息对比;comparing the first user information with the second user information stored in the cloud platform; 如果所述第一用户信息与所述第二用户信息相同,则不作处理;如果所述第一用户信息与所述第二用户信息不相同,则以所述openstack为基准执行所述用户信息的数据同步,将不一致的数据同步到所述云平台中。If the first user information is the same as the second user information, do not process; if the first user information is different from the second user information, perform the user information based on the openstack Data synchronization, synchronizing inconsistent data to the cloud platform.
CN201711134918.5A 2017-11-16 2017-11-16 A kind of Explore of Unified Management Ideas and device of cloud platform user Pending CN107819863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711134918.5A CN107819863A (en) 2017-11-16 2017-11-16 A kind of Explore of Unified Management Ideas and device of cloud platform user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711134918.5A CN107819863A (en) 2017-11-16 2017-11-16 A kind of Explore of Unified Management Ideas and device of cloud platform user

Publications (1)

Publication Number Publication Date
CN107819863A true CN107819863A (en) 2018-03-20

Family

ID=61609602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711134918.5A Pending CN107819863A (en) 2017-11-16 2017-11-16 A kind of Explore of Unified Management Ideas and device of cloud platform user

Country Status (1)

Country Link
CN (1) CN107819863A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769049A (en) * 2018-06-08 2018-11-06 郑州云海信息技术有限公司 A kind of method and server synchronizing user right to openstack
CN109067756A (en) * 2018-08-20 2018-12-21 国云科技股份有限公司 User synchronization and authority control method suitable for multi-cloud management
CN110851512A (en) * 2019-10-10 2020-02-28 上海易点时空网络有限公司 Data configuration method and device for open source framework
CN111083160A (en) * 2019-12-27 2020-04-28 杭州迪普科技股份有限公司 Resource information recovery method and device
CN114257590A (en) * 2021-12-10 2022-03-29 中信银行股份有限公司 Cloud platform user information synchronization method and system
CN115834600A (en) * 2022-11-03 2023-03-21 中国烟草总公司贵州省公司 Multi-cloud nanotube data synchronization method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077070A (en) * 2012-12-31 2013-05-01 无锡城市云计算中心有限公司 Cloud computing management system and management method for cloud computing systems
US20130290234A1 (en) * 2012-02-02 2013-10-31 Visa International Service Association Intelligent Consumer Service Terminal Apparatuses, Methods and Systems
CN105677384A (en) * 2015-12-28 2016-06-15 上海爱数信息技术股份有限公司 System supporting information synchronization of organizations and users between different application systems
WO2016106360A1 (en) * 2014-12-22 2016-06-30 Hernandez-Mondragon Edwin A Method, system, and apparatus for multimedia content delivery to cable tv and satellite operators
CN107197042A (en) * 2017-07-04 2017-09-22 郑州云海信息技术有限公司 A kind of resource synchronization method and device
CN107249050A (en) * 2017-08-14 2017-10-13 郑州云海信息技术有限公司 The management method and device of resource in cloud platform
CN107292590A (en) * 2017-07-11 2017-10-24 郑州云海信息技术有限公司 A kind of method and device based on cloud management platform construction business approval flow

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130290234A1 (en) * 2012-02-02 2013-10-31 Visa International Service Association Intelligent Consumer Service Terminal Apparatuses, Methods and Systems
CN103077070A (en) * 2012-12-31 2013-05-01 无锡城市云计算中心有限公司 Cloud computing management system and management method for cloud computing systems
WO2016106360A1 (en) * 2014-12-22 2016-06-30 Hernandez-Mondragon Edwin A Method, system, and apparatus for multimedia content delivery to cable tv and satellite operators
CN105677384A (en) * 2015-12-28 2016-06-15 上海爱数信息技术股份有限公司 System supporting information synchronization of organizations and users between different application systems
CN107197042A (en) * 2017-07-04 2017-09-22 郑州云海信息技术有限公司 A kind of resource synchronization method and device
CN107292590A (en) * 2017-07-11 2017-10-24 郑州云海信息技术有限公司 A kind of method and device based on cloud management platform construction business approval flow
CN107249050A (en) * 2017-08-14 2017-10-13 郑州云海信息技术有限公司 The management method and device of resource in cloud platform

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769049A (en) * 2018-06-08 2018-11-06 郑州云海信息技术有限公司 A kind of method and server synchronizing user right to openstack
CN109067756A (en) * 2018-08-20 2018-12-21 国云科技股份有限公司 User synchronization and authority control method suitable for multi-cloud management
CN110851512A (en) * 2019-10-10 2020-02-28 上海易点时空网络有限公司 Data configuration method and device for open source framework
CN110851512B (en) * 2019-10-10 2022-07-12 上海易点时空网络有限公司 Data configuration method and device for open source framework
CN111083160A (en) * 2019-12-27 2020-04-28 杭州迪普科技股份有限公司 Resource information recovery method and device
CN114257590A (en) * 2021-12-10 2022-03-29 中信银行股份有限公司 Cloud platform user information synchronization method and system
CN115834600A (en) * 2022-11-03 2023-03-21 中国烟草总公司贵州省公司 Multi-cloud nanotube data synchronization method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107819863A (en) A kind of Explore of Unified Management Ideas and device of cloud platform user
US11086685B1 (en) Deployment of virtual computing resources with repeatable configuration as a resource set
US9195854B2 (en) System and method for controlling the on and off state of features at runtime
WO2020062131A1 (en) Container cloud management system based on blockchain technology
EP2715971B1 (en) Automating cloud service reconnections
WO2019109518A1 (en) Data list uploading method and terminal thereof
WO2017162032A1 (en) Method and device for executing data recovery operation
CN112632527B (en) An API testing method and system for service open platform
CN109766349A (en) The anti-weighing method of task, device, computer equipment and storage medium
CN105164660A (en) Cloud based service design inheritance
CN117632395A (en) Workflow processing methods, devices, equipment, storage media and program products
CN107656705A (en) A kind of computer-readable storage medium and a kind of data migration method, apparatus and system
CN109032753A (en) A kind of isomery virtual hard disk trustship method, system, storage medium and Nova platform
CN107783820A (en) A method for setting a scheduled operation task of a cloud platform virtual machine
CN103530178A (en) Screen locking method and device of Android system intelligent device
CN110414257A (en) A data access method and server
CN105787300A (en) Method and system for controlling use of software
CN109614271A (en) Control method, device, device and storage medium for data consistency of multiple clusters
CN111858037A (en) A service orchestration method, device, device and storage medium for a physical machine
CN107197042B (en) Resource synchronization method and device
WO2020134930A1 (en) Method and device employing blockchain to process validity of digital asset
CN108769049A (en) A kind of method and server synchronizing user right to openstack
CN105207799A (en) Batch command executing method and device
CN108052286A (en) A kind of method, apparatus and equipment for managing heterogeneous storage devices
CN107943441A (en) A kind of multiwindow method of data synchronization and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180320