)]}'
{"trove/guestagent/datastore/couchbase/service.py":[{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"fd110701c4272247de1e9c9c42810c1b93c45f28","unresolved":false,"context_lines":[{"line_number":235,"context_line":"            return self._get_status_from_couchbase(pwd)"},{"line_number":236,"context_line":"        except exception.ProcessExecutionError:"},{"line_number":237,"context_line":"            # log the exception, but continue with native config approach"},{"line_number":238,"context_line":"            LOG.exception(_(\"Error getting the Couchbase status.\"))"},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"        try:"},{"line_number":241,"context_line":"            out, err \u003d utils.execute_with_timeout("}],"source_content_type":"text/x-python","patch_set":9,"id":"9aa7fdbe_bddc9874","line":238,"updated":"2014-10-24 01:46:12.000000000","message":"the word \u0027the\u0027 in this exception makes the message sound odd.","commit_id":"3190c0ac5b37506fbe658244d09be2a3d9b8273e"}],"trove/guestagent/datastore/couchbase/system.py":[{"author":{"_account_id":10139,"name":"Ramashri Umale","email":"rumale@ebaysf.com","username":"rumale"},"change_message_id":"3484e4cef13b2d1483ead7795a317fd5cb28d396","unresolved":false,"context_lines":[{"line_number":41,"context_line":"cmd_update_sysctl_conf \u003d (\u0027echo \"vm.swappiness \u003d 0\" | sudo tee -a \u0027"},{"line_number":42,"context_line":"                          \u0027/etc/sysctl.conf\u0027)"},{"line_number":43,"context_line":"cmd_reset_pwd \u003d \u0027sudo /opt/couchbase/bin/cbreset_password %(IP)s:8091\u0027"},{"line_number":44,"context_line":"pwd_file \u003d COUCHBASE_CONF_DIR + SECRET_KEY"},{"line_number":45,"context_line":"cmd_get_password_from_config \u003d \"\"\"sudo /opt/couchbase/bin/erl -noinput -eval \\"},{"line_number":46,"context_line":"\u0027case file:read_file(\"/opt/couchbase/var/lib/couchbase/config/config.dat\") \\"},{"line_number":47,"context_line":"of {ok, B} -\u003e io:format(\"~p~n\", [binary_to_term(B)]) end.\u0027 \\"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa7fdbe_ad04ea15","line":44,"updated":"2014-10-20 12:46:55.000000000","message":"A comment to explain what this command does would be nice","commit_id":"8d595a6deaeaac13dc383563781267863fd66d7f"},{"author":{"_account_id":8214,"name":"Auston McReynolds","email":"amcreynolds@ebaysf.com","username":"amcreynolds"},"change_message_id":"7abceba9f19364e38ee1971f4dc1bc6c24c62cab","unresolved":false,"context_lines":[{"line_number":41,"context_line":"cmd_update_sysctl_conf \u003d (\u0027echo \"vm.swappiness \u003d 0\" | sudo tee -a \u0027"},{"line_number":42,"context_line":"                          \u0027/etc/sysctl.conf\u0027)"},{"line_number":43,"context_line":"cmd_reset_pwd \u003d \u0027sudo /opt/couchbase/bin/cbreset_password %(IP)s:8091\u0027"},{"line_number":44,"context_line":"pwd_file \u003d COUCHBASE_CONF_DIR + SECRET_KEY"},{"line_number":45,"context_line":"cmd_get_password_from_config \u003d \"\"\"sudo /opt/couchbase/bin/erl -noinput -eval \\"},{"line_number":46,"context_line":"\u0027case file:read_file(\"/opt/couchbase/var/lib/couchbase/config/config.dat\") \\"},{"line_number":47,"context_line":"of {ok, B} -\u003e io:format(\"~p~n\", [binary_to_term(B)]) end.\u0027 \\"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa7fdbe_9a690d8e","line":44,"in_reply_to":"9aa7fdbe_ad04ea15","updated":"2014-10-20 17:56:34.000000000","message":"mostly explained in the bug notes @ https://bugs.launchpad.net/trove/+bug/1380984. in short, it\u0027s using erlang to read the config.dat file by converting it to a readable format, then grep\u0027ing for the root password, then printing it out to console.","commit_id":"8d595a6deaeaac13dc383563781267863fd66d7f"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"fd110701c4272247de1e9c9c42810c1b93c45f28","unresolved":false,"context_lines":[{"line_number":42,"context_line":"                          \u0027/etc/sysctl.conf\u0027)"},{"line_number":43,"context_line":"cmd_reset_pwd \u003d \u0027sudo /opt/couchbase/bin/cbreset_password %(IP)s:8091\u0027"},{"line_number":44,"context_line":"pwd_file \u003d COUCHBASE_CONF_DIR + SECRET_KEY"},{"line_number":45,"context_line":"cmd_get_password_from_config \u003d \"\"\"sudo /opt/couchbase/bin/erl -noinput -eval \\"},{"line_number":46,"context_line":"\u0027case file:read_file(\"/opt/couchbase/var/lib/couchbase/config/config.dat\") \\"},{"line_number":47,"context_line":"of {ok, B} -\u003e io:format(\"~p~n\", [binary_to_term(B)]) end.\u0027 \\"},{"line_number":48,"context_line":"-run init stop | grep \u0027\\[{\"root\",\\[{password,\u0027 | awk -F\\\\\" \u0027{print $4}\u0027"}],"source_content_type":"text/x-python","patch_set":9,"id":"9aa7fdbe_5d7bac7a","line":45,"updated":"2014-10-24 01:46:12.000000000","message":"amazing how many places on the internet have this script ;)","commit_id":"3190c0ac5b37506fbe658244d09be2a3d9b8273e"}]}
