New Charm: IBM DB2
Bug #1477057 reported by
Suchitra Venugopal
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charms Collection |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi!
Here is the charm for IBM DB2(Layered) for review.
To test this charm, a license to DB2 is required (you will need to create a repo with the deb packages).
You need to get a DB2 license for at least DB2 version 10.5
Repo : https:/
And, its source code can be found in the below repository
Repo : https:/
The charm has been pushed into charm store as well
branch : cs:~ibmcharmers
Thanks
Changed in charms: | |
status: | New → In Progress |
description: | updated |
Changed in charms: | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in charms: | |
status: | Fix Committed → In Progress |
Changed in charms: | |
status: | In Progress → Fix Committed |
status: | Fix Committed → In Progress |
Changed in charms: | |
status: | In Progress → Fix Committed |
Changed in charms: | |
status: | Fix Committed → In Progress |
Changed in charms: | |
status: | In Progress → Fix Committed |
description: | updated |
description: | updated |
description: | updated |
Changed in charms: | |
status: | Fix Committed → Fix Released |
description: | updated |
To post a comment you must log in.
Thanks for the submission of the DB2 charm! I am excited about having the IBM database as an option in the charm store! Thank you for the work on this charm, here is my review.
The charm passes our proof tool with no messages! Thank you for taking the time to make sure the code passed our tooling. The charm also has tests that do more than deploy the unit! That is excellent work there! The code was clear and easy to read, that takes work and I thank you for that.
# README.md /jujucharms. com/u/ibmcharme rs/db2/ trusty
The markdown does not convert properly to HTML in several areas. There are several Open Source markdown readers available (apt-get install markdown) but you can also look at how the readme renders in the charm store by going to the URL: https:/
Some shell commands are only indented 3 spaces when they should be 4. Some shell commands are indented 4 spaces but do not have a blank line before, so they do not render as code blocks. To resolve this add a blank line before the indented commands, or use the alternate method to create code blocks with three back ticks:
```
apt-get install dpkg-dev apache2
```
Also one the db2-knowledgecenter link has too many open brackets “[“ so links to the knowledge center do not work. Please review the github markdown syntax https:/ /help.github. com/articles/ markdown- basics/ Review the entire readme so it renders to HTML nicely.
# start
The start hook should not error out if the software is not installed. The error state is more difficult for Juju users to resolve. It would be better to check if the commands exist before calling them so the hook does not error. Perhaps print a message that the command does not exist and exit 0.
Here is an example of the log: uniter. operation runhook.go:103 hook "start" failed: exit status 127
2015-08-07 16:06:47 INFO juju-log IBM DB2: Begin Start hook
2015-08-07 16:06:47 INFO start -su: db2: command not found
2015-08-07 16:06:47 INFO start Usage: grep [OPTION]... PATTERN [FILE]...
2015-08-07 16:06:47 INFO start Try 'grep --help' for more information.
2015-08-07 16:06:47 INFO start -su: db2start: command not found
2015-08-07 16:06:48 ERROR juju.worker.
The db2 command does not exist at this time.
# db2 get dbm cfg|grep -i svce|cut -d"=" -f2
No command 'db2' found, did you mean:
Command 'dba' from package 'wise' (universe)
Command 'dbd' from package 'netatalk' (universe)
Command 'sb2' from package 'scratchbox2' (universe)
Command 'd52' from package 'd52' (universe)
db2: command not found
# Performance suggestion
With Juju users can request larger instances from the cloud providers. You might want to include what kind of constraints work best for this version of DB2. The default AWS instance has the following constraints root-disk=8192M, and mem=1740M. Does DB2 run well with only 1.7GB of RAM? The install goes on the hard drive, and a full install of db2 charm took the default instance up to 6.5GB Used (according to df -h). That does not leave a lot of extra room for a database. Amazon also has storage available (140GB) on /mnt/. Perhaps you could configure the database or log files to be written to the mnt directory to avoid filling up th...