Well that was a tricky one and I only got away from this painful issue with the help of Surendra from IBM support, thanks to him !

So what are the symptoms ?

1. you just tried to fresh install a new powerVC 1.4
2. for some reasons you want to restore the backup from an old powervc (say you want to do a clean install of your existing powerVC )
3. everything goes well, including the restore. no errors at all
4. but then , you can’t login into the gui. Actually you might not even get the login window!

-> this is because of a change in the driver naming in keystone, they shortened the driver names starting with 1.4.0, but the installer doesn’t check those lines in keystone config files and thus it doesn’t work anymore (it will be fixed in the next release of PowerVC, IBM said):

# grep -A2 "^\[catalog\]" keystone/keystone.conf
[catalog]
driver = keystone.catalog.backends.sql.Catalog

and

cat /etc/keystone/domains/keystone.Default.conf
[..]
[identity]
driver = powervc_keystone.backends.local.Identity

## Solution : shorten this out

Comment the driver line in the first file and change the second one to local:

# grep -A2 "^\[catalog\]" keystone/keystone.conf
[catalog]
#driver = keystone.catalog.backends.sql.Catalog

and

cat /etc/keystone/domains/keystone.Default.conf
[..]
[identity]
#driver = powervc_keystone.backends.local.Identity
driver = local

Restart powervc-services, and voilà, it’s fixed !!

# Extra issue : no servername defined in config files after the restore:

you should get this in a normal situation :

# cd /etc/httpd/conf.d/
# grep Listen *
keystone.conf:Listen 5000
keystone.conf:Listen 35357
powervc_bumblebee.conf:Listen powervc:5470
powervc_cinder.conf:Listen powervc:9000
powervc_clerk.conf:Listen powervc:8998
powervc_glance.conf:Listen powervc:9292
powervc_gnocchi.conf:Listen powervc:8041
powervc_neutron.conf:Listen powervc:9696
powervc_nova.conf:Listen powervc:8774
powervc_panko.conf:Listen powervc:8778
powervc_swift.conf:Listen powervc:8080
ssl.conf:Listen 443 https
ssl.conf_powervc.2018-08-01-162113:Listen 443 https
ttv-validation.conf:Listen powervc:8428

But in my case I found out to get this after the restore :

# cd /etc/httpd/conf.d/
# grep Listen *
keystone.conf:Listen 5000
keystone.conf:Listen 35357
powervc_bumblebee.conf:Listen :5470
powervc_cinder.conf:Listen :9000
powervc_clerk.conf:Listen powervc:8998
powervc_glance.conf:Listen powervc:9292
powervc_gnocchi.conf:Listen :8041
powervc_neutron.conf:Listen :9696
powervc_nova.conf:Listen :8774
powervc_panko.conf:Listen :8778
powervc_swift.conf:Listen :8080
ssl.conf:Listen 443 https
ssl.conf_powervc.2018-08-01-162113:Listen 443 https
ttv-validation.conf:Listen :8428

See? except for clerk and glance, all the servername entries are empty .

Fix : add your own ip/host entry in /etc/hosts BEFORE the install… seems to do the trick.
In my case I only had the loopback entries.

Share Button
PowerVC 1.3.3 backup impossible to restore on a fresh installed 1.4.X? welcome onboard 🙂
Taggé sur :

Laisser un commentaire