Upgrade to Darga


#1

Hey,

saw there is the new darga release marked as stable on the website ! Awesome ! ! !

Is it possible to upgrade vSphere Capablanca Image to the actual release ?

i tried out:

git fetch --all
git checkout darga
bundle install

there was an error fetching additional resources…

and

git pull origin darga

there was much merge conflicts…

Thanks for your help


Announcing the Beta Release of ManageIQ Fine
#2

no one ? Upgrades are rocketscience ?


#3

Hi @schmandforke, sorry for the delay in a response to your question.
I did try to find out if MIQ is upgradable from one release to the next,…however, this is not something that is supported at this time.


#4

Hey,

thanks for the reply ! why this is not supported, in my opinion it’s an major feature…
Otherwise we have to drop our databases in case of an upgrade… this is sad !


#5

@schmandforke Many things in the appliance changed between Capablanca and Darga releases, including version of PostgreSQL.

I am trying to find documentation to help you upgrade.


#6

@schmandforke we’ve finished verifying the following procedures to migrate a capablanca DB to darga:

Capablanca to Darga

  1. Backup the PostgreSQL Database on your Capablanca Appliance.
pg_dump --format custom --file ~/db_backup.cpgd vmdb_production --verbose

If the console output indicates that there are other connections active, then terminate postgresql, wait a few minutes, and restart the service. To terminate, type

service postgresql stop

To initiate,

 service postgresql start

Wait one minute for postgres to start, and then retry the backup process.

  1. Create a Darga Appliance - make sure that it has connectivity to your Capablanca Appliance.

  2. In the next set of commands, you will stop the MIQ Service, drop the default database, copy the backup and guid files from the Capablanca Appliance, recreate an empty database, and restore the Capablanca database to the Darga appliance. Substitute the IP address of your Capablanca Appliance as noted. Run the following commands on the Darga appliance:

systemctl stop evmserverd
dropdb vmdb_production
scp root@$ipofcapa_appliance:~/db_backup.cpgd ~/
scp root@$ipofcapa_appliance:/var/www/miq/vmdb/GUID /var/www/miq/vmdb/
createdb vmdb_production
pg_restore --dbname=vmdb_production ~/db_backup.cpgd --verbose
  1. After the restore is finished, you will need to rake the restored capablanca database to bring it up to the Darga level, stop the ManageIQ Service, update the ManageIQ Automate Domain, and start the ManageIQ Service. This may affect any custom automation workflows that you created. Be sure to test them thoroughly before putting them into production environments. Run the following commands on the Darga appliance:
vmdb
rake db:migrate
bin/rails r tools/purge_duplicate_rubyrep_triggers.rb
systemctl start evmserverd
rake evm:automate:reset
systemctl restart evmserverd
  1. Open the configuration screen, in command prompt, type:
appliance_console
  1. Press Enter until you are at the Advanced Setting menu.

  2. Select the option to Generate Custom Encryption Key (11).
    Follow the prompts to fetch the key from the Capablanca Appliance
    Follow the prompts for VMDB location.
    Use the same Region number as the Capablanca VMDB Appliance.

systemctl restart evmserverd
  1. Allow the appliance to start.

  2. Wait about 5 minutes until you can access the Web-based User Interface.

  3. Verify your database items have been migrated successfully.


Update from darga to euwe?
#7

awesome, i’ll try this asap and give send some feedback !

Thanks a lot !