)]}'
{"ironic_inspector/db.py":[{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"30399d057e6ac0bb035a1c4858cc45a68192f4b7","unresolved":false,"context_lines":[{"line_number":74,"context_line":"    uuid \u003d Column(String(36), primary_key\u003dTrue)"},{"line_number":75,"context_line":"    node \u003d Column(String(36), ForeignKey(\u0027nodes.uuid\u0027))"},{"line_number":76,"context_line":"    name \u003d Column(String(255))"},{"line_number":77,"context_line":"    value \u003d Column(String(255))"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"class Option(Base):"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a3c09a3_9ff7358a","line":77,"updated":"2017-01-17 17:20:35.000000000","message":"This change to the primary key is pretty significant isn\u0027t it? Before its primarily keying on (name, value). Now there\u0027s only one attribute possible per node/uuid?","commit_id":"5b4b260d81376f6f539b04a47887d315b4e4ab3f"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"8b8a3446d17acb640bfe7a39dce0cd0feb2c89e4","unresolved":false,"context_lines":[{"line_number":74,"context_line":"    uuid \u003d Column(String(36), primary_key\u003dTrue)"},{"line_number":75,"context_line":"    node \u003d Column(String(36), ForeignKey(\u0027nodes.uuid\u0027))"},{"line_number":76,"context_line":"    name \u003d Column(String(255))"},{"line_number":77,"context_line":"    value \u003d Column(String(255))"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"class Option(Base):"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a3c09a3_101b0bcb","line":77,"in_reply_to":"7a3c09a3_9ff7358a","updated":"2017-01-18 10:24:38.000000000","message":"That\u0027s the goal, previous design had a limitation of the (name, value) having to be unique. Now there\u0027s a dedicated uuid for each attribute and the row relates to a node from the Nodes (cache) table.","commit_id":"5b4b260d81376f6f539b04a47887d315b4e4ab3f"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b2164a4cdbaad80afe71ba42d6561a849a365bab","unresolved":false,"context_lines":[{"line_number":72,"context_line":"class Attribute(Base):"},{"line_number":73,"context_line":"    __tablename__ \u003d \u0027attributes\u0027"},{"line_number":74,"context_line":"    uuid \u003d Column(String(36), primary_key\u003dTrue)"},{"line_number":75,"context_line":"    node \u003d Column(String(36), ForeignKey(\u0027nodes.uuid\u0027))"},{"line_number":76,"context_line":"    name \u003d Column(String(255))"},{"line_number":77,"context_line":"    value \u003d Column(String(255))"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"7a3c09a3_7085faab","line":75,"updated":"2017-01-19 00:19:16.000000000","message":"I\u0027d prefer node_uuid","commit_id":"fba0d76c404c81cf95b01da5afb84a768a912f6c"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"4feddc53a40e496484cccd6cecc295341e9b2f82","unresolved":false,"context_lines":[{"line_number":72,"context_line":"class Attribute(Base):"},{"line_number":73,"context_line":"    __tablename__ \u003d \u0027attributes\u0027"},{"line_number":74,"context_line":"    uuid \u003d Column(String(36), primary_key\u003dTrue)"},{"line_number":75,"context_line":"    node \u003d Column(String(36), ForeignKey(\u0027nodes.uuid\u0027))"},{"line_number":76,"context_line":"    name \u003d Column(String(255))"},{"line_number":77,"context_line":"    value \u003d Column(String(255))"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5a3905b3_de25e3ae","line":75,"in_reply_to":"7a3c09a3_7085faab","updated":"2017-01-19 09:44:31.000000000","message":"will fix","commit_id":"fba0d76c404c81cf95b01da5afb84a768a912f6c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2015ebb6cf842b5da30c5c3e462a77f5af1f3b2c","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"class Attribute(Base):"},{"line_number":73,"context_line":"    __tablename__ \u003d \u0027attributes\u0027"},{"line_number":74,"context_line":"    uuid \u003d Column(String(36), primary_key\u003dTrue)"},{"line_number":75,"context_line":"    node_uuid \u003d Column(String(36), ForeignKey(\u0027nodes.uuid\u0027))"},{"line_number":76,"context_line":"    name \u003d Column(String(255))"},{"line_number":77,"context_line":"    value \u003d Column(String(255))"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a461143_977daae9","line":74,"updated":"2017-01-27 10:21:10.000000000","message":"as this pkey is not public, it should be an integer for simplicity","commit_id":"1ca55ba87e663a602bd2af4347fd5f2842225ecb"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"96a3437763cc83af4eccd77655f152e67622062f","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"class Attribute(Base):"},{"line_number":73,"context_line":"    __tablename__ \u003d \u0027attributes\u0027"},{"line_number":74,"context_line":"    uuid \u003d Column(String(36), primary_key\u003dTrue)"},{"line_number":75,"context_line":"    node_uuid \u003d Column(String(36), ForeignKey(\u0027nodes.uuid\u0027))"},{"line_number":76,"context_line":"    name \u003d Column(String(255))"},{"line_number":77,"context_line":"    value \u003d Column(String(255))"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a461143_3ab9fd79","line":74,"in_reply_to":"3a461143_867f02aa","updated":"2017-01-30 12:57:18.000000000","message":"seems there\u0027s a RFE to expose this actually: https://bugs.launchpad.net/ironic-inspector/+bug/1525231 (discussed over IRC) so I guess we should stick w/ uuid here. I\u0027ll refer to the bug in the commit message in next patchset.","commit_id":"1ca55ba87e663a602bd2af4347fd5f2842225ecb"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"9d419b278608f6731403890988d98c3e4a6dd6a2","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"class Attribute(Base):"},{"line_number":73,"context_line":"    __tablename__ \u003d \u0027attributes\u0027"},{"line_number":74,"context_line":"    uuid \u003d Column(String(36), primary_key\u003dTrue)"},{"line_number":75,"context_line":"    node_uuid \u003d Column(String(36), ForeignKey(\u0027nodes.uuid\u0027))"},{"line_number":76,"context_line":"    name \u003d Column(String(255))"},{"line_number":77,"context_line":"    value \u003d Column(String(255))"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a461143_867f02aa","line":74,"in_reply_to":"3a461143_977daae9","updated":"2017-01-30 12:39:44.000000000","message":"I wonder whether exposing the look-up attributes via API would make sense for some usecases... But yeah, we can eventually change it from ID to uuid should that be the case.","commit_id":"1ca55ba87e663a602bd2af4347fd5f2842225ecb"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2493187afd9d0636cba63c14744fc6ba76cd731","unresolved":false,"context_lines":[{"line_number":68,"context_line":"class Attribute(Base):"},{"line_number":69,"context_line":"    __tablename__ \u003d \u0027attributes\u0027"},{"line_number":70,"context_line":"    uuid \u003d Column(String(36), primary_key\u003dTrue)"},{"line_number":71,"context_line":"    node_uuid \u003d Column(String(36), ForeignKey(\u0027nodes.uuid\u0027,"},{"line_number":72,"context_line":"                                              name\u003d\u0027fk_node_attribute\u0027))"},{"line_number":73,"context_line":"    name \u003d Column(String(255), nullable\u003dFalse)"},{"line_number":74,"context_line":"    value \u003d Column(String(255), nullable\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_325b4630","line":71,"updated":"2017-02-05 19:07:41.000000000","message":"nit: I\u0027d drop _uuid suffix and leave just \"node\"","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"aa44ad97a775cec4f44d86187cc2b91908b2519f","unresolved":false,"context_lines":[{"line_number":68,"context_line":"class Attribute(Base):"},{"line_number":69,"context_line":"    __tablename__ \u003d \u0027attributes\u0027"},{"line_number":70,"context_line":"    uuid \u003d Column(String(36), primary_key\u003dTrue)"},{"line_number":71,"context_line":"    node_uuid \u003d Column(String(36), ForeignKey(\u0027nodes.uuid\u0027,"},{"line_number":72,"context_line":"                                              name\u003d\u0027fk_node_attribute\u0027))"},{"line_number":73,"context_line":"    name \u003d Column(String(255), nullable\u003dFalse)"},{"line_number":74,"context_line":"    value \u003d Column(String(255), nullable\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_eacd35b8","line":71,"in_reply_to":"1a430d35_325b4630","updated":"2017-02-06 14:56:09.000000000","message":"hmm, that was my original idea too but folks wanted node_uuid","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b5a7e32f1962d8880bd19f9c11d018499e0a0304","unresolved":false,"context_lines":[{"line_number":68,"context_line":"class Attribute(Base):"},{"line_number":69,"context_line":"    __tablename__ \u003d \u0027attributes\u0027"},{"line_number":70,"context_line":"    uuid \u003d Column(String(36), primary_key\u003dTrue)"},{"line_number":71,"context_line":"    node_uuid \u003d Column(String(36), ForeignKey(\u0027nodes.uuid\u0027,"},{"line_number":72,"context_line":"                                              name\u003d\u0027fk_node_attribute\u0027))"},{"line_number":73,"context_line":"    name \u003d Column(String(255), nullable\u003dFalse)"},{"line_number":74,"context_line":"    value \u003d Column(String(255), nullable\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":13,"id":"1a430d35_2d2fe9a1","line":71,"updated":"2017-02-08 13:02:30.000000000","message":"meh, I still don\u0027t like it, but ok :)","commit_id":"b3ed24bc6bc7aabab2dd5a6e73486c320cd4cf38"}],"ironic_inspector/migrations/versions/882b2d84cb1b_attribute_constraints_relaxing.py":[{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"30399d057e6ac0bb035a1c4858cc45a68192f4b7","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def upgrade():"},{"line_number":32,"context_line":"    op.drop_table(\u0027attributes\u0027)"},{"line_number":33,"context_line":"    op.create_table("},{"line_number":34,"context_line":"        \u0027attributes\u0027,"},{"line_number":35,"context_line":"        sa.Column(\u0027uuid\u0027, sa.String(36), primary_key\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a3c09a3_3fe641b0","line":32,"updated":"2017-01-17 17:20:35.000000000","message":"I\u0027m unfamiliar with how ironic-inspector is run. As in, is the db recreated every time inspector gets run, or is it something that is expected to stick around for a while? However, just dropping a table and recreating it doesn\u0027t strike me as a viable migration strategy.","commit_id":"5b4b260d81376f6f539b04a47887d315b4e4ab3f"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"8b8a3446d17acb640bfe7a39dce0cd0feb2c89e4","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def upgrade():"},{"line_number":32,"context_line":"    op.drop_table(\u0027attributes\u0027)"},{"line_number":33,"context_line":"    op.create_table("},{"line_number":34,"context_line":"        \u0027attributes\u0027,"},{"line_number":35,"context_line":"        sa.Column(\u0027uuid\u0027, sa.String(36), primary_key\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a3c09a3_70afef7c","line":32,"in_reply_to":"7a3c09a3_3fe641b0","updated":"2017-01-18 10:24:38.000000000","message":"Inspector isn\u0027t HA yet, there\u0027s always up to one instance running in a deployment.\nThe tables inspector uses are only a cache. Especially the Attributes table entries are valid only during a running introspection. The table drop here is safe.","commit_id":"5b4b260d81376f6f539b04a47887d315b4e4ab3f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2015ebb6cf842b5da30c5c3e462a77f5af1f3b2c","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def upgrade():"},{"line_number":32,"context_line":"    op.drop_table(\u0027attributes\u0027)"},{"line_number":33,"context_line":"    op.create_table("},{"line_number":34,"context_line":"        \u0027attributes\u0027,"},{"line_number":35,"context_line":"        sa.Column(\u0027uuid\u0027, sa.String(36), primary_key\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a461143_777afef2","line":32,"updated":"2017-01-27 10:21:10.000000000","message":"this seems too brutal :) why not drop pkey from (name, value), then add \"id\" column, populate it and set pkey on it?","commit_id":"1ca55ba87e663a602bd2af4347fd5f2842225ecb"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"9d419b278608f6731403890988d98c3e4a6dd6a2","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def upgrade():"},{"line_number":32,"context_line":"    op.drop_table(\u0027attributes\u0027)"},{"line_number":33,"context_line":"    op.create_table("},{"line_number":34,"context_line":"        \u0027attributes\u0027,"},{"line_number":35,"context_line":"        sa.Column(\u0027uuid\u0027, sa.String(36), primary_key\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a461143_cf611d3b","line":32,"in_reply_to":"3a461143_777afef2","updated":"2017-01-30 12:39:44.000000000","message":"because we didn\u0027t do explicit constraints naming before, to drop it now is hard as the names are generated and can differ from one DB to another[1]\nOn the other hand, we\u0027re dealing w/ cache-like data here in a non-HA environment, so I believe the drop is acceptable.\n\nWe should still introduce explicit naming conventions (in a separate patch?) before we declare full HA to avoid this issue in the future.\n\n[1] http://docs.sqlalchemy.org/en/latest/core/constraints.html#configuring-constraint-naming-conventions","commit_id":"1ca55ba87e663a602bd2af4347fd5f2842225ecb"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"a668bf5b8b064fd5f3573e51fe5051d02f46c644","unresolved":false,"context_lines":[{"line_number":38,"context_line":"                                 sa.ForeignKey(\u0027nodes.uuid\u0027,"},{"line_number":39,"context_line":"                                               name\u003d\u0027fk_node_attribute\u0027))"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    attributes_tmp \u003d op.create_table(\u0027attributes_tmp\u0027, uuid_column,"},{"line_number":42,"context_line":"                                     node_uuid_column, name_column,"},{"line_number":43,"context_line":"                                     value_column)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    attributes \u003d sa.table(\u0027attributes\u0027, name_column, value_column, uuid_column)"},{"line_number":46,"context_line":"    connection \u003d op.get_bind()"}],"source_content_type":"text/x-python","patch_set":9,"id":"3a461143_28484d2d","line":43,"range":{"start_line":41,"start_character":0,"end_line":43,"end_character":50},"updated":"2017-02-02 14:44:51.000000000","message":"You need `move and copy` procedure only for SQLite,\nso you could just use `batch_alter_table here`, it will do it for you in case SQLite engine is used.","commit_id":"91556ea50180ee6fd7709cdb8e01f275f855adc3"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"881f9ab32c5ff105f598857f9c65a52d2ae9a4ee","unresolved":false,"context_lines":[{"line_number":54,"context_line":"            node_uuid\u003drow.uuid, uuid\u003duuidutils.generate_uuid()))"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    with op.batch_alter_table(ATTRIBUTES) as batch_op:"},{"line_number":57,"context_line":"        batch_op.drop_constraint(pk_constraint, type_\u003d\u0027primary\u0027)"},{"line_number":58,"context_line":"        batch_op.create_primary_key(\u0027pk_attributes\u0027, [\u0027uuid\u0027])"},{"line_number":59,"context_line":"        batch_op.drop_constraint(fk_constraint, type_\u003d\u0027foreignkey\u0027)"},{"line_number":60,"context_line":"        batch_op.create_foreign_key(\u0027fk_node_attribute\u0027, \u0027nodes\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a461143_026a851a","line":57,"range":{"start_line":57,"start_character":33,"end_line":57,"end_character":46},"updated":"2017-02-02 17:51:17.000000000","message":"why did you delete naming_convention for SQLite, I guess you are trying to drop constraint with None name?","commit_id":"1e7fc7dfb726ffabcfb78e2a5b6ca1a6b4b0f450"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"f2956d3e95801babe9ba2ceb1914eb58d7397257","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                                         attributes.c.node_uuid]))"},{"line_number":70,"context_line":"    for row in rows:"},{"line_number":71,"context_line":"        # move uuid to node_uuid, reuse uuid as a new primary key"},{"line_number":72,"context_line":"        connection.execute(attributes.update().values("},{"line_number":73,"context_line":"            node_uuid\u003drow.uuid, uuid\u003duuidutils.generate_uuid()))"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    with op.batch_alter_table(ATTRIBUTES,"},{"line_number":76,"context_line":"                              naming_convention\u003dnaming_convention) as batch_op:"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_e108fbdb","line":73,"range":{"start_line":72,"start_character":0,"end_line":73,"end_character":64},"updated":"2017-02-06 11:41:17.000000000","message":"looks like you need where clause here, otherwise you will update all rows each time","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"aa44ad97a775cec4f44d86187cc2b91908b2519f","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                                         attributes.c.node_uuid]))"},{"line_number":70,"context_line":"    for row in rows:"},{"line_number":71,"context_line":"        # move uuid to node_uuid, reuse uuid as a new primary key"},{"line_number":72,"context_line":"        connection.execute(attributes.update().values("},{"line_number":73,"context_line":"            node_uuid\u003drow.uuid, uuid\u003duuidutils.generate_uuid()))"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    with op.batch_alter_table(ATTRIBUTES,"},{"line_number":76,"context_line":"                              naming_convention\u003dnaming_convention) as batch_op:"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_cab4efd2","line":73,"range":{"start_line":72,"start_character":0,"end_line":73,"end_character":64},"in_reply_to":"1a430d35_e108fbdb","updated":"2017-02-06 14:56:09.000000000","message":"Correct, thanks!","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"54663eb2d8c500184ada474a2782eee4c37abf6b","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        # move uuid to node_uuid, reuse uuid as a new primary key"},{"line_number":72,"context_line":"        connection.execute("},{"line_number":73,"context_line":"            attributes.update().where(attributes.c.uuid \u003d\u003d row.uuid)."},{"line_number":74,"context_line":"            values(node_uuid\u003drow.uuid, uuid\u003duuidutils.generate_uuid())"},{"line_number":75,"context_line":"        )"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    with op.batch_alter_table(ATTRIBUTES,"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a430d35_34ac5635","line":74,"range":{"start_line":74,"start_character":39,"end_line":74,"end_character":43},"updated":"2017-02-10 10:19:12.000000000","message":"one thing I\u0027m worrying about is foreign key constraint, you are adding non-existing node uuid, and I guess it will fail in case constraint check is enabled.","commit_id":"594bba5addc8169492ebb0f0952295cc31812894"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c08ce2c9d241cdf473c2a3d99c5cd6ac7e9e8e74","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":"\"\"\"attribute_constraints_relaxing"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Revision ID: 882b2d84cb1b"},{"line_number":16,"context_line":"Revises: d00d6e3f38c4"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa31d9ce_419d5458","line":13,"updated":"2017-02-11 17:34:14.000000000","message":"Please provide a meaningful description, it\u0027s displayed when running dbsync","commit_id":"0ce5cdb7c8344e981a919aab136c4c2eba79d4a2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c08ce2c9d241cdf473c2a3d99c5cd6ac7e9e8e74","unresolved":false,"context_lines":[{"line_number":35,"context_line":"NAME \u003d \u0027name\u0027"},{"line_number":36,"context_line":"VALUE \u003d \u0027value\u0027"},{"line_number":37,"context_line":"UUID \u003d \u0027uuid\u0027"},{"line_number":38,"context_line":"NODE_UUID \u003d \u0027node_uuid\u0027"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"naming_convention \u003d {"},{"line_number":41,"context_line":"    \"pk\": \u0027pk_%(table_name)s\u0027,"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa31d9ce_61a418a6","line":38,"updated":"2017-02-11 17:34:14.000000000","message":"these constants do not seem particularly useful, especially since you do use literal values in some places..","commit_id":"0ce5cdb7c8344e981a919aab136c4c2eba79d4a2"}],"ironic_inspector/node_cache.py":[{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"c62eb748e16b1f311896c64a2bfcb9b0d95c8adf","unresolved":false,"context_lines":[{"line_number":699,"context_line":"    :param session: optional existing database session"},{"line_number":700,"context_line":"    \"\"\""},{"line_number":701,"context_line":"    with db.ensure_transaction(session) as session:"},{"line_number":702,"context_line":"        for row in db.model_query(db.Attribute, session\u003dsession).filter_by("},{"line_number":703,"context_line":"                node\u003duuid).all():"},{"line_number":704,"context_line":"            session.delete(row)"},{"line_number":705,"context_line":"        for model in (db.Option, db.Node):"},{"line_number":706,"context_line":"            db.model_query(model,"},{"line_number":707,"context_line":"                           session\u003dsession).filter_by(uuid\u003duuid).delete()"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a3c09a3_7d7a67be","line":704,"range":{"start_line":702,"start_character":0,"end_line":704,"end_character":31},"updated":"2017-01-18 12:14:14.000000000","message":"why do you need to remove rows in loop? Why not just drop the query?","commit_id":"1f3497950e32464ce556b7662f28f706b9d82511"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"e8e5b26a5a52bbbdf2f9cb0bd462cb628b86ade3","unresolved":false,"context_lines":[{"line_number":699,"context_line":"    :param session: optional existing database session"},{"line_number":700,"context_line":"    \"\"\""},{"line_number":701,"context_line":"    with db.ensure_transaction(session) as session:"},{"line_number":702,"context_line":"        for row in db.model_query(db.Attribute, session\u003dsession).filter_by("},{"line_number":703,"context_line":"                node\u003duuid).all():"},{"line_number":704,"context_line":"            session.delete(row)"},{"line_number":705,"context_line":"        for model in (db.Option, db.Node):"},{"line_number":706,"context_line":"            db.model_query(model,"},{"line_number":707,"context_line":"                           session\u003dsession).filter_by(uuid\u003duuid).delete()"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a3c09a3_eff6955b","line":704,"range":{"start_line":702,"start_character":0,"end_line":704,"end_character":31},"in_reply_to":"7a3c09a3_7d7a67be","updated":"2017-01-18 13:13:18.000000000","message":"Done","commit_id":"1f3497950e32464ce556b7662f28f706b9d82511"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"c62eb748e16b1f311896c64a2bfcb9b0d95c8adf","unresolved":false,"context_lines":[{"line_number":799,"context_line":"    if not found:"},{"line_number":800,"context_line":"        raise utils.NotFoundInCacheError(_("},{"line_number":801,"context_line":"            \u0027Could not find a node for attributes %s\u0027) % attributes)"},{"line_number":802,"context_line":"    elif len(found) \u003e 1 and found[0][1] \u003d\u003d found[1][1]:"},{"line_number":803,"context_line":"        # tie, same score for at least two nodes"},{"line_number":804,"context_line":"        raise utils.Error(_("},{"line_number":805,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a3c09a3_2e37c3ff","line":802,"range":{"start_line":802,"start_character":28,"end_line":802,"end_character":54},"updated":"2017-01-18 12:14:14.000000000","message":"This seems over complicated with some corner cases.\nlooks like in case of multiple values it\u0027s possible to match the count based on diff values, but I don\u0027t have such case in mind.\nBut also there is a case when first node has 2 duplicating attributes and second 2 diff which is match, and we will fail.Do we really need to allow duplicate rows? maybe node_uuidXname should be unique?","commit_id":"1f3497950e32464ce556b7662f28f706b9d82511"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"e8e5b26a5a52bbbdf2f9cb0bd462cb628b86ade3","unresolved":false,"context_lines":[{"line_number":799,"context_line":"    if not found:"},{"line_number":800,"context_line":"        raise utils.NotFoundInCacheError(_("},{"line_number":801,"context_line":"            \u0027Could not find a node for attributes %s\u0027) % attributes)"},{"line_number":802,"context_line":"    elif len(found) \u003e 1 and found[0][1] \u003d\u003d found[1][1]:"},{"line_number":803,"context_line":"        # tie, same score for at least two nodes"},{"line_number":804,"context_line":"        raise utils.Error(_("},{"line_number":805,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a3c09a3_8424130d","line":802,"range":{"start_line":802,"start_character":28,"end_line":802,"end_character":54},"in_reply_to":"7a3c09a3_2e37c3ff","updated":"2017-01-18 13:13:18.000000000","message":"\u003e This seems over complicated with some corner cases.\n\u003e looks like in case of multiple values it\u0027s possible to match the count based on diff \n\u003e values, but I don\u0027t have such case in mind.\n\nHow about the ports issue bug? Attributes table looks like this for instance:\n\n  attrid1, bmc_address, 1.2.3.4, node_1\n  attrid2, mac, de:ad:be:ef:de:ad, node_1\n  attrid3, bmc_address, 1.2.3.4, node_2\n  attrid4, mac, be:be:ef:be:be:ef, node_2\n\nscores of the nodes are always 2:1 here as each Continue call has it\u0027s own score calculated.\n\n\u003e But also there is a case when first node has 2 duplicating attributes and second \n\u003e 2 diff which is match, and we will fail.\n\nIn case the Continue.data is a blend of 2 nodes, maybe. Could you give a sample?\nAnyway there\u0027s always MACs that should be different for real HW.\n\n\u003e Do we really need to allow duplicate rows?\n\u003e maybe node_uuidXname should be unique?\n\nIf you have node_1.bmc_addr \u003d\u003d 1.2.3.4 and node_2.bmc_addr \u003d\u003d 4.3.2.1 the Attributes would be:\n\n   node_1, bmc_addr, 1.2.3.4\n   node_2, bmc_addr, 4.3.2.1 \n\nwhich is a constraint collision; i.e you won\u0027t be able to insert two nodes at the same time if they have attributes w/ same name.","commit_id":"1f3497950e32464ce556b7662f28f706b9d82511"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ade46ffa8b7dcacb3dacc0f7b48b941cbdb6fced","unresolved":false,"context_lines":[{"line_number":799,"context_line":"    if not found:"},{"line_number":800,"context_line":"        raise utils.NotFoundInCacheError(_("},{"line_number":801,"context_line":"            \u0027Could not find a node for attributes %s\u0027) % attributes)"},{"line_number":802,"context_line":"    elif len(found) \u003e 1 and found[0][1] \u003d\u003d found[1][1]:"},{"line_number":803,"context_line":"        # tie, same score for at least two nodes"},{"line_number":804,"context_line":"        raise utils.Error(_("},{"line_number":805,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a3c09a3_889ee160","line":802,"range":{"start_line":802,"start_character":28,"end_line":802,"end_character":54},"in_reply_to":"7a3c09a3_8424130d","updated":"2017-01-18 14:48:55.000000000","message":"\u003e\u003e Do we really need to allow duplicate rows?\n\u003e\u003e maybe node_uuidXname should be unique?\n\n\u003e If you have node_1.bmc_addr \u003d\u003d 1.2.3.4 and node_2.bmc_addr \u003d\u003d 4.3.2.1 the Attributes would be:\n\u003e\n\u003e   node_1, bmc_addr, 1.2.3.4\n\u003e   node_2, bmc_addr, 4.3.2.1 \n\u003e which is a constraint collision; i.e you won\u0027t be able to insert two nodes at the \u003e same time if they have attributes w/ same name.\n\nActually, I\u0027m wrong here, sorry O:-) I need to reconsider this","commit_id":"1f3497950e32464ce556b7662f28f706b9d82511"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"8041a720850e0f091f5d81147185e7dad348b8a0","unresolved":false,"context_lines":[{"line_number":799,"context_line":"    if not found:"},{"line_number":800,"context_line":"        raise utils.NotFoundInCacheError(_("},{"line_number":801,"context_line":"            \u0027Could not find a node for attributes %s\u0027) % attributes)"},{"line_number":802,"context_line":"    elif len(found) \u003e 1 and found[0][1] \u003d\u003d found[1][1]:"},{"line_number":803,"context_line":"        # tie, same score for at least two nodes"},{"line_number":804,"context_line":"        raise utils.Error(_("},{"line_number":805,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a3c09a3_f758208c","line":802,"range":{"start_line":802,"start_character":28,"end_line":802,"end_character":54},"in_reply_to":"7a3c09a3_889ee160","updated":"2017-01-18 15:56:05.000000000","message":"It should work as node is unique in any case.\nThere is mostly synthetic cases when it doesn\u0027t work.","commit_id":"1f3497950e32464ce556b7662f28f706b9d82511"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"8e6515bbb0d9b23e2681b6e33dfb15dc50f66fbd","unresolved":false,"context_lines":[{"line_number":799,"context_line":"    if not found:"},{"line_number":800,"context_line":"        raise utils.NotFoundInCacheError(_("},{"line_number":801,"context_line":"            \u0027Could not find a node for attributes %s\u0027) % attributes)"},{"line_number":802,"context_line":"    elif len(found) \u003e 1 and found[0][1] \u003d\u003d found[1][1]:"},{"line_number":803,"context_line":"        # tie, same score for at least two nodes"},{"line_number":804,"context_line":"        raise utils.Error(_("},{"line_number":805,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a3905b3_7ba08191","line":802,"range":{"start_line":802,"start_character":28,"end_line":802,"end_character":54},"in_reply_to":"7a3c09a3_f758208c","updated":"2017-01-19 09:33:10.000000000","message":"w/r the node_idXattr_name case, we support list of values for an attribute, which get set as separate rows, so a collision would happen in that case [1]\n\n[1] https://github.com/openstack/ironic-inspector/blob/master/ironic_inspector/node_cache.py#L300,#L307","commit_id":"1f3497950e32464ce556b7662f28f706b9d82511"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b2164a4cdbaad80afe71ba42d6561a849a365bab","unresolved":false,"context_lines":[{"line_number":248,"context_line":"        if self._attributes is None:"},{"line_number":249,"context_line":"            self._attributes \u003d {}"},{"line_number":250,"context_line":"            rows \u003d db.model_query(db.Attribute).filter_by("},{"line_number":251,"context_line":"                node\u003dself.uuid)"},{"line_number":252,"context_line":"            for row in rows:"},{"line_number":253,"context_line":"                self._attributes.setdefault(row.name, []).append(row.value)"},{"line_number":254,"context_line":"        return self._attributes"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a3c09a3_50af1e2b","line":251,"updated":"2017-01-19 00:19:16.000000000","message":"here node_uuid would be more descriptive :)","commit_id":"fba0d76c404c81cf95b01da5afb84a768a912f6c"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"4feddc53a40e496484cccd6cecc295341e9b2f82","unresolved":false,"context_lines":[{"line_number":248,"context_line":"        if self._attributes is None:"},{"line_number":249,"context_line":"            self._attributes \u003d {}"},{"line_number":250,"context_line":"            rows \u003d db.model_query(db.Attribute).filter_by("},{"line_number":251,"context_line":"                node\u003dself.uuid)"},{"line_number":252,"context_line":"            for row in rows:"},{"line_number":253,"context_line":"                self._attributes.setdefault(row.name, []).append(row.value)"},{"line_number":254,"context_line":"        return self._attributes"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a3905b3_7e106f4f","line":251,"in_reply_to":"7a3c09a3_50af1e2b","updated":"2017-01-19 09:44:31.000000000","message":"I agree","commit_id":"fba0d76c404c81cf95b01da5afb84a768a912f6c"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b2164a4cdbaad80afe71ba42d6561a849a365bab","unresolved":false,"context_lines":[{"line_number":793,"context_line":"            text(stmt)).all())"},{"line_number":794,"context_line":"        found.update(row.node for row in rows)"},{"line_number":795,"context_line":""},{"line_number":796,"context_line":"    # detecting the best-match \"winner\""},{"line_number":797,"context_line":"    found \u003d found.most_common(2)"},{"line_number":798,"context_line":"    if not found:"},{"line_number":799,"context_line":"        raise utils.NotFoundInCacheError(_("}],"source_content_type":"text/x-python","patch_set":3,"id":"7a3c09a3_d016ae57","line":796,"updated":"2017-01-19 00:19:16.000000000","message":"This is not clear to me - how exactly the winner is determined?\nWhat is more - it\u0027s not a single winner, but rather \u003c0,2\u003e winners","commit_id":"fba0d76c404c81cf95b01da5afb84a768a912f6c"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"4feddc53a40e496484cccd6cecc295341e9b2f82","unresolved":false,"context_lines":[{"line_number":793,"context_line":"            text(stmt)).all())"},{"line_number":794,"context_line":"        found.update(row.node for row in rows)"},{"line_number":795,"context_line":""},{"line_number":796,"context_line":"    # detecting the best-match \"winner\""},{"line_number":797,"context_line":"    found \u003d found.most_common(2)"},{"line_number":798,"context_line":"    if not found:"},{"line_number":799,"context_line":"        raise utils.NotFoundInCacheError(_("}],"source_content_type":"text/x-python","patch_set":3,"id":"5a3905b3_5b0ca542","line":796,"in_reply_to":"7a3c09a3_d016ae57","updated":"2017-01-19 09:44:31.000000000","message":"The found counter accumulates how many times a node_uuid was hit while selecting distinct attr_name X attr_value rows. The more hits, the higher the score.\n\nA node is found if and only if it has the highest score. Conversely if there are more nodes w/ same score, there\u0027s no winner. There are more nodes w/ same score if at least 2 nodes share the same score.\n\nPlease note also that Counter.most_common is a list sorted according to the score, higher values first.","commit_id":"fba0d76c404c81cf95b01da5afb84a768a912f6c"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"cb9049a890875f5972b217c52e24294e4eddd0a8","unresolved":false,"context_lines":[{"line_number":802,"context_line":"        # tie, same score for at least two nodes"},{"line_number":803,"context_line":"        raise utils.Error(_("},{"line_number":804,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"},{"line_number":805,"context_line":"            \u0027%(attr)s; 2 most common: %(found)s\u0027)"},{"line_number":806,"context_line":"            % {\u0027attr\u0027: attributes, \u0027found\u0027: found}, code\u003d404)"},{"line_number":807,"context_line":""},{"line_number":808,"context_line":"    uuid \u003d found[0][0]"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a3905b3_b2c72311","line":805,"range":{"start_line":805,"start_character":22,"end_line":805,"end_character":36},"updated":"2017-01-20 11:50:49.000000000","message":"nit: maybe add all nodes here, it could be then 2","commit_id":"b5c28d96c81da1a480c32bf44bf916d5fb007f6f"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ca117c343eeba5764409622e975955f33eaaac2","unresolved":false,"context_lines":[{"line_number":802,"context_line":"        # tie, same score for at least two nodes"},{"line_number":803,"context_line":"        raise utils.Error(_("},{"line_number":804,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"},{"line_number":805,"context_line":"            \u0027%(attr)s; 2 most common: %(found)s\u0027)"},{"line_number":806,"context_line":"            % {\u0027attr\u0027: attributes, \u0027found\u0027: found}, code\u003d404)"},{"line_number":807,"context_line":""},{"line_number":808,"context_line":"    uuid \u003d found[0][0]"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a3905b3_b8a774a5","line":805,"range":{"start_line":805,"start_character":22,"end_line":805,"end_character":36},"in_reply_to":"5a3905b3_b2c72311","updated":"2017-01-24 14:20:14.000000000","message":"you mean the found.most_common() unlimited? Might be verbose.\nI might debug log that instead?","commit_id":"b5c28d96c81da1a480c32bf44bf916d5fb007f6f"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"1301d950886ffe86a36783e683c9941cfc5f7589","unresolved":false,"context_lines":[{"line_number":802,"context_line":"        # tie, same score for at least two nodes"},{"line_number":803,"context_line":"        raise utils.Error(_("},{"line_number":804,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"},{"line_number":805,"context_line":"            \u0027%(attr)s; 2 most common: %(found)s\u0027)"},{"line_number":806,"context_line":"            % {\u0027attr\u0027: attributes, \u0027found\u0027: found}, code\u003d404)"},{"line_number":807,"context_line":""},{"line_number":808,"context_line":"    uuid \u003d found[0][0]"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a3905b3_dbbfd1cd","line":805,"range":{"start_line":805,"start_character":22,"end_line":805,"end_character":36},"in_reply_to":"5a3905b3_b8a774a5","updated":"2017-01-24 14:28:47.000000000","message":"I mean we are printing only 2 nodes here, it\u0027s possible that there are more, right?","commit_id":"b5c28d96c81da1a480c32bf44bf916d5fb007f6f"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"b9afa8522fffad25beae0bcea003a4eae94e2417","unresolved":false,"context_lines":[{"line_number":802,"context_line":"        # tie, same score for at least two nodes"},{"line_number":803,"context_line":"        raise utils.Error(_("},{"line_number":804,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"},{"line_number":805,"context_line":"            \u0027%(attr)s; 2 most common: %(found)s\u0027)"},{"line_number":806,"context_line":"            % {\u0027attr\u0027: attributes, \u0027found\u0027: found}, code\u003d404)"},{"line_number":807,"context_line":""},{"line_number":808,"context_line":"    uuid \u003d found[0][0]"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a3905b3_d0c16be5","line":805,"range":{"start_line":805,"start_character":22,"end_line":805,"end_character":36},"in_reply_to":"5a3905b3_dbbfd1cd","updated":"2017-01-24 15:47:32.000000000","message":"Yup there might be more uuids with the same score indeed.\nBut showing all the uuids as part of the exception message seems an overkill to me.  Basically the message just propagates back to IPA telling it: \"Oops, you\u0027re not unique!\" But I can dump the whole collection as before the whole set was dumped too, just will have to be clever to select only the top-scoring nodes (the equivalent of the previous set)...","commit_id":"b5c28d96c81da1a480c32bf44bf916d5fb007f6f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2493187afd9d0636cba63c14744fc6ba76cd731","unresolved":false,"context_lines":[{"line_number":807,"context_line":"            \u0027Could not find a node for attributes %s\u0027) % attributes)"},{"line_number":808,"context_line":""},{"line_number":809,"context_line":"    most_common \u003d found.most_common()"},{"line_number":810,"context_line":"    LOG.debug(\u0027Node best-match scores: %s\u0027, most_common)"},{"line_number":811,"context_line":"    # NOTE(milan) most_common is sorted, higher scores first"},{"line_number":812,"context_line":"    found \u003d [item[0] for item in most_common if most_common[0][1] \u003d\u003d item[1]]"},{"line_number":813,"context_line":"    if len(found) \u003e 1:"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_5242923f","line":810,"updated":"2017-02-05 19:07:41.000000000","message":"please provide a more meaningful log message here. I don\u0027t think anybody will understand what \"best-match scores\" means. I suggest something like \"The following nodes match received data\" and then format items like \u0027%s (score %d)\u0027 % tpl for tpl in most_common","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"aa44ad97a775cec4f44d86187cc2b91908b2519f","unresolved":false,"context_lines":[{"line_number":807,"context_line":"            \u0027Could not find a node for attributes %s\u0027) % attributes)"},{"line_number":808,"context_line":""},{"line_number":809,"context_line":"    most_common \u003d found.most_common()"},{"line_number":810,"context_line":"    LOG.debug(\u0027Node best-match scores: %s\u0027, most_common)"},{"line_number":811,"context_line":"    # NOTE(milan) most_common is sorted, higher scores first"},{"line_number":812,"context_line":"    found \u003d [item[0] for item in most_common if most_common[0][1] \u003d\u003d item[1]]"},{"line_number":813,"context_line":"    if len(found) \u003e 1:"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_7e302602","line":810,"in_reply_to":"1a430d35_5242923f","updated":"2017-02-06 14:56:09.000000000","message":"Done","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2493187afd9d0636cba63c14744fc6ba76cd731","unresolved":false,"context_lines":[{"line_number":809,"context_line":"    most_common \u003d found.most_common()"},{"line_number":810,"context_line":"    LOG.debug(\u0027Node best-match scores: %s\u0027, most_common)"},{"line_number":811,"context_line":"    # NOTE(milan) most_common is sorted, higher scores first"},{"line_number":812,"context_line":"    found \u003d [item[0] for item in most_common if most_common[0][1] \u003d\u003d item[1]]"},{"line_number":813,"context_line":"    if len(found) \u003e 1:"},{"line_number":814,"context_line":"        raise utils.Error(_("},{"line_number":815,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_723dceba","line":812,"updated":"2017-02-05 19:07:41.000000000","message":"It took me a few minutes to understand what this code does on Sunday evening :) I suggest doing:\n\n highest_score \u003d most_common[0][1]\n found \u003d [...]","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"aa44ad97a775cec4f44d86187cc2b91908b2519f","unresolved":false,"context_lines":[{"line_number":809,"context_line":"    most_common \u003d found.most_common()"},{"line_number":810,"context_line":"    LOG.debug(\u0027Node best-match scores: %s\u0027, most_common)"},{"line_number":811,"context_line":"    # NOTE(milan) most_common is sorted, higher scores first"},{"line_number":812,"context_line":"    found \u003d [item[0] for item in most_common if most_common[0][1] \u003d\u003d item[1]]"},{"line_number":813,"context_line":"    if len(found) \u003e 1:"},{"line_number":814,"context_line":"        raise utils.Error(_("},{"line_number":815,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_9e2b1294","line":812,"in_reply_to":"1a430d35_723dceba","updated":"2017-02-06 14:56:09.000000000","message":"Done","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2493187afd9d0636cba63c14744fc6ba76cd731","unresolved":false,"context_lines":[{"line_number":812,"context_line":"    found \u003d [item[0] for item in most_common if most_common[0][1] \u003d\u003d item[1]]"},{"line_number":813,"context_line":"    if len(found) \u003e 1:"},{"line_number":814,"context_line":"        raise utils.Error(_("},{"line_number":815,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"},{"line_number":816,"context_line":"            \u0027%(attr)s: %(found)s\u0027)"},{"line_number":817,"context_line":"            % {\u0027attr\u0027: attributes, \u0027found\u0027: found}, code\u003d404)"},{"line_number":818,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_924cfa71","line":815,"updated":"2017-02-05 19:07:41.000000000","message":"this now has to be rephrased to mention that these nodes matches the same number of attributes.","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"aa44ad97a775cec4f44d86187cc2b91908b2519f","unresolved":false,"context_lines":[{"line_number":812,"context_line":"    found \u003d [item[0] for item in most_common if most_common[0][1] \u003d\u003d item[1]]"},{"line_number":813,"context_line":"    if len(found) \u003e 1:"},{"line_number":814,"context_line":"        raise utils.Error(_("},{"line_number":815,"context_line":"            \u0027Multiple matching nodes found for attributes \u0027"},{"line_number":816,"context_line":"            \u0027%(attr)s: %(found)s\u0027)"},{"line_number":817,"context_line":"            % {\u0027attr\u0027: attributes, \u0027found\u0027: found}, code\u003d404)"},{"line_number":818,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_de1bda7e","line":815,"in_reply_to":"1a430d35_924cfa71","updated":"2017-02-06 14:56:09.000000000","message":"Done","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b5a7e32f1962d8880bd19f9c11d018499e0a0304","unresolved":false,"context_lines":[{"line_number":810,"context_line":"    if LOG.logger.level \u003d\u003d logging.DEBUG:"},{"line_number":811,"context_line":"        LOG.debug(\u0027The following nodes match received data, scoring: %s\u0027,"},{"line_number":812,"context_line":"                  \u0027, \u0027.join(\u0027%0s: %1d\u0027 % tpl for tpl in most_common),"},{"line_number":813,"context_line":"                  data\u003dattributes)"},{"line_number":814,"context_line":"    # NOTE(milan) most_common is sorted, higher scores first"},{"line_number":815,"context_line":"    highest_score \u003d most_common[0][1]"},{"line_number":816,"context_line":"    found \u003d [item[0] for item in most_common if highest_score \u003d\u003d item[1]]"}],"source_content_type":"text/x-python","patch_set":13,"id":"1a430d35_4d2a7591","line":813,"updated":"2017-02-08 13:02:30.000000000","message":"for some reason I don\u0027t see this message in the logs. maybe the condition on the previous line is not correct?","commit_id":"b3ed24bc6bc7aabab2dd5a6e73486c320cd4cf38"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"5ff552acbb88eca1b1c1ee6dc48f673e89ea5cb6","unresolved":false,"context_lines":[{"line_number":810,"context_line":"    if LOG.logger.level \u003d\u003d logging.DEBUG:"},{"line_number":811,"context_line":"        LOG.debug(\u0027The following nodes match received data, scoring: %s\u0027,"},{"line_number":812,"context_line":"                  \u0027, \u0027.join(\u0027%0s: %1d\u0027 % tpl for tpl in most_common),"},{"line_number":813,"context_line":"                  data\u003dattributes)"},{"line_number":814,"context_line":"    # NOTE(milan) most_common is sorted, higher scores first"},{"line_number":815,"context_line":"    highest_score \u003d most_common[0][1]"},{"line_number":816,"context_line":"    found \u003d [item[0] for item in most_common if highest_score \u003d\u003d item[1]]"}],"source_content_type":"text/x-python","patch_set":13,"id":"1a430d35_30c9f959","line":813,"in_reply_to":"1a430d35_4d2a7591","updated":"2017-02-08 15:00:38.000000000","message":"yeah, you\u0027re right, the LOG.logger.level is always 0 (undefined) :-/","commit_id":"b3ed24bc6bc7aabab2dd5a6e73486c320cd4cf38"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"e296ee101166ea0792715afd4ddbaa94276e460a","unresolved":false,"context_lines":[{"line_number":807,"context_line":"            \u0027Could not find a node for attributes %s\u0027) % attributes)"},{"line_number":808,"context_line":""},{"line_number":809,"context_line":"    most_common \u003d found.most_common()"},{"line_number":810,"context_line":"    if LOG.isEnabledFor(logging.DEBUG):"},{"line_number":811,"context_line":"        LOG.debug(\u0027The following nodes match received data, scoring: %s\u0027,"},{"line_number":812,"context_line":"                  \u0027, \u0027.join(\u0027%0s: %1d\u0027 % tpl for tpl in most_common),"},{"line_number":813,"context_line":"                  data\u003dattributes)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a430d35_ae42e5ab","line":810,"range":{"start_line":810,"start_character":7,"end_line":810,"end_character":39},"updated":"2017-02-08 16:45:28.000000000","message":"why do you need this check?","commit_id":"9ad105485c0d7f87eeb010c608f9d24ecfeb7a93"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"047f9f7936c861e13557ace8e78c3317d9a74201","unresolved":false,"context_lines":[{"line_number":807,"context_line":"            \u0027Could not find a node for attributes %s\u0027) % attributes)"},{"line_number":808,"context_line":""},{"line_number":809,"context_line":"    most_common \u003d found.most_common()"},{"line_number":810,"context_line":"    if LOG.isEnabledFor(logging.DEBUG):"},{"line_number":811,"context_line":"        LOG.debug(\u0027The following nodes match received data, scoring: %s\u0027,"},{"line_number":812,"context_line":"                  \u0027, \u0027.join(\u0027%0s: %1d\u0027 % tpl for tpl in most_common),"},{"line_number":813,"context_line":"                  data\u003dattributes)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a430d35_74228ca4","line":810,"range":{"start_line":810,"start_character":7,"end_line":810,"end_character":39},"in_reply_to":"1a430d35_ae42e5ab","updated":"2017-02-09 07:17:44.000000000","message":"so we \"compute\" \n\n  \u0027, \u0027.join(\u0027%0s: %1d\u0027 % tpl for tpl in most_common)\n\nonly in case we\u0027ll LOG.debug\nBut the truth is most_common will be limited by the count of nodes currently on introspection, so maybe it\u0027s not needed.","commit_id":"9ad105485c0d7f87eeb010c608f9d24ecfeb7a93"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"e296ee101166ea0792715afd4ddbaa94276e460a","unresolved":false,"context_lines":[{"line_number":810,"context_line":"    if LOG.isEnabledFor(logging.DEBUG):"},{"line_number":811,"context_line":"        LOG.debug(\u0027The following nodes match received data, scoring: %s\u0027,"},{"line_number":812,"context_line":"                  \u0027, \u0027.join(\u0027%0s: %1d\u0027 % tpl for tpl in most_common),"},{"line_number":813,"context_line":"                  data\u003dattributes)"},{"line_number":814,"context_line":"    # NOTE(milan) most_common is sorted, higher scores first"},{"line_number":815,"context_line":"    highest_score \u003d most_common[0][1]"},{"line_number":816,"context_line":"    found \u003d [item[0] for item in most_common if highest_score \u003d\u003d item[1]]"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a430d35_4e318159","line":813,"range":{"start_line":813,"start_character":18,"end_line":813,"end_character":33},"updated":"2017-02-08 16:45:28.000000000","message":"I don\u0027t think that attributes as introspection data would work here, it gets mac and bmc_address for log prefix in introspection data form","commit_id":"9ad105485c0d7f87eeb010c608f9d24ecfeb7a93"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"047f9f7936c861e13557ace8e78c3317d9a74201","unresolved":false,"context_lines":[{"line_number":810,"context_line":"    if LOG.isEnabledFor(logging.DEBUG):"},{"line_number":811,"context_line":"        LOG.debug(\u0027The following nodes match received data, scoring: %s\u0027,"},{"line_number":812,"context_line":"                  \u0027, \u0027.join(\u0027%0s: %1d\u0027 % tpl for tpl in most_common),"},{"line_number":813,"context_line":"                  data\u003dattributes)"},{"line_number":814,"context_line":"    # NOTE(milan) most_common is sorted, higher scores first"},{"line_number":815,"context_line":"    highest_score \u003d most_common[0][1]"},{"line_number":816,"context_line":"    found \u003d [item[0] for item in most_common if highest_score \u003d\u003d item[1]]"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a430d35_14630843","line":813,"range":{"start_line":813,"start_character":18,"end_line":813,"end_character":33},"in_reply_to":"1a430d35_4e318159","updated":"2017-02-09 07:17:44.000000000","message":"True, has no effect on the prefix.","commit_id":"9ad105485c0d7f87eeb010c608f9d24ecfeb7a93"}],"ironic_inspector/test/unit/test_node_cache.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2493187afd9d0636cba63c14744fc6ba76cd731","unresolved":false,"context_lines":[{"line_number":156,"context_line":"                         [tuple(row) for row in res])"},{"line_number":157,"context_line":"        # check that .attributes got invalidated and reloaded"},{"line_number":158,"context_line":"        self.assertEqual({\u0027key\u0027: [\u0027value\u0027]}, node_info.attributes)"},{"line_number":159,"context_line":"        node_info.add_attribute(\u0027key\u0027, \u0027value\u0027)"},{"line_number":160,"context_line":"        res \u003d db.model_query(db.Attribute.name, db.Attribute.value,"},{"line_number":161,"context_line":"                             db.Attribute.node_uuid, session\u003dsession)"},{"line_number":162,"context_line":"        self.assertEqual([(\u0027key\u0027, \u0027value\u0027, self.uuid),"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_f250de0c","line":159,"updated":"2017-02-05 19:07:41.000000000","message":"let\u0027s no split this into its own unit test","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"aa44ad97a775cec4f44d86187cc2b91908b2519f","unresolved":false,"context_lines":[{"line_number":156,"context_line":"                         [tuple(row) for row in res])"},{"line_number":157,"context_line":"        # check that .attributes got invalidated and reloaded"},{"line_number":158,"context_line":"        self.assertEqual({\u0027key\u0027: [\u0027value\u0027]}, node_info.attributes)"},{"line_number":159,"context_line":"        node_info.add_attribute(\u0027key\u0027, \u0027value\u0027)"},{"line_number":160,"context_line":"        res \u003d db.model_query(db.Attribute.name, db.Attribute.value,"},{"line_number":161,"context_line":"                             db.Attribute.node_uuid, session\u003dsession)"},{"line_number":162,"context_line":"        self.assertEqual([(\u0027key\u0027, \u0027value\u0027, self.uuid),"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_87674224","line":159,"in_reply_to":"1a430d35_f250de0c","updated":"2017-02-06 14:56:09.000000000","message":"Done","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2493187afd9d0636cba63c14744fc6ba76cd731","unresolved":false,"context_lines":[{"line_number":207,"context_line":"            \u003c res.started_at \u003c"},{"line_number":208,"context_line":"            datetime.datetime.utcnow() + datetime.timedelta(seconds\u003d1))"},{"line_number":209,"context_line":"        self.assertTrue(res._locked)"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"    def test_macs(self):"},{"line_number":212,"context_line":"        res \u003d node_cache.find_node(mac\u003d[\u002711:22:33:33:33:33\u0027, self.macs[1]])"},{"line_number":213,"context_line":"        self.assertEqual(self.uuid, res.uuid)"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_12580a32","line":210,"updated":"2017-02-05 19:07:41.000000000","message":"please add a unit tests demonstrating your additions (i.e. that a node with the same BMC addresses but different MACs can still be found)","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"aa44ad97a775cec4f44d86187cc2b91908b2519f","unresolved":false,"context_lines":[{"line_number":207,"context_line":"            \u003c res.started_at \u003c"},{"line_number":208,"context_line":"            datetime.datetime.utcnow() + datetime.timedelta(seconds\u003d1))"},{"line_number":209,"context_line":"        self.assertTrue(res._locked)"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"    def test_macs(self):"},{"line_number":212,"context_line":"        res \u003d node_cache.find_node(mac\u003d[\u002711:22:33:33:33:33\u0027, self.macs[1]])"},{"line_number":213,"context_line":"        self.assertEqual(self.uuid, res.uuid)"}],"source_content_type":"text/x-python","patch_set":12,"id":"1a430d35_67641622","line":210,"in_reply_to":"1a430d35_12580a32","updated":"2017-02-06 14:56:09.000000000","message":"Done","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b5a7e32f1962d8880bd19f9c11d018499e0a0304","unresolved":false,"context_lines":[{"line_number":174,"context_line":"                          (\u0027key\u0027, \u0027foo\u0027, self.uuid)],"},{"line_number":175,"context_line":"                         [tuple(row) for row in res])"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def test_add_attribute_value_twice(self):"},{"line_number":178,"context_line":"        session \u003d db.get_session()"},{"line_number":179,"context_line":"        with session.begin():"},{"line_number":180,"context_line":"            db.Node(uuid\u003dself.node.uuid,"}],"source_content_type":"text/x-python","patch_set":13,"id":"1a430d35_ed28819c","line":177,"updated":"2017-02-08 13:02:30.000000000","message":"it took me time to figure out how this test name is different from the previous one :) I think the initial test was only adding one value, so maybe we need 1. test_add_attribute, 2. test_add_attribute_twice?","commit_id":"b3ed24bc6bc7aabab2dd5a6e73486c320cd4cf38"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"5ff552acbb88eca1b1c1ee6dc48f673e89ea5cb6","unresolved":false,"context_lines":[{"line_number":174,"context_line":"                          (\u0027key\u0027, \u0027foo\u0027, self.uuid)],"},{"line_number":175,"context_line":"                         [tuple(row) for row in res])"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def test_add_attribute_value_twice(self):"},{"line_number":178,"context_line":"        session \u003d db.get_session()"},{"line_number":179,"context_line":"        with session.begin():"},{"line_number":180,"context_line":"            db.Node(uuid\u003dself.node.uuid,"}],"source_content_type":"text/x-python","patch_set":13,"id":"1a430d35_cbaac884","line":177,"in_reply_to":"1a430d35_ed28819c","updated":"2017-02-08 15:00:38.000000000","message":"hmmmm, the name sucks, true, the different adding cases are:\n\n* \"unique\" name, value\n* same name, different values\n* same name, same values\n\nso maybe:\n\n* test_add_attribute\n* test_add_attribute_same_name\n* test_add_attribute_same_value","commit_id":"b3ed24bc6bc7aabab2dd5a6e73486c320cd4cf38"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b5a7e32f1962d8880bd19f9c11d018499e0a0304","unresolved":false,"context_lines":[{"line_number":243,"context_line":"        res \u003d node_cache.find_node(bmc_address\u003d\u00271.2.3.4\u0027, mac\u003dself.macs)"},{"line_number":244,"context_line":"        self.assertEqual(self.uuid, res.uuid)"},{"line_number":245,"context_line":"        res \u003d node_cache.find_node(bmc_address\u003d\u00271.2.3.4\u0027, mac\u003dself.macs2)"},{"line_number":246,"context_line":"        self.assertEqual(uuid2, res.uuid)"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"    def test_macs(self):"},{"line_number":249,"context_line":"        res \u003d node_cache.find_node(mac\u003d[\u002711:22:33:33:33:33\u0027, self.macs[1]])"}],"source_content_type":"text/x-python","patch_set":13,"id":"1a430d35_0d24edc2","line":246,"updated":"2017-02-08 13:02:30.000000000","message":"nice! now let\u0027s also add a check that the following raises:\n\n node_cache.find_node(bmc_address\u003d\u00271.2.3.4\u0027)\n\nnote that this is slightly different from test_macs_multiple_found below, as in that case the nodes are completely identical.","commit_id":"b3ed24bc6bc7aabab2dd5a6e73486c320cd4cf38"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"5ff552acbb88eca1b1c1ee6dc48f673e89ea5cb6","unresolved":false,"context_lines":[{"line_number":243,"context_line":"        res \u003d node_cache.find_node(bmc_address\u003d\u00271.2.3.4\u0027, mac\u003dself.macs)"},{"line_number":244,"context_line":"        self.assertEqual(self.uuid, res.uuid)"},{"line_number":245,"context_line":"        res \u003d node_cache.find_node(bmc_address\u003d\u00271.2.3.4\u0027, mac\u003dself.macs2)"},{"line_number":246,"context_line":"        self.assertEqual(uuid2, res.uuid)"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"    def test_macs(self):"},{"line_number":249,"context_line":"        res \u003d node_cache.find_node(mac\u003d[\u002711:22:33:33:33:33\u0027, self.macs[1]])"}],"source_content_type":"text/x-python","patch_set":13,"id":"1a430d35_6b9ab46f","line":246,"in_reply_to":"1a430d35_0d24edc2","updated":"2017-02-08 15:00:38.000000000","message":"Oh ya! missed that O:-) thx!","commit_id":"b3ed24bc6bc7aabab2dd5a6e73486c320cd4cf38"}],"releasenotes/notes/multiattribute_node_lookup-17e219ba8d3e5eb0.yaml":[{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"cb9049a890875f5972b217c52e24294e4eddd0a8","unresolved":false,"context_lines":[{"line_number":7,"context_line":"upgrade:"},{"line_number":8,"context_line":"  - |"},{"line_number":9,"context_line":"    The DB upgrade drops the Attribute table. This should be OK as Inspector"},{"line_number":10,"context_line":"    isn\u0027t HA yet. In case someone just stopped the inspector in the middle of"},{"line_number":11,"context_line":"    running Introspection to perform the update, the nodes concerned will fail"},{"line_number":12,"context_line":"    with a ``404`` response. Those nodes may be re-introspected or re-discovered"},{"line_number":13,"context_line":"    later."},{"line_number":14,"context_line":"critical:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"5a3905b3_c8124162","line":11,"range":{"start_line":10,"start_character":18,"end_line":11,"end_character":78},"updated":"2017-01-20 11:50:49.000000000","message":"lets add to `upgrade` doc section, note about upgrade during running introspection","commit_id":"b5c28d96c81da1a480c32bf44bf916d5fb007f6f"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"1301d950886ffe86a36783e683c9941cfc5f7589","unresolved":false,"context_lines":[{"line_number":7,"context_line":"upgrade:"},{"line_number":8,"context_line":"  - |"},{"line_number":9,"context_line":"    The DB upgrade drops the Attribute table. This should be OK as Inspector"},{"line_number":10,"context_line":"    isn\u0027t HA yet. In case someone just stopped the inspector in the middle of"},{"line_number":11,"context_line":"    running Introspection to perform the update, the nodes concerned will fail"},{"line_number":12,"context_line":"    with a ``404`` response. Those nodes may be re-introspected or re-discovered"},{"line_number":13,"context_line":"    later."},{"line_number":14,"context_line":"critical:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"5a3905b3_db3191a3","line":11,"range":{"start_line":10,"start_character":18,"end_line":11,"end_character":78},"in_reply_to":"5a3905b3_8d618fd5","updated":"2017-01-24 14:28:47.000000000","message":"maybe it\u0027s only me and it would be too much notes.\n\nI wouldn\u0027t do upgrade during introspection anyway.","commit_id":"b5c28d96c81da1a480c32bf44bf916d5fb007f6f"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ca117c343eeba5764409622e975955f33eaaac2","unresolved":false,"context_lines":[{"line_number":7,"context_line":"upgrade:"},{"line_number":8,"context_line":"  - |"},{"line_number":9,"context_line":"    The DB upgrade drops the Attribute table. This should be OK as Inspector"},{"line_number":10,"context_line":"    isn\u0027t HA yet. In case someone just stopped the inspector in the middle of"},{"line_number":11,"context_line":"    running Introspection to perform the update, the nodes concerned will fail"},{"line_number":12,"context_line":"    with a ``404`` response. Those nodes may be re-introspected or re-discovered"},{"line_number":13,"context_line":"    later."},{"line_number":14,"context_line":"critical:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"5a3905b3_8d618fd5","line":11,"range":{"start_line":10,"start_character":18,"end_line":11,"end_character":78},"in_reply_to":"5a3905b3_c8124162","updated":"2017-01-24 14:20:14.000000000","message":"I\u0027d like to oppose here because the upgrade limitation applies just to this particular revision. Also the first line in the Upgrade.rst directs the user to read the release notes first, so this information is already \"linked\".\n\nWDYT?","commit_id":"b5c28d96c81da1a480c32bf44bf916d5fb007f6f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2493187afd9d0636cba63c14744fc6ba76cd731","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    Looking up nodes during introspection or discovery now supports multiple"},{"line_number":5,"context_line":"    attributes matching. For example, two nodes can use the same ``bmc_address``"},{"line_number":6,"context_line":"    and still can be distinguished by MAC addresses."},{"line_number":7,"context_line":"critical:"},{"line_number":8,"context_line":"  - |"},{"line_number":9,"context_line":"    Uniqueness of a node ``bmc_address`` isn\u0027t enforced any more."},{"line_number":10,"context_line":"fixes:"}],"source_content_type":"text/x-yaml","patch_set":12,"id":"1a430d35_b247364a","line":7,"updated":"2017-02-05 19:07:41.000000000","message":"this is not a critical comment, rather an upgrade one. would be good to mention the migration we do","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"aa44ad97a775cec4f44d86187cc2b91908b2519f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    Looking up nodes during introspection or discovery now supports multiple"},{"line_number":5,"context_line":"    attributes matching. For example, two nodes can use the same ``bmc_address``"},{"line_number":6,"context_line":"    and still can be distinguished by MAC addresses."},{"line_number":7,"context_line":"critical:"},{"line_number":8,"context_line":"  - |"},{"line_number":9,"context_line":"    Uniqueness of a node ``bmc_address`` isn\u0027t enforced any more."},{"line_number":10,"context_line":"fixes:"}],"source_content_type":"text/x-yaml","patch_set":12,"id":"1a430d35_ca86af12","line":7,"in_reply_to":"1a430d35_b247364a","updated":"2017-02-06 14:56:09.000000000","message":"Done","commit_id":"b396aa38788e375706c1a0ec5ba570d1380f4f63"}]}
