db_sync fails if hostname has underscore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Origianlly filed in Bugzilla: https:/
Description of problem:
When hostname has "_" character like "rhos4_
Notice: /Stage[
In this case, I can see hostname has escaped by "\" as follows in mysql db.
# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 153
Server version: 5.1.71 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select host, user from mysql.user;
+------
| host | user |
+------
| % | cinder |
| % | glance |
| % | heat |
| % | keystone_admin |
| % | neutron |
| % | nova |
| 127.0.0.1 | cinder |
| 127.0.0.1 | glance |
| 127.0.0.1 | keystone_admin |
| 127.0.0.1 | neutron |
| 127.0.0.1 | nova |
| localhost | heat |
| localhost | root |
| rhos4\_
| rhos4\_
+------
15 rows in set (0.00 sec)
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
1. set FQDN with "_" character and run packstack.
2.
3.
Actual results:
In the keystone.pp, keystone-manage db_sync failed and got python backtrace.
Expected results:
Install should finish normally.
Additional info:
Attaching packstack log and sosreport.
Changed in keystone: | |
status: | New → Incomplete |
I wasn't aware that was valid http:// stackoverflow. com/questions/ 2180465/ can-someone- have-a- subdomain- with-an- underscore- in-it