)]}'
{"ironic/drivers/modules/oneview/deploy.py":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"50d69479212a8fd0a544c5d97e834d8fb5e3da9b","unresolved":false,"context_lines":[{"line_number":23,"context_line":"import six"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"from ironic.common import exception"},{"line_number":26,"context_line":"from ironic.common.i18n import _, _LE, _LI, _LW"},{"line_number":27,"context_line":"from ironic.common import states"},{"line_number":28,"context_line":"from ironic.conductor import utils as manager_utils"},{"line_number":29,"context_line":"from ironic.conf import CONF"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a3c09a3_8845ebb4","line":26,"range":{"start_line":26,"start_character":31,"end_line":26,"end_character":35},"updated":"2017-01-18 19:45:03.000000000","message":"unrelated?","commit_id":"edf7842a4d5456e10e2fdf7bdd1da2217706c288"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"8bd23ec2ffc8e16f9f66d68892c69cf26278e1b1","unresolved":false,"context_lines":[{"line_number":23,"context_line":"import six"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"from ironic.common import exception"},{"line_number":26,"context_line":"from ironic.common.i18n import _, _LE, _LI, _LW"},{"line_number":27,"context_line":"from ironic.common import states"},{"line_number":28,"context_line":"from ironic.conductor import utils as manager_utils"},{"line_number":29,"context_line":"from ironic.conf import CONF"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a3905b3_c817c04f","line":26,"range":{"start_line":26,"start_character":31,"end_line":26,"end_character":35},"in_reply_to":"7a3c09a3_8845ebb4","updated":"2017-01-19 21:52:43.000000000","message":"Was not but now pep8 breaks when don\u0027t using this.","commit_id":"edf7842a4d5456e10e2fdf7bdd1da2217706c288"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"8ded8f8f122442f729d9114152d6fbb452cfeec0","unresolved":false,"context_lines":[{"line_number":23,"context_line":"import six"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"from ironic.common import exception"},{"line_number":26,"context_line":"from ironic.common.i18n import _, _LE, _LI, _LW"},{"line_number":27,"context_line":"from ironic.common import states"},{"line_number":28,"context_line":"from ironic.conductor import utils as manager_utils"},{"line_number":29,"context_line":"from ironic.conf import CONF"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a3905b3_b7f74c8b","line":26,"updated":"2017-01-25 09:35:04.000000000","message":"You don\u0027t need this change I think","commit_id":"7e137d106f75dc964995b1d280d62a62fe5d6e72"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"2552dc3832192823742667f33b7754439cbfed63","unresolved":false,"context_lines":[{"line_number":23,"context_line":"import six"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"from ironic.common import exception"},{"line_number":26,"context_line":"from ironic.common.i18n import _, _LE, _LI, _LW"},{"line_number":27,"context_line":"from ironic.common import states"},{"line_number":28,"context_line":"from ironic.conductor import utils as manager_utils"},{"line_number":29,"context_line":"from ironic.conf import CONF"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_a673bab3","line":26,"in_reply_to":"5a3905b3_b7f74c8b","updated":"2017-01-25 15:04:37.000000000","message":"Done","commit_id":"7e137d106f75dc964995b1d280d62a62fe5d6e72"}],"ironic/drivers/modules/oneview/deploy_utils.py":[{"author":{"_account_id":14675,"name":"Hugo Nicodemos","email":"hugo.brito@windriver.com","username":"nicodemos"},"change_message_id":"379ea2721b60bb6c65d0e5ea6b1edb06f3dd0581","unresolved":false,"context_lines":[{"line_number":361,"context_line":"        server_profile_uuid \u003d oneview_utils.get_uuid_from_uri("},{"line_number":362,"context_line":"            oneview_info.get(\u0027applied_server_profile_uri\u0027)"},{"line_number":363,"context_line":"        )"},{"line_number":364,"context_line":"        oneview_client \u003d common.get_oneview_client()"},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"        try:"},{"line_number":367,"context_line":"            oneview_client.power_off(oneview_info)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a3c09a3_24e6ffe7","line":364,"updated":"2017-01-18 13:10:36.000000000","message":"Don\u0027t need to get the oneview_client.","commit_id":"eb5f2fe4f1c5a26582866929baf7b54d50880cf1"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"d2796ef12efe931ac8e60bb9058af3ff173e09de","unresolved":false,"context_lines":[{"line_number":361,"context_line":"        server_profile_uuid \u003d oneview_utils.get_uuid_from_uri("},{"line_number":362,"context_line":"            oneview_info.get(\u0027applied_server_profile_uri\u0027)"},{"line_number":363,"context_line":"        )"},{"line_number":364,"context_line":"        oneview_client \u003d common.get_oneview_client()"},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"        try:"},{"line_number":367,"context_line":"            oneview_client.power_off(oneview_info)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a3c09a3_0e390bd9","line":364,"in_reply_to":"7a3c09a3_24e6ffe7","updated":"2017-01-18 18:05:42.000000000","message":"Done","commit_id":"eb5f2fe4f1c5a26582866929baf7b54d50880cf1"},{"author":{"_account_id":14675,"name":"Hugo Nicodemos","email":"hugo.brito@windriver.com","username":"nicodemos"},"change_message_id":"379ea2721b60bb6c65d0e5ea6b1edb06f3dd0581","unresolved":false,"context_lines":[{"line_number":380,"context_line":"            raise exception.OneViewError(error\u003dmsg)"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"    else:"},{"line_number":383,"context_line":"        msg \u003d (_(\"Can not deallocate node %(node_uuid)s because \""},{"line_number":384,"context_line":"                 \" is not in use by ironic. \") %"},{"line_number":385,"context_line":"               {\u0027node_uuid\u0027: node.uuid})"},{"line_number":386,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a3c09a3_84cfb354","line":383,"updated":"2017-01-18 13:10:36.000000000","message":"nit: extra space here.","commit_id":"eb5f2fe4f1c5a26582866929baf7b54d50880cf1"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"d2796ef12efe931ac8e60bb9058af3ff173e09de","unresolved":false,"context_lines":[{"line_number":380,"context_line":"            raise exception.OneViewError(error\u003dmsg)"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"    else:"},{"line_number":383,"context_line":"        msg \u003d (_(\"Can not deallocate node %(node_uuid)s because \""},{"line_number":384,"context_line":"                 \" is not in use by ironic. \") %"},{"line_number":385,"context_line":"               {\u0027node_uuid\u0027: node.uuid})"},{"line_number":386,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a3c09a3_8e4b3b5f","line":383,"in_reply_to":"7a3c09a3_84cfb354","updated":"2017-01-18 18:05:42.000000000","message":"Done","commit_id":"eb5f2fe4f1c5a26582866929baf7b54d50880cf1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"50d69479212a8fd0a544c5d97e834d8fb5e3da9b","unresolved":false,"context_lines":[{"line_number":367,"context_line":"            oneview_client.delete_server_profile(server_profile_uuid)"},{"line_number":368,"context_line":"            _del_applied_server_profile_uri_field(node)"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"            msg \u003d (_LI(\"Server Profile %(server_profile_uuid)s was deleted \""},{"line_number":371,"context_line":"                       \"from node %(node_uuid)s.\") %"},{"line_number":372,"context_line":"                   {\u0027server_profile_uuid\u0027: server_profile_uuid,"},{"line_number":373,"context_line":"                    \u0027node_uuid\u0027: node.uuid})"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a3c09a3_88e16b9d","line":370,"updated":"2017-01-18 19:45:03.000000000","message":"nit: Maybe indicate that it is a oneview server profile?","commit_id":"edf7842a4d5456e10e2fdf7bdd1da2217706c288"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"8bd23ec2ffc8e16f9f66d68892c69cf26278e1b1","unresolved":false,"context_lines":[{"line_number":367,"context_line":"            oneview_client.delete_server_profile(server_profile_uuid)"},{"line_number":368,"context_line":"            _del_applied_server_profile_uri_field(node)"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"            msg \u003d (_LI(\"Server Profile %(server_profile_uuid)s was deleted \""},{"line_number":371,"context_line":"                       \"from node %(node_uuid)s.\") %"},{"line_number":372,"context_line":"                   {\u0027server_profile_uuid\u0027: server_profile_uuid,"},{"line_number":373,"context_line":"                    \u0027node_uuid\u0027: node.uuid})"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a3905b3_a8127460","line":370,"in_reply_to":"7a3c09a3_88e16b9d","updated":"2017-01-19 21:52:43.000000000","message":"Done","commit_id":"edf7842a4d5456e10e2fdf7bdd1da2217706c288"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"50d69479212a8fd0a544c5d97e834d8fb5e3da9b","unresolved":false,"context_lines":[{"line_number":379,"context_line":"            raise exception.OneViewError(error\u003dmsg)"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"    else:"},{"line_number":382,"context_line":"        msg \u003d (_(\"Can not deallocate node %(node_uuid)s because \""},{"line_number":383,"context_line":"                 \" is not in use by ironic.\") %"},{"line_number":384,"context_line":"               {\u0027node_uuid\u0027: node.uuid})"},{"line_number":385,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a3c09a3_231fb80a","line":382,"range":{"start_line":382,"start_character":14,"end_line":382,"end_character":17},"updated":"2017-01-18 19:45:03.000000000","message":"Debug messages are not translated - http://docs.openstack.org/developer/oslo.i18n/guidelines.html#log-translation","commit_id":"edf7842a4d5456e10e2fdf7bdd1da2217706c288"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"50d69479212a8fd0a544c5d97e834d8fb5e3da9b","unresolved":false,"context_lines":[{"line_number":379,"context_line":"            raise exception.OneViewError(error\u003dmsg)"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"    else:"},{"line_number":382,"context_line":"        msg \u003d (_(\"Can not deallocate node %(node_uuid)s because \""},{"line_number":383,"context_line":"                 \" is not in use by ironic.\") %"},{"line_number":384,"context_line":"               {\u0027node_uuid\u0027: node.uuid})"},{"line_number":385,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a3c09a3_085e5b76","line":382,"range":{"start_line":382,"start_character":63,"end_line":382,"end_character":65},"updated":"2017-01-18 19:45:03.000000000","message":"nit: perhaps \"because it is not\" ?","commit_id":"edf7842a4d5456e10e2fdf7bdd1da2217706c288"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"8bd23ec2ffc8e16f9f66d68892c69cf26278e1b1","unresolved":false,"context_lines":[{"line_number":379,"context_line":"            raise exception.OneViewError(error\u003dmsg)"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"    else:"},{"line_number":382,"context_line":"        msg \u003d (_(\"Can not deallocate node %(node_uuid)s because \""},{"line_number":383,"context_line":"                 \" is not in use by ironic.\") %"},{"line_number":384,"context_line":"               {\u0027node_uuid\u0027: node.uuid})"},{"line_number":385,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a3905b3_ab7c2e73","line":382,"range":{"start_line":382,"start_character":63,"end_line":382,"end_character":65},"in_reply_to":"7a3c09a3_085e5b76","updated":"2017-01-19 21:52:43.000000000","message":"Done","commit_id":"edf7842a4d5456e10e2fdf7bdd1da2217706c288"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"8bd23ec2ffc8e16f9f66d68892c69cf26278e1b1","unresolved":false,"context_lines":[{"line_number":379,"context_line":"            raise exception.OneViewError(error\u003dmsg)"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"    else:"},{"line_number":382,"context_line":"        msg \u003d (_(\"Can not deallocate node %(node_uuid)s because \""},{"line_number":383,"context_line":"                 \" is not in use by ironic.\") %"},{"line_number":384,"context_line":"               {\u0027node_uuid\u0027: node.uuid})"},{"line_number":385,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a3905b3_cb817a4c","line":382,"range":{"start_line":382,"start_character":14,"end_line":382,"end_character":17},"in_reply_to":"7a3c09a3_231fb80a","updated":"2017-01-19 21:52:43.000000000","message":"Done","commit_id":"edf7842a4d5456e10e2fdf7bdd1da2217706c288"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"50d69479212a8fd0a544c5d97e834d8fb5e3da9b","unresolved":false,"context_lines":[{"line_number":380,"context_line":""},{"line_number":381,"context_line":"    else:"},{"line_number":382,"context_line":"        msg \u003d (_(\"Can not deallocate node %(node_uuid)s because \""},{"line_number":383,"context_line":"                 \" is not in use by ironic.\") %"},{"line_number":384,"context_line":"               {\u0027node_uuid\u0027: node.uuid})"},{"line_number":385,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a3c09a3_638f0076","line":383,"updated":"2017-01-18 19:45:03.000000000","message":"nit: This should likely indicate from oneview.","commit_id":"edf7842a4d5456e10e2fdf7bdd1da2217706c288"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"8bd23ec2ffc8e16f9f66d68892c69cf26278e1b1","unresolved":false,"context_lines":[{"line_number":380,"context_line":""},{"line_number":381,"context_line":"    else:"},{"line_number":382,"context_line":"        msg \u003d (_(\"Can not deallocate node %(node_uuid)s because \""},{"line_number":383,"context_line":"                 \" is not in use by ironic.\") %"},{"line_number":384,"context_line":"               {\u0027node_uuid\u0027: node.uuid})"},{"line_number":385,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a3905b3_cbf89ae8","line":383,"in_reply_to":"7a3c09a3_638f0076","updated":"2017-01-19 21:52:43.000000000","message":"Done","commit_id":"edf7842a4d5456e10e2fdf7bdd1da2217706c288"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"8ded8f8f122442f729d9114152d6fbb452cfeec0","unresolved":false,"context_lines":[{"line_number":355,"context_line":""},{"line_number":356,"context_line":"    \"\"\""},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"    if is_node_in_use_by_ironic(oneview_client, node):"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"        oneview_info \u003d common.get_oneview_info(node)"},{"line_number":361,"context_line":"        server_profile_uuid \u003d oneview_utils.get_uuid_from_uri("}],"source_content_type":"text/x-python","patch_set":6,"id":"5a3905b3_5aed6d24","line":358,"updated":"2017-01-25 09:35:04.000000000","message":"Ugh, could you ensure this is the last place we encounter this?","commit_id":"7e137d106f75dc964995b1d280d62a62fe5d6e72"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"e2636938bab3f59c8c287978b5a7e582af089a4d","unresolved":false,"context_lines":[{"line_number":355,"context_line":""},{"line_number":356,"context_line":"    \"\"\""},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"    if is_node_in_use_by_ironic(oneview_client, node):"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"        oneview_info \u003d common.get_oneview_info(node)"},{"line_number":361,"context_line":"        server_profile_uuid \u003d oneview_utils.get_uuid_from_uri("}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_82ccb536","line":358,"in_reply_to":"3a461143_86a79e4e","updated":"2017-01-26 14:27:32.000000000","message":"Should be! :)","commit_id":"7e137d106f75dc964995b1d280d62a62fe5d6e72"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"be300162173c505ae1c66e3bf7c57791b10b9b55","unresolved":false,"context_lines":[{"line_number":355,"context_line":""},{"line_number":356,"context_line":"    \"\"\""},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"    if is_node_in_use_by_ironic(oneview_client, node):"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"        oneview_info \u003d common.get_oneview_info(node)"},{"line_number":361,"context_line":"        server_profile_uuid \u003d oneview_utils.get_uuid_from_uri("}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_86a79e4e","line":358,"in_reply_to":"3a461143_d5d06ecc","updated":"2017-01-25 15:10:40.000000000","message":"I mean, in terms of code :) This was added for boot device, then for power operations, then this... Are there other operations that need to be restricted? If there are, could you fix them all in this patch?","commit_id":"7e137d106f75dc964995b1d280d62a62fe5d6e72"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"2552dc3832192823742667f33b7754439cbfed63","unresolved":false,"context_lines":[{"line_number":355,"context_line":""},{"line_number":356,"context_line":"    \"\"\""},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"    if is_node_in_use_by_ironic(oneview_client, node):"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"        oneview_info \u003d common.get_oneview_info(node)"},{"line_number":361,"context_line":"        server_profile_uuid \u003d oneview_utils.get_uuid_from_uri("}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_d5d06ecc","line":358,"in_reply_to":"5a3905b3_5aed6d24","updated":"2017-01-25 15:04:37.000000000","message":"I can\u0027t ensure. Consider that a pool of hardware can be shared between ironic users and oneview users. Because of that we need to be sure the machine is in use by ironic before.","commit_id":"7e137d106f75dc964995b1d280d62a62fe5d6e72"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"8ded8f8f122442f729d9114152d6fbb452cfeec0","unresolved":false,"context_lines":[{"line_number":363,"context_line":"        )"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"        try:"},{"line_number":366,"context_line":"            oneview_client.power_off(oneview_info)"},{"line_number":367,"context_line":"            oneview_client.delete_server_profile(server_profile_uuid)"},{"line_number":368,"context_line":"            _del_applied_server_profile_uri_field(node)"},{"line_number":369,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"5a3905b3_5a080d92","line":366,"updated":"2017-01-25 09:35:04.000000000","message":"During tear_down, you\u0027ll still power off the node, as it calls base AgentDeploy class tear down...","commit_id":"7e137d106f75dc964995b1d280d62a62fe5d6e72"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0b0872a3a22f174a05c44dbd23df96591c8a3725","unresolved":false,"context_lines":[{"line_number":363,"context_line":"        )"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"        try:"},{"line_number":366,"context_line":"            oneview_client.power_off(oneview_info)"},{"line_number":367,"context_line":"            oneview_client.delete_server_profile(server_profile_uuid)"},{"line_number":368,"context_line":"            _del_applied_server_profile_uri_field(node)"},{"line_number":369,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_f33e29b7","line":366,"in_reply_to":"3a461143_28878662","updated":"2017-01-26 14:57:01.000000000","message":"These ifs can become hardly maintainable pretty soon :( Maybe you could add a change to oneview power\u0027s set_power_state method, so that it checks that set_power_state can be performed?","commit_id":"7e137d106f75dc964995b1d280d62a62fe5d6e72"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"e2636938bab3f59c8c287978b5a7e582af089a4d","unresolved":false,"context_lines":[{"line_number":363,"context_line":"        )"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"        try:"},{"line_number":366,"context_line":"            oneview_client.power_off(oneview_info)"},{"line_number":367,"context_line":"            oneview_client.delete_server_profile(server_profile_uuid)"},{"line_number":368,"context_line":"            _del_applied_server_profile_uri_field(node)"},{"line_number":369,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_28878662","line":366,"in_reply_to":"3a461143_a6949ae8","updated":"2017-01-26 14:27:32.000000000","message":"Oh, I think I understood. The same for tear down cleaning, right? https://github.com/openstack/ironic/blob/98bdf8791bbb4e76cbdfe889143056fdb58f784f/ironic/drivers/modules/agent.py#L522 I don\u0027t see other way for doing this right now. Or add if statements to every single method we override in deploy interface to ensure the node is in use by oneview. I will create a bug and change this during Pike, ok?","commit_id":"7e137d106f75dc964995b1d280d62a62fe5d6e72"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"be300162173c505ae1c66e3bf7c57791b10b9b55","unresolved":false,"context_lines":[{"line_number":363,"context_line":"        )"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"        try:"},{"line_number":366,"context_line":"            oneview_client.power_off(oneview_info)"},{"line_number":367,"context_line":"            oneview_client.delete_server_profile(server_profile_uuid)"},{"line_number":368,"context_line":"            _del_applied_server_profile_uri_field(node)"},{"line_number":369,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_a6949ae8","line":366,"in_reply_to":"3a461143_e03a0ae7","updated":"2017-01-25 15:10:40.000000000","message":"OK I think I get that, here you check that the node is in use by ironic, and do your thing. However oneview deploy interface calls base class that will do the following on tear down. https://github.com/openstack/ironic/blob/98bdf8791bbb4e76cbdfe889143056fdb58f784f/ironic/drivers/modules/agent.py#L401 And there you don\u0027t check who controls the node.","commit_id":"7e137d106f75dc964995b1d280d62a62fe5d6e72"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"540826e8320d9f1c84c0357bf181793a41b48798","unresolved":false,"context_lines":[{"line_number":363,"context_line":"        )"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"        try:"},{"line_number":366,"context_line":"            oneview_client.power_off(oneview_info)"},{"line_number":367,"context_line":"            oneview_client.delete_server_profile(server_profile_uuid)"},{"line_number":368,"context_line":"            _del_applied_server_profile_uri_field(node)"},{"line_number":369,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_4daa5586","line":366,"in_reply_to":"3a461143_f33e29b7","updated":"2017-01-31 20:49:48.000000000","message":"Hey vdrok, I did. Please, review it. :)","commit_id":"7e137d106f75dc964995b1d280d62a62fe5d6e72"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"2552dc3832192823742667f33b7754439cbfed63","unresolved":false,"context_lines":[{"line_number":363,"context_line":"        )"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"        try:"},{"line_number":366,"context_line":"            oneview_client.power_off(oneview_info)"},{"line_number":367,"context_line":"            oneview_client.delete_server_profile(server_profile_uuid)"},{"line_number":368,"context_line":"            _del_applied_server_profile_uri_field(node)"},{"line_number":369,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_e03a0ae7","line":366,"in_reply_to":"5a3905b3_5a080d92","updated":"2017-01-25 15:04:37.000000000","message":"Deleting a server profile from the hardware in oneview needs the server powered off before performing such operation. We need this operation in this method because of our inspection interface of nodes. After inspection process the driver should deallocate the machine, we do this by calling this method.","commit_id":"7e137d106f75dc964995b1d280d62a62fe5d6e72"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"4b930f3218b05e0b53f200688949f3ed6360d74c","unresolved":false,"context_lines":[{"line_number":356,"context_line":"    \"\"\""},{"line_number":357,"context_line":"    oneview_info \u003d common.get_oneview_info(node)"},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"    oneview_client.power_off(oneview_info)"},{"line_number":360,"context_line":""},{"line_number":361,"context_line":"    applied_sp_uuid \u003d oneview_utils.get_uuid_from_uri("},{"line_number":362,"context_line":"        oneview_info.get(\u0027applied_server_profile_uri\u0027)"},{"line_number":363,"context_line":"    )"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"    try:"},{"line_number":366,"context_line":"        oneview_client.delete_server_profile(applied_sp_uuid)"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a461143_f6400d0a","side":"PARENT","line":363,"range":{"start_line":359,"start_character":4,"end_line":363,"end_character":5},"updated":"2017-01-25 15:58:54.000000000","message":"Does this sequence matter? Power off and then get the server_profile_uuid. I am not sure about it so asking.","commit_id":"da6b0f2aad7b38b18c1886e30d9517ded66297d1"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"a369aed12f588c819107bb2bd60b9da502e4d87a","unresolved":false,"context_lines":[{"line_number":356,"context_line":"    \"\"\""},{"line_number":357,"context_line":"    oneview_info \u003d common.get_oneview_info(node)"},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"    oneview_client.power_off(oneview_info)"},{"line_number":360,"context_line":""},{"line_number":361,"context_line":"    applied_sp_uuid \u003d oneview_utils.get_uuid_from_uri("},{"line_number":362,"context_line":"        oneview_info.get(\u0027applied_server_profile_uri\u0027)"},{"line_number":363,"context_line":"    )"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"    try:"},{"line_number":366,"context_line":"        oneview_client.delete_server_profile(applied_sp_uuid)"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a461143_bd40f257","side":"PARENT","line":363,"range":{"start_line":359,"start_character":4,"end_line":363,"end_character":5},"in_reply_to":"3a461143_f6400d0a","updated":"2017-01-26 14:39:24.000000000","message":"It totally matters, Madhuri. :)","commit_id":"da6b0f2aad7b38b18c1886e30d9517ded66297d1"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"4b930f3218b05e0b53f200688949f3ed6360d74c","unresolved":false,"context_lines":[{"line_number":379,"context_line":"            raise exception.OneViewError(error\u003dmsg)"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"    else:"},{"line_number":382,"context_line":"        msg \u003d (\"Can not deallocate node %(node_uuid)s in OneView because it \""},{"line_number":383,"context_line":"               \"is not in use by ironic.\") % {\u0027node_uuid\u0027: node.uuid}"},{"line_number":384,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a461143_16e2f903","line":382,"range":{"start_line":382,"start_character":16,"end_line":382,"end_character":23},"updated":"2017-01-25 15:58:54.000000000","message":"s/Can not/cannot/ \nwhere as can not and cannot are both correct but cannot is the more usual. Please change it if you feel this comment makes sense.","commit_id":"fa4f038e46588b1d6c84eae9f3b15d00c9c5047d"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"a369aed12f588c819107bb2bd60b9da502e4d87a","unresolved":false,"context_lines":[{"line_number":379,"context_line":"            raise exception.OneViewError(error\u003dmsg)"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"    else:"},{"line_number":382,"context_line":"        msg \u003d (\"Can not deallocate node %(node_uuid)s in OneView because it \""},{"line_number":383,"context_line":"               \"is not in use by ironic.\") % {\u0027node_uuid\u0027: node.uuid}"},{"line_number":384,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a461143_381b3074","line":382,"range":{"start_line":382,"start_character":16,"end_line":382,"end_character":23},"in_reply_to":"3a461143_16e2f903","updated":"2017-01-26 14:39:24.000000000","message":"Maybe if I get a new code review that needs some code change.","commit_id":"fa4f038e46588b1d6c84eae9f3b15d00c9c5047d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"69c712d874e0c0762bb09d602a59f767a0d03acb","unresolved":false,"context_lines":[{"line_number":371,"context_line":"                       \"from node %(node_uuid)s in OneView.\") %"},{"line_number":372,"context_line":"                   {\u0027server_profile_uuid\u0027: server_profile_uuid,"},{"line_number":373,"context_line":"                    \u0027node_uuid\u0027: node.uuid})"},{"line_number":374,"context_line":"            LOG.info(msg)"},{"line_number":375,"context_line":"        except (ValueError, oneview_exception.OneViewException) as e:"},{"line_number":376,"context_line":"            msg \u003d (_(\"Error while deleting applied Server Profile from node \""},{"line_number":377,"context_line":"                     \"%(node_uuid)s. Error: %(error)s\") %"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a461143_62bb4976","line":374,"range":{"start_line":374,"start_character":21,"end_line":374,"end_character":24},"updated":"2017-02-02 18:09:18.000000000","message":"If you had msg directly here, you\u0027d be able to avoid string substitution, and could use , instead of %","commit_id":"303d6894cbd3fabe629e0c85e3c045a37dda5dcb"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"4e05c10699bd45c8d9c2d3c20bfc6c34b430ac73","unresolved":false,"context_lines":[{"line_number":371,"context_line":"                       \"from node %(node_uuid)s in OneView.\") %"},{"line_number":372,"context_line":"                   {\u0027server_profile_uuid\u0027: server_profile_uuid,"},{"line_number":373,"context_line":"                    \u0027node_uuid\u0027: node.uuid})"},{"line_number":374,"context_line":"            LOG.info(msg)"},{"line_number":375,"context_line":"        except (ValueError, oneview_exception.OneViewException) as e:"},{"line_number":376,"context_line":"            msg \u003d (_(\"Error while deleting applied Server Profile from node \""},{"line_number":377,"context_line":"                     \"%(node_uuid)s. Error: %(error)s\") %"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a430d35_bf3fd6d4","line":374,"range":{"start_line":374,"start_character":21,"end_line":374,"end_character":24},"in_reply_to":"3a461143_62bb4976","updated":"2017-02-06 19:20:32.000000000","message":"Done","commit_id":"303d6894cbd3fabe629e0c85e3c045a37dda5dcb"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"69c712d874e0c0762bb09d602a59f767a0d03acb","unresolved":false,"context_lines":[{"line_number":381,"context_line":"    else:"},{"line_number":382,"context_line":"        msg \u003d (\"Can not deallocate node %(node_uuid)s in OneView because it \""},{"line_number":383,"context_line":"               \"is not in use by ironic.\") % {\u0027node_uuid\u0027: node.uuid}"},{"line_number":384,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a461143_a2b5317f","line":384,"range":{"start_line":384,"start_character":18,"end_line":384,"end_character":21},"updated":"2017-02-02 18:09:18.000000000","message":"ditto, also I\u0027d prefer at least a warning here. Because you\u0027ve added a raise in set_power_state, you\u0027ll fail the tear down/tear down cleaning. This is also triggered in inspection, and if the node not owned by ironic was inspected, I think it\u0027s better to warn about that.","commit_id":"303d6894cbd3fabe629e0c85e3c045a37dda5dcb"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"4e05c10699bd45c8d9c2d3c20bfc6c34b430ac73","unresolved":false,"context_lines":[{"line_number":381,"context_line":"    else:"},{"line_number":382,"context_line":"        msg \u003d (\"Can not deallocate node %(node_uuid)s in OneView because it \""},{"line_number":383,"context_line":"               \"is not in use by ironic.\") % {\u0027node_uuid\u0027: node.uuid}"},{"line_number":384,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a430d35_df2662cd","line":384,"range":{"start_line":384,"start_character":18,"end_line":384,"end_character":21},"in_reply_to":"3a461143_a2b5317f","updated":"2017-02-06 19:20:32.000000000","message":"Done","commit_id":"303d6894cbd3fabe629e0c85e3c045a37dda5dcb"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9bf403be1ededf3a8ec1e962cdd6caef5fd41f05","unresolved":false,"context_lines":[{"line_number":371,"context_line":"                         \"from node %(node_uuid)s in OneView.\"),"},{"line_number":372,"context_line":"                     {\u0027server_profile_uuid\u0027: server_profile_uuid,"},{"line_number":373,"context_line":"                      \u0027node_uuid\u0027: node.uuid})"},{"line_number":374,"context_line":"        except (ValueError, oneview_exception.OneViewException) as e:"},{"line_number":375,"context_line":"            msg \u003d (_(\"Error while deleting applied Server Profile from node \""},{"line_number":376,"context_line":"                     \"%(node_uuid)s. Error: %(error)s\") %"},{"line_number":377,"context_line":"                   {\u0027node_uuid\u0027: node.uuid, \u0027error\u0027: e})"}],"source_content_type":"text/x-python","patch_set":9,"id":"1a430d35_3671fe44","line":374,"updated":"2017-02-08 11:30:49.000000000","message":"Wondered who can raise ValueError here?","commit_id":"df2d46695055ac25d66971cc24aae40ba09532c0"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"611668b3b41be3dc7914715e435f6b950aa77b02","unresolved":false,"context_lines":[{"line_number":371,"context_line":"                         \"from node %(node_uuid)s in OneView.\"),"},{"line_number":372,"context_line":"                     {\u0027server_profile_uuid\u0027: server_profile_uuid,"},{"line_number":373,"context_line":"                      \u0027node_uuid\u0027: node.uuid})"},{"line_number":374,"context_line":"        except (ValueError, oneview_exception.OneViewException) as e:"},{"line_number":375,"context_line":"            msg \u003d (_(\"Error while deleting applied Server Profile from node \""},{"line_number":376,"context_line":"                     \"%(node_uuid)s. Error: %(error)s\") %"},{"line_number":377,"context_line":"                   {\u0027node_uuid\u0027: node.uuid, \u0027error\u0027: e})"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa31d9ce_7fb72986","line":374,"in_reply_to":"1a430d35_3671fe44","updated":"2017-02-13 15:01:22.000000000","message":"https://github.com/openstack/python-oneviewclient/blob/2605032944b1a7ccdb0ed91bd96b8057961e8789/oneview_client/client.py#L597","commit_id":"df2d46695055ac25d66971cc24aae40ba09532c0"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"3789715149b8e516f86c9a0385a8fe9f4372a5e4","unresolved":false,"context_lines":[{"line_number":378,"context_line":"            raise exception.OneViewError(error\u003dmsg)"},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"    else:"},{"line_number":381,"context_line":"        LOG.warning(_LW(\"Can not deallocate node %(node_uuid)s \""},{"line_number":382,"context_line":"                        \"in OneView because it is not in use by \""},{"line_number":383,"context_line":"                        \"ironic.\"), {\u0027node_uuid\u0027: node.uuid})"}],"source_content_type":"text/x-python","patch_set":9,"id":"1a430d35_0e1a756e","line":381,"range":{"start_line":381,"start_character":25,"end_line":381,"end_character":32},"updated":"2017-02-06 22:32:46.000000000","message":"s/Can not/Cannot","commit_id":"df2d46695055ac25d66971cc24aae40ba09532c0"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"611668b3b41be3dc7914715e435f6b950aa77b02","unresolved":false,"context_lines":[{"line_number":378,"context_line":"            raise exception.OneViewError(error\u003dmsg)"},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"    else:"},{"line_number":381,"context_line":"        LOG.warning(_LW(\"Can not deallocate node %(node_uuid)s \""},{"line_number":382,"context_line":"                        \"in OneView because it is not in use by \""},{"line_number":383,"context_line":"                        \"ironic.\"), {\u0027node_uuid\u0027: node.uuid})"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa31d9ce_bfb1a191","line":381,"range":{"start_line":381,"start_character":25,"end_line":381,"end_character":32},"in_reply_to":"1a430d35_0e1a756e","updated":"2017-02-13 15:01:22.000000000","message":"Done","commit_id":"df2d46695055ac25d66971cc24aae40ba09532c0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"384db0decc8279ee78928507b00d7f64bc286d8f","unresolved":false,"context_lines":[{"line_number":371,"context_line":"                         \"from node %(node_uuid)s in OneView.\"),"},{"line_number":372,"context_line":"                     {\u0027server_profile_uuid\u0027: server_profile_uuid,"},{"line_number":373,"context_line":"                      \u0027node_uuid\u0027: node.uuid})"},{"line_number":374,"context_line":"        except (ValueError, oneview_exception.OneViewException) as e:"},{"line_number":375,"context_line":"            msg \u003d (_(\"Error while deleting applied Server Profile from node \""},{"line_number":376,"context_line":"                     \"%(node_uuid)s. Error: %(error)s\") %"},{"line_number":377,"context_line":"                   {\u0027node_uuid\u0027: node.uuid, \u0027error\u0027: e})"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a1ced50_6c614639","line":374,"range":{"start_line":374,"start_character":16,"end_line":374,"end_character":26},"updated":"2017-03-20 18:46:14.000000000","message":"curious why ValueError is needed here (maybe for the log message?), but I trust the implementer","commit_id":"0b23a041f1111ad112d28619fa020173805edbbe"}],"ironic/drivers/modules/oneview/power.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"69c712d874e0c0762bb09d602a59f767a0d03acb","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        \"\"\""},{"line_number":117,"context_line":"        if deploy_utils.is_node_in_use_by_oneview(self.oneview_client,"},{"line_number":118,"context_line":"                                                  task.node):"},{"line_number":119,"context_line":"            raise exception.InvalidParameterValue("},{"line_number":120,"context_line":"                _(\"Node %s is in use by OneView.\") % task.node.uuid)"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"        oneview_info \u003d common.get_oneview_info(task.node)"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a461143_3d0082aa","line":119,"range":{"start_line":119,"start_character":28,"end_line":119,"end_character":49},"updated":"2017-02-02 18:09:18.000000000","message":"As the docstring says, it means that invalid power state is requested, while it can be completely valid and still fail. It needs to be either PowerStateFailure with custom exception message, or OneviewError.","commit_id":"303d6894cbd3fabe629e0c85e3c045a37dda5dcb"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"4e05c10699bd45c8d9c2d3c20bfc6c34b430ac73","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        \"\"\""},{"line_number":117,"context_line":"        if deploy_utils.is_node_in_use_by_oneview(self.oneview_client,"},{"line_number":118,"context_line":"                                                  task.node):"},{"line_number":119,"context_line":"            raise exception.InvalidParameterValue("},{"line_number":120,"context_line":"                _(\"Node %s is in use by OneView.\") % task.node.uuid)"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"        oneview_info \u003d common.get_oneview_info(task.node)"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a430d35_f5089f2f","line":119,"range":{"start_line":119,"start_character":28,"end_line":119,"end_character":49},"in_reply_to":"3a461143_3d0082aa","updated":"2017-02-06 19:20:32.000000000","message":"Done","commit_id":"303d6894cbd3fabe629e0c85e3c045a37dda5dcb"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"3789715149b8e516f86c9a0385a8fe9f4372a5e4","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        if deploy_utils.is_node_in_use_by_oneview(self.oneview_client,"},{"line_number":118,"context_line":"                                                  task.node):"},{"line_number":119,"context_line":"            raise exception.PowerStateFailure(_("},{"line_number":120,"context_line":"                \"Can not set power state \u0027%(power_state)s\u0027 to node %(node)s. \""},{"line_number":121,"context_line":"                \"The node is in use by OneView.\") %"},{"line_number":122,"context_line":"                {\u0027power_state\u0027: power_state,"},{"line_number":123,"context_line":"                 \u0027node\u0027: task.node.uuid})"}],"source_content_type":"text/x-python","patch_set":9,"id":"1a430d35_ce36ade6","line":120,"range":{"start_line":120,"start_character":17,"end_line":120,"end_character":24},"updated":"2017-02-06 22:32:46.000000000","message":"s/Can not/Cannot","commit_id":"df2d46695055ac25d66971cc24aae40ba09532c0"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"611668b3b41be3dc7914715e435f6b950aa77b02","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        if deploy_utils.is_node_in_use_by_oneview(self.oneview_client,"},{"line_number":118,"context_line":"                                                  task.node):"},{"line_number":119,"context_line":"            raise exception.PowerStateFailure(_("},{"line_number":120,"context_line":"                \"Can not set power state \u0027%(power_state)s\u0027 to node %(node)s. \""},{"line_number":121,"context_line":"                \"The node is in use by OneView.\") %"},{"line_number":122,"context_line":"                {\u0027power_state\u0027: power_state,"},{"line_number":123,"context_line":"                 \u0027node\u0027: task.node.uuid})"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa31d9ce_1fa70d50","line":120,"range":{"start_line":120,"start_character":17,"end_line":120,"end_character":24},"in_reply_to":"1a430d35_ce36ade6","updated":"2017-02-13 15:01:22.000000000","message":"Done","commit_id":"df2d46695055ac25d66971cc24aae40ba09532c0"}],"ironic/tests/unit/drivers/modules/oneview/test_deploy_utils.py":[{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"3789715149b8e516f86c9a0385a8fe9f4372a5e4","unresolved":false,"context_lines":[{"line_number":417,"context_line":"    ):"},{"line_number":418,"context_line":"        \"\"\"Test for case when server profile application fails."},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"        Due an error when applying Server Profile in OneView,"},{"line_number":421,"context_line":"        the node will have no Server Profile uuid in the"},{"line_number":422,"context_line":"        \u0027applied_server_profile_uri\u0027 namespace. When the method"},{"line_number":423,"context_line":"        tested is called without Server Profile uuid, the client"}],"source_content_type":"text/x-python","patch_set":9,"id":"1a430d35_aeb08144","line":420,"range":{"start_line":420,"start_character":8,"end_line":420,"end_character":12},"updated":"2017-02-06 22:32:46.000000000","message":"Due to","commit_id":"df2d46695055ac25d66971cc24aae40ba09532c0"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"611668b3b41be3dc7914715e435f6b950aa77b02","unresolved":false,"context_lines":[{"line_number":417,"context_line":"    ):"},{"line_number":418,"context_line":"        \"\"\"Test for case when server profile application fails."},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"        Due an error when applying Server Profile in OneView,"},{"line_number":421,"context_line":"        the node will have no Server Profile uuid in the"},{"line_number":422,"context_line":"        \u0027applied_server_profile_uri\u0027 namespace. When the method"},{"line_number":423,"context_line":"        tested is called without Server Profile uuid, the client"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa31d9ce_7f6e4902","line":420,"range":{"start_line":420,"start_character":8,"end_line":420,"end_character":12},"in_reply_to":"1a430d35_aeb08144","updated":"2017-02-13 15:01:22.000000000","message":"Done","commit_id":"df2d46695055ac25d66971cc24aae40ba09532c0"}],"releasenotes/notes/fix-oneview-deallocate-server-8256e279af837e5d.yaml":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"69c712d874e0c0762bb09d602a59f767a0d03acb","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Fixes the node deallocation for consider the case of a failed"},{"line_number":5,"context_line":"    node allocation."}],"source_content_type":"text/x-yaml","patch_set":8,"id":"3a461143_9ddc1648","line":5,"range":{"start_line":4,"start_character":4,"end_line":5,"end_character":20},"updated":"2017-02-02 18:09:18.000000000","message":"I\u0027d prefer\n\n Skips node deallocation if node is not in use by ironic.\n\nAs it also checks that the applied server profile corresponds to the one set by ironic right?","commit_id":"303d6894cbd3fabe629e0c85e3c045a37dda5dcb"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"4e05c10699bd45c8d9c2d3c20bfc6c34b430ac73","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Fixes the node deallocation for consider the case of a failed"},{"line_number":5,"context_line":"    node allocation."}],"source_content_type":"text/x-yaml","patch_set":8,"id":"1a430d35_b9145144","line":5,"range":{"start_line":4,"start_character":4,"end_line":5,"end_character":20},"in_reply_to":"3a461143_9ddc1648","updated":"2017-02-06 19:20:32.000000000","message":"Done","commit_id":"303d6894cbd3fabe629e0c85e3c045a37dda5dcb"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"fec6b9d35032cd65f052c0d6d231b8412392df40","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Skips node deallocation if node is not in use by ironic."}],"source_content_type":"text/x-yaml","patch_set":9,"id":"fa31d9ce_b1272663","line":4,"updated":"2017-02-13 10:01:58.000000000","message":"+1, this is important to be clear","commit_id":"df2d46695055ac25d66971cc24aae40ba09532c0"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"3789715149b8e516f86c9a0385a8fe9f4372a5e4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Skips node deallocation if node is not in use by ironic."}],"source_content_type":"text/x-yaml","patch_set":9,"id":"1a430d35_6e421912","line":4,"updated":"2017-02-06 22:32:46.000000000","message":"I think more details are needed here specifying what problem is fixed in OneView.","commit_id":"df2d46695055ac25d66971cc24aae40ba09532c0"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"611668b3b41be3dc7914715e435f6b950aa77b02","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Skips node deallocation if node is not in use by ironic."}],"source_content_type":"text/x-yaml","patch_set":9,"id":"fa31d9ce_1f7e2dae","line":4,"in_reply_to":"1a430d35_6e421912","updated":"2017-02-13 15:01:22.000000000","message":"Done","commit_id":"df2d46695055ac25d66971cc24aae40ba09532c0"},{"author":{"_account_id":19072,"name":"Xavier","email":"marcusrafael@lsd.ufcg.edu.br","username":"marcusrafael"},"change_message_id":"611668b3b41be3dc7914715e435f6b950aa77b02","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Skips node deallocation if node is not in use by ironic."}],"source_content_type":"text/x-yaml","patch_set":9,"id":"fa31d9ce_3f4bf188","line":4,"in_reply_to":"fa31d9ce_b1272663","updated":"2017-02-13 15:01:22.000000000","message":"Done","commit_id":"df2d46695055ac25d66971cc24aae40ba09532c0"},{"author":{"_account_id":21775,"name":"Ricardo Araújo Santos","email":"ricardo@lsd.ufcg.edu.br","username":"ricardoas"},"change_message_id":"5c77f2f07a118e7dc3c671cddb7ccdda98c1dc2f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Fixes the node deallocation for ensure it is in use by"},{"line_number":5,"context_line":"    ironic and also for the driver do not try to deallocate"},{"line_number":6,"context_line":"    a node in OneView that had an error while performing the"},{"line_number":7,"context_line":"    Server Profile application."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"da36d5c6_78406457","line":4,"range":{"start_line":4,"start_character":32,"end_line":4,"end_character":35},"updated":"2017-02-20 18:37:07.000000000","message":"nit: to","commit_id":"a859379e1358247535075553f94143ec1fd2b7ba"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"e0e3ae4abe8bd509164a5186f1e7d1e60ef01dfa","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Fixes the node deallocation for ensure it is in use by"},{"line_number":5,"context_line":"    ironic and also for the driver do not try to deallocate"},{"line_number":6,"context_line":"    a node in OneView that had an error while performing the"},{"line_number":7,"context_line":"    Server Profile application."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"da36d5c6_81756e99","line":7,"range":{"start_line":4,"start_character":4,"end_line":7,"end_character":31},"updated":"2017-02-22 03:42:11.000000000","message":"Fixes an issue with oneview driver trying to deallocate a node when:\n\n- an error is encountered while performing server profile application (which means, no need to deallocate right? might add more info here in your own words, as you should know this better :))\n- it is not managed by ironic at all.","commit_id":"a859379e1358247535075553f94143ec1fd2b7ba"},{"author":{"_account_id":20035,"name":"Fellype Cavalcante","email":"fellypefca@lsd.ufcg.edu.br","username":"fellypefca"},"change_message_id":"b0d4e9a939c330e613cd27bd1009cadffa97bc6f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Fixes the node deallocation for ensure it is in use by"},{"line_number":5,"context_line":"    ironic and also for the driver do not try to deallocate"},{"line_number":6,"context_line":"    a node in OneView that had an error while performing the"},{"line_number":7,"context_line":"    Server Profile application."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"9a30ddce_6c58b3fb","line":7,"range":{"start_line":4,"start_character":4,"end_line":7,"end_character":31},"in_reply_to":"da36d5c6_81756e99","updated":"2017-03-07 14:22:51.000000000","message":"Done","commit_id":"a859379e1358247535075553f94143ec1fd2b7ba"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"bce9481e9c33fa3153df3f90c5eded177e25d04a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - "},{"line_number":4,"context_line":"    Fixes an issue with oneview driver trying to deallocate a node when"},{"line_number":5,"context_line":"    an error is encountered while performing server profile application."},{"line_number":6,"context_line":"    Also ensures only those nodes that are managed by ironic can be"}],"source_content_type":"text/x-yaml","patch_set":11,"id":"9a30ddce_8644841b","line":3,"range":{"start_line":3,"start_character":3,"end_line":3,"end_character":4},"updated":"2017-03-09 14:01:25.000000000","message":"nit: Remove space","commit_id":"1ab6f2e6380280b9b2a26f975002b99505f72106"}]}
