Skip to content

Instantly share code, notes, and snippets.

@mandeepbal
Last active August 29, 2015 14:11
Show Gist options
  • Save mandeepbal/21b775d3340554f3e161 to your computer and use it in GitHub Desktop.
Save mandeepbal/21b775d3340554f3e161 to your computer and use it in GitHub Desktop.
MIQ Server - Update ManageIQ Code

#How to Update the ManageIQ code on a MIQ Server

  1. Shutdown EVM process, postrgresql, and memcached
    su - miqbuilder
    
    
  2. Shutdown server
    shutdown now
    
    
  3. Take a snapshot of the server
  4. Start server
  5. Make sure the memcached and postgresql processes started properly
    service memcached start
    service postgresql start
    
    
  6. Sudo as miq-builder
    su - miqbuilder
    
    
  7. Do a git pull
    cd /opt/manageiq
    git pull
    
    
  8. Perform bundle install. Note: I had to run the following commmand, bundle update httpclient, before I could execute the block of code below. When you run the first bundle install it will tell you if you need to force update httpclient or any other gems. Update any additional gems if the bundle install complains.
    cd manageiq/vmdb
    bundle install --without qpid
    cd ..
    vmdb/bin/rake build:shared_objects
    cd vmdb
    bundle install --without qpid
    
    
  9. Update the database, it will only change DDL
    bin/rake db:migrate
    
    
  10. Start the evm process and check the status to make sure everything came up after about a minute.
    cd /opt/manageiq/vmdb/
    bin/rake evm:start
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment