)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"2e396ef8856068b99d6ba46103be4c3baa356e56","unresolved":false,"context_lines":[{"line_number":41,"context_line":"resolved. Hence, I moved the element 60-loopback-host from"},{"line_number":42,"context_line":"ubuntu-guest/post-install.d to ubuntu-guest/pre-install.d."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"Partialy Implements: blueprint db2-plugin-for-trove"},{"line_number":45,"context_line":"Change-Id: I1a349054a9f6a560a07f90e49bf24990365df49d"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"7a75e904_1a18ed83","line":44,"updated":"2015-03-21 08:59:10.000000000","message":"Needs a DocImpact","commit_id":"d03eb0c185371790a7ba0c5aae8df28b6347117a"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"b8ae98c3bfe921df7941494e9b938d729dd9ec60","unresolved":false,"context_lines":[{"line_number":23,"context_line":"Users will have to register first inorder to download the packages."},{"line_number":24,"context_line":"After downloading the packages, users can make it accessible to"},{"line_number":25,"context_line":"Trove for building guest images by:"},{"line_number":26,"context_line":"- storing it in a private repository and defining the variable"},{"line_number":27,"context_line":"  \u0027DATASTORE_PKG_LOCATION\u0027 to be the base url of the"},{"line_number":28,"context_line":"  private repository"},{"line_number":29,"context_line":"- storing it on the local filesystem in a directory accessible to"},{"line_number":30,"context_line":"  the DB2 DIB element and setting the \u0027DATASTORE_PKG_LOCATION\u0027 to"},{"line_number":31,"context_line":"  point to this directory."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"For example, assuming user downloads the DB2 package to"},{"line_number":34,"context_line":"\u0027/home/stack/db2\u0027 directory, run the commands in the following"},{"line_number":35,"context_line":"order to create a DB2 image:"},{"line_number":36,"context_line":"  - export DATASTORE_PKG_LOCATION\u003d\u0027/home/stack/db2\u0027"},{"line_number":37,"context_line":"  - ./redstack kick-start db2"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"In the 10-db2 element, while creating the DB2 server instance,it"},{"line_number":40,"context_line":"kept throwing an error saying that the hostname could not be"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"1a6ced46_90ee598a","line":37,"range":{"start_line":26,"start_character":0,"end_line":37,"end_character":29},"updated":"2015-03-23 16:09:14.000000000","message":"This would require setting two variables or using a hard-coded name.  See comment here: https://review.openstack.org/#/c/156802/12/scripts/redstack,cm\n\nYou could always use the std /path/to syntax, i.e.:\n\n - DATASTORE_PKG_LOCATION\u003d/path/to/db2/file ./redstack kick-start db2","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"ab3430bbd731a08c1b7f0bcdc913685e89b1eef0","unresolved":false,"context_lines":[{"line_number":34,"context_line":"\u0027/home/stack/db2\u0027 directory, run the commands in the following"},{"line_number":35,"context_line":"order to create a DB2 image:"},{"line_number":36,"context_line":"  - export DATASTORE_PKG_LOCATION\u003d\u0027/home/stack/db2\u0027"},{"line_number":37,"context_line":"  - ./redstack kick-start db2"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"In the 10-db2 element, while creating the DB2 server instance,it"},{"line_number":40,"context_line":"kept throwing an error saying that the hostname could not be"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"1a6ced46_3f59e9fe","line":37,"in_reply_to":"1a6ced46_90ee598a","updated":"2015-03-23 20:09:37.000000000","message":"Done","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"bdd43dfdfa2bb50896fde26c15575f642b7ffd49","unresolved":false,"context_lines":[{"line_number":32,"context_line":"For example, assuming user downloads the DB2 package to"},{"line_number":33,"context_line":"\u0027/home/stack/db2\u0027 directory, run the commands in the following"},{"line_number":34,"context_line":"order to create a DB2 image:"},{"line_number":35,"context_line":"  - DATASTORE_PKG_LOCATION\u003d\u0027/home/stack/db2/v10.5_linuxx64_expc.tar.gz\u0027"},{"line_number":36,"context_line":"  - ./redstack kick-start db2"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"In the 10-db2 element, while creating the DB2 server instance,it"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"1a6ced46_0ecddd31","line":35,"updated":"2015-03-23 21:55:02.000000000","message":"without the export, running the command on two lines won\u0027t work","commit_id":"3b00996704623036f4f7229f0c1658d04d029e5d"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"56e1b617ed23416a7b830645eea075fc6de4fef3","unresolved":false,"context_lines":[{"line_number":32,"context_line":"For example, assuming user downloads the DB2 package to"},{"line_number":33,"context_line":"\u0027/home/stack/db2\u0027 directory, run the commands in the following"},{"line_number":34,"context_line":"order to create a DB2 image:"},{"line_number":35,"context_line":"  - DATASTORE_PKG_LOCATION\u003d\u0027/home/stack/db2/v10.5_linuxx64_expc.tar.gz\u0027"},{"line_number":36,"context_line":"  - ./redstack kick-start db2"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"In the 10-db2 element, while creating the DB2 server instance,it"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"1a6ced46_5bddd06f","line":35,"in_reply_to":"1a6ced46_0ecddd31","updated":"2015-03-23 23:32:34.000000000","message":"Done, thanks Peter.","commit_id":"3b00996704623036f4f7229f0c1658d04d029e5d"}],"scripts/files/elements/ubuntu-db2/README.md":[{"author":{"_account_id":9782,"name":"Morgan Jones","email":"morgan@tesora.com","username":"vgnbkr"},"change_message_id":"2ae781825e7fa72761bc174f5544986beffa1b61","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":" The environment variables used are as follows:"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":" DATASTORE_PACKAGE_LOCATION - is the place where user stores the DB2"},{"line_number":27,"context_line":"                       Express-C package after registration. This can"},{"line_number":28,"context_line":"                       either be a base url to a private repository or"},{"line_number":29,"context_line":"                       the absolute path on a local filesystem where"}],"source_content_type":"text/x-gfm","patch_set":7,"id":"9a80dd14_a86e13fe","line":26,"updated":"2015-03-19 15:21:33.000000000","message":"Should this be DATASTORE_PKG_LOCATION?","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"2fd4169c3e139b5c2f6a28831fcc5fb8892ef821","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":" The environment variables used are as follows:"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":" DATASTORE_PACKAGE_LOCATION - is the place where user stores the DB2"},{"line_number":27,"context_line":"                       Express-C package after registration. This can"},{"line_number":28,"context_line":"                       either be a base url to a private repository or"},{"line_number":29,"context_line":"                       the absolute path on a local filesystem where"}],"source_content_type":"text/x-gfm","patch_set":7,"id":"9a80dd14_cb089c2f","line":26,"in_reply_to":"9a80dd14_a86e13fe","updated":"2015-03-19 20:32:08.000000000","message":"It should be as you suggested. I copy pasted the original doc from install.d to this place and missed the spelling change here. Thanks for catching it Morgan. Will make the changes in the next patchset.","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"2e396ef8856068b99d6ba46103be4c3baa356e56","unresolved":false,"context_lines":[{"line_number":5,"context_line":" and click on the link \"DB2 Express-C for Linux 64-bit\"."},{"line_number":6,"context_line":" New users can either get an IBM ID or click on the \"Proceed without an"},{"line_number":7,"context_line":" IBM ID\". User is provided with a registration form which needs to be"},{"line_number":8,"context_line":" completed inorder to proceed further to download the DB2 Express-C"},{"line_number":9,"context_line":" packages. After accepting the license agreement, user can download the"},{"line_number":10,"context_line":" the DB2 Express-C package (.tar.gz file)."},{"line_number":11,"context_line":""}],"source_content_type":"text/x-gfm","patch_set":9,"id":"7a75e904_3a1da974","line":8,"updated":"2015-03-21 08:59:10.000000000","message":"in order","commit_id":"d03eb0c185371790a7ba0c5aae8df28b6347117a"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"b8ae98c3bfe921df7941494e9b938d729dd9ec60","unresolved":false,"context_lines":[{"line_number":15,"context_line":"    variable DATASTORE_PKG_LOCATION with the base url to this private"},{"line_number":16,"context_line":"    repository (url must not include the package name)."},{"line_number":17,"context_line":"     e.g. export DATASTORE_PKG_LOCATION\u003d\"http://www.foo.com/pkgs/db2\""},{"line_number":18,"context_line":"  - download the package and place it in any directory on the local"},{"line_number":19,"context_line":"    filesystem that the trove-integration scripts can access. Set the"},{"line_number":20,"context_line":"    environment variable DATASTORE_PKG_LOCATION with the absolute path"},{"line_number":21,"context_line":"    of where the package is on the local file system."},{"line_number":22,"context_line":"     e.g. export DATASTORE_PKG_LOCATION\u003d\"/home/stack/db2\""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":" The environment variables used are as follows:"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":" DATASTORE_PKG_LOCATION - is the place where user stores the DB2"},{"line_number":27,"context_line":"             Express-C package after registration. This can either be a"},{"line_number":28,"context_line":"             base url to a private repository or the absolute path on a"},{"line_number":29,"context_line":"             local filesystem where the packages are downloaded."},{"line_number":30,"context_line":" DATASTORE_PKG_NAME - defines the name of the package to be downloaded."},{"line_number":31,"context_line":"             By default, the value of this variable is set to:"},{"line_number":32,"context_line":"             \u0027v10.5_linuxx64_expc.tar.gz\u0027."},{"line_number":33,"context_line":" DATASTORE_DOWNLOAD_OPTS - defines any wget options user wants to specify"},{"line_number":34,"context_line":"             like user,password, etc. This is an optional variable and is"},{"line_number":35,"context_line":"             needed only if specifying a private repository to download"}],"source_content_type":"text/x-gfm","patch_set":12,"id":"1a6ced46_d0e7f1e2","line":32,"range":{"start_line":18,"start_character":1,"end_line":32,"end_character":42},"updated":"2015-03-23 16:09:14.000000000","message":"See comment here: https://review.openstack.org/#/c/156802/12/scripts/redstack,cm","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"ab3430bbd731a08c1b7f0bcdc913685e89b1eef0","unresolved":false,"context_lines":[{"line_number":29,"context_line":"             local filesystem where the packages are downloaded."},{"line_number":30,"context_line":" DATASTORE_PKG_NAME - defines the name of the package to be downloaded."},{"line_number":31,"context_line":"             By default, the value of this variable is set to:"},{"line_number":32,"context_line":"             \u0027v10.5_linuxx64_expc.tar.gz\u0027."},{"line_number":33,"context_line":" DATASTORE_DOWNLOAD_OPTS - defines any wget options user wants to specify"},{"line_number":34,"context_line":"             like user,password, etc. This is an optional variable and is"},{"line_number":35,"context_line":"             needed only if specifying a private repository to download"}],"source_content_type":"text/x-gfm","patch_set":12,"id":"1a6ced46_0238569f","line":32,"in_reply_to":"1a6ced46_d0e7f1e2","updated":"2015-03-23 20:09:37.000000000","message":"Removed this variable.","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"}],"scripts/files/elements/ubuntu-db2/extra-data.d/20-copy-db2-pkgs":[{"author":{"_account_id":7806,"name":"Sushil Kumar","email":"skm.net@gmail.com","username":"sushilkm"},"change_message_id":"b0526c2c1678f51bf721785198ea524c870bc73b","unresolved":false,"context_lines":[{"line_number":16,"context_line":"# First check if the package is available for download in a private repository."},{"line_number":17,"context_line":"# If not, then check the default directory to see if packages are available"},{"line_number":18,"context_line":"# there."},{"line_number":19,"context_line":"if ! wget ${DATASTORE_DOWNLOAD_OPTS} ${DATASTORE_PKG_LOCATION}/${DATASTORE_PKG_NAME};"},{"line_number":20,"context_line":"   then"},{"line_number":21,"context_line":"      echo \"Could not find a private repository to download DB2-Express-C packages from.\""},{"line_number":22,"context_line":"      echo \"Trying the local filesystem.\""}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"9a80dd14_06138b01","line":19,"updated":"2015-03-19 16:50:23.000000000","message":"This will break when downloading because I do not see the value coming from anywhere to DATASTORE_DOWNLOAD_OPTS","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":5293,"name":"Nikhil","email":"SlickNik@gmail.com","username":"slicknik"},"change_message_id":"fcc40f5d504d0e81328f30d84fa5d1af28c113a8","unresolved":false,"context_lines":[{"line_number":16,"context_line":"# First check if the package is available for download in a private repository."},{"line_number":17,"context_line":"# If not, then check the default directory to see if packages are available"},{"line_number":18,"context_line":"# there."},{"line_number":19,"context_line":"if ! wget ${DATASTORE_DOWNLOAD_OPTS} ${DATASTORE_PKG_LOCATION}/${DATASTORE_PKG_NAME};"},{"line_number":20,"context_line":"   then"},{"line_number":21,"context_line":"      echo \"Could not find a private repository to download DB2-Express-C packages from.\""},{"line_number":22,"context_line":"      echo \"Trying the local filesystem.\""}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"9a80dd14_654efc39","line":19,"in_reply_to":"9a80dd14_06138b01","updated":"2015-03-19 17:21:22.000000000","message":"I think the idea here is that if the command fails the ! part of the statement gets invoked and the local files get used for install instead.","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"2fd4169c3e139b5c2f6a28831fcc5fb8892ef821","unresolved":false,"context_lines":[{"line_number":16,"context_line":"# First check if the package is available for download in a private repository."},{"line_number":17,"context_line":"# If not, then check the default directory to see if packages are available"},{"line_number":18,"context_line":"# there."},{"line_number":19,"context_line":"if ! wget ${DATASTORE_DOWNLOAD_OPTS} ${DATASTORE_PKG_LOCATION}/${DATASTORE_PKG_NAME};"},{"line_number":20,"context_line":"   then"},{"line_number":21,"context_line":"      echo \"Could not find a private repository to download DB2-Express-C packages from.\""},{"line_number":22,"context_line":"      echo \"Trying the local filesystem.\""}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"9a80dd14_9a17c3a2","line":19,"in_reply_to":"9a80dd14_452bb894","updated":"2015-03-19 20:32:08.000000000","message":"Sushil, there is more detail about how to use this variable in the README. DATASTORE_DOWNLOAD_OPTS is an optional variable to help with downloading packages from a private repository. Even if it is not set for a private repository, it should work coz the final command will look like this:\nwget http://foo.com/package\n\nand with the variable set, it would look like:\nwget --user\u003dfoo --password\u003dsecure http://foo.com/package","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":7806,"name":"Sushil Kumar","email":"skm.net@gmail.com","username":"sushilkm"},"change_message_id":"ca6a999bb29945256c8f0bede7a2746ded4842d1","unresolved":false,"context_lines":[{"line_number":16,"context_line":"# First check if the package is available for download in a private repository."},{"line_number":17,"context_line":"# If not, then check the default directory to see if packages are available"},{"line_number":18,"context_line":"# there."},{"line_number":19,"context_line":"if ! wget ${DATASTORE_DOWNLOAD_OPTS} ${DATASTORE_PKG_LOCATION}/${DATASTORE_PKG_NAME};"},{"line_number":20,"context_line":"   then"},{"line_number":21,"context_line":"      echo \"Could not find a private repository to download DB2-Express-C packages from.\""},{"line_number":22,"context_line":"      echo \"Trying the local filesystem.\""}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"9a80dd14_452bb894","line":19,"in_reply_to":"9a80dd14_654efc39","updated":"2015-03-19 17:34:45.000000000","message":"ok, what i thought was that there are no values here and how would it get some value because no exort were avialble.","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"2e396ef8856068b99d6ba46103be4c3baa356e56","unresolved":false,"context_lines":[{"line_number":9,"context_line":"#          DATASTORE_PKG_LOCATION"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"CURRENT_DIR\u003d$(pwd)"},{"line_number":12,"context_line":"DATASTORE_PKG_NAME\u003d\u0027v10.5_linuxx64_expc.tar.gz\u0027"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"[ -n \"${TMP_HOOKS_PATH}\" ] || die \"Temp hook path not set\""},{"line_number":15,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"7a75e904_5a126563","line":12,"updated":"2015-03-21 08:59:10.000000000","message":"Setting this in this way forces you to have to edit the script or coerce the downloaded file name to match.\n\nCould you instead set it to this if it isn\u0027t already set?","commit_id":"d03eb0c185371790a7ba0c5aae8df28b6347117a"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"b8ae98c3bfe921df7941494e9b938d729dd9ec60","unresolved":false,"context_lines":[{"line_number":9,"context_line":"#          DATASTORE_PKG_LOCATION"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"CURRENT_DIR\u003d$(pwd)"},{"line_number":12,"context_line":"DATASTORE_PKG_NAME\u003d${DATASTORE_PKG_NAME:-v10.5_linuxx64_expc.tar.gz}"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"[ -n \"${TMP_HOOKS_PATH}\" ] || die \"Temp hook path not set\""},{"line_number":15,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":12,"id":"1a6ced46_7ce539a7","line":12,"updated":"2015-03-23 16:09:14.000000000","message":"This will require setting two variables, which has been decided against.  See other comments.","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"ab3430bbd731a08c1b7f0bcdc913685e89b1eef0","unresolved":false,"context_lines":[{"line_number":9,"context_line":"#          DATASTORE_PKG_LOCATION"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"CURRENT_DIR\u003d$(pwd)"},{"line_number":12,"context_line":"DATASTORE_PKG_NAME\u003d${DATASTORE_PKG_NAME:-v10.5_linuxx64_expc.tar.gz}"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"[ -n \"${TMP_HOOKS_PATH}\" ] || die \"Temp hook path not set\""},{"line_number":15,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":12,"id":"1a6ced46_020696ce","line":12,"in_reply_to":"1a6ced46_7ce539a7","updated":"2015-03-23 20:09:37.000000000","message":"Removed DATASTORE_PKG_NAME","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"b8ae98c3bfe921df7941494e9b938d729dd9ec60","unresolved":false,"context_lines":[{"line_number":16,"context_line":"# First check if the package is available for download in a private repository."},{"line_number":17,"context_line":"# If not, then check the default directory to see if packages are available"},{"line_number":18,"context_line":"# there."},{"line_number":19,"context_line":"if ! wget ${DATASTORE_DOWNLOAD_OPTS} ${DATASTORE_PKG_LOCATION}/${DATASTORE_PKG_NAME};"},{"line_number":20,"context_line":"   then"},{"line_number":21,"context_line":"      echo \"Could not find a private repository to download DB2-Express-C packages from.\""},{"line_number":22,"context_line":"      echo \"Trying the local filesystem.\""}],"source_content_type":"application/x-shellscript","patch_set":12,"id":"1a6ced46_bc609136","line":19,"updated":"2015-03-23 16:09:14.000000000","message":"I think it would be better to check the file system first, which should be quick, instead of a more expensive wget call.  Also, the file could be directly downloaded into the TMP_HOOKS_PATH location, avoiding a copy right after","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"ab3430bbd731a08c1b7f0bcdc913685e89b1eef0","unresolved":false,"context_lines":[{"line_number":16,"context_line":"# First check if the package is available for download in a private repository."},{"line_number":17,"context_line":"# If not, then check the default directory to see if packages are available"},{"line_number":18,"context_line":"# there."},{"line_number":19,"context_line":"if ! wget ${DATASTORE_DOWNLOAD_OPTS} ${DATASTORE_PKG_LOCATION}/${DATASTORE_PKG_NAME};"},{"line_number":20,"context_line":"   then"},{"line_number":21,"context_line":"      echo \"Could not find a private repository to download DB2-Express-C packages from.\""},{"line_number":22,"context_line":"      echo \"Trying the local filesystem.\""}],"source_content_type":"application/x-shellscript","patch_set":12,"id":"1a6ced46_82e7e611","line":19,"in_reply_to":"1a6ced46_bc609136","updated":"2015-03-23 20:09:37.000000000","message":"Done. I also verified that both ways work. Using the wget -O command was able to directly download the file to the TMP_HOOKS_PATH. Thanks Peter.","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"b8ae98c3bfe921df7941494e9b938d729dd9ec60","unresolved":false,"context_lines":[{"line_number":32,"context_line":"   else"},{"line_number":33,"context_line":"     echo \"Downloading the DB2 Express-C package from the private repository\""},{"line_number":34,"context_line":"     dd if\u003d${CURRENT_DIR}/${DATASTORE_PKG_NAME} of\u003d${TMP_HOOKS_PATH}/db2.tar.gz"},{"line_number":35,"context_line":"fi"}],"source_content_type":"application/x-shellscript","patch_set":12,"id":"1a6ced46_3c7741d6","line":35,"updated":"2015-03-23 16:09:14.000000000","message":"Here\u0027s some sample code (caveat, I haven\u0027t run it yet!):\n\n    #!/bin/bash\n\n    set -e\n    set -o xtrace\n\n    # CONTEXT: HOST prior to IMAGE BUILD as SCRIPT USER\n    # PURPOSE: Download the DB2 Express-C v10.5 packages to a directory on the local filesystem or\n    #          to a private repository. The download location is specified using the env variable:\n    #          DATASTORE_PKG_LOCATION\n    #          Options for downloading the package from a local repository are specified by:\n    #          DATASTORE_DOWNLOAD_OPTS\n\n    DATASTORE_DOWNLOAD_OPTS\u003d${DATASTORE_DOWNLOAD_OPTS:-}\n    PKG_NAME\u003ddb2.tar.gz\n\n    [ -n \"${TMP_HOOKS_PATH}\" ] || die \"Temp hook path not set\"\n\n    # First check if the package is available on the local file system.\n    if [ -f \"${DATASTORE_PKG_LOCATION}\" ]; then\n        echo \"Found the DB2 Express-C package (${DATASTORE_PKG_LOCATION}).\"\n        dd if\u003d\"${DATASTORE_PKG_LOCATION}\" of\u003d\"${TMP_HOOKS_PATH}/${PKG_NAME}\"\n    # If not, then check if the package is available for download from a private repository.\n    elif wget ${DATASTORE_DOWNLOAD_OPTS} \"${DATASTORE_PKG_LOCATION}\" -O \"${TMP_HOOKS_PATH}/${PKG_NAME}\"; then\n        echo \"Downloaded the DB2-Express-C package locally from ${DATASTORE_PKG_LOCATION}.\"\n    else\n        echo \"Unable to find the DB2 package (DATASTORE_PKG_LOCATION\u003d\u0027${DATASTORE_PKG_LOCATION}\u0027).\"\n        echo \"Please register and download the DB2 Express-C package to a private repository\"\n        echo \"or local filesystem and set DATASTORE_PKG_LOCATION appropriately.\"\n        exit -1\n    fi","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"bdd43dfdfa2bb50896fde26c15575f642b7ffd49","unresolved":false,"context_lines":[{"line_number":8,"context_line":"#          to a private repository. The download location is specified using the env variable:"},{"line_number":9,"context_line":"#          DATASTORE_PKG_LOCATION"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"CURRENT_DIR\u003d$(pwd)"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"[ -n \"${TMP_HOOKS_PATH}\" ] || die \"Temp hook path not set\""},{"line_number":14,"context_line":"[ -n \"${DATASTORE_PKG_LOCATION}\" ] || die \"DATASTORE_PKG_LOCATION not set\""}],"source_content_type":"application/x-shellscript","patch_set":14,"id":"1a6ced46_2e6e1902","line":11,"updated":"2015-03-23 21:55:02.000000000","message":"This variable isn\u0027t used anywhere anymore","commit_id":"3b00996704623036f4f7229f0c1658d04d029e5d"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"56e1b617ed23416a7b830645eea075fc6de4fef3","unresolved":false,"context_lines":[{"line_number":8,"context_line":"#          to a private repository. The download location is specified using the env variable:"},{"line_number":9,"context_line":"#          DATASTORE_PKG_LOCATION"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"CURRENT_DIR\u003d$(pwd)"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"[ -n \"${TMP_HOOKS_PATH}\" ] || die \"Temp hook path not set\""},{"line_number":14,"context_line":"[ -n \"${DATASTORE_PKG_LOCATION}\" ] || die \"DATASTORE_PKG_LOCATION not set\""}],"source_content_type":"application/x-shellscript","patch_set":14,"id":"1a6ced46_3b2654b8","line":11,"in_reply_to":"1a6ced46_2e6e1902","updated":"2015-03-23 23:32:34.000000000","message":"Done","commit_id":"3b00996704623036f4f7229f0c1658d04d029e5d"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"bdd43dfdfa2bb50896fde26c15575f642b7ffd49","unresolved":false,"context_lines":[{"line_number":14,"context_line":"[ -n \"${DATASTORE_PKG_LOCATION}\" ] || die \"DATASTORE_PKG_LOCATION not set\""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"# First check if the package is available on the local filesystem."},{"line_number":17,"context_line":"if [ -f ${DATASTORE_PKG_LOCATION} ]; then"},{"line_number":18,"context_line":"    echo \"Found the DB2 Express-C packages in ${DATASTORE_PKG_LOCATION}.\""},{"line_number":19,"context_line":"    dd if\u003d${DATASTORE_PKG_LOCATION} of\u003d${TMP_HOOKS_PATH}/db2.tar.gz"},{"line_number":20,"context_line":"# else, check if the package is available for download in a private repository."}],"source_content_type":"application/x-shellscript","patch_set":14,"id":"1a6ced46_0e1ebd70","line":17,"updated":"2015-03-23 21:55:02.000000000","message":"It\u0027s a good idea to double quote variables, in case there\u0027s a space in it (I know most people don\u0027t use spaces in file paths, but it can happen).","commit_id":"3b00996704623036f4f7229f0c1658d04d029e5d"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"bdd43dfdfa2bb50896fde26c15575f642b7ffd49","unresolved":false,"context_lines":[{"line_number":16,"context_line":"# First check if the package is available on the local filesystem."},{"line_number":17,"context_line":"if [ -f ${DATASTORE_PKG_LOCATION} ]; then"},{"line_number":18,"context_line":"    echo \"Found the DB2 Express-C packages in ${DATASTORE_PKG_LOCATION}.\""},{"line_number":19,"context_line":"    dd if\u003d${DATASTORE_PKG_LOCATION} of\u003d${TMP_HOOKS_PATH}/db2.tar.gz"},{"line_number":20,"context_line":"# else, check if the package is available for download in a private repository."},{"line_number":21,"context_line":"elif wget ${DATASTORE_DOWNLOAD_OPTS} ${DATASTORE_PKG_LOCATION} -O ${TMP_HOOKS_PATH}/db2.tar.gz; then"},{"line_number":22,"context_line":"    echo \"Downloaded the DB2 Express-C package from the private repository\""}],"source_content_type":"application/x-shellscript","patch_set":14,"id":"1a6ced46_4e18b581","line":19,"updated":"2015-03-23 21:55:02.000000000","message":"ditto","commit_id":"3b00996704623036f4f7229f0c1658d04d029e5d"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"bdd43dfdfa2bb50896fde26c15575f642b7ffd49","unresolved":false,"context_lines":[{"line_number":18,"context_line":"    echo \"Found the DB2 Express-C packages in ${DATASTORE_PKG_LOCATION}.\""},{"line_number":19,"context_line":"    dd if\u003d${DATASTORE_PKG_LOCATION} of\u003d${TMP_HOOKS_PATH}/db2.tar.gz"},{"line_number":20,"context_line":"# else, check if the package is available for download in a private repository."},{"line_number":21,"context_line":"elif wget ${DATASTORE_DOWNLOAD_OPTS} ${DATASTORE_PKG_LOCATION} -O ${TMP_HOOKS_PATH}/db2.tar.gz; then"},{"line_number":22,"context_line":"    echo \"Downloaded the DB2 Express-C package from the private repository\""},{"line_number":23,"context_line":"else"},{"line_number":24,"context_line":"    echo \"Unable to find the DB2 package at ${DATASTORE_PKG_LOCATION}\""}],"source_content_type":"application/x-shellscript","patch_set":14,"id":"1a6ced46_0205b110","line":21,"updated":"2015-03-23 21:55:02.000000000","message":"ditto, except for DATASTORE_DOWNLOAD_OPTS - in this case you *want* the spaces to be interpreted, to separate the opts.","commit_id":"3b00996704623036f4f7229f0c1658d04d029e5d"}],"scripts/files/elements/ubuntu-db2/install.d/10-db2":[{"author":{"_account_id":7806,"name":"Sushil Kumar","email":"skm.net@gmail.com","username":"sushilkm"},"change_message_id":"f3ebb87bbe59e881a43c18daea922a6f884954b6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"# The packages for DB2 Express-C can be accessed from the following link:"},{"line_number":3,"context_line":"#  http://www-01.ibm.com/software/data/db2/express-c/download.html"},{"line_number":4,"context_line":"# and click on the link \"DB2 Express-C for Linux 64-bit\"."}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"9a80dd14_ac2b0b32","line":1,"updated":"2015-03-11 04:42:05.000000000","message":"please use \nset -e\n\nif it does not effects you set -x is also good to add","commit_id":"704788d017b4df71023adb2b97462a10e6057b27"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"70b4a9b9cc960dad56741d7b879205c40b11714f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"# The packages for DB2 Express-C can be accessed from the following link:"},{"line_number":3,"context_line":"#  http://www-01.ibm.com/software/data/db2/express-c/download.html"},{"line_number":4,"context_line":"# and click on the link \"DB2 Express-C for Linux 64-bit\"."}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"9a80dd14_dd4f5469","line":1,"in_reply_to":"9a80dd14_ac2b0b32","updated":"2015-03-15 15:04:59.000000000","message":"Done, Thanks Sushil, appreciate it.","commit_id":"704788d017b4df71023adb2b97462a10e6057b27"},{"author":{"_account_id":7806,"name":"Sushil Kumar","email":"skm.net@gmail.com","username":"sushilkm"},"change_message_id":"f3ebb87bbe59e881a43c18daea922a6f884954b6","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"# Configure DB2 to use the TCP/IP settings defined above."},{"line_number":88,"context_line":"sudo su - db2inst1 -c \"db2 update database manager configuration using svcename db2c_db2inst1\""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"# Start the actual TCP/IP communication."},{"line_number":91,"context_line":"sudo su - db2inst1 -c \"db2set DB2COMM\u003dtcpip\""},{"line_number":92,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"9a80dd14_8c1647f0","line":89,"updated":"2015-03-11 04:42:05.000000000","message":"no need to use sudo because this file is executed under root user","commit_id":"704788d017b4df71023adb2b97462a10e6057b27"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"70b4a9b9cc960dad56741d7b879205c40b11714f","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"# Configure DB2 to use the TCP/IP settings defined above."},{"line_number":88,"context_line":"sudo su - db2inst1 -c \"db2 update database manager configuration using svcename db2c_db2inst1\""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"# Start the actual TCP/IP communication."},{"line_number":91,"context_line":"sudo su - db2inst1 -c \"db2set DB2COMM\u003dtcpip\""},{"line_number":92,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"9a80dd14_1d564c06","line":89,"in_reply_to":"9a80dd14_8c1647f0","updated":"2015-03-15 15:04:59.000000000","message":"Done. That was a mistake. Thanks Sushil.","commit_id":"704788d017b4df71023adb2b97462a10e6057b27"},{"author":{"_account_id":7806,"name":"Sushil Kumar","email":"skm.net@gmail.com","username":"sushilkm"},"change_message_id":"7e19fb6119c1fcc121e28d177138f55ce959cc14","unresolved":false,"context_lines":[{"line_number":3,"context_line":"set -e"},{"line_number":4,"context_line":"set -o xtrace"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"# DB2_PKG_LOCATIOn points to the directory where the DB2 packages"},{"line_number":7,"context_line":"# are located to install."},{"line_number":8,"context_line":"DB2_PKG_LOCATION\u003d\"/db2\""},{"line_number":9,"context_line":"DB2_PACKAGE_NAME\u003d\"v10.5_linuxx64_expc.tar.gz\""}],"source_content_type":"application/x-shellscript","patch_set":5,"id":"9a80dd14_b0639aaf","line":6,"updated":"2015-03-16 09:07:40.000000000","message":"s/DB2_PKG_LOCATIOn/DB2_PKG_LOCATION","commit_id":"e4f5f4e4e13a6c2f39a706dc1bb1c9d16b461d2b"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"81a9d666027518c747cc9ed4d86d69fcefffe791","unresolved":false,"context_lines":[{"line_number":3,"context_line":"set -e"},{"line_number":4,"context_line":"set -o xtrace"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"# DB2_PKG_LOCATIOn points to the directory where the DB2 packages"},{"line_number":7,"context_line":"# are located to install."},{"line_number":8,"context_line":"DB2_PKG_LOCATION\u003d\"/db2\""},{"line_number":9,"context_line":"DB2_PACKAGE_NAME\u003d\"v10.5_linuxx64_expc.tar.gz\""}],"source_content_type":"application/x-shellscript","patch_set":5,"id":"9a80dd14_62eda9b7","line":6,"in_reply_to":"9a80dd14_b0639aaf","updated":"2015-03-17 04:57:29.000000000","message":"Done, Thanks Sushil","commit_id":"e4f5f4e4e13a6c2f39a706dc1bb1c9d16b461d2b"},{"author":{"_account_id":7806,"name":"Sushil Kumar","email":"skm.net@gmail.com","username":"sushilkm"},"change_message_id":"7e19fb6119c1fcc121e28d177138f55ce959cc14","unresolved":false,"context_lines":[{"line_number":14,"context_line":"dd if\u003d/tmp/in_target.d/${DB2_PACKAGE_NAME} of\u003d${DB2_PKG_LOCATION}/${DB2_PACKAGE_NAME}"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"tar -xvzf ${DB2_PACKAGE_NAME}"},{"line_number":17,"context_line":"cd expc"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"# installing dependencies"},{"line_number":20,"context_line":"apt-get install libaio1"}],"source_content_type":"application/x-shellscript","patch_set":5,"id":"9a80dd14_30cb2a73","line":17,"updated":"2015-03-16 09:07:40.000000000","message":"why is this cd needed, as I see all commands running with absolute path","commit_id":"e4f5f4e4e13a6c2f39a706dc1bb1c9d16b461d2b"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"81a9d666027518c747cc9ed4d86d69fcefffe791","unresolved":false,"context_lines":[{"line_number":14,"context_line":"dd if\u003d/tmp/in_target.d/${DB2_PACKAGE_NAME} of\u003d${DB2_PKG_LOCATION}/${DB2_PACKAGE_NAME}"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"tar -xvzf ${DB2_PACKAGE_NAME}"},{"line_number":17,"context_line":"cd expc"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"# installing dependencies"},{"line_number":20,"context_line":"apt-get install libaio1"}],"source_content_type":"application/x-shellscript","patch_set":5,"id":"9a80dd14_a22ec1f8","line":17,"in_reply_to":"9a80dd14_30cb2a73","updated":"2015-03-17 04:57:29.000000000","message":"You are right, I didnt need it afterall. Thanks for catching it.","commit_id":"e4f5f4e4e13a6c2f39a706dc1bb1c9d16b461d2b"},{"author":{"_account_id":7806,"name":"Sushil Kumar","email":"skm.net@gmail.com","username":"sushilkm"},"change_message_id":"7e19fb6119c1fcc121e28d177138f55ce959cc14","unresolved":false,"context_lines":[{"line_number":21,"context_line":"apt-get install libstdc++5"},{"line_number":22,"context_line":"apt-get install libstdc++6"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"# start the installation process. Accepts the default installation directory \u0027opt/ibm/db2/V10.5\u0027"},{"line_number":25,"context_line":"${DB2_PKG_LOCATION}/expc/db2_install -b /opt/ibm/db2/V10.5 -f sysreq -l ${DB2_PKG_LOCATION}/db2_install.log"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"# create the DB2 users."}],"source_content_type":"application/x-shellscript","patch_set":5,"id":"9a80dd14_d0248e61","line":24,"updated":"2015-03-16 09:07:40.000000000","message":"/s/\"opt/ibm/db2/V10.5\"/\"/opt/ibm/db2/V10.5\"","commit_id":"e4f5f4e4e13a6c2f39a706dc1bb1c9d16b461d2b"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"81a9d666027518c747cc9ed4d86d69fcefffe791","unresolved":false,"context_lines":[{"line_number":21,"context_line":"apt-get install libstdc++5"},{"line_number":22,"context_line":"apt-get install libstdc++6"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"# start the installation process. Accepts the default installation directory \u0027opt/ibm/db2/V10.5\u0027"},{"line_number":25,"context_line":"${DB2_PKG_LOCATION}/expc/db2_install -b /opt/ibm/db2/V10.5 -f sysreq -l ${DB2_PKG_LOCATION}/db2_install.log"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"# create the DB2 users."}],"source_content_type":"application/x-shellscript","patch_set":5,"id":"9a80dd14_223ad134","line":24,"in_reply_to":"9a80dd14_d0248e61","updated":"2015-03-17 04:57:29.000000000","message":"Done","commit_id":"e4f5f4e4e13a6c2f39a706dc1bb1c9d16b461d2b"},{"author":{"_account_id":9750,"name":"Andrew Bramley","email":"andrew.bramley@verizonwireless.com","username":"abramley"},"change_message_id":"cf17a0a696d7965905173cc751a7269c1119bdbf","unresolved":false,"context_lines":[{"line_number":35,"context_line":"# During the DB2 server instance create process, it kept throwing an error"},{"line_number":36,"context_line":"# saying that the hostname could not be resolved. Hence added the following"},{"line_number":37,"context_line":"# line to /etc/hosts."},{"line_number":38,"context_line":"echo $(hostname -I | cut -d\\  -f1) $(hostname) | sudo tee -a /etc/hosts"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"# Create the DB2 server instance"},{"line_number":41,"context_line":"/opt/ibm/db2/V10.5/instance/db2icrt -a server -u db2fenc1 db2inst1"}],"source_content_type":"application/x-shellscript","patch_set":5,"id":"9a80dd14_b036304f","line":38,"updated":"2015-03-16 13:03:37.000000000","message":"This is currently done in ubuntu-guest/post-install.d/60-loopback-host. \nWhich means it is being done twice now.\nIf its currently location in post-install isn\u0027t sufficient for DB2 then maybe we should move it in ubuntu-guest and fedora-guest into pre-install and remove it from here.","commit_id":"e4f5f4e4e13a6c2f39a706dc1bb1c9d16b461d2b"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"81a9d666027518c747cc9ed4d86d69fcefffe791","unresolved":false,"context_lines":[{"line_number":35,"context_line":"# During the DB2 server instance create process, it kept throwing an error"},{"line_number":36,"context_line":"# saying that the hostname could not be resolved. Hence added the following"},{"line_number":37,"context_line":"# line to /etc/hosts."},{"line_number":38,"context_line":"echo $(hostname -I | cut -d\\  -f1) $(hostname) | sudo tee -a /etc/hosts"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"# Create the DB2 server instance"},{"line_number":41,"context_line":"/opt/ibm/db2/V10.5/instance/db2icrt -a server -u db2fenc1 db2inst1"}],"source_content_type":"application/x-shellscript","patch_set":5,"id":"9a80dd14_c20ad578","line":38,"in_reply_to":"9a80dd14_b036304f","updated":"2015-03-17 04:57:29.000000000","message":"You are right. I wasnt sure if it was ok to move that file but I did it now. Thanks Andrew. Appreciate it.","commit_id":"e4f5f4e4e13a6c2f39a706dc1bb1c9d16b461d2b"},{"author":{"_account_id":9782,"name":"Morgan Jones","email":"morgan@tesora.com","username":"vgnbkr"},"change_message_id":"2ae781825e7fa72761bc174f5544986beffa1b61","unresolved":false,"context_lines":[{"line_number":6,"context_line":"# DB2_PKG_LOCATION points to the directory where the DB2 packages"},{"line_number":7,"context_line":"# are located to install."},{"line_number":8,"context_line":"DB2_PKG_LOCATION\u003d\"/db2\""},{"line_number":9,"context_line":"DB2_PACKAGE_NAME\u003d\"v10.5_linuxx64_expc.tar.gz\""},{"line_number":10,"context_line":"mkdir ${DB2_PKG_LOCATION}"},{"line_number":11,"context_line":"cd ${DB2_PKG_LOCATION}"},{"line_number":12,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"9a80dd14_fcdfec63","line":9,"updated":"2015-03-19 15:21:33.000000000","message":"Shouldn\u0027t you use the version number specified in redstack rather than hardcoding it?","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"2fd4169c3e139b5c2f6a28831fcc5fb8892ef821","unresolved":false,"context_lines":[{"line_number":6,"context_line":"# DB2_PKG_LOCATION points to the directory where the DB2 packages"},{"line_number":7,"context_line":"# are located to install."},{"line_number":8,"context_line":"DB2_PKG_LOCATION\u003d\"/db2\""},{"line_number":9,"context_line":"DB2_PACKAGE_NAME\u003d\"v10.5_linuxx64_expc.tar.gz\""},{"line_number":10,"context_line":"mkdir ${DB2_PKG_LOCATION}"},{"line_number":11,"context_line":"cd ${DB2_PKG_LOCATION}"},{"line_number":12,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"9a80dd14_ee948445","line":9,"in_reply_to":"9a80dd14_fcdfec63","updated":"2015-03-19 20:32:08.000000000","message":"we could do that except that the VERSION variable in redstack is not exported. Do you think there is a need to do that? Thanks.","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":9782,"name":"Morgan Jones","email":"morgan@tesora.com","username":"vgnbkr"},"change_message_id":"2ae781825e7fa72761bc174f5544986beffa1b61","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# Copy the package from the temporary filesystem"},{"line_number":14,"context_line":"dd if\u003d/tmp/in_target.d/${DB2_PACKAGE_NAME} of\u003d${DB2_PKG_LOCATION}/${DB2_PACKAGE_NAME}"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"tar -xvzf ${DB2_PACKAGE_NAME}"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"# installing dependencies"},{"line_number":19,"context_line":"apt-get install libaio1"}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"9a80dd14_1c74c09a","line":16,"updated":"2015-03-19 15:21:33.000000000","message":"Do you do anything with the gz file after you untar it?  Can\u0027t you just run the tar directly and avoid the copy?","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"2fd4169c3e139b5c2f6a28831fcc5fb8892ef821","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# Copy the package from the temporary filesystem"},{"line_number":14,"context_line":"dd if\u003d/tmp/in_target.d/${DB2_PACKAGE_NAME} of\u003d${DB2_PKG_LOCATION}/${DB2_PACKAGE_NAME}"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"tar -xvzf ${DB2_PACKAGE_NAME}"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"# installing dependencies"},{"line_number":19,"context_line":"apt-get install libaio1"}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"9a80dd14_ee8804c8","line":16,"in_reply_to":"9a80dd14_1c74c09a","updated":"2015-03-19 20:32:08.000000000","message":"I am not sure I follow exactly Morgan. I can tell you whats happening here. We uncompress the tar.gz file and that creates the expc directory. We then run the db2_install script from there. Can we run this script directly from the tar file?","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":9782,"name":"Morgan Jones","email":"morgan@tesora.com","username":"vgnbkr"},"change_message_id":"a90044d4426b3fe4ab620d0357783f508c2e46bc","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# Copy the package from the temporary filesystem"},{"line_number":14,"context_line":"dd if\u003d/tmp/in_target.d/${DB2_PACKAGE_NAME} of\u003d${DB2_PKG_LOCATION}/${DB2_PACKAGE_NAME}"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"tar -xvzf ${DB2_PACKAGE_NAME}"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"# installing dependencies"},{"line_number":19,"context_line":"apt-get install libaio1"}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"9a80dd14_7163151a","line":16,"in_reply_to":"9a80dd14_ee8804c8","updated":"2015-03-19 20:50:24.000000000","message":"Right.  You copy the .gz from in.target.d to the current directory, then untar it.  Can\u0027t you just:\n\ntar -xvzf /tmp/in_target.d/${DB2_PACKAGE_NAME}","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"2e396ef8856068b99d6ba46103be4c3baa356e56","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"set -e"},{"line_number":4,"context_line":"set -o xtrace"},{"line_number":5,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"7a75e904_da057515","line":2,"updated":"2015-03-21 08:59:10.000000000","message":"Please add the CONTEXT and PURPOSE.","commit_id":"d03eb0c185371790a7ba0c5aae8df28b6347117a"},{"author":{"_account_id":14576,"name":"Petr Malik","email":"pmalik@tesora.com","username":"pmalik"},"change_message_id":"b0dab14a25113abf6d1c72bce2eb9c3733ebcfdb","unresolved":false,"context_lines":[{"line_number":6,"context_line":"# DB2_PKG_LOCATION points to the directory where the DB2 packages"},{"line_number":7,"context_line":"# are located to install."},{"line_number":8,"context_line":"DB2_PKG_LOCATION\u003d\"/db2\""},{"line_number":9,"context_line":"DB2_PACKAGE_NAME\u003d\"v10.5_linuxx64_expc.tar.gz\""},{"line_number":10,"context_line":"mkdir ${DB2_PKG_LOCATION}"},{"line_number":11,"context_line":"cd ${DB2_PKG_LOCATION}"},{"line_number":12,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"7a75e904_e9ffd1a8","line":9,"updated":"2015-03-21 00:59:52.000000000","message":"This variable is already defined in the copy script (DATASTORE_PKG_NAME). Could it be possibly sourced from from a single location?","commit_id":"d03eb0c185371790a7ba0c5aae8df28b6347117a"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"2e396ef8856068b99d6ba46103be4c3baa356e56","unresolved":false,"context_lines":[{"line_number":15,"context_line":"# installing dependencies"},{"line_number":16,"context_line":"apt-get install libaio1"},{"line_number":17,"context_line":"apt-get install libstdc++5"},{"line_number":18,"context_line":"apt-get install libstdc++6"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"# start the installation process. Accepts the default installation directory \u0027/opt/ibm/db2/V10.5\u0027"},{"line_number":21,"context_line":"${DB2_PKG_LOCATION}/expc/db2_install -b /opt/ibm/db2/V10.5 -f sysreq -l ${DB2_PKG_LOCATION}/db2_install.log"}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"7a75e904_b50fea2d","line":18,"updated":"2015-03-21 08:59:10.000000000","message":"do you need both 5 and 6?","commit_id":"d03eb0c185371790a7ba0c5aae8df28b6347117a"}],"scripts/functions_qemu":[{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"2e396ef8856068b99d6ba46103be4c3baa356e56","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        exit 1"},{"line_number":53,"context_line":"    fi"},{"line_number":54,"context_line":"    SERVICE_TYPE\u003d$1"},{"line_number":55,"context_line":"    VALID_SERVICES\u003d\u0027mysql percona redis cassandra couchbase mongodb postgresql couchdb vertica db2\u0027"},{"line_number":56,"context_line":"    if ! [[ \" $VALID_SERVICES \" \u003d~ \" $SERVICE_TYPE \" ]]; then"},{"line_number":57,"context_line":"        exclaim \"You did not pass in a valid image type. Valid types are:\" $VALID_SERVICES"},{"line_number":58,"context_line":"        exit 1"}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"7a75e904_f519627a","line":55,"updated":"2015-03-21 08:59:10.000000000","message":"db2-express maybe?\n\nWhat if tomorrow you have another db2?","commit_id":"d03eb0c185371790a7ba0c5aae8df28b6347117a"}],"scripts/redstack":[{"author":{"_account_id":9782,"name":"Morgan Jones","email":"morgan@tesora.com","username":"vgnbkr"},"change_message_id":"2ae781825e7fa72761bc174f5544986beffa1b61","unresolved":false,"context_lines":[{"line_number":328,"context_line":"        VERSION\u003d\"7.1\""},{"line_number":329,"context_line":"    elif [ \"$DATASTORE_TYPE\" \u003d\u003d \"db2\" ]; then"},{"line_number":330,"context_line":"        PACKAGES\u003d${PACKAGES:-\"\"}"},{"line_number":331,"context_line":"        VERSION\u003d\"10.5.4\""},{"line_number":332,"context_line":"    else"},{"line_number":333,"context_line":"        echo \"Unrecognized datastore type. ($DATASTORE_TYPE)\""},{"line_number":334,"context_line":"        exit 1"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"9a80dd14_1c3760b1","line":331,"updated":"2015-03-19 15:21:33.000000000","message":"How do you know it is version 10.5.4?  The elements just install the current version of 10.5, no?","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"2fd4169c3e139b5c2f6a28831fcc5fb8892ef821","unresolved":false,"context_lines":[{"line_number":328,"context_line":"        VERSION\u003d\"7.1\""},{"line_number":329,"context_line":"    elif [ \"$DATASTORE_TYPE\" \u003d\u003d \"db2\" ]; then"},{"line_number":330,"context_line":"        PACKAGES\u003d${PACKAGES:-\"\"}"},{"line_number":331,"context_line":"        VERSION\u003d\"10.5.4\""},{"line_number":332,"context_line":"    else"},{"line_number":333,"context_line":"        echo \"Unrecognized datastore type. ($DATASTORE_TYPE)\""},{"line_number":334,"context_line":"        exit 1"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"9a80dd14_b1a10df9","line":331,"in_reply_to":"9a80dd14_1c3760b1","updated":"2015-03-19 20:32:08.000000000","message":"ok, so this is a very good question. Got me to go back and verify and you are right. The one available for download is the base 10.5 version. Internally we have been using the 10.5.4 version because we have free access to it. For a external user to get the fixpacks, they will have to purchase a 12-month subscription license. Thank you for catching this Morgan.","commit_id":"dca07f952d869aa0f6e5f922fc1fc37c2d33feb7"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"2e396ef8856068b99d6ba46103be4c3baa356e56","unresolved":false,"context_lines":[{"line_number":326,"context_line":"    elif [ \"$DATASTORE_TYPE\" \u003d\u003d \"vertica\" ]; then"},{"line_number":327,"context_line":"        PACKAGES\u003d${PACKAGES:-\"vertica\"}"},{"line_number":328,"context_line":"        VERSION\u003d\"7.1\""},{"line_number":329,"context_line":"    elif [ \"$DATASTORE_TYPE\" \u003d\u003d \"db2\" ]; then"},{"line_number":330,"context_line":"        PACKAGES\u003d${PACKAGES:-\"\"}"},{"line_number":331,"context_line":"        VERSION\u003d\"10.5\""},{"line_number":332,"context_line":"    else"}],"source_content_type":"application/octet-stream","patch_set":9,"id":"7a75e904_352bfa83","line":329,"updated":"2015-03-21 08:59:10.000000000","message":"db2-express please","commit_id":"d03eb0c185371790a7ba0c5aae8df28b6347117a"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"b8ae98c3bfe921df7941494e9b938d729dd9ec60","unresolved":false,"context_lines":[{"line_number":58,"context_line":"# DATASTORE_PKG_LOCATION defines the location from where the datastore packages"},{"line_number":59,"context_line":"# can be accessed by the DIB elements. This is applicable only for datastores"},{"line_number":60,"context_line":"# that do not have a public repository from where their packages can be accessed."},{"line_number":61,"context_line":"# This can either be a base url to a private repository or an absolute path to a"},{"line_number":62,"context_line":"# directory on the local filesystem that contains the datastore packages."},{"line_number":63,"context_line":"DATASTORE_PKG_LOCATION\u003d${DATASTORE_PKG_LOCATION:-$DEST/packages}"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"# Load functions devstack style"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"1a6ced46_3cdd8171","line":62,"range":{"start_line":61,"start_character":0,"end_line":62,"end_character":73},"updated":"2015-03-23 16:09:14.000000000","message":"It\u0027s been decided that there should only be one variable, so it should point to the actual file (if it points to a directory, it should only be because the install process expects multiple files - this is not the typical case luckily, as it would necessitate the elements hard-coding the file names).  So maybe this would be better:\n\n  # This can either be a url to a private repository or an absolute path to\n  # a file on the local filesystem that contains the datastore packages.\n\nSee: https://review.openstack.org/#/c/156149/5/scripts/files/elements/ubuntu-vertica/extra-data.d/93-copy-vertica-deb,cm and https://review.openstack.org/#/c/159627/11/doc/source/dev/building_guest_images.rst,cm","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"801f8c90c42e7a43958a58e9201aa9f285883018","unresolved":false,"context_lines":[{"line_number":58,"context_line":"# DATASTORE_PKG_LOCATION defines the location from where the datastore packages"},{"line_number":59,"context_line":"# can be accessed by the DIB elements. This is applicable only for datastores"},{"line_number":60,"context_line":"# that do not have a public repository from where their packages can be accessed."},{"line_number":61,"context_line":"# This can either be a base url to a private repository or an absolute path to a"},{"line_number":62,"context_line":"# directory on the local filesystem that contains the datastore packages."},{"line_number":63,"context_line":"DATASTORE_PKG_LOCATION\u003d${DATASTORE_PKG_LOCATION:-$DEST/packages}"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"# Load functions devstack style"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"1a6ced46_53b94b2d","line":62,"range":{"start_line":61,"start_character":0,"end_line":62,"end_character":73},"in_reply_to":"1a6ced46_3cdd8171","updated":"2015-03-23 16:15:10.000000000","message":"Oops, should be singular (and maybe use \u0027location\u0027 to at least allow for a directory name):\n\n  # a location on the local filesystem that contains the datastore package.","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"b8ae98c3bfe921df7941494e9b938d729dd9ec60","unresolved":false,"context_lines":[{"line_number":60,"context_line":"# that do not have a public repository from where their packages can be accessed."},{"line_number":61,"context_line":"# This can either be a base url to a private repository or an absolute path to a"},{"line_number":62,"context_line":"# directory on the local filesystem that contains the datastore packages."},{"line_number":63,"context_line":"DATASTORE_PKG_LOCATION\u003d${DATASTORE_PKG_LOCATION:-$DEST/packages}"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"# Load functions devstack style"},{"line_number":66,"context_line":". $REDSTACK_SCRIPTS/functions"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"1a6ced46_bc8fb122","line":63,"updated":"2015-03-23 16:09:14.000000000","message":"I think this should not be set by default (since it\u0027s only relevant for the above-mentioned cases:\n\n  DATASTORE_PKG_LOCATION\u003d${DATASTORE_PKG_LOCATION:-}\n\n(I know you didn\u0027t change this, but maybe it\u0027s in-scope to tidy up here?)","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"ab3430bbd731a08c1b7f0bcdc913685e89b1eef0","unresolved":false,"context_lines":[{"line_number":60,"context_line":"# that do not have a public repository from where their packages can be accessed."},{"line_number":61,"context_line":"# This can either be a base url to a private repository or an absolute path to a"},{"line_number":62,"context_line":"# directory on the local filesystem that contains the datastore packages."},{"line_number":63,"context_line":"DATASTORE_PKG_LOCATION\u003d${DATASTORE_PKG_LOCATION:-$DEST/packages}"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"# Load functions devstack style"},{"line_number":66,"context_line":". $REDSTACK_SCRIPTS/functions"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"1a6ced46_a25b0253","line":63,"in_reply_to":"1a6ced46_bc8fb122","updated":"2015-03-23 20:09:37.000000000","message":"I think not setting the default value is the right approach.The original default value did cause quite a confusion regarding whether this should be a full path with the file name or just the path with the directory.","commit_id":"cbf4a94c7f7a438e98865cb4b25e4a09c792fcbe"}]}
