)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53783bf6f461c18b9e3baac7dd610e9c85f66261","unresolved":false,"context_lines":[{"line_number":12,"context_line":"it to store UUIDs of the cleaning ports that ironic creates, instead"},{"line_number":13,"context_line":"of fiddling with port.extra[\u0027vif_port_id\u0027], as extra is intended for"},{"line_number":14,"context_line":"operator use only."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: Ib62c3e32305619d0c55f8ec7e45b067f0f0b32d4"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1aa78d24_059cb80d","line":15,"updated":"2016-07-06 18:56:13.000000000","message":"would be good to add the bug for THE BIG FEATURE.","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0bb7c99cc8a3707aa04a42536469c8f4d834aebe","unresolved":false,"context_lines":[{"line_number":12,"context_line":"it to store UUIDs of the cleaning ports that ironic creates, instead"},{"line_number":13,"context_line":"of fiddling with port.extra[\u0027vif_port_id\u0027], as extra is intended for"},{"line_number":14,"context_line":"operator use only."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: Ib62c3e32305619d0c55f8ec7e45b067f0f0b32d4"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1aa78d24_d1236dbb","line":15,"in_reply_to":"1aa78d24_059cb80d","updated":"2016-07-07 10:32:21.000000000","message":"Done","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"}],"doc/source/webapi/v1.rst":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53783bf6f461c18b9e3baac7dd610e9c85f66261","unresolved":false,"context_lines":[{"line_number":35,"context_line":"**1.18**"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    Add ``internal_info`` readonly field to the port object, that will be used"},{"line_number":38,"context_line":"    by ironic to store internal port-related information."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"**1.17**"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_c5a59047","line":38,"updated":"2016-07-06 18:56:13.000000000","message":"we\u0027re only going to use port.internal_info internally; does it matter if we do this? Maybe we should wait til we expose the other API-related stuff and bump the version at the same time.","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"27a08b3dbd3387f92ec08fc01124885cfbea8464","unresolved":false,"context_lines":[{"line_number":35,"context_line":"**1.18**"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    Add ``internal_info`` readonly field to the port object, that will be used"},{"line_number":38,"context_line":"    by ironic to store internal port-related information."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"**1.17**"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1aa78d24_90951b8a","line":38,"range":{"start_line":38,"start_character":7,"end_line":38,"end_character":13},"updated":"2016-07-08 11:24:21.000000000","message":"s/ironic/Ironic/","commit_id":"0a5bb693efe6a5b417c5ba9a912292b498438f84"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"fdd7930d4e44469c199ec2742db40c8f6b1920c7","unresolved":false,"context_lines":[{"line_number":35,"context_line":"**1.18**"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    Add ``internal_info`` readonly field to the port object, that will be used"},{"line_number":38,"context_line":"    by ironic to store internal port-related information."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"**1.17**"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1aa78d24_8743156c","line":38,"range":{"start_line":38,"start_character":7,"end_line":38,"end_character":13},"in_reply_to":"1aa78d24_90951b8a","updated":"2016-07-08 15:51:41.000000000","message":"AFAIK based on doc guidelines, ironic is actually correct.","commit_id":"0a5bb693efe6a5b417c5ba9a912292b498438f84"}],"ironic/api/controllers/v1/port.py":[{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"27a08b3dbd3387f92ec08fc01124885cfbea8464","unresolved":false,"context_lines":[{"line_number":84,"context_line":"    \"\"\"This port\u0027s meta data\"\"\""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    internal_info \u003d wsme.wsattr({wtypes.text: types.jsontype}, readonly\u003dTrue)"},{"line_number":87,"context_line":"    \"\"\"This port\u0027s internal information maintained by ironic\"\"\""},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    node_uuid \u003d wsme.wsproperty(types.uuid, _get_node_uuid, _set_node_uuid,"},{"line_number":90,"context_line":"                                mandatory\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1aa78d24_d0e68343","line":87,"range":{"start_line":87,"start_character":54,"end_line":87,"end_character":60},"updated":"2016-07-08 11:24:21.000000000","message":"s/ironic/Ironic","commit_id":"0a5bb693efe6a5b417c5ba9a912292b498438f84"}],"ironic/api/controllers/v1/utils.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53783bf6f461c18b9e3baac7dd610e9c85f66261","unresolved":false,"context_lines":[{"line_number":291,"context_line":""},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"def allow_port_internal_info():"},{"line_number":294,"context_line":"    \"\"\"Check if storing internal_info is allowed for the port."},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"    Version 1.18 of the API exposes internal_info readonly field for the port."},{"line_number":297,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_c08bbe66","line":294,"updated":"2016-07-06 18:56:13.000000000","message":"nit, it is more about seeing/accessing internal_info, not storing. Our code will use port.internal_info; we just don\u0027t want it exposed if API version is old.","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0bb7c99cc8a3707aa04a42536469c8f4d834aebe","unresolved":false,"context_lines":[{"line_number":291,"context_line":""},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"def allow_port_internal_info():"},{"line_number":294,"context_line":"    \"\"\"Check if storing internal_info is allowed for the port."},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"    Version 1.18 of the API exposes internal_info readonly field for the port."},{"line_number":297,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_0e1b14cb","line":294,"in_reply_to":"1aa78d24_c08bbe66","updated":"2016-07-07 10:32:21.000000000","message":"Done","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"}],"ironic/api/controllers/v1/versions.py":[{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"27a08b3dbd3387f92ec08fc01124885cfbea8464","unresolved":false,"context_lines":[{"line_number":47,"context_line":"# v1.15: Add ability to do manual cleaning of nodes"},{"line_number":48,"context_line":"# v1.16: Add ability to filter nodes by driver."},{"line_number":49,"context_line":"# v1.17: Add \u0027adopt\u0027 verb for ADOPTING active nodes."},{"line_number":50,"context_line":"# v1.18: Add port.internal_info."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"MINOR_0_JUNO \u003d 0"},{"line_number":53,"context_line":"MINOR_1_INITIAL_VERSION \u003d 1"}],"source_content_type":"text/x-python","patch_set":4,"id":"1aa78d24_70c06f7d","line":50,"updated":"2016-07-08 11:24:21.000000000","message":"might be add here to store Ironic internal information like provisioning_vif_uuid?","commit_id":"0a5bb693efe6a5b417c5ba9a912292b498438f84"}],"ironic/common/network.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"ee8acae0b4b7e19930c6322638bb8284af665cd5","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    portgroup_vifs \u003d {}"},{"line_number":33,"context_line":"    port_vifs \u003d {}"},{"line_number":34,"context_line":"    for portgroup in task.portgroups:"},{"line_number":35,"context_line":"        # NOTE(vdrok): ironic_vif_port_id should be cleaned up when we\u0027re in"},{"line_number":36,"context_line":"        # deployment/tenant network, so it should work"},{"line_number":37,"context_line":"        vif \u003d (portgroup.internal_info.get(\u0027ironic_vif_port_id\u0027) or"},{"line_number":38,"context_line":"               portgroup.extra.get(\u0027vif_port_id\u0027))"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_1a3ed38b","line":35,"updated":"2016-07-06 17:42:58.000000000","message":"maybe s/cleaned up/empty to be more clear.","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53783bf6f461c18b9e3baac7dd610e9c85f66261","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    port_vifs \u003d {}"},{"line_number":34,"context_line":"    for portgroup in task.portgroups:"},{"line_number":35,"context_line":"        # NOTE(vdrok): ironic_vif_port_id should be cleaned up when we\u0027re in"},{"line_number":36,"context_line":"        # deployment/tenant network, so it should work"},{"line_number":37,"context_line":"        vif \u003d (portgroup.internal_info.get(\u0027ironic_vif_port_id\u0027) or"},{"line_number":38,"context_line":"               portgroup.extra.get(\u0027vif_port_id\u0027))"},{"line_number":39,"context_line":"        if vif:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_e09d1a67","line":36,"updated":"2016-07-06 18:56:13.000000000","message":"how about \u0027This works because ironic_vif_port_id doesn\u0027t exist when we\u0027re in deployment/tenant network\u0027.\n\nI\u0027m still reading the code, but what about always having port.internal_info[\u0027ironic_vif_port_id\u0027] and it is set to the current vif being used (tenant, provision, network, whatever, or None)? or maybe that is a bad idea, the sync\u0027ing might be harder. ignore me.","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0bb7c99cc8a3707aa04a42536469c8f4d834aebe","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    port_vifs \u003d {}"},{"line_number":34,"context_line":"    for portgroup in task.portgroups:"},{"line_number":35,"context_line":"        # NOTE(vdrok): ironic_vif_port_id should be cleaned up when we\u0027re in"},{"line_number":36,"context_line":"        # deployment/tenant network, so it should work"},{"line_number":37,"context_line":"        vif \u003d (portgroup.internal_info.get(\u0027ironic_vif_port_id\u0027) or"},{"line_number":38,"context_line":"               portgroup.extra.get(\u0027vif_port_id\u0027))"},{"line_number":39,"context_line":"        if vif:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_0e72f410","line":36,"in_reply_to":"1aa78d24_e09d1a67","updated":"2016-07-07 10:32:21.000000000","message":"Yeah, I would not do the sync.","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"}],"ironic/db/sqlalchemy/alembic/versions/10b163d4481e_add_port_portgroup_internal_info.py":[{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"27a08b3dbd3387f92ec08fc01124885cfbea8464","unresolved":false,"context_lines":[{"line_number":10,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":11,"context_line":"#    under the License."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"\"\"\"add port portgroup internal info"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Revision ID: 10b163d4481e"},{"line_number":16,"context_line":"Revises: e294876e8028"}],"source_content_type":"text/x-python","patch_set":4,"id":"1aa78d24_b0ff77a9","line":13,"updated":"2016-07-08 11:24:21.000000000","message":"s/add/Add","commit_id":"0a5bb693efe6a5b417c5ba9a912292b498438f84"}],"ironic/dhcp/neutron.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53783bf6f461c18b9e3baac7dd610e9c85f66261","unresolved":false,"context_lines":[{"line_number":206,"context_line":"        \"\"\""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"        # NOTE(vdrok): ironic_vif_port_id should be cleaned up when we\u0027re in"},{"line_number":209,"context_line":"        # deployment/tenant network, so it should work"},{"line_number":210,"context_line":"        vif \u003d (p_obj.internal_info.get(\u0027ironic_vif_port_id\u0027) or"},{"line_number":211,"context_line":"               p_obj.extra.get(\u0027vif_port_id\u0027))"},{"line_number":212,"context_line":"        if not vif:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_0bda074c","line":209,"updated":"2016-07-06 18:56:13.000000000","message":"ditto","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0bb7c99cc8a3707aa04a42536469c8f4d834aebe","unresolved":false,"context_lines":[{"line_number":206,"context_line":"        \"\"\""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"        # NOTE(vdrok): ironic_vif_port_id should be cleaned up when we\u0027re in"},{"line_number":209,"context_line":"        # deployment/tenant network, so it should work"},{"line_number":210,"context_line":"        vif \u003d (p_obj.internal_info.get(\u0027ironic_vif_port_id\u0027) or"},{"line_number":211,"context_line":"               p_obj.extra.get(\u0027vif_port_id\u0027))"},{"line_number":212,"context_line":"        if not vif:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_0e8e74cf","line":209,"in_reply_to":"1aa78d24_0bda074c","updated":"2016-07-07 10:32:21.000000000","message":"Done","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"}],"ironic/drivers/modules/deploy_utils.py":[{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"45fcab8e3940c6a5aa4327e33380939e0c7b781c","unresolved":false,"context_lines":[{"line_number":938,"context_line":"        for port in task.ports:"},{"line_number":939,"context_line":"            internal_info \u003d port.internal_info"},{"line_number":940,"context_line":"            try:"},{"line_number":941,"context_line":"                internal_info[\u0027ironic_vif_port_id\u0027] \u003d ports[port.uuid]"},{"line_number":942,"context_line":"            except KeyError:"},{"line_number":943,"context_line":"                # This is an internal error in Ironic.  All DHCP providers"},{"line_number":944,"context_line":"                # implementing create_cleaning_ports are supposed to"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_87341efc","line":941,"updated":"2016-07-07 00:45:14.000000000","message":"since this is specifically the ironic-created cleaning port, I think we should name it accordingly, eg, \"cleaning_net_port_id\" or \"cleaning_net_vif_id\" or such. This will help later on, if we need to store additional types of VIF IDs internally (or anything else here ,for that matter).","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0bb7c99cc8a3707aa04a42536469c8f4d834aebe","unresolved":false,"context_lines":[{"line_number":938,"context_line":"        for port in task.ports:"},{"line_number":939,"context_line":"            internal_info \u003d port.internal_info"},{"line_number":940,"context_line":"            try:"},{"line_number":941,"context_line":"                internal_info[\u0027ironic_vif_port_id\u0027] \u003d ports[port.uuid]"},{"line_number":942,"context_line":"            except KeyError:"},{"line_number":943,"context_line":"                # This is an internal error in Ironic.  All DHCP providers"},{"line_number":944,"context_line":"                # implementing create_cleaning_ports are supposed to"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_314bd15a","line":941,"in_reply_to":"1aa78d24_87341efc","updated":"2016-07-07 10:32:21.000000000","message":"So the plan is to use this field for the provision network too to make things a bit easier, maybe temporary_vif_port_id is OK?","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53783bf6f461c18b9e3baac7dd610e9c85f66261","unresolved":false,"context_lines":[{"line_number":974,"context_line":"                internal_info \u003d port.internal_info"},{"line_number":975,"context_line":"                del internal_info[\u0027ironic_vif_port_id\u0027]"},{"line_number":976,"context_line":"                port.internal_info \u003d internal_info"},{"line_number":977,"context_line":"                port.save()"},{"line_number":978,"context_line":""},{"line_number":979,"context_line":""},{"line_number":980,"context_line":"def build_agent_options(node):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_cba59f47","line":977,"updated":"2016-07-06 18:56:13.000000000","message":"Hmm. Would it be possible for a node to have prepare_cleaning_ports() called with an older version of ironic, then an upgrade happens to this code, and (cleaning is done) tear_down_cleaning_ports() is called -- port.extra[\u0027vif_port_id\u0027] would have been set in prepare_cleaning_ports() but not removed here.\n\nMaybe we should check for both and delete the older code in Ocata?","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0bb7c99cc8a3707aa04a42536469c8f4d834aebe","unresolved":false,"context_lines":[{"line_number":974,"context_line":"                internal_info \u003d port.internal_info"},{"line_number":975,"context_line":"                del internal_info[\u0027ironic_vif_port_id\u0027]"},{"line_number":976,"context_line":"                port.internal_info \u003d internal_info"},{"line_number":977,"context_line":"                port.save()"},{"line_number":978,"context_line":""},{"line_number":979,"context_line":""},{"line_number":980,"context_line":"def build_agent_options(node):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_31be31ff","line":977,"in_reply_to":"1aa78d24_cba59f47","updated":"2016-07-07 10:32:21.000000000","message":"Very unlikely, but seems possible, will add :)","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"9b64e9becf3e5e2feaddadd195b93b108ca60fe5","unresolved":false,"context_lines":[{"line_number":977,"context_line":"                extra_dict \u003d port.extra"},{"line_number":978,"context_line":"                del extra_dict[\u0027vif_port_id\u0027]"},{"line_number":979,"context_line":"                port.extra \u003d extra_dict"},{"line_number":980,"context_line":"                port.save()"},{"line_number":981,"context_line":"            if \u0027temporary_vif_port_id\u0027 in port.internal_info:"},{"line_number":982,"context_line":"                internal_info \u003d port.internal_info"},{"line_number":983,"context_line":"                del internal_info[\u0027temporary_vif_port_id\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_2059af35","line":980,"updated":"2016-07-07 14:17:20.000000000","message":"nit: you can place save() once outside.","commit_id":"01069acda2ce3f991de15fd6a2aad3e1feda631c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"aaa35c74790ed9c897504a041540c770de086cc7","unresolved":false,"context_lines":[{"line_number":977,"context_line":"                extra_dict \u003d port.extra"},{"line_number":978,"context_line":"                del extra_dict[\u0027vif_port_id\u0027]"},{"line_number":979,"context_line":"                port.extra \u003d extra_dict"},{"line_number":980,"context_line":"                port.save()"},{"line_number":981,"context_line":"            if \u0027temporary_vif_port_id\u0027 in port.internal_info:"},{"line_number":982,"context_line":"                internal_info \u003d port.internal_info"},{"line_number":983,"context_line":"                del internal_info[\u0027temporary_vif_port_id\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_d43349f4","line":980,"in_reply_to":"1aa78d24_2059af35","updated":"2016-07-07 18:07:50.000000000","message":"I\u0027d rather not do this, it will mean that all the ports will be saved, updated_at may be changed too.","commit_id":"01069acda2ce3f991de15fd6a2aad3e1feda631c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3a239e1d3a00eea7e1399b4b2f0097cbd1db8c43","unresolved":false,"context_lines":[{"line_number":982,"context_line":"                internal_info \u003d port.internal_info"},{"line_number":983,"context_line":"                del internal_info[\u0027temporary_vif_port_id\u0027]"},{"line_number":984,"context_line":"                port.internal_info \u003d internal_info"},{"line_number":985,"context_line":"                port.save()"},{"line_number":986,"context_line":""},{"line_number":987,"context_line":""},{"line_number":988,"context_line":"def build_agent_options(node):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_2b2fd53f","line":985,"updated":"2016-07-07 13:44:14.000000000","message":"would it be safer to do elif \u0027vif_port_id\u0027 in port.extra: ... after checking temporary_vif_port_id? (WIth the other patches, wondering if we\u0027d ever get both of them set at the same time. We shouldn\u0027t unless someone is doing something funky with standalone ironic)","commit_id":"01069acda2ce3f991de15fd6a2aad3e1feda631c"}],"ironic/tests/unit/api/v1/test_ports.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53783bf6f461c18b9e3baac7dd610e9c85f66261","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        self.assertNotIn(\u0027internal_info\u0027, data)"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        data \u003d self.get_json(\u0027/ports/%s\u0027 % port.uuid,"},{"line_number":107,"context_line":"                             headers\u003d{api_base.Version.string: \"1.18\"})"},{"line_number":108,"context_line":"        self.assertEqual({\"foo\": \"bar\"}, data[\u0027internal_info\u0027])"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    def test_get_collection_custom_fields(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_665662cf","line":107,"updated":"2016-07-06 18:56:13.000000000","message":"maybe s/\"1.18\"/str(api_v1.MAX_VER)/","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0bb7c99cc8a3707aa04a42536469c8f4d834aebe","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        self.assertNotIn(\u0027internal_info\u0027, data)"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        data \u003d self.get_json(\u0027/ports/%s\u0027 % port.uuid,"},{"line_number":107,"context_line":"                             headers\u003d{api_base.Version.string: \"1.18\"})"},{"line_number":108,"context_line":"        self.assertEqual({\"foo\": \"bar\"}, data[\u0027internal_info\u0027])"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    def test_get_collection_custom_fields(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_b1e6a1e5","line":107,"in_reply_to":"1aa78d24_665662cf","updated":"2016-07-07 10:32:21.000000000","message":"In node tests it is always the version the field was introduced in, so I\u0027d keep it.","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"}],"ironic/tests/unit/common/test_network.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53783bf6f461c18b9e3baac7dd610e9c85f66261","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        port1 \u003d db_utils.create_test_port(node_id\u003dself.node.id,"},{"line_number":42,"context_line":"                                          address\u003d\u0027aa:bb:cc:dd:ee:ff\u0027,"},{"line_number":43,"context_line":"                                          uuid\u003duuidutils.generate_uuid(),"},{"line_number":44,"context_line":"                                          extra\u003d{\u0027vif_port_id\u0027: \u0027test-vif-A\u0027})"},{"line_number":45,"context_line":"        expected \u003d {\u0027portgroups\u0027: {},"},{"line_number":46,"context_line":"                    \u0027ports\u0027: {port1.uuid: \u0027test-vif-A\u0027}}"},{"line_number":47,"context_line":"        with task_manager.acquire(self.context, self.node.uuid) as task:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_c6bf56a8","line":44,"updated":"2016-07-06 18:56:13.000000000","message":"why\u0027d you remove driver\u003d\u0027fake\u0027?","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0bb7c99cc8a3707aa04a42536469c8f4d834aebe","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        port1 \u003d db_utils.create_test_port(node_id\u003dself.node.id,"},{"line_number":42,"context_line":"                                          address\u003d\u0027aa:bb:cc:dd:ee:ff\u0027,"},{"line_number":43,"context_line":"                                          uuid\u003duuidutils.generate_uuid(),"},{"line_number":44,"context_line":"                                          extra\u003d{\u0027vif_port_id\u0027: \u0027test-vif-A\u0027})"},{"line_number":45,"context_line":"        expected \u003d {\u0027portgroups\u0027: {},"},{"line_number":46,"context_line":"                    \u0027ports\u0027: {port1.uuid: \u0027test-vif-A\u0027}}"},{"line_number":47,"context_line":"        with task_manager.acquire(self.context, self.node.uuid) as task:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_31f2b19a","line":44,"in_reply_to":"1aa78d24_c6bf56a8","updated":"2016-07-07 10:32:21.000000000","message":"It\u0027s port, no driver there :)","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"881b03384c3e3d5852e1b9d22a1bd3a8e64e1c0f","unresolved":false,"context_lines":[{"line_number":70,"context_line":"                                          address\u003d\u0027dd:ee:ff:aa:bb:cc\u0027,"},{"line_number":71,"context_line":"                                          uuid\u003duuidutils.generate_uuid(),"},{"line_number":72,"context_line":"                                          extra\u003d{\u0027vif_port_id\u0027: \u0027test-vif-B\u0027},"},{"line_number":73,"context_line":"                                          driver\u003d\u0027fake\u0027)"},{"line_number":74,"context_line":"        expected \u003d {\u0027portgroups\u0027: {},"},{"line_number":75,"context_line":"                    \u0027ports\u0027: {port1.uuid: \u0027test-vif-A\u0027,"},{"line_number":76,"context_line":"                              port2.uuid: \u0027test-vif-B\u0027}}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_9a28d59b","side":"PARENT","line":73,"updated":"2016-07-07 12:51:27.000000000","message":"What\u0027s the reasoning behind this change and the ones above? It seems unrelated to the internal_info change?","commit_id":"5bd0c1b358dc60ef10252873228691271d6e7bd6"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3a239e1d3a00eea7e1399b4b2f0097cbd1db8c43","unresolved":false,"context_lines":[{"line_number":70,"context_line":"                                          address\u003d\u0027dd:ee:ff:aa:bb:cc\u0027,"},{"line_number":71,"context_line":"                                          uuid\u003duuidutils.generate_uuid(),"},{"line_number":72,"context_line":"                                          extra\u003d{\u0027vif_port_id\u0027: \u0027test-vif-B\u0027},"},{"line_number":73,"context_line":"                                          driver\u003d\u0027fake\u0027)"},{"line_number":74,"context_line":"        expected \u003d {\u0027portgroups\u0027: {},"},{"line_number":75,"context_line":"                    \u0027ports\u0027: {port1.uuid: \u0027test-vif-A\u0027,"},{"line_number":76,"context_line":"                              port2.uuid: \u0027test-vif-B\u0027}}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_66f2b407","side":"PARENT","line":73,"in_reply_to":"1aa78d24_1de05fcc","updated":"2016-07-07 13:44:14.000000000","message":"It should be done in a separate patch, because it has nothing to do with this patch (which is big enough). But if you don\u0027t have to do another revision, leave it.","commit_id":"5bd0c1b358dc60ef10252873228691271d6e7bd6"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a53eeb12e6b1b20d479b31ee7299733de74a486f","unresolved":false,"context_lines":[{"line_number":70,"context_line":"                                          address\u003d\u0027dd:ee:ff:aa:bb:cc\u0027,"},{"line_number":71,"context_line":"                                          uuid\u003duuidutils.generate_uuid(),"},{"line_number":72,"context_line":"                                          extra\u003d{\u0027vif_port_id\u0027: \u0027test-vif-B\u0027},"},{"line_number":73,"context_line":"                                          driver\u003d\u0027fake\u0027)"},{"line_number":74,"context_line":"        expected \u003d {\u0027portgroups\u0027: {},"},{"line_number":75,"context_line":"                    \u0027ports\u0027: {port1.uuid: \u0027test-vif-A\u0027,"},{"line_number":76,"context_line":"                              port2.uuid: \u0027test-vif-B\u0027}}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_1de05fcc","side":"PARENT","line":73,"in_reply_to":"1aa78d24_9a28d59b","updated":"2016-07-07 13:02:50.000000000","message":"OK, but it does not hurt to remove this while I remember. I can move it to another patch but unless there are more issues with this patch I\u0027d prefer not to. It\u0027s a very straightforward change - ports should not (and can not) have driver in them.","commit_id":"5bd0c1b358dc60ef10252873228691271d6e7bd6"}],"ironic/tests/unit/drivers/modules/test_deploy_utils.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53783bf6f461c18b9e3baac7dd610e9c85f66261","unresolved":false,"context_lines":[{"line_number":1394,"context_line":"            address \u003d utils.get_single_nic_with_vif_port_id(task)"},{"line_number":1395,"context_line":"            self.assertEqual(\u0027aa:bb:cc:dd:ee:ff\u0027, address)"},{"line_number":1396,"context_line":""},{"line_number":1397,"context_line":"    def test_get_single_nic_with_cleaning_vif_port_id(self):"},{"line_number":1398,"context_line":"        obj_utils.create_test_port("},{"line_number":1399,"context_line":"            self.context, node_id\u003dself.node.id, address\u003d\u0027aa:bb:cc:dd:ee:ff\u0027,"},{"line_number":1400,"context_line":"            uuid\u003duuidutils.generate_uuid(),"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_26c9fa26","line":1397,"updated":"2016-07-06 18:56:13.000000000","message":"maybe s/cleaning/ironic/","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0bb7c99cc8a3707aa04a42536469c8f4d834aebe","unresolved":false,"context_lines":[{"line_number":1394,"context_line":"            address \u003d utils.get_single_nic_with_vif_port_id(task)"},{"line_number":1395,"context_line":"            self.assertEqual(\u0027aa:bb:cc:dd:ee:ff\u0027, address)"},{"line_number":1396,"context_line":""},{"line_number":1397,"context_line":"    def test_get_single_nic_with_cleaning_vif_port_id(self):"},{"line_number":1398,"context_line":"        obj_utils.create_test_port("},{"line_number":1399,"context_line":"            self.context, node_id\u003dself.node.id, address\u003d\u0027aa:bb:cc:dd:ee:ff\u0027,"},{"line_number":1400,"context_line":"            uuid\u003duuidutils.generate_uuid(),"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_f1de69db","line":1397,"in_reply_to":"1aa78d24_26c9fa26","updated":"2016-07-07 10:32:21.000000000","message":"Done","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53783bf6f461c18b9e3baac7dd610e9c85f66261","unresolved":false,"context_lines":[{"line_number":1399,"context_line":"            self.context, node_id\u003dself.node.id, address\u003d\u0027aa:bb:cc:dd:ee:ff\u0027,"},{"line_number":1400,"context_line":"            uuid\u003duuidutils.generate_uuid(),"},{"line_number":1401,"context_line":"            internal_info\u003d{\u0027ironic_vif_port_id\u0027: \u0027test-vif-A\u0027},"},{"line_number":1402,"context_line":"            driver\u003d\u0027iscsi_ilo\u0027)"},{"line_number":1403,"context_line":"        with task_manager.acquire(self.context, self.node.uuid,"},{"line_number":1404,"context_line":"                                  shared\u003dFalse) as task:"},{"line_number":1405,"context_line":"            address \u003d utils.get_single_nic_with_vif_port_id(task)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_a68b2ac2","line":1402,"updated":"2016-07-06 18:56:13.000000000","message":"might be good to add extra\u003d{\u0027vif_port_id\u0027: \u003csomething different\u003e} to show that it gets the ironic_vif_port_id value.","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0bb7c99cc8a3707aa04a42536469c8f4d834aebe","unresolved":false,"context_lines":[{"line_number":1399,"context_line":"            self.context, node_id\u003dself.node.id, address\u003d\u0027aa:bb:cc:dd:ee:ff\u0027,"},{"line_number":1400,"context_line":"            uuid\u003duuidutils.generate_uuid(),"},{"line_number":1401,"context_line":"            internal_info\u003d{\u0027ironic_vif_port_id\u0027: \u0027test-vif-A\u0027},"},{"line_number":1402,"context_line":"            driver\u003d\u0027iscsi_ilo\u0027)"},{"line_number":1403,"context_line":"        with task_manager.acquire(self.context, self.node.uuid,"},{"line_number":1404,"context_line":"                                  shared\u003dFalse) as task:"},{"line_number":1405,"context_line":"            address \u003d utils.get_single_nic_with_vif_port_id(task)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_31e591a7","line":1402,"in_reply_to":"1aa78d24_a68b2ac2","updated":"2016-07-07 10:32:21.000000000","message":"In this function, it iterates through the ports in task and returns the first available address, so dunno what to add here. Previous test checks that vif_port_id still works if ironic_vif_port_id is set.","commit_id":"2caee6bf0685d02f251caf0417d5a268eb154b54"}],"releasenotes/notes/add-port-internal-info-b7e02889416570f7.yaml":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"4d66a462aee74582e7e43739d8f4515a470dced3","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - A new dictionary field ``internal_info`` is added to the port API object."},{"line_number":4,"context_line":"    It is readonly from the API side, and can contain any internal information"},{"line_number":5,"context_line":"    ironic needs to store for the port. ``cleaning_vif_port_id`` is being"},{"line_number":6,"context_line":"    stored inside this dictionary."}],"source_content_type":"text/x-yaml","patch_set":4,"id":"1aa78d24_94f1aa6d","line":4,"updated":"2016-07-07 22:08:16.000000000","message":"if you do another revision, it would be good to mention version 1.18.\n\neg, s/side/side (from API version 1.18)/","commit_id":"0a5bb693efe6a5b417c5ba9a912292b498438f84"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"fdd7930d4e44469c199ec2742db40c8f6b1920c7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - A new dictionary field ``internal_info`` is added to the port API object."},{"line_number":4,"context_line":"    It is readonly from the API side, and can contain any internal information"},{"line_number":5,"context_line":"    ironic needs to store for the port. ``cleaning_vif_port_id`` is being"},{"line_number":6,"context_line":"    stored inside this dictionary."}],"source_content_type":"text/x-yaml","patch_set":4,"id":"1aa78d24_c2a22b9a","line":4,"in_reply_to":"1aa78d24_94f1aa6d","updated":"2016-07-08 15:51:41.000000000","message":"I think the pertinent API version needs to be noted in the release note, but updating after the fact is not a big deal.","commit_id":"0a5bb693efe6a5b417c5ba9a912292b498438f84"}]}
