Ask Your Question

Revision history [back]

I had the same issue, however I managed to get around it with a (dirty) hack.

Seems like the "default" domain should be created by the db_sync script with a id of "default". I could not find a way of changing this ID afterwards, therefore I did a messy (but working) string replace in the database on the ID given by "openstack domain list", and changed all occurrences of it to default.

Seems to be working so far.


root@ctrl:/# 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: 
The request you have made requires authentication. (HTTP 401) (Request-ID: req-b0207a30-4c3e-4ab0-a778-f1c0a9c85197)


root@ctrl:/# openstack domain list
+----------------------------------+---------+---------+-------------+
| ID                               | Name    | Enabled | Description |
+----------------------------------+---------+---------+-------------+
| c915d8c5064a48f788593ba020752abe | default | True    |             |
+----------------------------------+---------+---------+-------------+
root@ctrl:/# mysqldump keystone > /tmp/keystone.backup
root@ctrl:/# systemctl stop keystone
root@ctrl:/# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 59
Server version: 10.0.25-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> drop database keystone;
Query OK, 37 rows affected (2.80 sec)

MariaDB [(none)]> create database keystone;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> Bye

root@ctrl:/# cat /tmp/keystone.backup | sed -e "s/c915d8c5064a48f788593ba020752abe/default/g" | mysql keystone
root@ctrl:/# systemctl start keystone
root@ctrl:/# openstack domain list
+---------+---------+---------+-------------+
| ID      | Name    | Enabled | Description |
+---------+---------+---------+-------------+
| default | default | True    |             |
+---------+---------+---------+-------------+
root@ctrl:/# 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    | 2016-09-02T00:00:30.795115Z      |
| id         | de093214940146fa8209651a92da2743 |
| project_id | ede0fba174a642ce814f73e91a9e9763 |
| user_id    | 5a26130415c94dc9b4c5aeae485fcbde |
+------------+----------------------------------+