動作検証

動作検証

他のサービスをインストールする前に Identity サービスの動作を検証します。

注釈

これらのコマンドをコントローラーノードで実行します。

  1. セキュリティーのため、一時認証トークンメカニズムを無効化します。

    /usr/share/keystone/keystone-dist-paste.ini ファイルを編集して、[pipeline:public_api][pipeline:admin_api][pipeline:api_v3] セクションから admin_token_auth を削除します。

  1. 一時的な環境変数 OS_TOKENOS_URL を設定解除します。

    $ unset OS_TOKEN OS_URL
    
  2. admin ユーザーとして、認証トークンを要求します。

    $ openstack --os-auth-url http://controller:35357/v3 \
      --os-project-domain-id default --os-user-domain-id default \
      --os-project-name admin --os-username admin --os-auth-type password \
      token issue
    Password:
    +------------+----------------------------------+
    | Field      | Value                            |
    +------------+----------------------------------+
    | expires    | 2015-03-24T18:55:01Z             |
    | id         | ff5ed908984c4a4190f584d826d75fed |
    | project_id | cf12a15c5ea84b019aec3dc45580896b |
    | user_id    | 4d411f2291f34941b30eef9bd797505a |
    +------------+----------------------------------+
    

    注釈

    このコマンドでは admin ユーザーのパスワードを使用します。

  3. demo ユーザーとして、認証トークンを要求します。

    $ openstack --os-auth-url http://controller:5000/v3 \
      --os-project-domain-id default --os-user-domain-id default \
      --os-project-name demo --os-username demo --os-auth-type password \
      token issue
    Password:
    +------------+----------------------------------+
    | Field      | Value                            |
    +------------+----------------------------------+
    | expires    | 2014-10-10T12:51:33Z             |
    | id         | 1b87ceae9e08411ba4a16e4dada04802 |
    | project_id | 4aa51bb942be4dd0ac0555d7591f80a6 |
    | user_id    | 7004dfa0dda84d63aef81cf7f100af01 |
    +------------+----------------------------------+
    

    注釈

    このコマンドは、demo ユーザーのパスワードと API ポート 5000 番を使用します。このポートは、Identity サービスの通常の (非管理) API のみにアクセスできます。

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

Search