Hi Folks,
Currently Im running this appliance version manageiq-vsphere-gaprindashvili-7.ova … is there any doc to provide the upgrade to hammer-1 version!?
Regards
Carlos
Hi Folks,
Currently Im running this appliance version manageiq-vsphere-gaprindashvili-7.ova … is there any doc to provide the upgrade to hammer-1 version!?
Regards
Carlos
Hi folks, any tip about it!?
Best regards,
Carlos
is there any doc to provide the upgrade
Not as far as I’m aware.
I’m seeing 2 possible ways:
db:migrate
rake task aftervmdb; git pull origin/hammer; bundle update
)
bin/update
gets run, which involves updating assets, and may need more disk space than availableAgain, I’m aware of no docs for this, so, this is just what I’d try to do,
if this doesn’t help, I’m sorry :).
Hi @himdel.
Thank you by your tips.
I tried do the DB Migration process.
After restore database from gaprindashvili to hammer appliance and run db:migrate
rake task
I the evm service does not start with some errors (attached)evm.log (58.0 KB)
Do you have any tip about it? I did not found about this.
Best regards,
Carlos
Aah @ccesario,
yes, the relevant error is that
[ManageIQ::Password::PasswordError]: can not decrypt v2_key encrypted string
That’s because to use the old database, the new appliance needs to use the same encryption key as the old appliance.
The key should be located in certs/v2_key
, so it should be a simple matter of copying the old one to the new appliance.
Hi @himdel,
This it seems fixed
let me check if the service goes up now…
Regards,
Carlos
Hi @himdel,
I got success. It follow the steps:
On the old appliance:
stop the service:
systemctl stop evmserverd
dump the database
pg_dump -Fc vmdb_production > production.dump
Copy the dump file to new appliance
scp production.dump root@ip_of_new_appliance:/root/
On the new appliance:
stop the service:
systemctl stop evmserverd
drop current database
dropdb vmdb_production
create new database
createdb vmdb_production
restore database from dump
pg_restore -d vmdb_production "/root/production.dump"
change to directory /var/www/miq/vmdb
bin/rake db:migrate
bundle exec ruby tools/fix_auth.rb -v -y
bundle exec ruby tools/fix_auth.rb -v -p smartvm -P smartvm -i smartvm
bundle exec ruby tools/fix_auth.rb -v -y
start the service:
systemctl start evmserverd
Looks good to me
(Except that by using fix_auth
you’re not preserving the passwords. If you wanted to, copying the key should work and fix_auth
should not be needed (I think.).)