)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"e0038ab0563f798ddbeef04eaa4b167adecfd2d2","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Check duplicate nodes enrollment"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec is intended to check duplicate during node verifying"},{"line_number":10,"context_line":"process"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I5377cb851a9071cfb97b4a8bfe0b65b00e79f574"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"da0c15f0_fcdebc6b","line":9,"updated":"2016-03-28 12:39:04.000000000","message":"s/duplicate/for duplicate nodes/","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"5870794e8bd67b735103b8c08596d84d0cf9ae2e","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Check duplicate nodes enrollment"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec is intended to check duplicate during node verifying"},{"line_number":10,"context_line":"process"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I5377cb851a9071cfb97b4a8bfe0b65b00e79f574"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"ba0121b8_bfada98a","line":9,"in_reply_to":"da0c15f0_fcdebc6b","updated":"2016-03-29 03:55:29.000000000","message":"Done","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"e0038ab0563f798ddbeef04eaa4b167adecfd2d2","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Check duplicate nodes enrollment"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec is intended to check duplicate during node verifying"},{"line_number":10,"context_line":"process"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I5377cb851a9071cfb97b4a8bfe0b65b00e79f574"},{"line_number":13,"context_line":"Closes-Bug: #1549664"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"da0c15f0_fcc51c8e","line":10,"updated":"2016-03-28 12:39:04.000000000","message":"s/verifing process/verification process./","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"5870794e8bd67b735103b8c08596d84d0cf9ae2e","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Check duplicate nodes enrollment"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec is intended to check duplicate during node verifying"},{"line_number":10,"context_line":"process"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I5377cb851a9071cfb97b4a8bfe0b65b00e79f574"},{"line_number":13,"context_line":"Closes-Bug: #1549664"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"ba0121b8_3ffeb96b","line":10,"in_reply_to":"da0c15f0_fcc51c8e","updated":"2016-03-29 03:55:29.000000000","message":"Done","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"b040af1c11db948b11fff5bc99b38051d7b57803","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Zhenguo Niu \u003cNiu.ZGlinux@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-04-23 11:38:56 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Check duplicate nodes enrollment/update"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec is intended to check for duplicate nodes by adding"},{"line_number":10,"context_line":"a new hardware_fingerprint field to Node object."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1a122d0e_9ade493c","line":7,"range":{"start_line":7,"start_character":22,"end_line":7,"end_character":32},"updated":"2016-04-28 09:17:16.000000000","message":"s/enrollment/enrolment","commit_id":"41ad063d5f215adf69cc77726e53b36647fdfa95"}],"specs/approved/check-duplicate-nodes.rst":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"e0038ab0563f798ddbeef04eaa4b167adecfd2d2","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"As I understand One BMC should only be associated to one Ironic node, but"},{"line_number":20,"context_line":"currently we can enroll any node with the BMC information which already"},{"line_number":21,"context_line":"used by another node, then assume node-A is deployed, and the new enrolled"},{"line_number":22,"context_line":"node-B bacomes \u0027available\u0027 after node verifying, that means node-A can be"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da0c15f0_dc3658e6","line":19,"range":{"start_line":19,"start_character":3,"end_line":19,"end_character":4},"updated":"2016-03-28 12:39:04.000000000","message":"Nitpick: I think you should remove the reference to yourself.  This, once approved, becomes published documentation.  As such, since any readers will be third parties, the problem description should ideally be written as such.","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"e0038ab0563f798ddbeef04eaa4b167adecfd2d2","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"As I understand One BMC should only be associated to one Ironic node, but"},{"line_number":20,"context_line":"currently we can enroll any node with the BMC information which already"},{"line_number":21,"context_line":"used by another node, then assume node-A is deployed, and the new enrolled"},{"line_number":22,"context_line":"node-B bacomes \u0027available\u0027 after node verifying, that means node-A can be"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da0c15f0_dc6498e6","line":19,"range":{"start_line":19,"start_character":57,"end_line":19,"end_character":58},"updated":"2016-03-28 12:39:04.000000000","message":"s/Ironic/ironic/ per the project style guide.  Project names are to be lower cased, service descriptive names, such as \"Bare Metal\" are to be upper cased.","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"5870794e8bd67b735103b8c08596d84d0cf9ae2e","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"As I understand One BMC should only be associated to one Ironic node, but"},{"line_number":20,"context_line":"currently we can enroll any node with the BMC information which already"},{"line_number":21,"context_line":"used by another node, then assume node-A is deployed, and the new enrolled"},{"line_number":22,"context_line":"node-B bacomes \u0027available\u0027 after node verifying, that means node-A can be"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba0121b8_bf2009f9","line":19,"range":{"start_line":19,"start_character":3,"end_line":19,"end_character":4},"in_reply_to":"da0c15f0_dc3658e6","updated":"2016-03-29 03:55:29.000000000","message":"Done","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"5870794e8bd67b735103b8c08596d84d0cf9ae2e","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"As I understand One BMC should only be associated to one Ironic node, but"},{"line_number":20,"context_line":"currently we can enroll any node with the BMC information which already"},{"line_number":21,"context_line":"used by another node, then assume node-A is deployed, and the new enrolled"},{"line_number":22,"context_line":"node-B bacomes \u0027available\u0027 after node verifying, that means node-A can be"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba0121b8_5f23ad05","line":19,"range":{"start_line":19,"start_character":57,"end_line":19,"end_character":58},"in_reply_to":"da0c15f0_dc6498e6","updated":"2016-03-29 03:55:29.000000000","message":"indeed, thanks Julia.","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"e0038ab0563f798ddbeef04eaa4b167adecfd2d2","unresolved":false,"context_lines":[{"line_number":21,"context_line":"used by another node, then assume node-A is deployed, and the new enrolled"},{"line_number":22,"context_line":"node-B bacomes \u0027available\u0027 after node verifying, that means node-A can be"},{"line_number":23,"context_line":"override if a new nova boot request schedules to node-B, it\u0027s unacceptable."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Proposed change"},{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"da0c15f0_a9488488","line":24,"updated":"2016-03-28 12:39:04.000000000","message":"This truly depends on the hardware.  A good example is the HP Moonshot chassis which truly has just a single BMC, however each node is managed by different bridge and target setting variables which allows for the delineation of each \"node\" in the chassis.","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"5870794e8bd67b735103b8c08596d84d0cf9ae2e","unresolved":false,"context_lines":[{"line_number":21,"context_line":"used by another node, then assume node-A is deployed, and the new enrolled"},{"line_number":22,"context_line":"node-B bacomes \u0027available\u0027 after node verifying, that means node-A can be"},{"line_number":23,"context_line":"override if a new nova boot request schedules to node-B, it\u0027s unacceptable."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Proposed change"},{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba0121b8_1fbbf573","line":24,"in_reply_to":"da0c15f0_a9488488","updated":"2016-03-29 03:55:29.000000000","message":"yes Julia, use BMC seems not proper here, will change the reference to BMC to \u0027bare metal node\u0027, like \u0027One baremetal node should only be associated to one ironic node\u0027.","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"7bae651ab3d8ac53fbc84574641cf661ff908ca2","unresolved":false,"context_lines":[{"line_number":41,"context_line":"  we select nodes with the driver which have the same ``ipmi_address``."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* If the node match with another one, move it to ``fail`` state, and set the"},{"line_number":44,"context_line":"  node\u0027s last_error to indicate it\u0027s duplicate."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Alternatives"},{"line_number":47,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da0c15f0_3c1f9460","line":44,"updated":"2016-03-28 12:37:02.000000000","message":"The proposed change will break case when IPMI network is behind NAT. and several server IPs translated to different ports on single NAT ip.","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"7bae651ab3d8ac53fbc84574641cf661ff908ca2","unresolved":false,"context_lines":[{"line_number":44,"context_line":"  node\u0027s last_error to indicate it\u0027s duplicate."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Alternatives"},{"line_number":47,"context_line":"------------"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"None"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"da0c15f0_7c5f4ce5","line":47,"updated":"2016-03-28 12:37:02.000000000","message":"Why not consider block adding of nodes with overlapping bmc parameters via API as an option?","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"5870794e8bd67b735103b8c08596d84d0cf9ae2e","unresolved":false,"context_lines":[{"line_number":44,"context_line":"  node\u0027s last_error to indicate it\u0027s duplicate."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Alternatives"},{"line_number":47,"context_line":"------------"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"None"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba0121b8_f11d9567","line":47,"in_reply_to":"da0c15f0_7c5f4ce5","updated":"2016-03-29 03:55:29.000000000","message":"As we need to compare the parameters to every node with the same driver, which will take long time if there\u0027s many nodes, it\u0027s not a good choice to block the api request, but yes it should be added here as a alternatives, thanks Vasyl.","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"e0038ab0563f798ddbeef04eaa4b167adecfd2d2","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Alternatives"},{"line_number":47,"context_line":"------------"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"None"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"Data model impact"},{"line_number":52,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da0c15f0_e9c6fc47","line":49,"range":{"start_line":48,"start_character":0,"end_line":49,"end_character":4},"updated":"2016-03-28 12:39:04.000000000","message":"Please propose an alternative method how the goal could ultimately be achieved.  It does not have to be more then a couple sentences.","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"e0038ab0563f798ddbeef04eaa4b167adecfd2d2","unresolved":false,"context_lines":[{"line_number":76,"context_line":"Driver API impact"},{"line_number":77,"context_line":"-----------------"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"None"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Nova driver impact"},{"line_number":82,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da0c15f0_49f44885","line":79,"range":{"start_line":79,"start_character":0,"end_line":79,"end_character":4},"updated":"2016-03-28 12:39:04.000000000","message":"This change appears to change the driver API as it calls for an additional expected method for all drivers.  I believe this would be a breaking change at present.","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"5870794e8bd67b735103b8c08596d84d0cf9ae2e","unresolved":false,"context_lines":[{"line_number":76,"context_line":"Driver API impact"},{"line_number":77,"context_line":"-----------------"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"None"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Nova driver impact"},{"line_number":82,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba0121b8_54b0aff4","line":79,"range":{"start_line":79,"start_character":0,"end_line":79,"end_character":4},"in_reply_to":"da0c15f0_49f44885","updated":"2016-03-29 03:55:29.000000000","message":"Done","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"e0038ab0563f798ddbeef04eaa4b167adecfd2d2","unresolved":false,"context_lines":[{"line_number":106,"context_line":"Other deployer impact"},{"line_number":107,"context_line":"---------------------"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"None"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"Developer impact"},{"line_number":112,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da0c15f0_c984d8d5","line":109,"range":{"start_line":109,"start_character":0,"end_line":109,"end_character":4},"updated":"2016-03-28 12:39:04.000000000","message":"Deployers will be impacted if they use 3rd party drivers.  While this would largely be informational, it is something deployers will need to be aware of since the third party drivers will need to be updated to support the functionality.","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"5870794e8bd67b735103b8c08596d84d0cf9ae2e","unresolved":false,"context_lines":[{"line_number":106,"context_line":"Other deployer impact"},{"line_number":107,"context_line":"---------------------"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"None"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"Developer impact"},{"line_number":112,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba0121b8_34dd3b15","line":109,"range":{"start_line":109,"start_character":0,"end_line":109,"end_character":4},"in_reply_to":"da0c15f0_c984d8d5","updated":"2016-03-29 03:55:29.000000000","message":"Done","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"e0038ab0563f798ddbeef04eaa4b167adecfd2d2","unresolved":false,"context_lines":[{"line_number":126,"context_line":"----------"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"* Add ``DISTINCT_PROPERTIES`` to every PowerInterface"},{"line_number":129,"context_line":"* Add logic to check duplicate in node veirying process"},{"line_number":130,"context_line":"* Documentation updates"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da0c15f0_3c6e7495","line":129,"range":{"start_line":129,"start_character":39,"end_line":129,"end_character":47},"updated":"2016-03-28 12:39:04.000000000","message":"s/veirying/verifying/ or verification","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"5870794e8bd67b735103b8c08596d84d0cf9ae2e","unresolved":false,"context_lines":[{"line_number":126,"context_line":"----------"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"* Add ``DISTINCT_PROPERTIES`` to every PowerInterface"},{"line_number":129,"context_line":"* Add logic to check duplicate in node veirying process"},{"line_number":130,"context_line":"* Documentation updates"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba0121b8_b4d14bfe","line":129,"range":{"start_line":129,"start_character":39,"end_line":129,"end_character":47},"in_reply_to":"da0c15f0_3c6e7495","updated":"2016-03-29 03:55:29.000000000","message":"Done","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"e0038ab0563f798ddbeef04eaa4b167adecfd2d2","unresolved":false,"context_lines":[{"line_number":148,"context_line":"Documentation Impact"},{"line_number":149,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"Documentation will need to be updated to represent this new feature."},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"References"},{"line_number":154,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da0c15f0_899660ee","line":151,"updated":"2016-03-28 12:39:04.000000000","message":"One thing I like to ask here is \"How documentation will need to be updated\" and \"What will the operator/deployer/developer need to be aware of?\"\n\nI wouldn\u0027t mind seeing a little more explanation of  this so we as a community know what to expect, but truthfully this is really a nitpick.","commit_id":"c0a040ac9a5f2a048bbef6bd022f8b5936ccf28e"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"5e20dc9b8f292ac0d86b14199269cbfc5473db40","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* After power validation of the node succeed in node verifying process, we"},{"line_number":39,"context_line":"  should get the distinct properties from it\u0027s driver_info, for example,"},{"line_number":40,"context_line":"  ipmitool should return ``ipmi_address`` and ``ipmi_port`` if IPMI briding"},{"line_number":41,"context_line":"  not used, then we select nodes with the driver which have the same"},{"line_number":42,"context_line":"  ``ipmi_address`` and ``ipmi_port``."},{"line_number":43,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_d792a89e","line":40,"updated":"2016-03-30 12:31:08.000000000","message":"\"ipmi_address\" is IP address or hostname of the node. Duplicated nodes can be registered one via IP and one via hostname. Please describe how to handle this case.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d314d90e0dd956d203a0200fa85845558b253c63","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* After power validation of the node succeed in node verifying process, we"},{"line_number":39,"context_line":"  should get the distinct properties from it\u0027s driver_info, for example,"},{"line_number":40,"context_line":"  ipmitool should return ``ipmi_address`` and ``ipmi_port`` if IPMI briding"},{"line_number":41,"context_line":"  not used, then we select nodes with the driver which have the same"},{"line_number":42,"context_line":"  ``ipmi_address`` and ``ipmi_port``."},{"line_number":43,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_7f8b631f","line":40,"in_reply_to":"ba0121b8_41718143","updated":"2016-03-31 17:46:23.000000000","message":"I was kind of thinking that we could have like an ordered list of things we look for and always focus on that one item.  As Yuriy points out, there are many possibilities.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"56680132247b49d786a765d81e5775c48c64921a","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* After power validation of the node succeed in node verifying process, we"},{"line_number":39,"context_line":"  should get the distinct properties from it\u0027s driver_info, for example,"},{"line_number":40,"context_line":"  ipmitool should return ``ipmi_address`` and ``ipmi_port`` if IPMI briding"},{"line_number":41,"context_line":"  not used, then we select nodes with the driver which have the same"},{"line_number":42,"context_line":"  ``ipmi_address`` and ``ipmi_port``."},{"line_number":43,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_f4c34d55","line":40,"in_reply_to":"ba0121b8_d792a89e","updated":"2016-03-30 20:04:31.000000000","message":"++\n\nI can\u0027t help but wonder if we implement such a  feature at driver level, and that driver attempts to identify and store a unique piece of information about the node.  For example, on one of my chassises, I can ask it for the management GUID, that seems fairly unique for these purposes.  That would also mean, what would potentially be a two column DB query or asking the DB if an exact match already exists in the DB, if we have a standard order of priority unique information.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"f8f8968af79ea8d0a500a232c114e12611137c19","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* After power validation of the node succeed in node verifying process, we"},{"line_number":39,"context_line":"  should get the distinct properties from it\u0027s driver_info, for example,"},{"line_number":40,"context_line":"  ipmitool should return ``ipmi_address`` and ``ipmi_port`` if IPMI briding"},{"line_number":41,"context_line":"  not used, then we select nodes with the driver which have the same"},{"line_number":42,"context_line":"  ``ipmi_address`` and ``ipmi_port``."},{"line_number":43,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_fa5dec47","line":40,"in_reply_to":"ba0121b8_f4c34d55","updated":"2016-03-31 03:06:20.000000000","message":"@Yuriy ++, maybe I can use socket.gethostbyaddr(\u0027ipmi_ip_address\u0027) to do reverse DNS lookups.\n\n\n@Julia That\u0027s a good idea if we can ask the chassises for a unique piece of information, but as you mentioned in the previous patchset, HP Moonshot chassis which truly has just a single BMC, however each node is managed by different bridge and target setting variables which allows for the delineation of each \"node\" in the chassis, so seems it depends on the hardware.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"43cc7a5de1084c70524a982200f09f2985f6c0df","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"* After power validation of the node succeed in node verifying process, we"},{"line_number":39,"context_line":"  should get the distinct properties from it\u0027s driver_info, for example,"},{"line_number":40,"context_line":"  ipmitool should return ``ipmi_address`` and ``ipmi_port`` if IPMI briding"},{"line_number":41,"context_line":"  not used, then we select nodes with the driver which have the same"},{"line_number":42,"context_line":"  ``ipmi_address`` and ``ipmi_port``."},{"line_number":43,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_41718143","line":40,"in_reply_to":"ba0121b8_fa5dec47","updated":"2016-03-31 10:42:05.000000000","message":"I like Julia idea about unique hardware-related nodes info. I think it\u0027s possible in most cases. We can add generic \"hardware_id\" field to nodes table. For nodes with OOB management support IDs can be: management controller uuid for nodes with own BMC, cartridge serial number for HP Moonshot iLO, AMT uuid for Intel AMT, etc. Even for nodes w/o OOB management we can use SMBIOS uuid (there will be a limitation, we can obtain it only after agent ramdisk loaded). For OOB this ID can be obtained via new get_hardware_id() (only for Ironic internal use) method in driver\u0027s management interface for example.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"5e20dc9b8f292ac0d86b14199269cbfc5473db40","unresolved":false,"context_lines":[{"line_number":41,"context_line":"  not used, then we select nodes with the driver which have the same"},{"line_number":42,"context_line":"  ``ipmi_address`` and ``ipmi_port``."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"* If the node match with another one, move it to ``fail`` state, and set the"},{"line_number":45,"context_line":"  node\u0027s last_error to indicate it\u0027s duplicate."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_548cd634","line":44,"updated":"2016-03-30 12:31:08.000000000","message":"There is performance issue in matching process, because we should select node\u0027s \"driver_info\" for all nodes with the same driver. Maybe add https://review.openstack.org/#/c/253605/ to dependencies.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"f8f8968af79ea8d0a500a232c114e12611137c19","unresolved":false,"context_lines":[{"line_number":41,"context_line":"  not used, then we select nodes with the driver which have the same"},{"line_number":42,"context_line":"  ``ipmi_address`` and ``ipmi_port``."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"* If the node match with another one, move it to ``fail`` state, and set the"},{"line_number":45,"context_line":"  node\u0027s last_error to indicate it\u0027s duplicate."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_75656db3","line":44,"in_reply_to":"ba0121b8_548cd634","updated":"2016-03-31 03:06:20.000000000","message":"Thanks Yuriy, that would be a great help for performance, will try to refactor the matching process after that implemented.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"59fc06d283c27772c664a0f00ecbbf101ecb1caf","unresolved":false,"context_lines":[{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"We can block adding of nodes with overlapping bmc parameters via API, but it"},{"line_number":51,"context_line":"will block the api request for a long time if there\u0027s a large number of nodes."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Data model impact"},{"line_number":54,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_81776e39","line":51,"range":{"start_line":50,"start_character":70,"end_line":51,"end_character":78},"updated":"2016-03-30 02:16:15.000000000","message":"really? DB query should fast enough, this is similar like if you create a duplicate name for node.\n\n\nWe should verify the BMC info when we create/enroll a node rather than in current place. For example, create a compact field maybe named node_authentication and verify if there is already a same one in DB. And if you don\u0027t input the BMC info when create a node, then this attribute can be None. Then each driver can have their own format or don\u0027t have it all and this won\u0027t break out-tree-driver as well.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"f8f8968af79ea8d0a500a232c114e12611137c19","unresolved":false,"context_lines":[{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"We can block adding of nodes with overlapping bmc parameters via API, but it"},{"line_number":51,"context_line":"will block the api request for a long time if there\u0027s a large number of nodes."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Data model impact"},{"line_number":54,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_f5885dc7","line":51,"range":{"start_line":50,"start_character":70,"end_line":51,"end_character":78},"in_reply_to":"ba0121b8_1476c105","updated":"2016-03-31 03:06:20.000000000","message":"Julia, agree that de-duplication operation seems not worth to returning all of nodes records, but the *duplication* here is not like a name duplication, which may override another node\u0027s deployment, then some serious issues may ensue, and I place the in-effective operation in node verification process which runs in a background thread.  For the chassis GUID, seems it depends on the hardware.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"83b7017b706e227d6ab56e2b2a1eda4c0840ad91","unresolved":false,"context_lines":[{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"We can block adding of nodes with overlapping bmc parameters via API, but it"},{"line_number":51,"context_line":"will block the api request for a long time if there\u0027s a large number of nodes."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Data model impact"},{"line_number":54,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_3572d549","line":51,"range":{"start_line":50,"start_character":70,"end_line":51,"end_character":78},"in_reply_to":"ba0121b8_1476c105","updated":"2016-03-31 03:02:35.000000000","message":"My initial idea is you should create a new field name like node_authentication for node object. The value is a hash value which consist of drivers\u0027 specific authentication and can be parse in parse_driver_info() too or at a better place. This field is similar like driver_internal_info and is untouchable for users.With that, you don\u0027t have to iterate nodes\u0027s driver_info and split them and compare in conductor, you just need to check if it is duplicate.\n\nA simple example:\nimport hashlib, json\namt_authentication\u003d {\u0027amt_address\u0027: \u002710.0.0.1\u0027}\nm \u003d hashlib.md5()\nm.update(json.dumps(amt_authentication))\nnode.node_authentication \u003d m.hexdigest()\nnode.save()","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"db156c6c7622c37cc82bfb833aa02fc21449096f","unresolved":false,"context_lines":[{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"We can block adding of nodes with overlapping bmc parameters via API, but it"},{"line_number":51,"context_line":"will block the api request for a long time if there\u0027s a large number of nodes."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Data model impact"},{"line_number":54,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_b029d339","line":51,"range":{"start_line":50,"start_character":70,"end_line":51,"end_character":78},"in_reply_to":"ba0121b8_3572d549","updated":"2016-03-31 03:28:30.000000000","message":"Thanks Tan, Seems this would also depend on users correctly input your desired authentication properties, but currently we can even enroll a node without any authentication information.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"56680132247b49d786a765d81e5775c48c64921a","unresolved":false,"context_lines":[{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"We can block adding of nodes with overlapping bmc parameters via API, but it"},{"line_number":51,"context_line":"will block the api request for a long time if there\u0027s a large number of nodes."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Data model impact"},{"line_number":54,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_1476c105","line":51,"range":{"start_line":50,"start_character":70,"end_line":51,"end_character":78},"in_reply_to":"ba0121b8_6c1cd1c1","updated":"2016-03-30 20:04:31.000000000","message":"I tend to think the minimum number of node entries that we need to frame discussions around as being around 10k nodes, and to be totally honest I\u0027m really not a fan of returning all of nodes records back to the conductor for a de-duplication operation.  Especially because a NAT gateway could render it in-effective.  I think we need to try and identify a GUID or serial number, or something unique about the chassis and store that in the DB so we can directly query the DB if a direct match exists, that way the DB does the work and not the conductor.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"dba21198c02a4b084d7f07752e8639d9b5decd64","unresolved":false,"context_lines":[{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"We can block adding of nodes with overlapping bmc parameters via API, but it"},{"line_number":51,"context_line":"will block the api request for a long time if there\u0027s a large number of nodes."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Data model impact"},{"line_number":54,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_6c1cd1c1","line":51,"range":{"start_line":50,"start_character":70,"end_line":51,"end_character":78},"in_reply_to":"ba0121b8_81776e39","updated":"2016-03-30 03:06:00.000000000","message":"hi Tan, thanks for the review!\n\nIt\u0027s different with name, for name, we just insert the entry to db and check duplicate exception, but here, the properties are part of the driver_info text, we need to iterate every node\u0027s driver_info, split them and compare with the specified-properties ourselves, which apparently takes time.\n\n\nI wonder how do you determine the properties in node_authentication, should be exposed by the specified driver? \nand this will be a required parameter when enrolling a node, which some overlaps with the driver_info field, and I think it\u0027s not easy to control the context of node_authentication just like we can input everything in driver_info now, but anyway it\u0027s an alternative method, thanks Tan for the suggestions.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d314d90e0dd956d203a0200fa85845558b253c63","unresolved":false,"context_lines":[{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"We can block adding of nodes with overlapping bmc parameters via API, but it"},{"line_number":51,"context_line":"will block the api request for a long time if there\u0027s a large number of nodes."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Data model impact"},{"line_number":54,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_e4708a74","line":51,"range":{"start_line":50,"start_character":70,"end_line":51,"end_character":78},"in_reply_to":"ba0121b8_b029d339","updated":"2016-03-31 17:46:23.000000000","message":"I get that this is not just for name deduplication.  The intent is to block a node from being to be used or acted upon if we have duplicate configuration pointing at a pre-defined node.\n\nAnother idea!\nWhat if we develop a fingerprint algorithm that takes information from the driver_info, and predictably generates a value that we can store in the db, that is indexed, that we can query upon when a new node is attempted to be taken to the manageable state?  This idea is kind of better idea to be in that we get the performance advantage of being able to ask the database if there is a single value match in the DB before proceeding with the node, and the method utilized could potentially take into account support for different drivers. \n\nRegarding verifying at enroll, perhaps the transition from ENROLL to MANAGEABLE since power verification, if memory serves, is required to reach manageable.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"b3ec9e9a64c2e77e9440af3eefe752958ad5f1b5","unresolved":false,"context_lines":[{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"We can block adding of nodes with overlapping bmc parameters via API, but it"},{"line_number":51,"context_line":"will block the api request for a long time if there\u0027s a large number of nodes."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Data model impact"},{"line_number":54,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba0121b8_4c6ce307","line":51,"range":{"start_line":50,"start_character":70,"end_line":51,"end_character":78},"in_reply_to":"ba0121b8_e4708a74","updated":"2016-04-01 08:02:35.000000000","message":"@Julia, I think we have the same or similar idea. You can see my comments above. +1 for this.\n\n@Zhengguo, the point is not have the same authentication information. That\u0027s fine if you enroll a node without any authentication information, it didn\u0027t hurt. But once you input any authentication info, then we can check if it is duplicate.","commit_id":"abfa680288af0714da829504c0957a1921c1a965"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"b040af1c11db948b11fff5bc99b38051d7b57803","unresolved":false,"context_lines":[{"line_number":34,"context_line":"* Every driver\u0027s power interface should provide a set of properties used to"},{"line_number":35,"context_line":"  distinguish nodes. Add a ``get_distinct_properties()`` method to"},{"line_number":36,"context_line":"  PowerInterface to fetch the distinct properties set, which distinguishes"},{"line_number":37,"context_line":"  from one node to another, for example, ipmitool\u0027s ``DISTINCT_PROPERTIES``"},{"line_number":38,"context_line":"  should contain ``ipmi_address``, ``ipmi_target_address``, and other bridge"},{"line_number":39,"context_line":"  needed properties in case of using IPMI bridging."},{"line_number":40,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_5a8dd12f","line":37,"range":{"start_line":37,"start_character":32,"end_line":37,"end_character":39},"updated":"2016-04-28 09:17:16.000000000","message":"The set of distinct_properties should be specified in this spec for each driver.","commit_id":"41ad063d5f215adf69cc77726e53b36647fdfa95"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f6a54bb9c8c2946ce499d1ec559cd2e55dbac4ea","unresolved":false,"context_lines":[{"line_number":35,"context_line":"  distinguish nodes. Add a ``get_distinct_properties()`` method to"},{"line_number":36,"context_line":"  PowerInterface to fetch the distinct properties set, which distinguishes"},{"line_number":37,"context_line":"  from one node to another, for example, ipmitool\u0027s ``DISTINCT_PROPERTIES``"},{"line_number":38,"context_line":"  should contain ``ipmi_address``, ``ipmi_target_address``, and other bridge"},{"line_number":39,"context_line":"  needed properties in case of using IPMI bridging."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_ffb2cf92","line":38,"updated":"2016-04-28 08:54:07.000000000","message":"There is same problem that mentioned in the past, the same node can be registered via IP address and name, please describe how to avoid duplicates.","commit_id":"41ad063d5f215adf69cc77726e53b36647fdfa95"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"b040af1c11db948b11fff5bc99b38051d7b57803","unresolved":false,"context_lines":[{"line_number":38,"context_line":"  should contain ``ipmi_address``, ``ipmi_target_address``, and other bridge"},{"line_number":39,"context_line":"  needed properties in case of using IPMI bridging."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"},{"line_number":42,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":43,"context_line":"  from node `driver_info`, then generating a value for `hardware_fingerprint`."},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_7a06cd86","line":41,"updated":"2016-04-28 09:17:16.000000000","message":"Might be think about storing fingerprint for each node in the DB and guarantee iniquity on DB level. The value should be recalculated each time we change distinct properties.","commit_id":"41ad063d5f215adf69cc77726e53b36647fdfa95"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9fabe3dfac7c780f661daa413f52b9f5b5030997","unresolved":false,"context_lines":[{"line_number":38,"context_line":"  should contain ``ipmi_address``, ``ipmi_target_address``, and other bridge"},{"line_number":39,"context_line":"  needed properties in case of using IPMI bridging."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"},{"line_number":42,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":43,"context_line":"  from node `driver_info`, then generating a value for `hardware_fingerprint`."},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_6a871a61","line":41,"in_reply_to":"1a122d0e_7a06cd86","updated":"2016-04-28 11:49:33.000000000","message":"please disregard this comment.","commit_id":"41ad063d5f215adf69cc77726e53b36647fdfa95"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f6a54bb9c8c2946ce499d1ec559cd2e55dbac4ea","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  needed properties in case of using IPMI bridging."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"},{"line_number":42,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":43,"context_line":"  from node `driver_info`, then generating a value for `hardware_fingerprint`."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Regarding the fingerprint algorithm, we can leverage the existing `hashlib`"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_7f651f1c","line":42,"updated":"2016-04-28 08:54:07.000000000","message":"These returned values are in the list? Please provide an example.","commit_id":"41ad063d5f215adf69cc77726e53b36647fdfa95"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f6a54bb9c8c2946ce499d1ec559cd2e55dbac4ea","unresolved":false,"context_lines":[{"line_number":55,"context_line":"Data model impact"},{"line_number":56,"context_line":"-----------------"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"A `hardware_fingerprint` field will be added to the Node object."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"State Machine Impact"},{"line_number":61,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_1f522b35","line":58,"updated":"2016-04-28 08:54:07.000000000","message":"I do not very like this new field name. This is not hardware fingerprint, I can setup IP of the BMC to one address, and then change it on the same hardware.","commit_id":"41ad063d5f215adf69cc77726e53b36647fdfa95"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"b040af1c11db948b11fff5bc99b38051d7b57803","unresolved":false,"context_lines":[{"line_number":55,"context_line":"Data model impact"},{"line_number":56,"context_line":"-----------------"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"A `hardware_fingerprint` field will be added to the Node object."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"State Machine Impact"},{"line_number":61,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_fa413daa","line":58,"in_reply_to":"1a122d0e_1f522b35","updated":"2016-04-28 09:17:16.000000000","message":"+1 to Yuri. It is not hardware fingerprint.","commit_id":"41ad063d5f215adf69cc77726e53b36647fdfa95"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f6a54bb9c8c2946ce499d1ec559cd2e55dbac4ea","unresolved":false,"context_lines":[{"line_number":80,"context_line":"Driver API impact"},{"line_number":81,"context_line":"-----------------"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"Add a new ``get_distinct_properties()`` api to PowerInterface to get the"},{"line_number":84,"context_line":"properties used to check for node duplicate."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Nova driver impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_9f5bdb85","line":83,"updated":"2016-04-28 08:54:07.000000000","message":"s/api/method","commit_id":"41ad063d5f215adf69cc77726e53b36647fdfa95"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"986a33db85a64f7a3a87ad5a429411af330f3328","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1549664"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This spec is intended to introduce some duplicate checks by adding a new"},{"line_number":14,"context_line":"field ``bmc_fingerprint`` in the node object to avoid different nodes"},{"line_number":15,"context_line":"associated with the same BMC."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_e0773906","line":14,"range":{"start_line":14,"start_character":8,"end_line":14,"end_character":23},"updated":"2016-05-04 09:08:22.000000000","message":"out_of_band_fingerprint or oob_fingerprint is better. not all servers are using bmc.","commit_id":"aa55b71f55e38f6b220f9b8f9a126be9d70388e3"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"795d27760adc27d344e9adfeef78b536fe02507e","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1549664"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This spec is intended to introduce some duplicate checks by adding a new"},{"line_number":14,"context_line":"field ``bmc_fingerprint`` in the node object to avoid different nodes"},{"line_number":15,"context_line":"associated with the same BMC."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_5b5d3c47","line":14,"range":{"start_line":14,"start_character":8,"end_line":14,"end_character":23},"in_reply_to":"1a122d0e_e0773906","updated":"2016-05-04 09:23:05.000000000","message":"oob_fingerprint seems better, will update in the coming patch set, thanks Tan!","commit_id":"aa55b71f55e38f6b220f9b8f9a126be9d70388e3"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"986a33db85a64f7a3a87ad5a429411af330f3328","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This spec is intended to introduce some duplicate checks by adding a new"},{"line_number":14,"context_line":"field ``bmc_fingerprint`` in the node object to avoid different nodes"},{"line_number":15,"context_line":"associated with the same BMC."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_2082d1c8","line":15,"range":{"start_line":15,"start_character":25,"end_line":15,"end_character":28},"updated":"2016-05-04 09:08:22.000000000","message":"ditto","commit_id":"aa55b71f55e38f6b220f9b8f9a126be9d70388e3"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"986a33db85a64f7a3a87ad5a429411af330f3328","unresolved":false,"context_lines":[{"line_number":26,"context_line":"Proposed change"},{"line_number":27,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Introduce a fingerprint algorithm that takes information from `driver_info`,"},{"line_number":30,"context_line":"and generate a value that we can store in the db, then when operators"},{"line_number":31,"context_line":"enroll/update a node with the same value already in the db, it will"},{"line_number":32,"context_line":"raise a duplicate exception."}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_60da09eb","line":29,"range":{"start_line":29,"start_character":45,"end_line":29,"end_character":56},"updated":"2016-05-04 09:08:22.000000000","message":"what information, authentication related information I would assume","commit_id":"aa55b71f55e38f6b220f9b8f9a126be9d70388e3"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"986a33db85a64f7a3a87ad5a429411af330f3328","unresolved":false,"context_lines":[{"line_number":27,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Introduce a fingerprint algorithm that takes information from `driver_info`,"},{"line_number":30,"context_line":"and generate a value that we can store in the db, then when operators"},{"line_number":31,"context_line":"enroll/update a node with the same value already in the db, it will"},{"line_number":32,"context_line":"raise a duplicate exception."},{"line_number":33,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_60016939","line":30,"range":{"start_line":30,"start_character":13,"end_line":30,"end_character":20},"updated":"2016-05-04 09:08:22.000000000","message":"a hash value is more clear.","commit_id":"aa55b71f55e38f6b220f9b8f9a126be9d70388e3"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"986a33db85a64f7a3a87ad5a429411af330f3328","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  needed properties in case of using IPMI bridging."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"},{"line_number":42,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":43,"context_line":"  from node `driver_info`, then generating a value for `bmc_fingerprint`,"},{"line_number":44,"context_line":"  And as bmc address is IP address or hostname of the node, we will convert"},{"line_number":45,"context_line":"  hostname to IP address first using ``socket.gethostbyname()``."}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_bb2730b4","line":42,"range":{"start_line":42,"start_character":4,"end_line":42,"end_character":27},"updated":"2016-05-04 09:08:22.000000000","message":"I didn\u0027t quite understand the name of method, what about get_authentication_properties()","commit_id":"aa55b71f55e38f6b220f9b8f9a126be9d70388e3"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"795d27760adc27d344e9adfeef78b536fe02507e","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  needed properties in case of using IPMI bridging."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"},{"line_number":42,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":43,"context_line":"  from node `driver_info`, then generating a value for `bmc_fingerprint`,"},{"line_number":44,"context_line":"  And as bmc address is IP address or hostname of the node, we will convert"},{"line_number":45,"context_line":"  hostname to IP address first using ``socket.gethostbyname()``."}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_fbb7e882","line":42,"range":{"start_line":42,"start_character":4,"end_line":42,"end_character":27},"in_reply_to":"1a122d0e_bb2730b4","updated":"2016-05-04 09:23:05.000000000","message":"Tan, it\u0027s a set of properties used to distinguish nodes, something like \u0027ipmitool_address\u0027. authentication_properties also contains credential information like \u0027username\u0027, \u0027password\u0027, it\u0027s not the same thing I think.","commit_id":"aa55b71f55e38f6b220f9b8f9a126be9d70388e3"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"528ccbf1ce63cc647debba2cbde968bb6564b693","unresolved":false,"context_lines":[{"line_number":22,"context_line":"which already used by another node, then assume node-A is deployed, and"},{"line_number":23,"context_line":"the new enrolled node-B bacomes \u0027available\u0027 after node verifying, that"},{"line_number":24,"context_line":"means node-A can be override if a new nova boot request schedules to node-B,"},{"line_number":25,"context_line":"it\u0027s unacceptable."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed change"},{"line_number":28,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_40810f4d","line":25,"updated":"2016-05-12 21:14:20.000000000","message":"Shouldn\u0027t the tuple of address, user, and password be enough to uniquely identify a node? I\u0027m not convinced we need this feature at all based on the problem description listed here.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"0c1d7034db9a38cd76e25104dada7d13d8dae5ad","unresolved":false,"context_lines":[{"line_number":22,"context_line":"which already used by another node, then assume node-A is deployed, and"},{"line_number":23,"context_line":"the new enrolled node-B bacomes \u0027available\u0027 after node verifying, that"},{"line_number":24,"context_line":"means node-A can be override if a new nova boot request schedules to node-B,"},{"line_number":25,"context_line":"it\u0027s unacceptable."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed change"},{"line_number":28,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_8a80dfc0","line":25,"in_reply_to":"dab17558_40810f4d","updated":"2016-05-16 01:45:09.000000000","message":"in fact, user and password is not needed, address is enough for most cases, but with IPMI bridging several nodes will have the same IPMI address. So we should leave this check up to driver","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"2f2039eb456a54beba9883e141cc6b021b937ff7","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  should contain ``ipmi_address``, ``ipmi_target_address``, and other bridge"},{"line_number":40,"context_line":"  needed properties in case of using IPMI bridging."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"},{"line_number":43,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":44,"context_line":"  from node `driver_info`, then generating a value for `oob_fingerprint`,"},{"line_number":45,"context_line":"  And as bmc address is IP address or hostname of the node, we will convert"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_0c24f4c2","line":42,"updated":"2016-05-16 13:01:36.000000000","message":"It will be happening in API right?","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"f0a32d843eda8b9ef67c01895fb55c4d95373b82","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  should contain ``ipmi_address``, ``ipmi_target_address``, and other bridge"},{"line_number":40,"context_line":"  needed properties in case of using IPMI bridging."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"},{"line_number":43,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":44,"context_line":"  from node `driver_info`, then generating a value for `oob_fingerprint`,"},{"line_number":45,"context_line":"  And as bmc address is IP address or hostname of the node, we will convert"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_26d90bf4","line":42,"in_reply_to":"dab17558_0c24f4c2","updated":"2016-05-16 16:13:03.000000000","message":"yes, the check will be in API.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"45b542ccabd8348c1d7d7db3471d89b3ba6a71c9","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"},{"line_number":43,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":44,"context_line":"  from node `driver_info`, then generating a value for `oob_fingerprint`,"},{"line_number":45,"context_line":"  And as bmc address is IP address or hostname of the node, we will convert"},{"line_number":46,"context_line":"  hostname to IP address first using ``socket.gethostbyname()``."},{"line_number":47,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_094946b7","line":44,"updated":"2016-05-11 14:20:17.000000000","message":"And we store value in DB at this step if it\u0027s not set?","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"0c1d7034db9a38cd76e25104dada7d13d8dae5ad","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"},{"line_number":43,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":44,"context_line":"  from node `driver_info`, then generating a value for `oob_fingerprint`,"},{"line_number":45,"context_line":"  And as bmc address is IP address or hostname of the node, we will convert"},{"line_number":46,"context_line":"  hostname to IP address first using ``socket.gethostbyname()``."},{"line_number":47,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_4a61d738","line":44,"in_reply_to":"dab17558_094946b7","updated":"2016-05-16 01:45:09.000000000","message":"if it\u0027s not set, I would like to leave it to None, as it not really connect to any real hardware in this case, and when it\u0027s None, we should skip the duplicate check until the key properties set.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"2f2039eb456a54beba9883e141cc6b021b937ff7","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"},{"line_number":43,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":44,"context_line":"  from node `driver_info`, then generating a value for `oob_fingerprint`,"},{"line_number":45,"context_line":"  And as bmc address is IP address or hostname of the node, we will convert"},{"line_number":46,"context_line":"  hostname to IP address first using ``socket.gethostbyname()``."},{"line_number":47,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_6cc2e035","line":44,"in_reply_to":"dab17558_0fb4f432","updated":"2016-05-16 13:01:36.000000000","message":"It should be, otherwise how do we know others nodes fingerprints? Calculating them all each time node is updated is expensive.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"23069381582f4140657440e5d72470ca33d0e529","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"},{"line_number":43,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":44,"context_line":"  from node `driver_info`, then generating a value for `oob_fingerprint`,"},{"line_number":45,"context_line":"  And as bmc address is IP address or hostname of the node, we will convert"},{"line_number":46,"context_line":"  hostname to IP address first using ``socket.gethostbyname()``."},{"line_number":47,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_0fb4f432","line":44,"in_reply_to":"dab17558_4a61d738","updated":"2016-05-16 09:03:21.000000000","message":"It is not clear here when would  `oob_fingerprint` be updated into Node object?","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"f0a32d843eda8b9ef67c01895fb55c4d95373b82","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"* During enrolling/updating nodes, it will call the specific driver\u0027s"},{"line_number":43,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":44,"context_line":"  from node `driver_info`, then generating a value for `oob_fingerprint`,"},{"line_number":45,"context_line":"  And as bmc address is IP address or hostname of the node, we will convert"},{"line_number":46,"context_line":"  hostname to IP address first using ``socket.gethostbyname()``."},{"line_number":47,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_dc13b063","line":44,"in_reply_to":"dab17558_6cc2e035","updated":"2016-05-16 16:13:03.000000000","message":"I plan to set oob_fingerprint field as a  primary key, and leave the duplicate check to DB, but don\u0027t find a good solution for None yet, or maybe we should don\u0027t allow create/update node with distinct properties not set, as it\u0027s the minimum hardware identification.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"45b542ccabd8348c1d7d7db3471d89b3ba6a71c9","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":44,"context_line":"  from node `driver_info`, then generating a value for `oob_fingerprint`,"},{"line_number":45,"context_line":"  And as bmc address is IP address or hostname of the node, we will convert"},{"line_number":46,"context_line":"  hostname to IP address first using ``socket.gethostbyname()``."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"* Regarding the fingerprint algorithm, we can leverage the existing `hashlib`"},{"line_number":49,"context_line":"  to generate a value from the specific properties in `driver_info`."}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_096786b7","line":46,"updated":"2016-05-11 14:20:17.000000000","message":"How we select parameter(s) for converting from list like l91?","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"0c1d7034db9a38cd76e25104dada7d13d8dae5ad","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":44,"context_line":"  from node `driver_info`, then generating a value for `oob_fingerprint`,"},{"line_number":45,"context_line":"  And as bmc address is IP address or hostname of the node, we will convert"},{"line_number":46,"context_line":"  hostname to IP address first using ``socket.gethostbyname()``."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"* Regarding the fingerprint algorithm, we can leverage the existing `hashlib`"},{"line_number":49,"context_line":"  to generate a value from the specific properties in `driver_info`."}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_ea488bb5","line":46,"in_reply_to":"dab17558_096786b7","updated":"2016-05-16 01:45:09.000000000","message":"will give an example soon, thanks Yuriy!","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"2f2039eb456a54beba9883e141cc6b021b937ff7","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  ``get_distinct_properties`` method and fetching the corresponding values"},{"line_number":44,"context_line":"  from node `driver_info`, then generating a value for `oob_fingerprint`,"},{"line_number":45,"context_line":"  And as bmc address is IP address or hostname of the node, we will convert"},{"line_number":46,"context_line":"  hostname to IP address first using ``socket.gethostbyname()``."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"* Regarding the fingerprint algorithm, we can leverage the existing `hashlib`"},{"line_number":49,"context_line":"  to generate a value from the specific properties in `driver_info`."}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_ecced02b","line":46,"in_reply_to":"dab17558_ea488bb5","updated":"2016-05-16 13:01:36.000000000","message":"Is there a need for such conversion? I think we can not cover all the possible cases anyway. E.g. there is a node that contains hostname in ipmi_address field, its ip address changes, you create a node with this new ip address (not hostname) and everything is fine, as ip is different now.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"2f2039eb456a54beba9883e141cc6b021b937ff7","unresolved":false,"context_lines":[{"line_number":58,"context_line":"Data model impact"},{"line_number":59,"context_line":"-----------------"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"A `oob_fingerprint` field will be added to the Node object."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"State Machine Impact"},{"line_number":64,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_cc6f8cfa","line":61,"updated":"2016-05-16 13:01:36.000000000","message":"Hm, should it be driver_internal_info? Not sure, as there was intention to move away from json blobs. But driver_internal_info makes sense too.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"2f2039eb456a54beba9883e141cc6b021b937ff7","unresolved":false,"context_lines":[{"line_number":78,"context_line":"RPC API impact"},{"line_number":79,"context_line":"--------------"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"None"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"Driver API impact"},{"line_number":84,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_6c7f80ab","line":81,"updated":"2016-05-16 13:01:36.000000000","message":"Additional RPC calls will be present AIUI to this newly introduced method?","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"23069381582f4140657440e5d72470ca33d0e529","unresolved":false,"context_lines":[{"line_number":83,"context_line":"Driver API impact"},{"line_number":84,"context_line":"-----------------"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Add a new ``get_distinct_properties()`` method to PowerInterface to get the"},{"line_number":87,"context_line":"properties used to check for node duplicate."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"The returned value will be a list like::"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_1401ad06","line":86,"updated":"2016-05-16 09:03:21.000000000","message":"Will this be a mandatory method to be re-defined by each driver?","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"2f2039eb456a54beba9883e141cc6b021b937ff7","unresolved":false,"context_lines":[{"line_number":83,"context_line":"Driver API impact"},{"line_number":84,"context_line":"-----------------"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Add a new ``get_distinct_properties()`` method to PowerInterface to get the"},{"line_number":87,"context_line":"properties used to check for node duplicate."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"The returned value will be a list like::"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_4c01dc05","line":86,"in_reply_to":"dab17558_1401ad06","updated":"2016-05-16 13:01:36.000000000","message":"I think it should be optional, default being [].","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"f0a32d843eda8b9ef67c01895fb55c4d95373b82","unresolved":false,"context_lines":[{"line_number":83,"context_line":"Driver API impact"},{"line_number":84,"context_line":"-----------------"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Add a new ``get_distinct_properties()`` method to PowerInterface to get the"},{"line_number":87,"context_line":"properties used to check for node duplicate."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"The returned value will be a list like::"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_495f0041","line":86,"in_reply_to":"dab17558_4c01dc05","updated":"2016-05-16 16:13:03.000000000","message":"yes, it\u0027s in the base power driver class, and default to [], so it\u0027s not a mandatory method.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"23069381582f4140657440e5d72470ca33d0e529","unresolved":false,"context_lines":[{"line_number":113,"context_line":"Performance Impact"},{"line_number":114,"context_line":"------------------"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"None"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"Other deployer impact"},{"line_number":119,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_cfc82c58","line":116,"range":{"start_line":116,"start_character":0,"end_line":116,"end_character":4},"updated":"2016-05-16 09:03:21.000000000","message":"This change would have a impact during node enroll/update based on number of nodes already enrolled. Better to mention it here.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"f0a32d843eda8b9ef67c01895fb55c4d95373b82","unresolved":false,"context_lines":[{"line_number":113,"context_line":"Performance Impact"},{"line_number":114,"context_line":"------------------"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"None"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"Other deployer impact"},{"line_number":119,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_9c63e8b0","line":116,"range":{"start_line":116,"start_character":0,"end_line":116,"end_character":4},"in_reply_to":"dab17558_cfc82c58","updated":"2016-05-16 16:13:03.000000000","message":"I would like to leave the duplicate check to db by setting \u0027oob_fingerprint\u0027 as a primary key, so seems the performance impact is not very much.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"45b542ccabd8348c1d7d7db3471d89b3ba6a71c9","unresolved":false,"context_lines":[{"line_number":137,"context_line":""},{"line_number":138,"context_line":"Work Items"},{"line_number":139,"context_line":"----------"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"* Add ``DISTINCT_PROPERTIES`` to every PowerInterface"},{"line_number":142,"context_line":"* Add fingerprint algorithm"},{"line_number":143,"context_line":"* Documentation updates"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_29f24a9a","line":140,"updated":"2016-05-11 14:20:17.000000000","message":"Add new field to db.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"2f2039eb456a54beba9883e141cc6b021b937ff7","unresolved":false,"context_lines":[{"line_number":138,"context_line":"Work Items"},{"line_number":139,"context_line":"----------"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"* Add ``DISTINCT_PROPERTIES`` to every PowerInterface"},{"line_number":142,"context_line":"* Add fingerprint algorithm"},{"line_number":143,"context_line":"* Documentation updates"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_2743d343","line":141,"updated":"2016-05-16 13:01:36.000000000","message":"And add the get_distinct_properties() method. Also, what is this DISTINCT_PROPERTIES about? Is get_distinct_properties() not enough? Or is it just for visibility?","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"f0a32d843eda8b9ef67c01895fb55c4d95373b82","unresolved":false,"context_lines":[{"line_number":138,"context_line":"Work Items"},{"line_number":139,"context_line":"----------"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"* Add ``DISTINCT_PROPERTIES`` to every PowerInterface"},{"line_number":142,"context_line":"* Add fingerprint algorithm"},{"line_number":143,"context_line":"* Documentation updates"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_1ccc1888","line":141,"in_reply_to":"dab17558_2743d343","updated":"2016-05-16 16:13:03.000000000","message":"just for visibility with some descriptions like other properties like REQUIRED_PROPERTIES.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"45b542ccabd8348c1d7d7db3471d89b3ba6a71c9","unresolved":false,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":157,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"None"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"Documentation Impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_042f6d88","line":158,"updated":"2016-05-11 14:20:17.000000000","message":"Looks like upgrade script will be needed. For example \"get_distinct_properties()\" method added to out of tree driver, and I want to use this feature with existing nodes.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"0c1d7034db9a38cd76e25104dada7d13d8dae5ad","unresolved":false,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":157,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"None"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"Documentation Impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_4ac8b722","line":158,"in_reply_to":"dab17558_042f6d88","updated":"2016-05-16 01:45:09.000000000","message":"yes Sir, will add that in the coming patch set.","commit_id":"26cea6f1b8a3295e3c544cc4cf0278a6d628602c"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"67266a92de9874e1e211504b5f2ecdc356dd2dcd","unresolved":false,"context_lines":[{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"One bare metal node should only be associated to one ironic node, but"},{"line_number":21,"context_line":"currently we can enroll any node with the power credentials information"},{"line_number":22,"context_line":"which already used by another node, then assume node-A is deployed, and"},{"line_number":23,"context_line":"the new enrolled node-B bacomes \u0027available\u0027 after node verifying, that"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1a95cdbc_b3015a07","line":20,"updated":"2016-10-10 18:02:19.000000000","message":"AIUI, each Node must have one or more Port resources associated with it, in order\nto be able to provision an instance on it.\n\nport.address has a UNIQUE index on it; it is not possible to have more than one\nPort with the same MAC address, and therefore it is not possible to have the same\nNode registered twice in Ironic.\n\nSo I understand the problem description here -- if you only input driver_info, and do not associate any Ports with the Node, it is possible to enroll duplicates -- but I don\u0027t think this actually causes problems for operators.","commit_id":"cc948dd883231038952f6cb846f51b268fe29b49"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"a2501158c8eb7eb77fb325494046a5a365cd2823","unresolved":false,"context_lines":[{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"One bare metal node should only be associated to one ironic node, but"},{"line_number":21,"context_line":"currently we can enroll any node with the power credentials information"},{"line_number":22,"context_line":"which already used by another node, then assume node-A is deployed, and"},{"line_number":23,"context_line":"the new enrolled node-B bacomes \u0027available\u0027 after node verifying, that"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_779b0315","line":20,"updated":"2018-10-16 10:12:22.000000000","message":"It does cause problems in our workflow, when the nodes are enrolled with IPMI addresses, and then introspection is used to detect the ports (and fails because of duplicate nodes).","commit_id":"cc948dd883231038952f6cb846f51b268fe29b49"}]}
