Moving django data between vendors

The out of the box tooling makes this pretty easy, just a few commands to get the data to a suitable serialized format, and one more to bring it into the new target.

In order to prep for the new database, I created another db definition in my settings.py file for default, and updated the existing database to ‘old’ for the migration.

DATABASES = {
    'old': {
        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': '/home/user/djangoapps/vl4rl/vl4rl/db',                      # Or path to database file if using sqlite3.
        'USER': '',                      # Not used with sqlite3.
        'PASSWORD': '',                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
    },
    'default' : {
        'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'user_vl4rl',                      # Or path to database file if using sqlite3.
        'USER': 'user_vl4rlu',                      # Not used with sqlite3.
        'PASSWORD': '***',                  # Not used with sqlite3.
        'HOST': 'localhost',                      # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '5432',                      # Set to empty string for default. Not used with sqlite3.
    }
}

Export:

./manage.py dumpdata --indent 4 --exclude auth --database=old > vl4rl.20120519.json

Import:

./manage.py syncdb
./manage.py loaddata vl4rl.20120519.json

Reference:
** http://yuji.wordpress.com/2008/08/08/django-easily-save-your-model-instances-with-dumpdata-and-loaddata/

Monitoring the performance of your IBM Jazz servers

One helpful url for you to get a huge amount of data is the ICounterContentService service.

https://<server>:<port>/rtc/service/com.ibm.team.repository.service.internal.counters.ICounterContentService/

More to come on actually making sense of the data…

 

Setting the DOORS default browser

For some reason the default browser is not taken from the OS and it is buried in DOORS configuration.

Having searched for this a few times, I figured I put it out there.

Tools > Options
Settings
Web Browser

Reference:

http://publib.boulder.ibm.com/infocenter/rsdp/v1r0m0/index.jsp?topic=/com.ibm.help.download.doors.doc/pdf92/ratlDOORS_9-2-0-3_Known_Problems.htm

Silent installation of IBM Installation Manager

The old chicken and egg problem, when you are in a Unix/Linux environment and do not have access to X how can we get our software installed that is bundled with a graphical installer?

IM actually makes this pretty easy on you, you have a few options the first is very straight forward and comes with the installation files.


[virtuser@dsl IM-1.5]$ sudo ./install --launcher.ini silent-install.ini
ERROR: You must use "-acceptLicense" command line option to accept the license agreements for package IBM® Installation Manager.
[virtuser@dsl IM-1.5]$ sudo ./install --launcher.ini silent-install.ini -acceptLicense
Installed com.ibm.cic.agent_1.5.0.20110909_1200 to the /opt/IBM/InstallationManager/eclipse directory.

Additionally you can use the console mode feature of installation Manager.

http://publib.boulder.ibm.com/infocenter/install/v1r5/topic/com.ibm.cic.agent.console.doc/topics/t_console_install_im.html


[virtuser@dsl IM-1.5]$ sudo ./installc -c
ERROR: Installation Manager 1.5.0 (internal version: 1.5.0.20110909_1200) is already installed at location "/opt/IBM/InstallationManager/eclipse" and is using "/var/ibm/InstallationManager" for its data location. Use the installed Installation Manager.
00:00.50 ERROR [main] com.ibm.cic.agent.internal.application.HeadlessApplication run
Installation Manager 1.5.0 (internal version: 1.5.0.20110909_1200) is already installed at location "/opt/IBM/InstallationManager/eclipse" and is using "/var/ibm/InstallationManager" for its data location. Use the installed Installation Manager.

Oh yeah I just installed it… I’ll have to revisit this when next time I do a fresh installation.

Installing git from source on RHEL 5.8

No big thing just trying to install git since it is not in the default corporate yum repositories.

First problem it fails missing zlib.h so go grab your zlib-devel package.

The next one was more subtle, it configures and makes happily enough, but when you go to use it… bang!


[virtuser@sss01 ~]$ git clone https://sgwilbur@github.com/sgwilbur/database-scripts.git
Cloning into 'database-scripts'...
fatal: Unable to find remote helper for 'https'

huh ?

A bit of google magic, even though I have curl as required I did not have curl-devel… sigh

Install curl-devel and you should be ready to configure, make, sudo make install again with a working git client!