Skip to content

mmi orr migration to xdomes vm

Carlos A. Rueda edited this page Mar 27, 2020 · 37 revisions

MMI ORR migration to xdomes VM

Completion planned for April 1, 2020.

2020-03-26 status

All core pieces are already set up on xdomes but with temporary URL-related settings so the system is visible at https://xdomes.tamucc.edu/mmisw.org/ont/ for testing purposes.

NOTE: Limited VPN access may cause extra delays with this task.

Cutover steps


  • Set virtual host on xdomes for mmisw.org (Felimon / TAMUCC IT)

    What's basically needed is something like the following:

    <VirtualHost mmisw.org:443>
        DocumentRoot "/var/www/html/mmisw.org"
        ProxyPass        /ont    http://localhost:39090/ont
        ProxyPassReverse /ont    http://localhost:39090/ont
        ProxyPass        /sparql http://localhost:30035/repositories/mmiorr
        ProxyPassReverse /sparql http://localhost:30035/repositories/mmiorr
        Alias /ontapi    /var/www/html/mmisw.org/ontapi
        Alias /orrdoc    /var/www/html/mmisw.org/orrdoc
        # Carlos can be take care of further adjustments here.
    
        # TAMUCC IT please take care of certificate-related settings, etc.
        # ...
    </VirtualHost>
    
  • Remove the temporary "MMI ORR" settings in /etc/httpd/conf.d/ssl-vhosts.conf.


  • Apply IP cutover with domain name provider (John)



Additional notes

Software installed

During the migration process:

  • installed java, required to run the CF watchdog program

    $ sudo yum install java-1.8.0-openjdk-devel
    
    $ java -version
    openjdk version "1.8.0_242"
    
  • installed mkdocs, required to generate MMI ORR documentation

    $ sudo yum install mkdocs
    
    $ mkdocs --version
    mkdocs, version 0.14.0
    

Migration scripts

  • export-mongo-collections.sh to export mongo data on previous mmisw machine:

    for c in organizations users ontologies; do
      echo "importing $c ..."
      mongoexport --collection=$c --db=orr-ont --out=$c.json
    done
    
  • import-mongo-collections.sh to import mongo data on xdomes machine:

    for c in organizations users ontologies; do
      echo "importing $c ..."
      mongoimport --collection=$c --db=orr-ont --mode=upsert --file=$c.json
    done
    

    Note that this script, along with the *.json files are first docker cp-ed to the mmisw-mongo container, where the script is then run.

mmisw.org directory

Clone this wiki locally