官术网_书友最值得收藏!

Know your version

As of the Liberty release of OpenStack, the identity service finds itself in transition. The service supports two API versions: v2 and v3. The v2 version of the API is deprecated, but may still be found in many OpenStack deployments. Recent releases of OpenStack are configured to serve both the v2 and v3 versions of the Identity API. This can be confirmed by examining the keystone-paste.ini configuration file.

In this file, you will find configurations for two composite apps: main and admin. As demonstrated in the preceding example, each app has a setting for /v2.0 and /v3. With this configuration, this deployment will serve a request to the v2 or v3 Identity API. Here, the command-line clients transition from inpidual clients per project to a unified OpenStack client that works across projects. The keystone command-line client supports v2 of the Identity API. The newer and preferred OpenStack client supports v2 and v3 of the Identity API.

The two composite apps in the preceding configuration are used to serve two different Keystone APIs: the public API and the admin API. Historically, the admin API was used to serve admin-level requests, such as adding a tenant or adding a user. The functionality of the admin API is small and focused. The public API is responsible for serving all other requests.

With v3 of the Identity API, the separation between the admin functionality and public functionality is handled within a single API. You will notice in the preceding configuration that the /v3 value is api_v3 for both the main composite app and the admin composite app.

When Keystone is operating properly, it provides two APIs: the Service API and the Administration API. The Service API runs on port 5000 and the Admin API runs on port 35357. In the OpenStack Juno release and earlier, the common way of running these APIs was via an Eventlet-based process. In the Kilo release and those thereafter, the recommended method to run the Keystone APIs is via a WSGI server. We'll take a look at how to troubleshoot each of these methods in the following sections.

主站蜘蛛池模板: 祥云县| 栾川县| 葫芦岛市| 花莲市| 淮安市| 开化县| 德安县| 卫辉市| 桐乡市| 望谟县| 山东省| 兰州市| 大冶市| 南澳县| 义马市| 闵行区| 敦化市| 漳州市| 郑州市| 大洼县| 曲麻莱县| 东乡县| 盘锦市| 峨眉山市| 罗源县| 大厂| 抚顺县| 鹿邑县| 石河子市| 长葛市| 阜阳市| 阿克苏市| 高碑店市| 肥城市| 青铜峡市| 高要市| 淳化县| 张家口市| 吉林省| 高平市| 朝阳县|