sm: Upgrade form 3.0 2723 to 3.0.2.0 build 47 , provision fails with conflict of mysql root password
Bug #1589082 reported by
sundarkh
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Won't Fix
|
High
|
Nitish Krishna Kaveri |
Bug Description
sm: Upgrade form 3.0 2723 to 3.0.2.0 build 47 , provision fails with conflict of mysql root password
Multi interface setup up with 3.0 2723 kilo
Provision went fine and targets are fine
Upgraded to r 3.0.2.0 build 47, and issued provision
Provisiionng gets stuck with keytsone
Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid db connection mysql:/
Jun 3 16:15:03 nodec35 puppet-
This bug occurs with old params because in 3.0 mysql_root_password had default value as c0ntrail123 when not supplied by user. also keystone_ admin_password had default value as contrail123.
When these two are not supplied by user in 3.0 the defaults are taken. /github. com/Juniper/ contrail- puppet/ commit/ 22583e137b2759a 5460e1f9bb971bd 82e4b6346e# diff-b7d255442b 89e53b557c1dffc ec1c225L628
When upgrade happens, the defaults are now blank because these params are now mandatory (generated if not supplied).
https:/
For existing clusters, the workaround is to re-add the cluster params giving some password for the keys: mysql_root_ password, keystone_ admin_password
If you are using new params format in 3.0, you need to rename the mysql root password as given in the change below, AFTER upgrade to 3.0.2:
https:/ /github. com/Juniper/ contrail- server- manager/ commit/ 4f106110cdb5906 fbdc30cbe6cf0f9 2c45b11abd# diff-ee4207be84 1e09bf780338cf2 9ce26d5L135
If you haven't supplied mysql root password in the new params cluster in 3.0, you need to add it to your cluster JSON as in the link above and re-add the cluster.