)]}'
{"barbican/cmd/barbican_manage.py":[{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"2a3cf47d9c724980d24857847d954e6dea3f5779","unresolved":false,"context_lines":[{"line_number":176,"context_line":"        rewrapper.execute(dryrun)"},{"line_number":177,"context_line":"        rewrapper.pkcs11.return_session(rewrapper.hsm_session)"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"    def _create_pkcs11_seesion(self, passphrase, libpath, slotid):"},{"line_number":180,"context_line":"        self.pkcs11 \u003d pkcs11.PKCS11("},{"line_number":181,"context_line":"            library_path\u003dlibpath, login_passphrase\u003dpassphrase,"},{"line_number":182,"context_line":"            rw_session\u003dTrue, slot_id\u003dslotid"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_0da624c1","line":179,"range":{"start_line":179,"start_character":23,"end_line":179,"end_character":30},"updated":"2016-02-19 17:15:16.000000000","message":"should this be \u0027session\u0027?","commit_id":"7688f860d163db04f7738a33923268db92e300e3"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"4b4e8e76138b2e22d1bc1f4b1392490b7fdd015e","unresolved":false,"context_lines":[{"line_number":176,"context_line":"        rewrapper.execute(dryrun)"},{"line_number":177,"context_line":"        rewrapper.pkcs11.return_session(rewrapper.hsm_session)"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"    def _create_pkcs11_seesion(self, passphrase, libpath, slotid):"},{"line_number":180,"context_line":"        self.pkcs11 \u003d pkcs11.PKCS11("},{"line_number":181,"context_line":"            library_path\u003dlibpath, login_passphrase\u003dpassphrase,"},{"line_number":182,"context_line":"            rw_session\u003dTrue, slot_id\u003dslotid"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_1ce81110","line":179,"range":{"start_line":179,"start_character":23,"end_line":179,"end_character":30},"in_reply_to":"bae84128_0da624c1","updated":"2016-02-19 17:37:44.000000000","message":"yeah, typo. fixed.","commit_id":"7688f860d163db04f7738a33923268db92e300e3"},{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"d6e0ceb483d4d5f48cde658dc63fbf4b3bb7b37b","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class DbCommands(object):"},{"line_number":50,"context_line":"    \"\"\"Class for managing barbican database\"\"\""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    description \u003d (\"Subcommands for managing barbican database\")"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    cleanup_description \u003d (\"Cleanup soft-deleted secrets in database\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_e295c640","line":51,"updated":"2016-02-19 18:25:47.000000000","message":"All these single tuple attributes can have the parenthesis removed. Python turns them into strings anyways.","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"680ba599d07b1ba8347f9da05a9469561c829fae","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class DbCommands(object):"},{"line_number":50,"context_line":"    \"\"\"Class for managing barbican database\"\"\""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    description \u003d (\"Subcommands for managing barbican database\")"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    cleanup_description \u003d (\"Cleanup soft-deleted secrets in database\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_d2ce8582","line":51,"in_reply_to":"bae84128_e295c640","updated":"2016-02-19 23:06:35.000000000","message":"Done","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"b0114ac3f426d2d7c9d704a57f80a9065b3e15e0","unresolved":false,"context_lines":[{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    description \u003d (\"Subcommands for managing barbican database\")"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    cleanup_description \u003d (\"Cleanup soft-deleted secrets in database\")"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":57,"context_line":"    def cleanup(self, dburl\u003dNone):"},{"line_number":58,"context_line":"        print(\"reserve for cleanup cmd\")"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    restore_description \u003d (\"Restore deleted secret in database\")"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_5f2c4b4a","line":58,"range":{"start_line":54,"start_character":0,"end_line":58,"end_character":40},"updated":"2016-02-19 20:01:40.000000000","message":"I assume that you are waiting for the soft deletion patch to merge before implementing this command?","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"680ba599d07b1ba8347f9da05a9469561c829fae","unresolved":false,"context_lines":[{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    description \u003d (\"Subcommands for managing barbican database\")"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    cleanup_description \u003d (\"Cleanup soft-deleted secrets in database\")"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":57,"context_line":"    def cleanup(self, dburl\u003dNone):"},{"line_number":58,"context_line":"        print(\"reserve for cleanup cmd\")"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    restore_description \u003d (\"Restore deleted secret in database\")"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_5288b522","line":58,"range":{"start_line":54,"start_character":0,"end_line":58,"end_character":40},"in_reply_to":"bae84128_5f2c4b4a","updated":"2016-02-19 23:06:35.000000000","message":"yes","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"b0114ac3f426d2d7c9d704a57f80a9065b3e15e0","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    def cleanup(self, dburl\u003dNone):"},{"line_number":58,"context_line":"        print(\"reserve for cleanup cmd\")"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    restore_description \u003d (\"Restore deleted secret in database\")"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":63,"context_line":"    def restore(self, dburl\u003dNone):"},{"line_number":64,"context_line":"        print(\"reserve for restore cmd\")"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    revision_description \u003d (\"Create a new database version file\")"},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_5f056bc0","line":64,"range":{"start_line":60,"start_character":0,"end_line":64,"end_character":40},"updated":"2016-02-19 20:01:40.000000000","message":"you should comment this out, since this feature will not be included in the mitaka release. Also, the \u0027restore\u0027 command is not in the documentation.","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"680ba599d07b1ba8347f9da05a9469561c829fae","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    def cleanup(self, dburl\u003dNone):"},{"line_number":58,"context_line":"        print(\"reserve for cleanup cmd\")"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    restore_description \u003d (\"Restore deleted secret in database\")"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":63,"context_line":"    def restore(self, dburl\u003dNone):"},{"line_number":64,"context_line":"        print(\"reserve for restore cmd\")"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    revision_description \u003d (\"Create a new database version file\")"},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_d27cc522","line":64,"range":{"start_line":60,"start_character":0,"end_line":64,"end_character":40},"in_reply_to":"bae84128_5f056bc0","updated":"2016-02-19 23:06:35.000000000","message":"Done","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"a4a1383e113a439079fe84589a4821c9646bec32","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":69,"context_line":"    @args(\u0027--message\u0027, \u0027-m\u0027, metavar\u003d\u0027\u003cmessage\u003e\u0027, default\u003d\u0027DB change\u0027,"},{"line_number":70,"context_line":"          help\u003d\u0027the message for the DB change\u0027)"},{"line_number":71,"context_line":"    @args(\u0027--autogenerate\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, dest\u003d\u0027autogen\u0027,"},{"line_number":72,"context_line":"          default\u003dFalse, help\u003d\u0027autogenerate from models\u0027)"},{"line_number":73,"context_line":"    def revision(self, dburl\u003dNone, message\u003dNone, autogen\u003dNone):"},{"line_number":74,"context_line":"        \"\"\"Process the \u0027revision\u0027 Alembic command.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_32041114","line":71,"range":{"start_line":71,"start_character":37,"end_line":71,"end_character":52},"updated":"2016-02-19 23:01:21.000000000","message":"somewhat related to line 99 - not sure if having to set True or False is the most intuitive for this option","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"ff3d426a008b5a569885bb2a686675f8f859d479","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":69,"context_line":"    @args(\u0027--message\u0027, \u0027-m\u0027, metavar\u003d\u0027\u003cmessage\u003e\u0027, default\u003d\u0027DB change\u0027,"},{"line_number":70,"context_line":"          help\u003d\u0027the message for the DB change\u0027)"},{"line_number":71,"context_line":"    @args(\u0027--autogenerate\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, dest\u003d\u0027autogen\u0027,"},{"line_number":72,"context_line":"          default\u003dFalse, help\u003d\u0027autogenerate from models\u0027)"},{"line_number":73,"context_line":"    def revision(self, dburl\u003dNone, message\u003dNone, autogen\u003dNone):"},{"line_number":74,"context_line":"        \"\"\"Process the \u0027revision\u0027 Alembic command.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_2de2f6d5","line":71,"range":{"start_line":71,"start_character":37,"end_line":71,"end_character":52},"in_reply_to":"bae84128_32041114","updated":"2016-02-19 23:31:43.000000000","message":"when --help is called, \u0027metavar\u0027 is used to show what value can be set for this option --autogenerate. \n\nThe default is False in this case ( line 72), if user doesn\u0027t specify --autogenerate option in CLI.","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"a4a1383e113a439079fe84589a4821c9646bec32","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    history_description \u003d (\"Show database changset history\")"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":99,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, default\u003dTrue,"},{"line_number":100,"context_line":"          help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":101,"context_line":"    def history(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":102,"context_line":"        if dburl is None:"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_5c40ce56","line":99,"range":{"start_line":99,"start_character":38,"end_line":99,"end_character":53},"updated":"2016-02-19 23:01:21.000000000","message":"I\u0027m not sure if it is intuitive to have to explicitly set \"True\" or \"False\" for the verbose option, since I am assuming that I want output to be verbose if I set that option","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"ff3d426a008b5a569885bb2a686675f8f859d479","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    history_description \u003d (\"Show database changset history\")"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":99,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, default\u003dTrue,"},{"line_number":100,"context_line":"          help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":101,"context_line":"    def history(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":102,"context_line":"        if dburl is None:"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_edef6eae","line":99,"range":{"start_line":99,"start_character":38,"end_line":99,"end_character":53},"in_reply_to":"bae84128_5c40ce56","updated":"2016-02-19 23:31:43.000000000","message":"default is verbose\u003dTrue. I want keep same behavior as current barbican-db-manage command.","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"a4a1383e113a439079fe84589a4821c9646bec32","unresolved":false,"context_lines":[{"line_number":107,"context_line":"    current_description \u003d (\"Show current revision of database\")"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":110,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, default\u003dTrue,"},{"line_number":111,"context_line":"          help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":112,"context_line":"    def current(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":113,"context_line":"        if dburl is None:"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_fc06021f","line":110,"range":{"start_line":110,"start_character":38,"end_line":110,"end_character":53},"updated":"2016-02-19 23:01:21.000000000","message":"same as line 99","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"ff3d426a008b5a569885bb2a686675f8f859d479","unresolved":false,"context_lines":[{"line_number":107,"context_line":"    current_description \u003d (\"Show current revision of database\")"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":110,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, default\u003dTrue,"},{"line_number":111,"context_line":"          help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":112,"context_line":"    def current(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":113,"context_line":"        if dburl is None:"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_ed1daebe","line":110,"range":{"start_line":110,"start_character":38,"end_line":110,"end_character":53},"in_reply_to":"bae84128_fc06021f","updated":"2016-02-19 23:31:43.000000000","message":"trying keep same behavior as current barbican-db-manage command.","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"d6e0ceb483d4d5f48cde658dc63fbf4b3bb7b37b","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":"class HsmCommands(object):"},{"line_number":120,"context_line":"    \"\"\"Class for managing HSM/pkcs11 plugin\"\"\""},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    description \u003d (\"Subcommands for managing HSM/PKCS11\")"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"    gen_mkek_description \u003d (\"Generates a new MKEK\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_22a04e9f","line":121,"updated":"2016-02-19 18:25:47.000000000","message":"Same comment as above.","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"680ba599d07b1ba8347f9da05a9469561c829fae","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":"class HsmCommands(object):"},{"line_number":120,"context_line":"    \"\"\"Class for managing HSM/pkcs11 plugin\"\"\""},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    description \u003d (\"Subcommands for managing HSM/PKCS11\")"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"    gen_mkek_description \u003d (\"Generates a new MKEK\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_12774d3b","line":121,"in_reply_to":"bae84128_22a04e9f","updated":"2016-02-19 23:06:35.000000000","message":"Done","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"a4a1383e113a439079fe84589a4821c9646bec32","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    rewrap_pkek_description \u003d (\"Re-wrap project MKEKs\")"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    @args(\u0027--dry-run\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, dest\u003d\u0027dryrun\u0027, default\u003dFalse,"},{"line_number":173,"context_line":"          help\u003d\u0027Displays changes that will be made (Non-destructive)\u0027)"},{"line_number":174,"context_line":"    def rewrap_pkek(self, dryrun\u003dNone):"},{"line_number":175,"context_line":"        rewrapper \u003d pkcs11_rewrap.KekRewrap(pkcs11_rewrap.CONF)"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_d220454c","line":172,"range":{"start_line":172,"start_character":32,"end_line":172,"end_character":47},"updated":"2016-02-19 23:01:21.000000000","message":"same as previous comments - not sure if having to set \"True\" or \"False\" is the most intuitive","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"d6e0ceb483d4d5f48cde658dc63fbf4b3bb7b37b","unresolved":false,"context_lines":[{"line_number":193,"context_line":"            sys.exit(1)"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"CATEGORIES \u003d {"},{"line_number":197,"context_line":"    \u0027db\u0027: DbCommands,"},{"line_number":198,"context_line":"    \u0027hsm\u0027: HsmCommands,"},{"line_number":199,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_e27ca622","line":196,"updated":"2016-02-19 18:25:47.000000000","message":"CATEGORIES should be at the top since it looks like it\u0027s a global attribute.","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"680ba599d07b1ba8347f9da05a9469561c829fae","unresolved":false,"context_lines":[{"line_number":193,"context_line":"            sys.exit(1)"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"CATEGORIES \u003d {"},{"line_number":197,"context_line":"    \u0027db\u0027: DbCommands,"},{"line_number":198,"context_line":"    \u0027hsm\u0027: HsmCommands,"},{"line_number":199,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_f273c94b","line":196,"in_reply_to":"bae84128_e27ca622","updated":"2016-02-19 23:06:35.000000000","message":"Done","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"ff3d426a008b5a569885bb2a686675f8f859d479","unresolved":false,"context_lines":[{"line_number":193,"context_line":"            sys.exit(1)"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"CATEGORIES \u003d {"},{"line_number":197,"context_line":"    \u0027db\u0027: DbCommands,"},{"line_number":198,"context_line":"    \u0027hsm\u0027: HsmCommands,"},{"line_number":199,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_cde70a11","line":196,"in_reply_to":"bae84128_f273c94b","updated":"2016-02-19 23:31:43.000000000","message":"This need to be after routine \u0027DBCommands\u0027 and HsmCommands\u0027.","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"5662547819f7b2f60b8a7eb9bfe7c82a1cb93273","unresolved":false,"context_lines":[{"line_number":62,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":63,"context_line":"    @args(\u0027--message\u0027, \u0027-m\u0027, metavar\u003d\u0027\u003cmessage\u003e\u0027, default\u003d\u0027DB change\u0027,"},{"line_number":64,"context_line":"          help\u003d\u0027the message for the DB change\u0027)"},{"line_number":65,"context_line":"    @args(\u0027--autogenerate\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, dest\u003d\u0027autogen\u0027,"},{"line_number":66,"context_line":"          default\u003dFalse, help\u003d\u0027autogenerate from models\u0027)"},{"line_number":67,"context_line":"    def revision(self, dburl\u003dNone, message\u003dNone, autogen\u003dNone):"},{"line_number":68,"context_line":"        \"\"\"Process the \u0027revision\u0027 Alembic command.\"\"\""},{"line_number":69,"context_line":"        if dburl is None:"}],"source_content_type":"text/x-python","patch_set":5,"id":"bae84128_4a0707ca","line":66,"range":{"start_line":65,"start_character":4,"end_line":66,"end_character":57},"updated":"2016-02-22 21:51:44.000000000","message":"similar concerns as expressed in line 94\n\nrunning \"barbican-db-manage revision --autogenerate\" seems to automatically set the \"autogenerate\" option to True without having to explicitly set a boolean value, while running \"barbican-manage db revision --autogenerate\" throws an error asking for user to explicitly set the boolean value.","commit_id":"d46b5090592a6343d055f97a7c23ed3b18e891be"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"19f81b1003be593698923397584399ccc8bfb1b6","unresolved":false,"context_lines":[{"line_number":62,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":63,"context_line":"    @args(\u0027--message\u0027, \u0027-m\u0027, metavar\u003d\u0027\u003cmessage\u003e\u0027, default\u003d\u0027DB change\u0027,"},{"line_number":64,"context_line":"          help\u003d\u0027the message for the DB change\u0027)"},{"line_number":65,"context_line":"    @args(\u0027--autogenerate\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, dest\u003d\u0027autogen\u0027,"},{"line_number":66,"context_line":"          default\u003dFalse, help\u003d\u0027autogenerate from models\u0027)"},{"line_number":67,"context_line":"    def revision(self, dburl\u003dNone, message\u003dNone, autogen\u003dNone):"},{"line_number":68,"context_line":"        \"\"\"Process the \u0027revision\u0027 Alembic command.\"\"\""},{"line_number":69,"context_line":"        if dburl is None:"}],"source_content_type":"text/x-python","patch_set":5,"id":"bae84128_0b47be4b","line":66,"range":{"start_line":65,"start_character":4,"end_line":66,"end_character":57},"in_reply_to":"bae84128_4a0707ca","updated":"2016-02-23 00:27:06.000000000","message":"you can set default to True instead of False.\nThe problem is we cannot use action\u003d\u0027store_true\u0027 in @args. I remember I tested it, it didn\u0027t work.\nMaybe you can try again.","commit_id":"d46b5090592a6343d055f97a7c23ed3b18e891be"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"5662547819f7b2f60b8a7eb9bfe7c82a1cb93273","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    history_description \u003d \"Show database changset history\""},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":93,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, default\u003dTrue,"},{"line_number":94,"context_line":"          help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":95,"context_line":"    def history(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":96,"context_line":"        if dburl is None:"},{"line_number":97,"context_line":"            commands.history(verbose, sql_url\u003dcfg.CONF.sql_connection)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bae84128_2ad7234c","line":94,"range":{"start_line":93,"start_character":4,"end_line":94,"end_character":60},"updated":"2016-02-22 21:51:44.000000000","message":"I\u0027m still not sure if this option is intuitive. I think the user would find it more intuitive to just do \"barbican-manage db history --verbose\" instead of \"barbican-manage db history --verbose True\". As it is, if I try \"barbican-manage db history --verbose\", I get the following error:\n\nbarbican-manage db history: error: argument --verbose/-V: expected one argument\n\nIt also looks like barbican-db-manage allows for just setting the --verbose option with having to include a boolean value after the option.","commit_id":"d46b5090592a6343d055f97a7c23ed3b18e891be"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"19f81b1003be593698923397584399ccc8bfb1b6","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    history_description \u003d \"Show database changset history\""},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":93,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, default\u003dTrue,"},{"line_number":94,"context_line":"          help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":95,"context_line":"    def history(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":96,"context_line":"        if dburl is None:"},{"line_number":97,"context_line":"            commands.history(verbose, sql_url\u003dcfg.CONF.sql_connection)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bae84128_4b3ee68c","line":94,"range":{"start_line":93,"start_character":4,"end_line":94,"end_character":60},"in_reply_to":"bae84128_2ad7234c","updated":"2016-02-23 00:27:06.000000000","message":"let\u0027s try action\u003d\u0027store_true\u0027 option","commit_id":"d46b5090592a6343d055f97a7c23ed3b18e891be"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"f05910bfc359c48138a86d648dc2470e0e35c65c","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    history_description \u003d \"Show database changset history\""},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":93,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, default\u003dTrue,"},{"line_number":94,"context_line":"          help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":95,"context_line":"    def history(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":96,"context_line":"        if dburl is None:"},{"line_number":97,"context_line":"            commands.history(verbose, sql_url\u003dcfg.CONF.sql_connection)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bae84128_4bbd46b6","line":94,"range":{"start_line":93,"start_character":4,"end_line":94,"end_character":60},"in_reply_to":"bae84128_4b3ee68c","updated":"2016-02-23 00:39:53.000000000","message":"I actually have a patch fixing this and that also addresses the comments if you wanted me to check it in","commit_id":"d46b5090592a6343d055f97a7c23ed3b18e891be"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"5662547819f7b2f60b8a7eb9bfe7c82a1cb93273","unresolved":false,"context_lines":[{"line_number":101,"context_line":"    current_description \u003d \"Show current revision of database\""},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":104,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, default\u003dTrue,"},{"line_number":105,"context_line":"          help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":106,"context_line":"    def current(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":107,"context_line":"        if dburl is None:"},{"line_number":108,"context_line":"            commands.current(verbose, sql_url\u003dcfg.CONF.sql_connection)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bae84128_4a39c7a3","line":105,"range":{"start_line":104,"start_character":4,"end_line":105,"end_character":60},"updated":"2016-02-22 21:51:44.000000000","message":"same concerns as for line 94\n\n\"barbican-db-manage current --verbose\" outputs verbose information, while just \"barbican-db-manage current\" (without verbose option set) does not print out verbose information.","commit_id":"d46b5090592a6343d055f97a7c23ed3b18e891be"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"19f81b1003be593698923397584399ccc8bfb1b6","unresolved":false,"context_lines":[{"line_number":101,"context_line":"    current_description \u003d \"Show current revision of database\""},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":104,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, default\u003dTrue,"},{"line_number":105,"context_line":"          help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":106,"context_line":"    def current(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":107,"context_line":"        if dburl is None:"},{"line_number":108,"context_line":"            commands.current(verbose, sql_url\u003dcfg.CONF.sql_connection)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bae84128_eb6a5ab2","line":105,"range":{"start_line":104,"start_character":4,"end_line":105,"end_character":60},"in_reply_to":"bae84128_4a39c7a3","updated":"2016-02-23 00:27:06.000000000","message":"here the default is True, so we should get same kind output. I can verify.","commit_id":"d46b5090592a6343d055f97a7c23ed3b18e891be"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"5662547819f7b2f60b8a7eb9bfe7c82a1cb93273","unresolved":false,"context_lines":[{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    rewrap_pkek_description \u003d \"Re-wrap project MKEKs\""},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    @args(\u0027--dry-run\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, dest\u003d\u0027dryrun\u0027, default\u003dFalse,"},{"line_number":167,"context_line":"          help\u003d\u0027Displays changes that will be made (Non-destructive)\u0027)"},{"line_number":168,"context_line":"    def rewrap_pkek(self, dryrun\u003dNone):"},{"line_number":169,"context_line":"        rewrapper \u003d pkcs11_rewrap.KekRewrap(pkcs11_rewrap.CONF)"},{"line_number":170,"context_line":"        rewrapper.execute(dryrun)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bae84128_ca7e7718","line":167,"range":{"start_line":166,"start_character":4,"end_line":167,"end_character":70},"updated":"2016-02-22 21:51:44.000000000","message":"same concerns as expressed in line 94. If explicitly boolean value is taken out, then this line will also need to be changed","commit_id":"d46b5090592a6343d055f97a7c23ed3b18e891be"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"19f81b1003be593698923397584399ccc8bfb1b6","unresolved":false,"context_lines":[{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    rewrap_pkek_description \u003d \"Re-wrap project MKEKs\""},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    @args(\u0027--dry-run\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, dest\u003d\u0027dryrun\u0027, default\u003dFalse,"},{"line_number":167,"context_line":"          help\u003d\u0027Displays changes that will be made (Non-destructive)\u0027)"},{"line_number":168,"context_line":"    def rewrap_pkek(self, dryrun\u003dNone):"},{"line_number":169,"context_line":"        rewrapper \u003d pkcs11_rewrap.KekRewrap(pkcs11_rewrap.CONF)"},{"line_number":170,"context_line":"        rewrapper.execute(dryrun)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bae84128_2be60244","line":167,"range":{"start_line":166,"start_character":4,"end_line":167,"end_character":70},"in_reply_to":"bae84128_ca7e7718","updated":"2016-02-23 00:27:06.000000000","message":"need change default to True here","commit_id":"d46b5090592a6343d055f97a7c23ed3b18e891be"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":57,"context_line":"    def cleanup(self, dburl\u003dNone):"},{"line_number":58,"context_line":"        print(\"reserve for cleanup cmd\")"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    revision_description \u003d \"Create a new database version file\""},{"line_number":61,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"bae84128_e0beb0ac","line":58,"updated":"2016-02-24 17:01:50.000000000","message":"Throw a NotImplementedError","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"e1777fc8b5278c2b228258d2ce54fa1540436172","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":57,"context_line":"    def cleanup(self, dburl\u003dNone):"},{"line_number":58,"context_line":"        print(\"reserve for cleanup cmd\")"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    revision_description \u003d \"Create a new database version file\""},{"line_number":61,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"bae84128_82ccdd35","line":58,"in_reply_to":"bae84128_e0beb0ac","updated":"2016-02-24 17:36:01.000000000","message":"Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    def revision(self, dburl\u003dNone, message\u003dNone, autogen\u003dNone):"},{"line_number":68,"context_line":"        \"\"\"Process the \u0027revision\u0027 Alembic command.\"\"\""},{"line_number":69,"context_line":"        if dburl is None:"},{"line_number":70,"context_line":"            commands.generate(autogenerate\u003dautogen, message\u003dstr(message),"},{"line_number":71,"context_line":"                              sql_url\u003dcfg.CONF.sql_connection)"},{"line_number":72,"context_line":"        else:"},{"line_number":73,"context_line":"            commands.generate(autogenerate\u003dautogen, message\u003dstr(message),"}],"source_content_type":"text/x-python","patch_set":7,"id":"bae84128_6000e066","line":70,"updated":"2016-02-24 17:01:50.000000000","message":"Not tested","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"1b01ad737dbe8a6e1c8798cbb454c8e37bf1786d","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    def revision(self, dburl\u003dNone, message\u003dNone, autogen\u003dNone):"},{"line_number":68,"context_line":"        \"\"\"Process the \u0027revision\u0027 Alembic command.\"\"\""},{"line_number":69,"context_line":"        if dburl is None:"},{"line_number":70,"context_line":"            commands.generate(autogenerate\u003dautogen, message\u003dstr(message),"},{"line_number":71,"context_line":"                              sql_url\u003dcfg.CONF.sql_connection)"},{"line_number":72,"context_line":"        else:"},{"line_number":73,"context_line":"            commands.generate(autogenerate\u003dautogen, message\u003dstr(message),"}],"source_content_type":"text/x-python","patch_set":7,"id":"9aed3d3a_65cef05b","line":70,"in_reply_to":"bae84128_6000e066","updated":"2016-02-25 23:04:13.000000000","message":"Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":81,"context_line":"          \u0027the latest/head if not specified.\u0027)"},{"line_number":82,"context_line":"    def upgrade(self, dburl\u003dNone, version\u003dNone):"},{"line_number":83,"context_line":"        \"\"\"Process the \u0027upgrade\u0027 Alembic command.\"\"\""},{"line_number":84,"context_line":"        if dburl is None:"},{"line_number":85,"context_line":"            commands.upgrade(to_version\u003dstr(version),"},{"line_number":86,"context_line":"                             sql_url\u003dcfg.CONF.sql_connection)"},{"line_number":87,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":7,"id":"bae84128_605c607d","line":84,"updated":"2016-02-24 17:01:50.000000000","message":"Not tested","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"1b01ad737dbe8a6e1c8798cbb454c8e37bf1786d","unresolved":false,"context_lines":[{"line_number":81,"context_line":"          \u0027the latest/head if not specified.\u0027)"},{"line_number":82,"context_line":"    def upgrade(self, dburl\u003dNone, version\u003dNone):"},{"line_number":83,"context_line":"        \"\"\"Process the \u0027upgrade\u0027 Alembic command.\"\"\""},{"line_number":84,"context_line":"        if dburl is None:"},{"line_number":85,"context_line":"            commands.upgrade(to_version\u003dstr(version),"},{"line_number":86,"context_line":"                             sql_url\u003dcfg.CONF.sql_connection)"},{"line_number":87,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":7,"id":"9aed3d3a_25034875","line":84,"in_reply_to":"bae84128_605c607d","updated":"2016-02-25 23:04:13.000000000","message":"Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":93,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, action\u003d\u0027store_true\u0027, dest\u003d\u0027verbose\u0027,"},{"line_number":94,"context_line":"          default\u003dFalse, help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":95,"context_line":"    def history(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":96,"context_line":"        if dburl is None:"},{"line_number":97,"context_line":"            commands.history(verbose, sql_url\u003dcfg.CONF.sql_connection)"},{"line_number":98,"context_line":"        else:"},{"line_number":99,"context_line":"            commands.history(verbose, sql_url\u003dstr(dburl))"}],"source_content_type":"text/x-python","patch_set":7,"id":"bae84128_6c0272b5","line":96,"updated":"2016-02-24 17:01:50.000000000","message":"Not tested","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"1b01ad737dbe8a6e1c8798cbb454c8e37bf1786d","unresolved":false,"context_lines":[{"line_number":93,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, action\u003d\u0027store_true\u0027, dest\u003d\u0027verbose\u0027,"},{"line_number":94,"context_line":"          default\u003dFalse, help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":95,"context_line":"    def history(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":96,"context_line":"        if dburl is None:"},{"line_number":97,"context_line":"            commands.history(verbose, sql_url\u003dcfg.CONF.sql_connection)"},{"line_number":98,"context_line":"        else:"},{"line_number":99,"context_line":"            commands.history(verbose, sql_url\u003dstr(dburl))"}],"source_content_type":"text/x-python","patch_set":7,"id":"9aed3d3a_85f8547e","line":96,"in_reply_to":"bae84128_6c0272b5","updated":"2016-02-25 23:04:13.000000000","message":"Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, action\u003d\u0027store_true\u0027, dest\u003d\u0027verbose\u0027,"},{"line_number":105,"context_line":"          default\u003dFalse, help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":106,"context_line":"    def current(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":107,"context_line":"        if dburl is None:"},{"line_number":108,"context_line":"            commands.current(verbose, sql_url\u003dcfg.CONF.sql_connection)"},{"line_number":109,"context_line":"        else:"},{"line_number":110,"context_line":"            commands.current(verbose, sql_url\u003dstr(dburl))"}],"source_content_type":"text/x-python","patch_set":7,"id":"bae84128_ec24c260","line":107,"updated":"2016-02-24 17:01:50.000000000","message":"Not tested","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"1b01ad737dbe8a6e1c8798cbb454c8e37bf1786d","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    @args(\u0027--verbose\u0027, \u0027-V\u0027, action\u003d\u0027store_true\u0027, dest\u003d\u0027verbose\u0027,"},{"line_number":105,"context_line":"          default\u003dFalse, help\u003d\u0027Show full information about the revisions.\u0027)"},{"line_number":106,"context_line":"    def current(self, dburl\u003dNone, verbose\u003dNone):"},{"line_number":107,"context_line":"        if dburl is None:"},{"line_number":108,"context_line":"            commands.current(verbose, sql_url\u003dcfg.CONF.sql_connection)"},{"line_number":109,"context_line":"        else:"},{"line_number":110,"context_line":"            commands.current(verbose, sql_url\u003dstr(dburl))"}],"source_content_type":"text/x-python","patch_set":7,"id":"9aed3d3a_a5ef58af","line":107,"in_reply_to":"bae84128_ec24c260","updated":"2016-02-25 23:04:13.000000000","message":"Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":110,"context_line":"            commands.current(verbose, sql_url\u003dstr(dburl))"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"class HsmCommands(object):"},{"line_number":114,"context_line":"    \"\"\"Class for managing HSM/pkcs11 plugin\"\"\""},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    description \u003d \"Subcommands for managing HSM/PKCS11\""}],"source_content_type":"text/x-python","patch_set":7,"id":"bae84128_e0ecf0bc","line":113,"updated":"2016-02-24 17:01:50.000000000","message":"HSM","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"e1777fc8b5278c2b228258d2ce54fa1540436172","unresolved":false,"context_lines":[{"line_number":110,"context_line":"            commands.current(verbose, sql_url\u003dstr(dburl))"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"class HsmCommands(object):"},{"line_number":114,"context_line":"    \"\"\"Class for managing HSM/pkcs11 plugin\"\"\""},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    description \u003d \"Subcommands for managing HSM/PKCS11\""}],"source_content_type":"text/x-python","patch_set":7,"id":"bae84128_02756dc9","line":113,"in_reply_to":"bae84128_e0ecf0bc","updated":"2016-02-24 17:36:01.000000000","message":"Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    @args(\u0027--dry-run\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, dest\u003d\u0027dryrun\u0027, default\u003dFalse,"},{"line_number":167,"context_line":"          help\u003d\u0027Displays changes that will be made (Non-destructive)\u0027)"},{"line_number":168,"context_line":"    def rewrap_pkek(self, dryrun\u003dNone):"},{"line_number":169,"context_line":"        rewrapper \u003d pkcs11_rewrap.KekRewrap(pkcs11_rewrap.CONF)"},{"line_number":170,"context_line":"        rewrapper.execute(dryrun)"},{"line_number":171,"context_line":"        rewrapper.pkcs11.return_session(rewrapper.hsm_session)"}],"source_content_type":"text/x-python","patch_set":7,"id":"bae84128_a03dc82c","line":168,"updated":"2016-02-24 17:01:50.000000000","message":"This is not tested.","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"ab0795d365bfa2f8b202359f4bc98ffdab34495d","unresolved":false,"context_lines":[{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    @args(\u0027--dry-run\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, dest\u003d\u0027dryrun\u0027, default\u003dFalse,"},{"line_number":167,"context_line":"          help\u003d\u0027Displays changes that will be made (Non-destructive)\u0027)"},{"line_number":168,"context_line":"    def rewrap_pkek(self, dryrun\u003dNone):"},{"line_number":169,"context_line":"        rewrapper \u003d pkcs11_rewrap.KekRewrap(pkcs11_rewrap.CONF)"},{"line_number":170,"context_line":"        rewrapper.execute(dryrun)"},{"line_number":171,"context_line":"        rewrapper.pkcs11.return_session(rewrapper.hsm_session)"}],"source_content_type":"text/x-python","patch_set":7,"id":"bae84128_21d4acbb","line":168,"in_reply_to":"bae84128_a03dc82c","updated":"2016-02-25 18:13:00.000000000","message":"unit tests for this function will fail until this changeset is merged: https://review.openstack.org/#/c/279371/","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":257,"context_line":"    \"\"\"Parse options and call the appropriate class/method.\"\"\""},{"line_number":258,"context_line":"    CONF \u003d config.new_config()"},{"line_number":259,"context_line":"    CONF.register_cli_opt(category_opt)"},{"line_number":260,"context_line":"    if len(sys.argv) \u003c 2:"},{"line_number":261,"context_line":"        script_name \u003d sys.argv[0]"},{"line_number":262,"context_line":"        print(\"%s category action [\u003cargs\u003e]\" % script_name)"},{"line_number":263,"context_line":"        print(\"Available categories:\")"}],"source_content_type":"text/x-python","patch_set":7,"id":"bae84128_c070cc0d","line":260,"updated":"2016-02-24 17:01:50.000000000","message":"This is not tested.","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"1b01ad737dbe8a6e1c8798cbb454c8e37bf1786d","unresolved":false,"context_lines":[{"line_number":257,"context_line":"    \"\"\"Parse options and call the appropriate class/method.\"\"\""},{"line_number":258,"context_line":"    CONF \u003d config.new_config()"},{"line_number":259,"context_line":"    CONF.register_cli_opt(category_opt)"},{"line_number":260,"context_line":"    if len(sys.argv) \u003c 2:"},{"line_number":261,"context_line":"        script_name \u003d sys.argv[0]"},{"line_number":262,"context_line":"        print(\"%s category action [\u003cargs\u003e]\" % script_name)"},{"line_number":263,"context_line":"        print(\"Available categories:\")"}],"source_content_type":"text/x-python","patch_set":7,"id":"9aed3d3a_4535ac44","line":260,"in_reply_to":"bae84128_c070cc0d","updated":"2016-02-25 23:04:13.000000000","message":"this section is now removed. So Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"28600f14ba2494371fc80d53954dcd9106faab15","unresolved":false,"context_lines":[{"line_number":259,"context_line":"    CONF.register_cli_opt(category_opt)"},{"line_number":260,"context_line":"    if len(sys.argv) \u003c 2:"},{"line_number":261,"context_line":"        script_name \u003d sys.argv[0]"},{"line_number":262,"context_line":"        print(\"%s category action [\u003cargs\u003e]\" % script_name)"},{"line_number":263,"context_line":"        print(\"Available categories:\")"},{"line_number":264,"context_line":"        for category in CATEGORIES:"},{"line_number":265,"context_line":"            print((\"\\t%s\") % category)"}],"source_content_type":"text/x-python","patch_set":9,"id":"bae84128_14a48406","line":262,"updated":"2016-02-24 18:34:37.000000000","message":"Instead of printing:\n\n\"\n\n* /usr/local/bin/barbican-manage category action [\u003cargs\u003e]\n* Available categories:\n\t* db\n\t* hsm\n\n\"\n\nWe should make this neater:\n\n\"\n\n* usage: barbican-manage [-h] [\u003ccategory\u003e] [\u003caction\u003e] [\u003cargs\u003e]\n* Available categories:\n\t* db\n\t* hsm\n* barbican-manage: error: too few arguments\n\n\"","commit_id":"55c1c2f13cfb3b940d569f9170084bb0a03f1a42"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"cb2831131b7e81845d81b1d174f65a92550a1b39","unresolved":false,"context_lines":[{"line_number":259,"context_line":"    CONF.register_cli_opt(category_opt)"},{"line_number":260,"context_line":"    if len(sys.argv) \u003c 2:"},{"line_number":261,"context_line":"        script_name \u003d sys.argv[0]"},{"line_number":262,"context_line":"        print(\"%s category action [\u003cargs\u003e]\" % script_name)"},{"line_number":263,"context_line":"        print(\"Available categories:\")"},{"line_number":264,"context_line":"        for category in CATEGORIES:"},{"line_number":265,"context_line":"            print((\"\\t%s\") % category)"}],"source_content_type":"text/x-python","patch_set":9,"id":"bae84128_1bf78cf6","line":262,"in_reply_to":"bae84128_14a48406","updated":"2016-02-24 21:07:48.000000000","message":"Taking out the if block gives standard oslo error output, so I\u0027ll go with that","commit_id":"55c1c2f13cfb3b940d569f9170084bb0a03f1a42"},{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"91a64daae3d54e4b799f062e668417d7099138cc","unresolved":false,"context_lines":[{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    rewrap_pkek_description \u003d \"Re-wrap project MKEKs\""},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    @args(\u0027--dry-run\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, dest\u003d\u0027dryrun\u0027, default\u003dFalse,"},{"line_number":167,"context_line":"          help\u003d\u0027Displays changes that will be made (Non-destructive)\u0027)"},{"line_number":168,"context_line":"    def rewrap_pkek(self, dryrun\u003dNone):"},{"line_number":169,"context_line":"        rewrapper \u003d pkcs11_rewrap.KekRewrap(pkcs11_rewrap.CONF)"}],"source_content_type":"text/x-python","patch_set":10,"id":"bae84128_b6b8352c","line":166,"updated":"2016-02-24 21:08:50.000000000","message":"I think having --dry-run need a boolean value is a bit of overkill. It would be easier to just make it a boolean value itself like --autogenerate on line 65\n\nAlso it\u0027s more in line with the documentation you added since the docs don\u0027t actually show the passing of the boolean value.","commit_id":"7db777ccb5f794779265f927b3a730d0577eea72"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"39c571bad002b59039f4ea3932be6e1aa5e491f8","unresolved":false,"context_lines":[{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    rewrap_pkek_description \u003d \"Re-wrap project MKEKs\""},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    @args(\u0027--dry-run\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, dest\u003d\u0027dryrun\u0027, default\u003dFalse,"},{"line_number":167,"context_line":"          help\u003d\u0027Displays changes that will be made (Non-destructive)\u0027)"},{"line_number":168,"context_line":"    def rewrap_pkek(self, dryrun\u003dNone):"},{"line_number":169,"context_line":"        rewrapper \u003d pkcs11_rewrap.KekRewrap(pkcs11_rewrap.CONF)"}],"source_content_type":"text/x-python","patch_set":10,"id":"bae84128_56e3a905","line":166,"in_reply_to":"bae84128_b6b8352c","updated":"2016-02-25 18:13:04.000000000","message":"Ah yes, I thought I had gotten rid of all of these explicit booleans. Great catch, Chris","commit_id":"7db777ccb5f794779265f927b3a730d0577eea72"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"93eb5b145d41e8154004315a80dd95040d99e2df","unresolved":false,"context_lines":[{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    rewrap_pkek_description \u003d \"Re-wrap project MKEKs\""},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    @args(\u0027--dry-run\u0027, metavar\u003d\u0027\u003cTrue or False\u003e\u0027, dest\u003d\u0027dryrun\u0027, default\u003dFalse,"},{"line_number":167,"context_line":"          help\u003d\u0027Displays changes that will be made (Non-destructive)\u0027)"},{"line_number":168,"context_line":"    def rewrap_pkek(self, dryrun\u003dNone):"},{"line_number":169,"context_line":"        rewrapper \u003d pkcs11_rewrap.KekRewrap(pkcs11_rewrap.CONF)"}],"source_content_type":"text/x-python","patch_set":10,"id":"bae84128_7236b6e8","line":166,"in_reply_to":"bae84128_b6b8352c","updated":"2016-02-24 22:12:11.000000000","message":"true, we should add action\u003dstore_true here also","commit_id":"7db777ccb5f794779265f927b3a730d0577eea72"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"9652f08500bd2e1ea6942b82601bbf0c4f0e754d","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    def _decorator(func):"},{"line_number":44,"context_line":"        func.__dict__.setdefault(\u0027args\u0027, []).insert(0, (args, kwargs))"},{"line_number":45,"context_line":"        return func"},{"line_number":46,"context_line":"    return _decorator"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class DbCommands(object):"}],"source_content_type":"text/x-python","patch_set":13,"id":"7af24918_d6115aae","line":46,"updated":"2016-03-01 23:12:06.000000000","message":"Was this inspired by the nova-manage command?  Did you consider using cliff instead?  I\u0027m just curious, I don\u0027t want y\u0027all to have to rewrite this module.","commit_id":"845d7df794d003b316c12b86382e2be90b1f4a38"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"4348bfc35fd77fbc972844776b648843bc2a1154","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    def _decorator(func):"},{"line_number":44,"context_line":"        func.__dict__.setdefault(\u0027args\u0027, []).insert(0, (args, kwargs))"},{"line_number":45,"context_line":"        return func"},{"line_number":46,"context_line":"    return _decorator"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class DbCommands(object):"}],"source_content_type":"text/x-python","patch_set":13,"id":"7af24918_79a039a0","line":46,"in_reply_to":"7af24918_d6115aae","updated":"2016-03-01 23:30:23.000000000","message":"Yes. it\u0027s from nova-manage. We should put some note here for this. Other projects like glance-manage, heat-manage are using same approach too.","commit_id":"845d7df794d003b316c12b86382e2be90b1f4a38"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"9652f08500bd2e1ea6942b82601bbf0c4f0e754d","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    revision_description \u003d \"Create a new database version file\""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":63,"context_line":"    @args(\u0027--message\u0027, \u0027-m\u0027, metavar\u003d\u0027\u003cmessage\u003e\u0027, default\u003d\u0027DB change\u0027,"},{"line_number":64,"context_line":"          help\u003d\u0027the message for the DB change\u0027)"},{"line_number":65,"context_line":"    @args(\u0027--autogenerate\u0027, action\u003d\"store_true\", dest\u003d\u0027autogen\u0027,"}],"source_content_type":"text/x-python","patch_set":13,"id":"7af24918_f6d1f6ce","line":62,"updated":"2016-03-01 23:12:06.000000000","message":"Consider renaming this --db-url.  I realize the existing db management tool doesn\u0027t have the extra dash, but this seems inconsistent since pretty much all other options use dashes to delimit words.  What do you think?","commit_id":"845d7df794d003b316c12b86382e2be90b1f4a38"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"4348bfc35fd77fbc972844776b648843bc2a1154","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    revision_description \u003d \"Create a new database version file\""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @args(\u0027--dburl\u0027, \u0027-d\u0027, metavar\u003d\u0027\u003cdb-url\u003e\u0027, help\u003d\u0027barbican database URL\u0027)"},{"line_number":63,"context_line":"    @args(\u0027--message\u0027, \u0027-m\u0027, metavar\u003d\u0027\u003cmessage\u003e\u0027, default\u003d\u0027DB change\u0027,"},{"line_number":64,"context_line":"          help\u003d\u0027the message for the DB change\u0027)"},{"line_number":65,"context_line":"    @args(\u0027--autogenerate\u0027, action\u003d\"store_true\", dest\u003d\u0027autogen\u0027,"}],"source_content_type":"text/x-python","patch_set":13,"id":"7af24918_f999e96f","line":62,"in_reply_to":"7af24918_f6d1f6ce","updated":"2016-03-01 23:30:23.000000000","message":"make sense. will do it.","commit_id":"845d7df794d003b316c12b86382e2be90b1f4a38"}],"barbican/tests/cmd/test_barbican_manage.py":[{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"91a64daae3d54e4b799f062e668417d7099138cc","unresolved":false,"context_lines":[{"line_number":41,"context_line":"class TestBarbicanManage(TestBarbicanManageBase):"},{"line_number":42,"context_line":"    \"\"\"Test barbican-manage functionality.\"\"\""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    @mock.patch(\u0027barbican.model.migration.commands.generate\u0027)"},{"line_number":45,"context_line":"    def test_db_revision(self, mock_generate):"},{"line_number":46,"context_line":"        self._main_test_helper("},{"line_number":47,"context_line":"            [\u0027barbican.cmd.barbican_manage\u0027, \u0027db\u0027, \u0027revision\u0027, \u0027--dburl\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"bae84128_f6ce3db6","line":44,"updated":"2016-02-24 21:08:50.000000000","message":"Could you add another test that makes sure when autogenerate is passed in it is passed as True? That way the flags are all tested for revision.","commit_id":"7db777ccb5f794779265f927b3a730d0577eea72"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"39c571bad002b59039f4ea3932be6e1aa5e491f8","unresolved":false,"context_lines":[{"line_number":41,"context_line":"class TestBarbicanManage(TestBarbicanManageBase):"},{"line_number":42,"context_line":"    \"\"\"Test barbican-manage functionality.\"\"\""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    @mock.patch(\u0027barbican.model.migration.commands.generate\u0027)"},{"line_number":45,"context_line":"    def test_db_revision(self, mock_generate):"},{"line_number":46,"context_line":"        self._main_test_helper("},{"line_number":47,"context_line":"            [\u0027barbican.cmd.barbican_manage\u0027, \u0027db\u0027, \u0027revision\u0027, \u0027--dburl\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"bae84128_7ed131fb","line":44,"in_reply_to":"bae84128_12d2ca34","updated":"2016-02-25 18:13:04.000000000","message":"Done","commit_id":"7db777ccb5f794779265f927b3a730d0577eea72"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"93eb5b145d41e8154004315a80dd95040d99e2df","unresolved":false,"context_lines":[{"line_number":41,"context_line":"class TestBarbicanManage(TestBarbicanManageBase):"},{"line_number":42,"context_line":"    \"\"\"Test barbican-manage functionality.\"\"\""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    @mock.patch(\u0027barbican.model.migration.commands.generate\u0027)"},{"line_number":45,"context_line":"    def test_db_revision(self, mock_generate):"},{"line_number":46,"context_line":"        self._main_test_helper("},{"line_number":47,"context_line":"            [\u0027barbican.cmd.barbican_manage\u0027, \u0027db\u0027, \u0027revision\u0027, \u0027--dburl\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"bae84128_12d2ca34","line":44,"in_reply_to":"bae84128_f6ce3db6","updated":"2016-02-24 22:12:11.000000000","message":"code will be:\n\ndef test_db_revision_autogen_true(self, mock_generate):\n        self._main_test_helper(\n            [\u0027barbican.cmd.barbican_manage\u0027, \u0027db\u0027, \u0027revision\u0027, \u0027--dburl\u0027,\n             \u0027mockdb\u0027, \u0027--message\u0027, \u0027mockmsg\u0027, \u0027--autogenerate\u0027, \u0027True\u0027], mock_generate,\n            autogenerate\u003dTrue, message\u003d\u0027mockmsg\u0027, sql_url\u003d\u0027mockdb\u0027)\n\n\n\nWe will add more detailed test scenarios after the feature is merged.","commit_id":"7db777ccb5f794779265f927b3a730d0577eea72"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"cc3d2334847fdaf71a6e38477930b6870a7cebfb","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    def test_db_revision_autogenerate(self, mock_generate):"},{"line_number":53,"context_line":"        self._main_test_helper("},{"line_number":54,"context_line":"            [\u0027barbican.cmd.barbican_manage\u0027, \u0027db\u0027, \u0027revision\u0027, \u0027--dburl\u0027,"},{"line_number":55,"context_line":"             \u0027mockdb\u0027, \u0027--message\u0027, \u0027mockmsg\u0027, \u0027--autogenerate\u0027],"},{"line_number":56,"context_line":"            mock_generate, autogenerate\u003dTrue, message\u003d\u0027mockmsg\u0027,"},{"line_number":57,"context_line":"            sql_url\u003d\u0027mockdb\u0027)"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"9aed3d3a_61f9cdc8","line":55,"range":{"start_line":55,"start_character":62,"end_line":55,"end_character":65},"updated":"2016-02-25 19:50:28.000000000","message":"Michael, without passing in \u0027True\u0027 here in arguments. The default of \u0027autogenerate\u0027 is False. right ? but we\u0027re testing autogenerate\u003dTrue in this test case.","commit_id":"68d606073a0318619af207deee8d27a212c2f28f"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"66f7c39d8071abf6380ac478ac8781c12f5226f5","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    def test_db_revision_autogenerate(self, mock_generate):"},{"line_number":53,"context_line":"        self._main_test_helper("},{"line_number":54,"context_line":"            [\u0027barbican.cmd.barbican_manage\u0027, \u0027db\u0027, \u0027revision\u0027, \u0027--dburl\u0027,"},{"line_number":55,"context_line":"             \u0027mockdb\u0027, \u0027--message\u0027, \u0027mockmsg\u0027, \u0027--autogenerate\u0027],"},{"line_number":56,"context_line":"            mock_generate, autogenerate\u003dTrue, message\u003d\u0027mockmsg\u0027,"},{"line_number":57,"context_line":"            sql_url\u003d\u0027mockdb\u0027)"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"9aed3d3a_c1c099e3","line":55,"range":{"start_line":55,"start_character":62,"end_line":55,"end_character":65},"in_reply_to":"9aed3d3a_61f9cdc8","updated":"2016-02-25 20:02:33.000000000","message":"no, if you look at the barbican_manage.py revision function, I define action\u003dstore_true, so if you pass the \u0027--autogenerate\u0027 option, you are setting autogenerate\u003dTrue. Not including \u0027--autogenerate\u0027 option in the revision command is equivalent to autogenerate\u003dFalse, since that is the default value.\n\nI ran tests and verified all passed.. Unless my .tox directory has some old information in it","commit_id":"68d606073a0318619af207deee8d27a212c2f28f"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"2a4bcfa9edf66a1d6c99d7d8e5f711812582fd20","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    def test_db_revision_autogenerate(self, mock_generate):"},{"line_number":53,"context_line":"        self._main_test_helper("},{"line_number":54,"context_line":"            [\u0027barbican.cmd.barbican_manage\u0027, \u0027db\u0027, \u0027revision\u0027, \u0027--dburl\u0027,"},{"line_number":55,"context_line":"             \u0027mockdb\u0027, \u0027--message\u0027, \u0027mockmsg\u0027, \u0027--autogenerate\u0027],"},{"line_number":56,"context_line":"            mock_generate, autogenerate\u003dTrue, message\u003d\u0027mockmsg\u0027,"},{"line_number":57,"context_line":"            sql_url\u003d\u0027mockdb\u0027)"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"9aed3d3a_373b83ed","line":55,"range":{"start_line":55,"start_character":62,"end_line":55,"end_character":65},"in_reply_to":"9aed3d3a_c1c099e3","updated":"2016-02-25 20:42:41.000000000","message":"oh ok. thanks.","commit_id":"68d606073a0318619af207deee8d27a212c2f28f"}],"doc/source/admin-guide-cloud/barbican_manage.rst":[{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"787ccf2f90064a982059072cc22df8cd25145681","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"DESCRIPTION"},{"line_number":15,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":16,"context_line":"barbican-manage is used to control Barbican key management service Database and"},{"line_number":17,"context_line":"Hardware Secure Module (HSM) plugin device. For example migrating secret"},{"line_number":18,"context_line":"database or generating Master Key Encryption Key (MKEKE) in HSM. This command"},{"line_number":19,"context_line":"should only be executed by user with admin privilege."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"OPTIONS"},{"line_number":22,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dae33548_10e5bb07","line":19,"range":{"start_line":16,"start_character":0,"end_line":19,"end_character":53},"updated":"2016-02-18 21:50:30.000000000","message":"I have a few nits about grammar in this part. A possible change could be:\n\n\"barbican-manage is a utility that is used to control the barbican key management service database and Hardware Secure Module (HSM) plugin device. Use cases include migrating the secret database or generating a Master Key Encryption Key (MKEKE) in the HSM. This command set should only be executed by a user with admin privilege\"","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"c687b6907fabb26aff4ed5a2bbb200ccf5c7e912","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"DESCRIPTION"},{"line_number":15,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":16,"context_line":"barbican-manage is used to control Barbican key management service Database and"},{"line_number":17,"context_line":"Hardware Secure Module (HSM) plugin device. For example migrating secret"},{"line_number":18,"context_line":"database or generating Master Key Encryption Key (MKEKE) in HSM. This command"},{"line_number":19,"context_line":"should only be executed by user with admin privilege."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"OPTIONS"},{"line_number":22,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bae84128_ac7461fd","line":19,"range":{"start_line":16,"start_character":0,"end_line":19,"end_character":53},"in_reply_to":"dae33548_10e5bb07","updated":"2016-02-19 15:21:45.000000000","message":"Done","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"787ccf2f90064a982059072cc22df8cd25145681","unresolved":false,"context_lines":[{"line_number":28,"context_line":"Run with help option to see a list of available command categories:"},{"line_number":29,"context_line":"``barbican-manage --help``"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Categories are *db* and *hsm*. Detailed descriptions are below."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"You can also run with a category argument so that user can see a list of all"},{"line_number":34,"context_line":"commands in that category:"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dae33548_30427fae","line":31,"range":{"start_line":31,"start_character":0,"end_line":31,"end_character":63},"updated":"2016-02-18 21:50:30.000000000","message":"This sentence seems out of place, since the sections before and after it talk about the --help option. Maybe move it to right after your section about the standard pattern?","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"c687b6907fabb26aff4ed5a2bbb200ccf5c7e912","unresolved":false,"context_lines":[{"line_number":28,"context_line":"Run with help option to see a list of available command categories:"},{"line_number":29,"context_line":"``barbican-manage --help``"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Categories are *db* and *hsm*. Detailed descriptions are below."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"You can also run with a category argument so that user can see a list of all"},{"line_number":34,"context_line":"commands in that category:"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bae84128_6c86d9ba","line":31,"range":{"start_line":31,"start_character":0,"end_line":31,"end_character":63},"in_reply_to":"dae33548_30427fae","updated":"2016-02-19 15:21:45.000000000","message":"Done","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"787ccf2f90064a982059072cc22df8cd25145681","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Categories are *db* and *hsm*. Detailed descriptions are below."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"You can also run with a category argument so that user can see a list of all"},{"line_number":34,"context_line":"commands in that category:"},{"line_number":35,"context_line":"``barbican-manage db --help``"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"dae33548_7076c706","line":33,"range":{"start_line":33,"start_character":0,"end_line":33,"end_character":17},"updated":"2016-02-18 21:50:30.000000000","message":"Maybe \"Help can also be run\"?","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"787ccf2f90064a982059072cc22df8cd25145681","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Categories are *db* and *hsm*. Detailed descriptions are below."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"You can also run with a category argument so that user can see a list of all"},{"line_number":34,"context_line":"commands in that category:"},{"line_number":35,"context_line":"``barbican-manage db --help``"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"dae33548_501aa3c6","line":33,"range":{"start_line":33,"start_character":49,"end_line":33,"end_character":50},"updated":"2016-02-18 21:50:30.000000000","message":"the","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"c687b6907fabb26aff4ed5a2bbb200ccf5c7e912","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Categories are *db* and *hsm*. Detailed descriptions are below."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"You can also run with a category argument so that user can see a list of all"},{"line_number":34,"context_line":"commands in that category:"},{"line_number":35,"context_line":"``barbican-manage db --help``"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bae84128_c7bedefe","line":33,"range":{"start_line":33,"start_character":49,"end_line":33,"end_character":50},"in_reply_to":"dae33548_501aa3c6","updated":"2016-02-19 15:21:45.000000000","message":"Done","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"787ccf2f90064a982059072cc22df8cd25145681","unresolved":false,"context_lines":[{"line_number":34,"context_line":"commands in that category:"},{"line_number":35,"context_line":"``barbican-manage db --help``"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"``barbican-manage --version`` shows version number of Barbican Service."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Following sections describe the available categories and arguments for"},{"line_number":40,"context_line":"barbican-manage."}],"source_content_type":"text/x-rst","patch_set":1,"id":"dae33548_b08a0f19","line":37,"range":{"start_line":37,"start_character":43,"end_line":37,"end_character":44},"updated":"2016-02-18 21:50:30.000000000","message":"the","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"c687b6907fabb26aff4ed5a2bbb200ccf5c7e912","unresolved":false,"context_lines":[{"line_number":34,"context_line":"commands in that category:"},{"line_number":35,"context_line":"``barbican-manage db --help``"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"``barbican-manage --version`` shows version number of Barbican Service."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Following sections describe the available categories and arguments for"},{"line_number":40,"context_line":"barbican-manage."}],"source_content_type":"text/x-rst","patch_set":1,"id":"bae84128_874b362b","line":37,"range":{"start_line":37,"start_character":43,"end_line":37,"end_character":44},"in_reply_to":"dae33548_b08a0f19","updated":"2016-02-19 15:21:45.000000000","message":"Done","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"787ccf2f90064a982059072cc22df8cd25145681","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"``barbican-manage --version`` shows version number of Barbican Service."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Following sections describe the available categories and arguments for"},{"line_number":40,"context_line":"barbican-manage."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Barbican Database"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dae33548_d0acf3a0","line":39,"range":{"start_line":39,"start_character":0,"end_line":39,"end_character":9},"updated":"2016-02-18 21:50:30.000000000","message":"The following","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"c687b6907fabb26aff4ed5a2bbb200ccf5c7e912","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"``barbican-manage --version`` shows version number of Barbican Service."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Following sections describe the available categories and arguments for"},{"line_number":40,"context_line":"barbican-manage."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Barbican Database"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bae84128_e70962df","line":39,"range":{"start_line":39,"start_character":0,"end_line":39,"end_character":9},"in_reply_to":"dae33548_d0acf3a0","updated":"2016-02-19 15:21:45.000000000","message":"Done","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"787ccf2f90064a982059072cc22df8cd25145681","unresolved":false,"context_lines":[{"line_number":43,"context_line":"~~~~~~~~~~~~~~~~~"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":".. Note::"},{"line_number":46,"context_line":"    Before executing **barbican-manage db** commands, make sure read and"},{"line_number":47,"context_line":"    understand `Database Migration`_ first."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"``barbican-manage db revision [--dburl] [--message] [--autogenerate]``"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dae33548_30571f59","line":46,"range":{"start_line":46,"start_character":63,"end_line":46,"end_character":64},"updated":"2016-02-18 21:50:30.000000000","message":"to","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"c687b6907fabb26aff4ed5a2bbb200ccf5c7e912","unresolved":false,"context_lines":[{"line_number":43,"context_line":"~~~~~~~~~~~~~~~~~"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":".. Note::"},{"line_number":46,"context_line":"    Before executing **barbican-manage db** commands, make sure read and"},{"line_number":47,"context_line":"    understand `Database Migration`_ first."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"``barbican-manage db revision [--dburl] [--message] [--autogenerate]``"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bae84128_e7e162d2","line":46,"range":{"start_line":46,"start_character":63,"end_line":46,"end_character":64},"in_reply_to":"dae33548_30571f59","updated":"2016-02-19 15:21:45.000000000","message":"Done","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"787ccf2f90064a982059072cc22df8cd25145681","unresolved":false,"context_lines":[{"line_number":43,"context_line":"~~~~~~~~~~~~~~~~~"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":".. Note::"},{"line_number":46,"context_line":"    Before executing **barbican-manage db** commands, make sure read and"},{"line_number":47,"context_line":"    understand `Database Migration`_ first."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"``barbican-manage db revision [--dburl] [--message] [--autogenerate]``"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"dae33548_b0c96f28","line":47,"range":{"start_line":46,"start_character":69,"end_line":47,"end_character":14},"updated":"2016-02-18 21:50:30.000000000","message":"may not be necessary. Not sure, your call.","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"787ccf2f90064a982059072cc22df8cd25145681","unresolved":false,"context_lines":[{"line_number":85,"context_line":"``barbican-manage hsm rewrap_pkek [--dry-run]``"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    Rewrap project key encryption keys after rotating to new MKEK and/or HMAC key"},{"line_number":88,"context_line":"    in HSM. The new MKEK and HMAC key should have been already generated using above"},{"line_number":89,"context_line":"    commands. The user have to configure new MKEK and HMAC key labels in"},{"line_number":90,"context_line":"    /etc/barbican.conf and restart Barbican server before executing this"},{"line_number":91,"context_line":"    *barbican-manage hsm rewrap_pkek* command."}],"source_content_type":"text/x-rst","patch_set":1,"id":"dae33548_0b946a88","line":88,"range":{"start_line":88,"start_character":50,"end_line":88,"end_character":62},"updated":"2016-02-18 21:50:30.000000000","message":"switch the order of these words","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"787ccf2f90064a982059072cc22df8cd25145681","unresolved":false,"context_lines":[{"line_number":85,"context_line":"``barbican-manage hsm rewrap_pkek [--dry-run]``"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    Rewrap project key encryption keys after rotating to new MKEK and/or HMAC key"},{"line_number":88,"context_line":"    in HSM. The new MKEK and HMAC key should have been already generated using above"},{"line_number":89,"context_line":"    commands. The user have to configure new MKEK and HMAC key labels in"},{"line_number":90,"context_line":"    /etc/barbican.conf and restart Barbican server before executing this"},{"line_number":91,"context_line":"    *barbican-manage hsm rewrap_pkek* command."}],"source_content_type":"text/x-rst","patch_set":1,"id":"dae33548_0bdbca7c","line":88,"range":{"start_line":88,"start_character":78,"end_line":88,"end_character":79},"updated":"2016-02-18 21:50:30.000000000","message":"the","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"c687b6907fabb26aff4ed5a2bbb200ccf5c7e912","unresolved":false,"context_lines":[{"line_number":85,"context_line":"``barbican-manage hsm rewrap_pkek [--dry-run]``"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    Rewrap project key encryption keys after rotating to new MKEK and/or HMAC key"},{"line_number":88,"context_line":"    in HSM. The new MKEK and HMAC key should have been already generated using above"},{"line_number":89,"context_line":"    commands. The user have to configure new MKEK and HMAC key labels in"},{"line_number":90,"context_line":"    /etc/barbican.conf and restart Barbican server before executing this"},{"line_number":91,"context_line":"    *barbican-manage hsm rewrap_pkek* command."}],"source_content_type":"text/x-rst","patch_set":1,"id":"bae84128_878976cd","line":88,"range":{"start_line":88,"start_character":78,"end_line":88,"end_character":79},"in_reply_to":"dae33548_0bdbca7c","updated":"2016-02-19 15:21:45.000000000","message":"Done","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"787ccf2f90064a982059072cc22df8cd25145681","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    Rewrap project key encryption keys after rotating to new MKEK and/or HMAC key"},{"line_number":88,"context_line":"    in HSM. The new MKEK and HMAC key should have been already generated using above"},{"line_number":89,"context_line":"    commands. The user have to configure new MKEK and HMAC key labels in"},{"line_number":90,"context_line":"    /etc/barbican.conf and restart Barbican server before executing this"},{"line_number":91,"context_line":"    *barbican-manage hsm rewrap_pkek* command."},{"line_number":92,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"dae33548_abd29e59","line":89,"range":{"start_line":89,"start_character":22,"end_line":89,"end_character":23},"updated":"2016-02-18 21:50:30.000000000","message":"will","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"c687b6907fabb26aff4ed5a2bbb200ccf5c7e912","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    Rewrap project key encryption keys after rotating to new MKEK and/or HMAC key"},{"line_number":88,"context_line":"    in HSM. The new MKEK and HMAC key should have been already generated using above"},{"line_number":89,"context_line":"    commands. The user have to configure new MKEK and HMAC key labels in"},{"line_number":90,"context_line":"    /etc/barbican.conf and restart Barbican server before executing this"},{"line_number":91,"context_line":"    *barbican-manage hsm rewrap_pkek* command."},{"line_number":92,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bae84128_c7937ef9","line":89,"range":{"start_line":89,"start_character":22,"end_line":89,"end_character":23},"in_reply_to":"dae33548_abd29e59","updated":"2016-02-19 15:21:45.000000000","message":"Done","commit_id":"281d3a8a4791c722ca932ec8594515b0f10d1c35"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"2a3cf47d9c724980d24857847d954e6dea3f5779","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"``barbican-manage \u003ccategory\u003e \u003ccommand\u003e [\u003cargs\u003e]``"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Running ``barbican-manage`` without argument to see a list of available command"},{"line_number":30,"context_line":"categories. Currently, there are 2 supported categories: *db* and *hsm*."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Running with a category argument to see a list of commands in that category:"},{"line_number":33,"context_line":"``barbican-manage db --help``"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bae84128_edb94030","line":30,"range":{"start_line":29,"start_character":0,"end_line":30,"end_character":11},"updated":"2016-02-19 17:15:16.000000000","message":"I see two ways that this sentence can be revised:\n\n* change \"Running\" to \"Run\"\n* \"Running ``barbican-manage`` without arguments shows a list of available command categories\"","commit_id":"7688f860d163db04f7738a33923268db92e300e3"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"4b4e8e76138b2e22d1bc1f4b1392490b7fdd015e","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"``barbican-manage \u003ccategory\u003e \u003ccommand\u003e [\u003cargs\u003e]``"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Running ``barbican-manage`` without argument to see a list of available command"},{"line_number":30,"context_line":"categories. Currently, there are 2 supported categories: *db* and *hsm*."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Running with a category argument to see a list of commands in that category:"},{"line_number":33,"context_line":"``barbican-manage db --help``"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bae84128_5c2619bb","line":30,"range":{"start_line":29,"start_character":0,"end_line":30,"end_character":11},"in_reply_to":"bae84128_edb94030","updated":"2016-02-19 17:37:44.000000000","message":"Done","commit_id":"7688f860d163db04f7738a33923268db92e300e3"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"2a3cf47d9c724980d24857847d954e6dea3f5779","unresolved":false,"context_lines":[{"line_number":29,"context_line":"Running ``barbican-manage`` without argument to see a list of available command"},{"line_number":30,"context_line":"categories. Currently, there are 2 supported categories: *db* and *hsm*."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Running with a category argument to see a list of commands in that category:"},{"line_number":33,"context_line":"``barbican-manage db --help``"},{"line_number":34,"context_line":"``barbican-manage hsm --help``"},{"line_number":35,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"bae84128_0dee2422","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":76},"updated":"2016-02-19 17:15:16.000000000","message":"Related to line 30, two ways this sentence can be revised:\n\n* change \"Running\" to \"Run\"\n* \"Running with a category argument shows a list of commands for that category\"","commit_id":"7688f860d163db04f7738a33923268db92e300e3"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"4b4e8e76138b2e22d1bc1f4b1392490b7fdd015e","unresolved":false,"context_lines":[{"line_number":29,"context_line":"Running ``barbican-manage`` without argument to see a list of available command"},{"line_number":30,"context_line":"categories. Currently, there are 2 supported categories: *db* and *hsm*."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Running with a category argument to see a list of commands in that category:"},{"line_number":33,"context_line":"``barbican-manage db --help``"},{"line_number":34,"context_line":"``barbican-manage hsm --help``"},{"line_number":35,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"bae84128_9c7c2174","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":76},"in_reply_to":"bae84128_0dee2422","updated":"2016-02-19 17:37:44.000000000","message":"Done","commit_id":"7688f860d163db04f7738a33923268db92e300e3"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"b0114ac3f426d2d7c9d704a57f80a9065b3e15e0","unresolved":false,"context_lines":[{"line_number":78,"context_line":"``barbican-manage hsm gen_hmac [--library-path] [--passphrase] [--slot-id] [--label] [--length]``"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    Create a new Master HMAC key in HSM."},{"line_number":81,"context_line":"    This HMAC key is used in generating HMAC tag of encrypted project key"},{"line_number":82,"context_line":"    encryption keys. Its label must be unique."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"``barbican-manage hsm rewrap_pkek [--dry-run]``"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bae84128_5fc72b12","line":81,"range":{"start_line":81,"start_character":18,"end_line":81,"end_character":39},"updated":"2016-02-19 20:01:40.000000000","message":"should be \"one of the components used for generating an\"","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"680ba599d07b1ba8347f9da05a9469561c829fae","unresolved":false,"context_lines":[{"line_number":78,"context_line":"``barbican-manage hsm gen_hmac [--library-path] [--passphrase] [--slot-id] [--label] [--length]``"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    Create a new Master HMAC key in HSM."},{"line_number":81,"context_line":"    This HMAC key is used in generating HMAC tag of encrypted project key"},{"line_number":82,"context_line":"    encryption keys. Its label must be unique."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"``barbican-manage hsm rewrap_pkek [--dry-run]``"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bae84128_d2f8457f","line":81,"range":{"start_line":81,"start_character":18,"end_line":81,"end_character":39},"in_reply_to":"bae84128_5fc72b12","updated":"2016-02-19 23:06:35.000000000","message":"Done","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"b0114ac3f426d2d7c9d704a57f80a9065b3e15e0","unresolved":false,"context_lines":[{"line_number":83,"context_line":""},{"line_number":84,"context_line":"``barbican-manage hsm rewrap_pkek [--dry-run]``"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    Rewrap project key encryption keys after rotating to new MKEK and/or HMAC key"},{"line_number":87,"context_line":"    in HSM. The new MKEK and HMAC key should have already been generated using the"},{"line_number":88,"context_line":"    above commands. The user will have to configure new MKEK and HMAC key labels in"},{"line_number":89,"context_line":"    /etc/barbican.conf and restart Barbican server before executing this"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bae84128_96ed188e","line":86,"range":{"start_line":86,"start_character":57,"end_line":86,"end_character":81},"updated":"2016-02-19 20:01:40.000000000","message":"should be: \"new MKEK and/or HMAC key(s)\"... unless you can think of something that is just as short \u0026 concise","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"680ba599d07b1ba8347f9da05a9469561c829fae","unresolved":false,"context_lines":[{"line_number":83,"context_line":""},{"line_number":84,"context_line":"``barbican-manage hsm rewrap_pkek [--dry-run]``"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    Rewrap project key encryption keys after rotating to new MKEK and/or HMAC key"},{"line_number":87,"context_line":"    in HSM. The new MKEK and HMAC key should have already been generated using the"},{"line_number":88,"context_line":"    above commands. The user will have to configure new MKEK and HMAC key labels in"},{"line_number":89,"context_line":"    /etc/barbican.conf and restart Barbican server before executing this"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bae84128_12fd8d3a","line":86,"range":{"start_line":86,"start_character":57,"end_line":86,"end_character":81},"in_reply_to":"bae84128_96ed188e","updated":"2016-02-19 23:06:35.000000000","message":"Done","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"b0114ac3f426d2d7c9d704a57f80a9065b3e15e0","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    in HSM. The new MKEK and HMAC key should have already been generated using the"},{"line_number":88,"context_line":"    above commands. The user will have to configure new MKEK and HMAC key labels in"},{"line_number":89,"context_line":"    /etc/barbican.conf and restart Barbican server before executing this"},{"line_number":90,"context_line":"    *barbican-manage hsm rewrap_pkek* command."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":".. _Database Migration: http://docs.openstack.org/developer/barbican/contribute/database_migrations.html"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bae84128_f62584c2","line":90,"range":{"start_line":90,"start_character":4,"end_line":90,"end_character":37},"updated":"2016-02-19 20:01:40.000000000","message":"it might not be necessary to have this here, since this is the description for the \"barbican-manage hsm rewrap_pkek\" command","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"680ba599d07b1ba8347f9da05a9469561c829fae","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    in HSM. The new MKEK and HMAC key should have already been generated using the"},{"line_number":88,"context_line":"    above commands. The user will have to configure new MKEK and HMAC key labels in"},{"line_number":89,"context_line":"    /etc/barbican.conf and restart Barbican server before executing this"},{"line_number":90,"context_line":"    *barbican-manage hsm rewrap_pkek* command."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":".. _Database Migration: http://docs.openstack.org/developer/barbican/contribute/database_migrations.html"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bae84128_52bc356c","line":90,"range":{"start_line":90,"start_character":4,"end_line":90,"end_character":37},"in_reply_to":"bae84128_f62584c2","updated":"2016-02-19 23:06:35.000000000","message":"Done","commit_id":"c9796bb55d8c5712a0158778e16e6564aea29afe"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":1,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":2,"context_line":"barbican-manage command"},{"line_number":3,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":4,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_6043c013","line":1,"updated":"2016-02-24 17:01:50.000000000","message":"Remove 1 - 3","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"e1777fc8b5278c2b228258d2ce54fa1540436172","unresolved":false,"context_lines":[{"line_number":1,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":2,"context_line":"barbican-manage command"},{"line_number":3,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":4,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_a7d2d359","line":1,"in_reply_to":"bae84128_6043c013","updated":"2016-02-24 17:36:01.000000000","message":"Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":2,"context_line":"barbican-manage command"},{"line_number":3,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"----------------------------"},{"line_number":6,"context_line":"Barbican Key Manager Utility"},{"line_number":7,"context_line":"----------------------------"},{"line_number":8,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_e04fd031","line":5,"updated":"2016-02-24 17:01:50.000000000","message":"Move this up to 1 -3 and change \"-\" to \"\u003d\". The name of the title sets the title in https://review.openstack.org/#/c/282059/7/doc/source/admin-guide-cloud/index.rst","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"e1777fc8b5278c2b228258d2ce54fa1540436172","unresolved":false,"context_lines":[{"line_number":2,"context_line":"barbican-manage command"},{"line_number":3,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"----------------------------"},{"line_number":6,"context_line":"Barbican Key Manager Utility"},{"line_number":7,"context_line":"----------------------------"},{"line_number":8,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_67bd6b01","line":5,"in_reply_to":"bae84128_e04fd031","updated":"2016-02-24 17:36:01.000000000","message":"Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":17,"context_line":"service database and Hardware Secure Module (HSM) plugin device. Use cases"},{"line_number":18,"context_line":"include migrating the secret database or generating a Master Key Encryption"},{"line_number":19,"context_line":"Key (MKEK) in the HSM. This command set should only be executed by a user with"},{"line_number":20,"context_line":"admin privilege."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"OPTIONS"},{"line_number":23,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_402f9c3e","line":20,"updated":"2016-02-24 17:01:50.000000000","message":"privileges","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"e1777fc8b5278c2b228258d2ce54fa1540436172","unresolved":false,"context_lines":[{"line_number":17,"context_line":"service database and Hardware Secure Module (HSM) plugin device. Use cases"},{"line_number":18,"context_line":"include migrating the secret database or generating a Master Key Encryption"},{"line_number":19,"context_line":"Key (MKEK) in the HSM. This command set should only be executed by a user with"},{"line_number":20,"context_line":"admin privilege."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"OPTIONS"},{"line_number":23,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_a76013a6","line":20,"in_reply_to":"bae84128_402f9c3e","updated":"2016-02-24 17:36:01.000000000","message":"Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":30,"context_line":"categories. Currently, there are 2 supported categories: *db* and *hsm*."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Running with a category argument shows a list of commands in that category:"},{"line_number":33,"context_line":"``barbican-manage db --help``"},{"line_number":34,"context_line":"``barbican-manage hsm --help``"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"``barbican-manage --version`` shows the version number of Barbican Service."}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_e0eb50da","line":33,"updated":"2016-02-24 17:01:50.000000000","message":"bullet(*) 33, 34, and 36","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"e1777fc8b5278c2b228258d2ce54fa1540436172","unresolved":false,"context_lines":[{"line_number":30,"context_line":"categories. Currently, there are 2 supported categories: *db* and *hsm*."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Running with a category argument shows a list of commands in that category:"},{"line_number":33,"context_line":"``barbican-manage db --help``"},{"line_number":34,"context_line":"``barbican-manage hsm --help``"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"``barbican-manage --version`` shows the version number of Barbican Service."}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_87bfcfce","line":33,"in_reply_to":"bae84128_e0eb50da","updated":"2016-02-24 17:36:01.000000000","message":"Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":41,"context_line":"Barbican Database"},{"line_number":42,"context_line":"~~~~~~~~~~~~~~~~~"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":".. Note::"},{"line_number":45,"context_line":"    Before executing **barbican-manage db** commands, make sure to read through"},{"line_number":46,"context_line":"    `Database Migration`_ first."},{"line_number":47,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_40a4bcb8","line":44,"updated":"2016-02-24 17:01:50.000000000","message":".. Warning","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"e1777fc8b5278c2b228258d2ce54fa1540436172","unresolved":false,"context_lines":[{"line_number":41,"context_line":"Barbican Database"},{"line_number":42,"context_line":"~~~~~~~~~~~~~~~~~"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":".. Note::"},{"line_number":45,"context_line":"    Before executing **barbican-manage db** commands, make sure to read through"},{"line_number":46,"context_line":"    `Database Migration`_ first."},{"line_number":47,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_c7ac37a1","line":44,"in_reply_to":"bae84128_40a4bcb8","updated":"2016-02-24 17:36:01.000000000","message":"Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":42,"context_line":"~~~~~~~~~~~~~~~~~"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":".. Note::"},{"line_number":45,"context_line":"    Before executing **barbican-manage db** commands, make sure to read through"},{"line_number":46,"context_line":"    `Database Migration`_ first."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"``barbican-manage db revision [--dburl] [--message] [--autogenerate]``"}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_408b1c1f","line":45,"range":{"start_line":45,"start_character":54,"end_line":45,"end_character":79},"updated":"2016-02-24 17:01:50.000000000","message":"Change to \"make sure you are familiar with\"","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"e1777fc8b5278c2b228258d2ce54fa1540436172","unresolved":false,"context_lines":[{"line_number":42,"context_line":"~~~~~~~~~~~~~~~~~"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":".. Note::"},{"line_number":45,"context_line":"    Before executing **barbican-manage db** commands, make sure to read through"},{"line_number":46,"context_line":"    `Database Migration`_ first."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"``barbican-manage db revision [--dburl] [--message] [--autogenerate]``"}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_47a787a6","line":45,"range":{"start_line":45,"start_character":54,"end_line":45,"end_character":79},"in_reply_to":"bae84128_408b1c1f","updated":"2016-02-24 17:36:01.000000000","message":"Done","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8c4a712624a63f7b7d6ec762b35cce957854c553","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    Show current revision of database."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"``barbican-manage db cleanup [--dburl]``"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    Remove all soft-deleted and expired secrets from database."},{"line_number":67,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_4092fc4c","line":64,"updated":"2016-02-24 17:01:50.000000000","message":"Elvin is still working on this. We can either exclude it until further notice, or note that it is currently being developed.","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"e1777fc8b5278c2b228258d2ce54fa1540436172","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    Show current revision of database."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"``barbican-manage db cleanup [--dburl]``"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    Remove all soft-deleted and expired secrets from database."},{"line_number":67,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_42701540","line":64,"in_reply_to":"bae84128_4092fc4c","updated":"2016-02-24 17:36:01.000000000","message":"how would I make a note that the function has yet to be implemented?","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"d6f70a24e891fb805676f46c0975bce4edf5717e","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    Show current revision of database."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"``barbican-manage db cleanup [--dburl]``"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    Remove all soft-deleted and expired secrets from database."},{"line_number":67,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_5440cc35","line":64,"in_reply_to":"bae84128_42701540","updated":"2016-02-24 18:34:28.000000000","message":"Under the description you can add:\n\n.. Note::\n\n    This feature is not yet available.","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"1c321f58a451f1b27c4862975834369eb3fe42fa","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    Show current revision of database."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"``barbican-manage db cleanup [--dburl]``"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    Remove all soft-deleted and expired secrets from database."},{"line_number":67,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"bae84128_1baf8c95","line":64,"in_reply_to":"bae84128_5440cc35","updated":"2016-02-24 21:08:08.000000000","message":"I couldn\u0027t indent the admonition directive, so I\u0027ll take out this section until it is implemented","commit_id":"129d3180e4dc9baa12944bec0bcc39f333cb23ca"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"28600f14ba2494371fc80d53954dcd9106faab15","unresolved":false,"context_lines":[{"line_number":28,"context_line":"Running with a category argument shows a list of commands in that category:"},{"line_number":29,"context_line":"* ``barbican-manage db --help``"},{"line_number":30,"context_line":"* ``barbican-manage hsm --help``"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"* ``barbican-manage --version`` shows the version number of Barbican Service."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"The following sections describe the available categories and arguments for"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bae84128_a93465fb","line":31,"updated":"2016-02-24 18:34:37.000000000","message":"remove this empty line","commit_id":"55c1c2f13cfb3b940d569f9170084bb0a03f1a42"},{"author":{"_account_id":19673,"name":"Michael Perng","email":"mperng@us.ibm.com","username":"mp"},"change_message_id":"cb2831131b7e81845d81b1d174f65a92550a1b39","unresolved":false,"context_lines":[{"line_number":28,"context_line":"Running with a category argument shows a list of commands in that category:"},{"line_number":29,"context_line":"* ``barbican-manage db --help``"},{"line_number":30,"context_line":"* ``barbican-manage hsm --help``"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"* ``barbican-manage --version`` shows the version number of Barbican Service."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"The following sections describe the available categories and arguments for"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bae84128_54c9ec59","line":31,"in_reply_to":"bae84128_a93465fb","updated":"2016-02-24 21:07:48.000000000","message":"Done","commit_id":"55c1c2f13cfb3b940d569f9170084bb0a03f1a42"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"28600f14ba2494371fc80d53954dcd9106faab15","unresolved":false,"context_lines":[{"line_number":34,"context_line":"The following sections describe the available categories and arguments for"},{"line_number":35,"context_line":"barbican-manage."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Barbican Database"},{"line_number":38,"context_line":"~~~~~~~~~~~~~~~~~"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":".. Warning::"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bae84128_8976c104","line":37,"updated":"2016-02-24 18:34:37.000000000","message":"These commands work great! whoop whoop\n\nhttp://paste.openstack.org/show/488061/","commit_id":"55c1c2f13cfb3b940d569f9170084bb0a03f1a42"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"28600f14ba2494371fc80d53954dcd9106faab15","unresolved":false,"context_lines":[{"line_number":77,"context_line":"    This HMAC key will be used to generate an authentication tag of encrypted"},{"line_number":78,"context_line":"    project key encryption keys. Its label must be unique."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"``barbican-manage hsm rewrap_pkek [--dry-run]``"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    Rewrap project key encryption keys after rotating to new MKEK and/or HMAC"},{"line_number":83,"context_line":"    key(s) in HSM. The new MKEK and HMAC key should have already been generated"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bae84128_4953196d","line":80,"updated":"2016-02-24 18:34:37.000000000","message":"When running \"barbican-manage hsm rewrap_pkek\" I get ERROR: __init__() takes exactly 6 arguments (2 given). \nShould get \"error: too few arguments\" and show the usage.","commit_id":"55c1c2f13cfb3b940d569f9170084bb0a03f1a42"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"838216af9ea61552e0804728a4922f13bfea506a","unresolved":false,"context_lines":[{"line_number":77,"context_line":"    This HMAC key will be used to generate an authentication tag of encrypted"},{"line_number":78,"context_line":"    project key encryption keys. Its label must be unique."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"``barbican-manage hsm rewrap_pkek [--dry-run]``"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    Rewrap project key encryption keys after rotating to new MKEK and/or HMAC"},{"line_number":83,"context_line":"    key(s) in HSM. The new MKEK and HMAC key should have already been generated"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bae84128_009d5b59","line":80,"in_reply_to":"bae84128_4953196d","updated":"2016-02-24 20:46:41.000000000","message":"oh yeah. This is caused by p11 perf patch. The fix for this issue is https://review.openstack.org/#/c/279371/\n\nHere we just call existing class in pkcs11_kek_rewrap.py","commit_id":"55c1c2f13cfb3b940d569f9170084bb0a03f1a42"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"9652f08500bd2e1ea6942b82601bbf0c4f0e754d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":2,"context_line":"Barbican Key Manager Utility"},{"line_number":3,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"Description"}],"source_content_type":"text/x-rst","patch_set":13,"id":"7af24918_16110253","line":2,"updated":"2016-03-01 23:12:06.000000000","message":"I think \"Key Manager\" here is a bit vague, since the client cli could also be a key manager of sorts.  I think a better title would be\n\n    Barbican Service Management Utility\n\nWhat do you think?","commit_id":"845d7df794d003b316c12b86382e2be90b1f4a38"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"4348bfc35fd77fbc972844776b648843bc2a1154","unresolved":false,"context_lines":[{"line_number":1,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":2,"context_line":"Barbican Key Manager Utility"},{"line_number":3,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"Description"}],"source_content_type":"text/x-rst","patch_set":13,"id":"7af24918_79f3199f","line":2,"in_reply_to":"7af24918_16110253","updated":"2016-03-01 23:30:23.000000000","message":"agreed. Will update","commit_id":"845d7df794d003b316c12b86382e2be90b1f4a38"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"9652f08500bd2e1ea6942b82601bbf0c4f0e754d","unresolved":false,"context_lines":[{"line_number":4,"context_line":""},{"line_number":5,"context_line":"Description"},{"line_number":6,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":7,"context_line":"Barbican-manage is a utility that is used to control the barbican key manager"},{"line_number":8,"context_line":"service database and Hardware Secure Module (HSM) plugin device. Use cases"},{"line_number":9,"context_line":"include migrating the secret database or generating a Master Key Encryption"},{"line_number":10,"context_line":"Key (MKEK) in the HSM. This command set should only be executed by a user with"}],"source_content_type":"text/x-rst","patch_set":13,"id":"7af24918_f620d69d","line":7,"updated":"2016-03-01 23:12:06.000000000","message":"s/^Barbican-manage/``barbican-manage``","commit_id":"845d7df794d003b316c12b86382e2be90b1f4a38"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"4348bfc35fd77fbc972844776b648843bc2a1154","unresolved":false,"context_lines":[{"line_number":4,"context_line":""},{"line_number":5,"context_line":"Description"},{"line_number":6,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":7,"context_line":"Barbican-manage is a utility that is used to control the barbican key manager"},{"line_number":8,"context_line":"service database and Hardware Secure Module (HSM) plugin device. Use cases"},{"line_number":9,"context_line":"include migrating the secret database or generating a Master Key Encryption"},{"line_number":10,"context_line":"Key (MKEK) in the HSM. This command set should only be executed by a user with"}],"source_content_type":"text/x-rst","patch_set":13,"id":"7af24918_b912c1b2","line":7,"in_reply_to":"7af24918_f620d69d","updated":"2016-03-01 23:30:23.000000000","message":"Done","commit_id":"845d7df794d003b316c12b86382e2be90b1f4a38"},{"author":{"_account_id":7136,"name":"Chad Lung","email":"chad.lung@gmail.com","username":"chadlung"},"change_message_id":"a835d340802cea1be21c74c339a2150eb327e4c7","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    Rewrap project key encryption keys after rotating to new MKEK and/or HMAC"},{"line_number":73,"context_line":"    key(s) in HSM. The new MKEK and HMAC key should have already been generated"},{"line_number":74,"context_line":"    using the above commands. The user will have to configure new MKEK and HMAC"},{"line_number":75,"context_line":"    key labels in /etc/barbican.conf and restart Barbican server before"},{"line_number":76,"context_line":"    executing this command."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":".. _Database Migration: http://docs.openstack.org/developer/barbican/contribute/database_migrations.html"}],"source_content_type":"text/x-rst","patch_set":14,"id":"7af24918_eb3b9236","line":75,"updated":"2016-03-02 17:13:13.000000000","message":"With the non-capitalization of project names according to OpenStack guidelines should this be \"barbican\" rather than \"Barbican\"?","commit_id":"3073e0f485962983312e577d6b1365f8764d7790"},{"author":{"_account_id":14926,"name":"Jeff Feng","email":"jianhua@us.ibm.com","username":"jhfeng"},"change_message_id":"3d236889e76a8f139c2919876405d3145705e073","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    Rewrap project key encryption keys after rotating to new MKEK and/or HMAC"},{"line_number":73,"context_line":"    key(s) in HSM. The new MKEK and HMAC key should have already been generated"},{"line_number":74,"context_line":"    using the above commands. The user will have to configure new MKEK and HMAC"},{"line_number":75,"context_line":"    key labels in /etc/barbican.conf and restart Barbican server before"},{"line_number":76,"context_line":"    executing this command."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":".. _Database Migration: http://docs.openstack.org/developer/barbican/contribute/database_migrations.html"}],"source_content_type":"text/x-rst","patch_set":14,"id":"7af24918_8872d1ab","line":75,"in_reply_to":"7af24918_eb3b9236","updated":"2016-03-02 17:24:27.000000000","message":"Hi Chad.\nagreed, we should use lowercase here. will fix it later.\nThanks for reviewing.","commit_id":"3073e0f485962983312e577d6b1365f8764d7790"}]}
