)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"77807c1d92c9f9c02c314fe564d10f0d2bd19083","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The spec describes implementation of Neutron port status change"},{"line_number":10,"context_line":"synchronization with Ironic."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Icfd2eed61ac80128fb374137c5cbb6b7fe04c982"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"da6895a0_d925135d","line":11,"updated":"2016-10-20 18:47:53.000000000","message":"Partial-Bug: #1304673","commit_id":"21b40402075086578f139333b061f31519310606"}],"specs/approved/synchronize-events-with-neutron.rst":[{"author":{"_account_id":22223,"name":"Akilan Pughazhendi","email":"akilan.pughazhendi@intel.com","username":"AkilP"},"change_message_id":"696201bf4463cbb4feae3639042e3285030dc951","unresolved":false,"context_lines":[{"line_number":16,"context_line":"before the associated dnsmasq config has been updated and the server"},{"line_number":17,"context_line":"restarted. There is a small potential for a race condition where Ironic"},{"line_number":18,"context_line":"will boot a machine before its DHCP has been properly configured,"},{"line_number":19,"context_line":"especially if the machine boots very quickly (ie a local VM). Another"},{"line_number":20,"context_line":"possible issue is if Neutron failed to setup port, user need to wait"},{"line_number":21,"context_line":"``deploy_callback_timeout``."},{"line_number":22,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"dada55a8_4e813e4a","line":19,"range":{"start_line":19,"start_character":46,"end_line":19,"end_character":48},"updated":"2016-07-18 15:50:58.000000000","message":"i.e.","commit_id":"4c9171afff4747eeb284bca8251eaa28866300cb"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"506a6956b02df6efb60518c3c7e6f9d9c431d240","unresolved":false,"context_lines":[{"line_number":16,"context_line":"before the associated dnsmasq config has been updated and the server"},{"line_number":17,"context_line":"restarted. There is a small potential for a race condition where Ironic"},{"line_number":18,"context_line":"will boot a machine before its DHCP has been properly configured,"},{"line_number":19,"context_line":"especially if the machine boots very quickly (ie a local VM). Another"},{"line_number":20,"context_line":"possible issue is if Neutron failed to setup port, user need to wait"},{"line_number":21,"context_line":"``deploy_callback_timeout``."},{"line_number":22,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bacf61ea_f53bd1e7","line":19,"range":{"start_line":19,"start_character":46,"end_line":19,"end_character":48},"in_reply_to":"dada55a8_4e813e4a","updated":"2017-10-27 15:32:28.000000000","message":"Done","commit_id":"4c9171afff4747eeb284bca8251eaa28866300cb"},{"author":{"_account_id":22223,"name":"Akilan Pughazhendi","email":"akilan.pughazhendi@intel.com","username":"AkilP"},"change_message_id":"696201bf4463cbb4feae3639042e3285030dc951","unresolved":false,"context_lines":[{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Neutron operations are completely asynchronous. There is no mechanism to track"},{"line_number":28,"context_line":"for Neutron operation status at the moment. Furthermore Neutron ports remain"},{"line_number":29,"context_line":"unbound and in DOWN state due to: https://bugs.launchpad.net/neutron/+bug/1599836."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Ironic should be able to receive an call-backs from Neutron when port state is"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dada55a8_0ed58642","line":28,"range":{"start_line":28,"start_character":44,"end_line":28,"end_character":63},"updated":"2016-07-18 15:50:58.000000000","message":"Furthermore, Neutron","commit_id":"4c9171afff4747eeb284bca8251eaa28866300cb"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"506a6956b02df6efb60518c3c7e6f9d9c431d240","unresolved":false,"context_lines":[{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Neutron operations are completely asynchronous. There is no mechanism to track"},{"line_number":28,"context_line":"for Neutron operation status at the moment. Furthermore Neutron ports remain"},{"line_number":29,"context_line":"unbound and in DOWN state due to: https://bugs.launchpad.net/neutron/+bug/1599836."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Ironic should be able to receive an call-backs from Neutron when port state is"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bacf61ea_55273dc9","line":28,"range":{"start_line":28,"start_character":44,"end_line":28,"end_character":63},"in_reply_to":"dada55a8_0ed58642","updated":"2017-10-27 15:32:28.000000000","message":"Done","commit_id":"4c9171afff4747eeb284bca8251eaa28866300cb"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"f40513623997998ca7f216aaa5e67345258e5a12","unresolved":false,"context_lines":[{"line_number":28,"context_line":"for Neutron operation status at the moment. Furthermore Neutron ports remain"},{"line_number":29,"context_line":"unbound and in DOWN state due to: https://bugs.launchpad.net/neutron/+bug/1599836."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Ironic should be able to receive an call-backs from Neutron when port state is"},{"line_number":32,"context_line":"changed. Only Ironic related ports should trigger notification event."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"dada55a8_74f85ae6","line":31,"range":{"start_line":31,"start_character":33,"end_line":31,"end_character":35},"updated":"2016-07-18 15:03:21.000000000","message":"a","commit_id":"4c9171afff4747eeb284bca8251eaa28866300cb"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"506a6956b02df6efb60518c3c7e6f9d9c431d240","unresolved":false,"context_lines":[{"line_number":28,"context_line":"for Neutron operation status at the moment. Furthermore Neutron ports remain"},{"line_number":29,"context_line":"unbound and in DOWN state due to: https://bugs.launchpad.net/neutron/+bug/1599836."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Ironic should be able to receive an call-backs from Neutron when port state is"},{"line_number":32,"context_line":"changed. Only Ironic related ports should trigger notification event."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bacf61ea_75288197","line":31,"range":{"start_line":31,"start_character":33,"end_line":31,"end_character":35},"in_reply_to":"dada55a8_74f85ae6","updated":"2017-10-27 15:32:28.000000000","message":"Done","commit_id":"4c9171afff4747eeb284bca8251eaa28866300cb"},{"author":{"_account_id":22223,"name":"Akilan Pughazhendi","email":"akilan.pughazhendi@intel.com","username":"AkilP"},"change_message_id":"696201bf4463cbb4feae3639042e3285030dc951","unresolved":false,"context_lines":[{"line_number":56,"context_line":"Alternatives"},{"line_number":57,"context_line":"------------"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* Use Nuetron port status polling."},{"line_number":60,"context_line":"* Do not synchronize events with Neutron."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"dada55a8_2e5e8ae9","line":59,"range":{"start_line":59,"start_character":6,"end_line":59,"end_character":13},"updated":"2016-07-18 15:50:58.000000000","message":"Neutron","commit_id":"4c9171afff4747eeb284bca8251eaa28866300cb"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"506a6956b02df6efb60518c3c7e6f9d9c431d240","unresolved":false,"context_lines":[{"line_number":56,"context_line":"Alternatives"},{"line_number":57,"context_line":"------------"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* Use Nuetron port status polling."},{"line_number":60,"context_line":"* Do not synchronize events with Neutron."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bacf61ea_1807bc18","line":59,"range":{"start_line":59,"start_character":6,"end_line":59,"end_character":13},"in_reply_to":"dada55a8_2e5e8ae9","updated":"2017-10-27 15:32:28.000000000","message":"Done","commit_id":"4c9171afff4747eeb284bca8251eaa28866300cb"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":17,"context_line":"restarted. There is a small potential for a race condition where Ironic"},{"line_number":18,"context_line":"will boot a machine before its DHCP has been properly configured,"},{"line_number":19,"context_line":"especially if the machine boots very quickly (i.e. a local VM). Another"},{"line_number":20,"context_line":"possible issue is if Neutron failed to setup port, user need to wait"},{"line_number":21,"context_line":"``deploy_callback_timeout``."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_02ee0d22","line":20,"range":{"start_line":20,"start_character":56,"end_line":20,"end_character":60},"updated":"2016-08-08 15:42:56.000000000","message":"needs","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":17,"context_line":"restarted. There is a small potential for a race condition where Ironic"},{"line_number":18,"context_line":"will boot a machine before its DHCP has been properly configured,"},{"line_number":19,"context_line":"especially if the machine boots very quickly (i.e. a local VM). Another"},{"line_number":20,"context_line":"possible issue is if Neutron failed to setup port, user need to wait"},{"line_number":21,"context_line":"``deploy_callback_timeout``."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_186e632f","line":20,"range":{"start_line":20,"start_character":56,"end_line":20,"end_character":60},"in_reply_to":"9ad45d7e_02ee0d22","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":18,"context_line":"will boot a machine before its DHCP has been properly configured,"},{"line_number":19,"context_line":"especially if the machine boots very quickly (i.e. a local VM). Another"},{"line_number":20,"context_line":"possible issue is if Neutron failed to setup port, user need to wait"},{"line_number":21,"context_line":"``deploy_callback_timeout``."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_734b5e2c","line":21,"updated":"2016-08-08 15:42:56.000000000","message":"... to see that the deployment failed, without a clear reason in the ironic logs.","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":18,"context_line":"will boot a machine before its DHCP has been properly configured,"},{"line_number":19,"context_line":"especially if the machine boots very quickly (i.e. a local VM). Another"},{"line_number":20,"context_line":"possible issue is if Neutron failed to setup port, user need to wait"},{"line_number":21,"context_line":"``deploy_callback_timeout``."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_584f3bbd","line":21,"in_reply_to":"9ad45d7e_734b5e2c","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":28,"context_line":"for Neutron operation status at the moment. Furthermore, Neutron ports remain"},{"line_number":29,"context_line":"unbound and in DOWN state due to: https://bugs.launchpad.net/neutron/+bug/1599836."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Ironic should be able to receive a call-backs from Neutron when port state is"},{"line_number":32,"context_line":"changed. Only Ironic related ports should trigger notification event."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_d3620aad","line":31,"range":{"start_line":31,"start_character":33,"end_line":31,"end_character":34},"updated":"2016-08-08 15:42:56.000000000","message":"s/a//","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":28,"context_line":"for Neutron operation status at the moment. Furthermore, Neutron ports remain"},{"line_number":29,"context_line":"unbound and in DOWN state due to: https://bugs.launchpad.net/neutron/+bug/1599836."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Ironic should be able to receive a call-backs from Neutron when port state is"},{"line_number":32,"context_line":"changed. Only Ironic related ports should trigger notification event."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_78ccbf35","line":31,"range":{"start_line":31,"start_character":33,"end_line":31,"end_character":34},"in_reply_to":"9ad45d7e_d3620aad","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":35,"context_line":"Proposed change"},{"line_number":36,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"When Ironic change Neutron port information (update dhcp options) or creates"},{"line_number":39,"context_line":"a port (multitenancy integration). We add a dictionary::"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    {"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_53cbba72","line":38,"range":{"start_line":38,"start_character":12,"end_line":38,"end_character":18},"updated":"2016-08-08 15:42:56.000000000","message":"changes","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":35,"context_line":"Proposed change"},{"line_number":36,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"When Ironic change Neutron port information (update dhcp options) or creates"},{"line_number":39,"context_line":"a port (multitenancy integration). We add a dictionary::"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    {"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_93c5325d","line":38,"range":{"start_line":38,"start_character":45,"end_line":38,"end_character":51},"updated":"2016-08-08 15:42:56.000000000","message":"updates","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":35,"context_line":"Proposed change"},{"line_number":36,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"When Ironic change Neutron port information (update dhcp options) or creates"},{"line_number":39,"context_line":"a port (multitenancy integration). We add a dictionary::"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    {"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_18dca3e3","line":38,"range":{"start_line":38,"start_character":12,"end_line":38,"end_character":18},"in_reply_to":"9ad45d7e_53cbba72","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":35,"context_line":"Proposed change"},{"line_number":36,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"When Ironic change Neutron port information (update dhcp options) or creates"},{"line_number":39,"context_line":"a port (multitenancy integration). We add a dictionary::"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    {"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_f8d8aff1","line":38,"range":{"start_line":38,"start_character":45,"end_line":38,"end_character":51},"in_reply_to":"9ad45d7e_93c5325d","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        \"count\": len(vif_list)"},{"line_number":44,"context_line":"    }"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"to ``neutron.common.NEUTRON_SEMAPHORES`` global variable. The \"semaphore\" key"},{"line_number":47,"context_line":"contain semaphore object that is created with resource count \u003d 0, meaning that"},{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_2e097d2d","line":46,"range":{"start_line":46,"start_character":5,"end_line":46,"end_character":19},"updated":"2016-08-08 15:42:56.000000000","message":"I guess it\u0027s common.neutron","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        \"count\": len(vif_list)"},{"line_number":44,"context_line":"    }"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"to ``neutron.common.NEUTRON_SEMAPHORES`` global variable. The \"semaphore\" key"},{"line_number":47,"context_line":"contain semaphore object that is created with resource count \u003d 0, meaning that"},{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_f8ff0f32","line":46,"range":{"start_line":46,"start_character":5,"end_line":46,"end_character":19},"in_reply_to":"9ad45d7e_2e097d2d","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"to ``neutron.common.NEUTRON_SEMAPHORES`` global variable. The \"semaphore\" key"},{"line_number":47,"context_line":"contain semaphore object that is created with resource count \u003d 0, meaning that"},{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_8e3189ef","line":48,"range":{"start_line":48,"start_character":46,"end_line":48,"end_character":78},"updated":"2016-08-08 15:42:56.000000000","message":"Do we actually care about the count here? You can just say that it will be blocked until we release()","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"to ``neutron.common.NEUTRON_SEMAPHORES`` global variable. The \"semaphore\" key"},{"line_number":47,"context_line":"contain semaphore object that is created with resource count \u003d 0, meaning that"},{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_d3a5eab5","line":48,"range":{"start_line":48,"start_character":25,"end_line":48,"end_character":32},"updated":"2016-08-08 15:42:56.000000000","message":"acquire","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"to ``neutron.common.NEUTRON_SEMAPHORES`` global variable. The \"semaphore\" key"},{"line_number":47,"context_line":"contain semaphore object that is created with resource count \u003d 0, meaning that"},{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_b8bbd771","line":48,"range":{"start_line":48,"start_character":46,"end_line":48,"end_character":78},"in_reply_to":"9ad45d7e_8e3189ef","updated":"2016-08-09 03:42:49.000000000","message":"I mean resource count. rephrase it.","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"to ``neutron.common.NEUTRON_SEMAPHORES`` global variable. The \"semaphore\" key"},{"line_number":47,"context_line":"contain semaphore object that is created with resource count \u003d 0, meaning that"},{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_b8a47757","line":48,"range":{"start_line":48,"start_character":25,"end_line":48,"end_character":32},"in_reply_to":"9ad45d7e_d3a5eab5","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":46,"context_line":"to ``neutron.common.NEUTRON_SEMAPHORES`` global variable. The \"semaphore\" key"},{"line_number":47,"context_line":"contain semaphore object that is created with resource count \u003d 0, meaning that"},{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."},{"line_number":52,"context_line":"Once we update all VIFs we calling ``acquire(timeout\u003devents_timeout)`` on"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_53929a58","line":49,"range":{"start_line":49,"start_character":62,"end_line":49,"end_character":65},"updated":"2016-08-08 15:42:56.000000000","message":"were","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":46,"context_line":"to ``neutron.common.NEUTRON_SEMAPHORES`` global variable. The \"semaphore\" key"},{"line_number":47,"context_line":"contain semaphore object that is created with resource count \u003d 0, meaning that"},{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."},{"line_number":52,"context_line":"Once we update all VIFs we calling ``acquire(timeout\u003devents_timeout)`` on"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_18b14390","line":49,"range":{"start_line":49,"start_character":62,"end_line":49,"end_character":65},"in_reply_to":"9ad45d7e_53929a58","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":47,"context_line":"contain semaphore object that is created with resource count \u003d 0, meaning that"},{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."},{"line_number":52,"context_line":"Once we update all VIFs we calling ``acquire(timeout\u003devents_timeout)`` on"},{"line_number":53,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid][\u0027semaphore\u0027]`` object, that suspends"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_939c126b","line":50,"range":{"start_line":50,"start_character":0,"end_line":50,"end_character":9},"updated":"2016-08-08 15:42:56.000000000","message":"expect","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":47,"context_line":"contain semaphore object that is created with resource count \u003d 0, meaning that"},{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."},{"line_number":52,"context_line":"Once we update all VIFs we calling ``acquire(timeout\u003devents_timeout)`` on"},{"line_number":53,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid][\u0027semaphore\u0027]`` object, that suspends"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_78683ff6","line":50,"range":{"start_line":50,"start_character":0,"end_line":50,"end_character":9},"in_reply_to":"9ad45d7e_939c126b","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."},{"line_number":52,"context_line":"Once we update all VIFs we calling ``acquire(timeout\u003devents_timeout)`` on"},{"line_number":53,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid][\u0027semaphore\u0027]`` object, that suspends"},{"line_number":54,"context_line":"current greenthread until semaphore resource count becomes non-zero or"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_d38cca37","line":51,"range":{"start_line":51,"start_character":34,"end_line":51,"end_character":44},"updated":"2016-08-08 15:42:56.000000000","message":"increase","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."},{"line_number":52,"context_line":"Once we update all VIFs we calling ``acquire(timeout\u003devents_timeout)`` on"},{"line_number":53,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid][\u0027semaphore\u0027]`` object, that suspends"},{"line_number":54,"context_line":"current greenthread until semaphore resource count becomes non-zero or"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_f3874e10","line":51,"range":{"start_line":51,"start_character":8,"end_line":51,"end_character":16},"updated":"2016-08-08 15:42:56.000000000","message":"update","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."},{"line_number":52,"context_line":"Once we update all VIFs we calling ``acquire(timeout\u003devents_timeout)`` on"},{"line_number":53,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid][\u0027semaphore\u0027]`` object, that suspends"},{"line_number":54,"context_line":"current greenthread until semaphore resource count becomes non-zero or"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_d86deb05","line":51,"range":{"start_line":51,"start_character":34,"end_line":51,"end_character":44},"in_reply_to":"9ad45d7e_d38cca37","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":48,"context_line":"thread is suspended when asquire() is called, until the count becomes non-zero."},{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."},{"line_number":52,"context_line":"Once we update all VIFs we calling ``acquire(timeout\u003devents_timeout)`` on"},{"line_number":53,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid][\u0027semaphore\u0027]`` object, that suspends"},{"line_number":54,"context_line":"current greenthread until semaphore resource count becomes non-zero or"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_b872b7e3","line":51,"range":{"start_line":51,"start_character":8,"end_line":51,"end_character":16},"in_reply_to":"9ad45d7e_f3874e10","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."},{"line_number":52,"context_line":"Once we update all VIFs we calling ``acquire(timeout\u003devents_timeout)`` on"},{"line_number":53,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid][\u0027semaphore\u0027]`` object, that suspends"},{"line_number":54,"context_line":"current greenthread until semaphore resource count becomes non-zero or"},{"line_number":55,"context_line":"``timeout`` is reached. An external events is received on dedicated API"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_53c73a45","line":52,"range":{"start_line":52,"start_character":27,"end_line":52,"end_character":34},"updated":"2016-08-08 15:42:56.000000000","message":"call","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."},{"line_number":52,"context_line":"Once we update all VIFs we calling ``acquire(timeout\u003devents_timeout)`` on"},{"line_number":53,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid][\u0027semaphore\u0027]`` object, that suspends"},{"line_number":54,"context_line":"current greenthread until semaphore resource count becomes non-zero or"},{"line_number":55,"context_line":"``timeout`` is reached. An external events is received on dedicated API"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_33e726e6","line":52,"range":{"start_line":52,"start_character":8,"end_line":52,"end_character":14},"updated":"2016-08-08 15:42:56.000000000","message":"have updated","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."},{"line_number":52,"context_line":"Once we update all VIFs we calling ``acquire(timeout\u003devents_timeout)`` on"},{"line_number":53,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid][\u0027semaphore\u0027]`` object, that suspends"},{"line_number":54,"context_line":"current greenthread until semaphore resource count becomes non-zero or"},{"line_number":55,"context_line":"``timeout`` is reached. An external events is received on dedicated API"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_58829b95","line":52,"range":{"start_line":52,"start_character":8,"end_line":52,"end_character":14},"in_reply_to":"9ad45d7e_33e726e6","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":49,"context_line":"And \"count\" key that contains the number of Neutron VIFs that was updated, we"},{"line_number":50,"context_line":"expecting the same number of external events to be received from Neutron. Each"},{"line_number":51,"context_line":"time we updating Neutron port, we increasing \"count\" value by 1."},{"line_number":52,"context_line":"Once we update all VIFs we calling ``acquire(timeout\u003devents_timeout)`` on"},{"line_number":53,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid][\u0027semaphore\u0027]`` object, that suspends"},{"line_number":54,"context_line":"current greenthread until semaphore resource count becomes non-zero or"},{"line_number":55,"context_line":"``timeout`` is reached. An external events is received on dedicated API"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_387fe7ab","line":52,"range":{"start_line":52,"start_character":27,"end_line":52,"end_character":34},"in_reply_to":"9ad45d7e_53c73a45","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        ]"},{"line_number":68,"context_line":"    }"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"When external event is received Ironic API perform node-by-mac lookup and call"},{"line_number":71,"context_line":"``process_network_event()`` RPC method on conductor that manage node."},{"line_number":72,"context_line":"In ``process_network_event()`` method port-by-mac address lookup is"},{"line_number":73,"context_line":"accomplished."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_d3084a94","line":70,"range":{"start_line":70,"start_character":74,"end_line":70,"end_character":78},"updated":"2016-08-08 15:42:56.000000000","message":"calls","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        ]"},{"line_number":68,"context_line":"    }"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"When external event is received Ironic API perform node-by-mac lookup and call"},{"line_number":71,"context_line":"``process_network_event()`` RPC method on conductor that manage node."},{"line_number":72,"context_line":"In ``process_network_event()`` method port-by-mac address lookup is"},{"line_number":73,"context_line":"accomplished."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_93d8921f","line":70,"range":{"start_line":70,"start_character":43,"end_line":70,"end_character":50},"updated":"2016-08-08 15:42:56.000000000","message":"performs","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        ]"},{"line_number":68,"context_line":"    }"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"When external event is received Ironic API perform node-by-mac lookup and call"},{"line_number":71,"context_line":"``process_network_event()`` RPC method on conductor that manage node."},{"line_number":72,"context_line":"In ``process_network_event()`` method port-by-mac address lookup is"},{"line_number":73,"context_line":"accomplished."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_185f8342","line":70,"range":{"start_line":70,"start_character":43,"end_line":70,"end_character":50},"in_reply_to":"9ad45d7e_93d8921f","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        ]"},{"line_number":68,"context_line":"    }"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"When external event is received Ironic API perform node-by-mac lookup and call"},{"line_number":71,"context_line":"``process_network_event()`` RPC method on conductor that manage node."},{"line_number":72,"context_line":"In ``process_network_event()`` method port-by-mac address lookup is"},{"line_number":73,"context_line":"accomplished."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_78367f04","line":70,"range":{"start_line":70,"start_character":74,"end_line":70,"end_character":78},"in_reply_to":"9ad45d7e_d3084a94","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    }"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"When external event is received Ironic API perform node-by-mac lookup and call"},{"line_number":71,"context_line":"``process_network_event()`` RPC method on conductor that manage node."},{"line_number":72,"context_line":"In ``process_network_event()`` method port-by-mac address lookup is"},{"line_number":73,"context_line":"accomplished."},{"line_number":74,"context_line":"Ironic compares current port network status stored in"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_33fe066c","line":71,"range":{"start_line":71,"start_character":57,"end_line":71,"end_character":63},"updated":"2016-08-08 15:42:56.000000000","message":"manages","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    }"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"When external event is received Ironic API perform node-by-mac lookup and call"},{"line_number":71,"context_line":"``process_network_event()`` RPC method on conductor that manage node."},{"line_number":72,"context_line":"In ``process_network_event()`` method port-by-mac address lookup is"},{"line_number":73,"context_line":"accomplished."},{"line_number":74,"context_line":"Ironic compares current port network status stored in"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_d83b2bea","line":71,"range":{"start_line":71,"start_character":57,"end_line":71,"end_character":63},"in_reply_to":"9ad45d7e_33fe066c","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":"When external event is received Ironic API perform node-by-mac lookup and call"},{"line_number":71,"context_line":"``process_network_event()`` RPC method on conductor that manage node."},{"line_number":72,"context_line":"In ``process_network_event()`` method port-by-mac address lookup is"},{"line_number":73,"context_line":"accomplished."},{"line_number":74,"context_line":"Ironic compares current port network status stored in"},{"line_number":75,"context_line":"port.internal_info[\u0027network_status\u0027] field with new network_status received"},{"line_number":76,"context_line":"with external event. If we received a new port status"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_133ae236","line":73,"range":{"start_line":72,"start_character":0,"end_line":73,"end_character":13},"updated":"2016-08-08 15:42:56.000000000","message":"This seems redundant to me","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":"When external event is received Ironic API perform node-by-mac lookup and call"},{"line_number":71,"context_line":"``process_network_event()`` RPC method on conductor that manage node."},{"line_number":72,"context_line":"In ``process_network_event()`` method port-by-mac address lookup is"},{"line_number":73,"context_line":"accomplished."},{"line_number":74,"context_line":"Ironic compares current port network status stored in"},{"line_number":75,"context_line":"port.internal_info[\u0027network_status\u0027] field with new network_status received"},{"line_number":76,"context_line":"with external event. If we received a new port status"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_d8120b62","line":73,"range":{"start_line":72,"start_character":0,"end_line":73,"end_character":13},"in_reply_to":"9ad45d7e_133ae236","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":74,"context_line":"Ironic compares current port network status stored in"},{"line_number":75,"context_line":"port.internal_info[\u0027network_status\u0027] field with new network_status received"},{"line_number":76,"context_line":"with external event. If we received a new port status"},{"line_number":77,"context_line":"we decreasing \"count\" value from ``neutron.NEUTRON_SEMAPHORES[node_uuid]``"},{"line_number":78,"context_line":"by 1. If \"count\" value becomes 0 it means that we received all expected events"},{"line_number":79,"context_line":"and we calling ``release()`` on \"semaphore\" to unsuspend the main greenthread."},{"line_number":80,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_6eaff5e3","line":77,"range":{"start_line":77,"start_character":3,"end_line":77,"end_character":13},"updated":"2016-08-08 15:42:56.000000000","message":"decrease","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":74,"context_line":"Ironic compares current port network status stored in"},{"line_number":75,"context_line":"port.internal_info[\u0027network_status\u0027] field with new network_status received"},{"line_number":76,"context_line":"with external event. If we received a new port status"},{"line_number":77,"context_line":"we decreasing \"count\" value from ``neutron.NEUTRON_SEMAPHORES[node_uuid]``"},{"line_number":78,"context_line":"by 1. If \"count\" value becomes 0 it means that we received all expected events"},{"line_number":79,"context_line":"and we calling ``release()`` on \"semaphore\" to unsuspend the main greenthread."},{"line_number":80,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_b8175750","line":77,"range":{"start_line":77,"start_character":3,"end_line":77,"end_character":13},"in_reply_to":"9ad45d7e_6eaff5e3","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":76,"context_line":"with external event. If we received a new port status"},{"line_number":77,"context_line":"we decreasing \"count\" value from ``neutron.NEUTRON_SEMAPHORES[node_uuid]``"},{"line_number":78,"context_line":"by 1. If \"count\" value becomes 0 it means that we received all expected events"},{"line_number":79,"context_line":"and we calling ``release()`` on \"semaphore\" to unsuspend the main greenthread."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Once green thread is unsuspended we checking all Ironic ports for"},{"line_number":82,"context_line":"network_status in port.internal_info[\u0027network_status\u0027] field. If we have at"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_131142ad","line":79,"range":{"start_line":79,"start_character":7,"end_line":79,"end_character":14},"updated":"2016-08-08 15:42:56.000000000","message":"call","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":76,"context_line":"with external event. If we received a new port status"},{"line_number":77,"context_line":"we decreasing \"count\" value from ``neutron.NEUTRON_SEMAPHORES[node_uuid]``"},{"line_number":78,"context_line":"by 1. If \"count\" value becomes 0 it means that we received all expected events"},{"line_number":79,"context_line":"and we calling ``release()`` on \"semaphore\" to unsuspend the main greenthread."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Once green thread is unsuspended we checking all Ironic ports for"},{"line_number":82,"context_line":"network_status in port.internal_info[\u0027network_status\u0027] field. If we have at"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_180dc33e","line":79,"range":{"start_line":79,"start_character":7,"end_line":79,"end_character":14},"in_reply_to":"9ad45d7e_131142ad","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":78,"context_line":"by 1. If \"count\" value becomes 0 it means that we received all expected events"},{"line_number":79,"context_line":"and we calling ``release()`` on \"semaphore\" to unsuspend the main greenthread."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Once green thread is unsuspended we checking all Ironic ports for"},{"line_number":82,"context_line":"network_status in port.internal_info[\u0027network_status\u0027] field. If we have at"},{"line_number":83,"context_line":"least one port with ``ACTIVE`` status we continue deploy and show warning"},{"line_number":84,"context_line":"with VIFs that were failed to update."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_4e3e71b9","line":81,"range":{"start_line":81,"start_character":36,"end_line":81,"end_character":44},"updated":"2016-08-08 15:42:56.000000000","message":"check","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":78,"context_line":"by 1. If \"count\" value becomes 0 it means that we received all expected events"},{"line_number":79,"context_line":"and we calling ``release()`` on \"semaphore\" to unsuspend the main greenthread."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Once green thread is unsuspended we checking all Ironic ports for"},{"line_number":82,"context_line":"network_status in port.internal_info[\u0027network_status\u0027] field. If we have at"},{"line_number":83,"context_line":"least one port with ``ACTIVE`` status we continue deploy and show warning"},{"line_number":84,"context_line":"with VIFs that were failed to update."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_58073b1c","line":81,"range":{"start_line":81,"start_character":36,"end_line":81,"end_character":44},"in_reply_to":"9ad45d7e_4e3e71b9","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Once green thread is unsuspended we checking all Ironic ports for"},{"line_number":82,"context_line":"network_status in port.internal_info[\u0027network_status\u0027] field. If we have at"},{"line_number":83,"context_line":"least one port with ``ACTIVE`` status we continue deploy and show warning"},{"line_number":84,"context_line":"with VIFs that were failed to update."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_2eb69d8a","line":83,"updated":"2016-08-08 15:42:56.000000000","message":"Do we want to set status to error after timeout on acquire is reached? Do we clean up this internal info status after the successful action? eg is it possible that the deployment fails as none of the ports were brought to active in time, then you do the tear down, which brings nodes to cleaning, and the notification back from deployment stage comes in, and you think it\u0027s a cleaning port notification.","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Once green thread is unsuspended we checking all Ironic ports for"},{"line_number":82,"context_line":"network_status in port.internal_info[\u0027network_status\u0027] field. If we have at"},{"line_number":83,"context_line":"least one port with ``ACTIVE`` status we continue deploy and show warning"},{"line_number":84,"context_line":"with VIFs that were failed to update."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_dbe8457f","line":83,"in_reply_to":"9ad45d7e_2eb69d8a","updated":"2016-08-09 03:42:49.000000000","message":"Forgot to mention about it in the spec. We should clean NEUTRON_SEMAPHORES and network status once thread is unsuspended.","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":87,"context_line":"------------"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"* Use Neutron port status polling."},{"line_number":90,"context_line":"* Do not synchronize events with Neutron."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_ce4ee195","line":90,"range":{"start_line":90,"start_character":0,"end_line":90,"end_character":41},"updated":"2016-08-08 15:42:56.000000000","message":"not an alternative imo","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":87,"context_line":"------------"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"* Use Neutron port status polling."},{"line_number":90,"context_line":"* Do not synchronize events with Neutron."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_db09652e","line":90,"range":{"start_line":90,"start_character":0,"end_line":90,"end_character":41},"in_reply_to":"9ad45d7e_ce4ee195","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":103,"context_line":"REST API impact"},{"line_number":104,"context_line":"---------------"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"The new endpoint ``/v1/externaevents`` needs to be created. Only"},{"line_number":107,"context_line":"authenticated POST requests are allowed to this endpoint with the"},{"line_number":108,"context_line":"following message format::"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_4e5b1155","line":106,"range":{"start_line":106,"start_character":23,"end_line":106,"end_character":36},"updated":"2016-08-08 15:42:56.000000000","message":"external, also I\u0027d prefer something simple, like /events","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":103,"context_line":"REST API impact"},{"line_number":104,"context_line":"---------------"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"The new endpoint ``/v1/externaevents`` needs to be created. Only"},{"line_number":107,"context_line":"authenticated POST requests are allowed to this endpoint with the"},{"line_number":108,"context_line":"following message format::"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_bb5c7126","line":106,"range":{"start_line":106,"start_character":23,"end_line":106,"end_character":36},"in_reply_to":"9ad45d7e_4e5b1155","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":104,"context_line":"---------------"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"The new endpoint ``/v1/externaevents`` needs to be created. Only"},{"line_number":107,"context_line":"authenticated POST requests are allowed to this endpoint with the"},{"line_number":108,"context_line":"following message format::"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    {\"events\":"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_ee176552","line":107,"range":{"start_line":107,"start_character":0,"end_line":107,"end_character":13},"updated":"2016-08-08 15:42:56.000000000","message":"So we\u0027ll have to include ironic credentials in neutron config","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":104,"context_line":"---------------"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"The new endpoint ``/v1/externaevents`` needs to be created. Only"},{"line_number":107,"context_line":"authenticated POST requests are allowed to this endpoint with the"},{"line_number":108,"context_line":"following message format::"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    {\"events\":"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_3be52137","line":107,"range":{"start_line":107,"start_character":0,"end_line":107,"end_character":13},"in_reply_to":"9ad45d7e_ee176552","updated":"2016-08-09 03:42:49.000000000","message":"The Neutron part is a separate story, I\u0027ve created RFE bug for this https://bugs.launchpad.net/neutron/+bug/1610898.","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":130,"context_line":"--------------"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"A new method ``process_network_event`` is going to be added. Received"},{"line_number":133,"context_line":"external event is processed here. We comparing current port network status"},{"line_number":134,"context_line":"stored in ``port.external_info[\u0027network_status\u0027]`` field with received port"},{"line_number":135,"context_line":"status in event. If we received new \"port_status\" we decreasing \"count\" from"},{"line_number":136,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid]`` by 1. If \"count\" value become a 0"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_ae060d1e","line":133,"range":{"start_line":133,"start_character":37,"end_line":133,"end_character":46},"updated":"2016-08-08 15:42:56.000000000","message":"compare","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":130,"context_line":"--------------"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"A new method ``process_network_event`` is going to be added. Received"},{"line_number":133,"context_line":"external event is processed here. We comparing current port network status"},{"line_number":134,"context_line":"stored in ``port.external_info[\u0027network_status\u0027]`` field with received port"},{"line_number":135,"context_line":"status in event. If we received new \"port_status\" we decreasing \"count\" from"},{"line_number":136,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid]`` by 1. If \"count\" value become a 0"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_bbcf51af","line":133,"range":{"start_line":133,"start_character":37,"end_line":133,"end_character":46},"in_reply_to":"9ad45d7e_ae060d1e","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":132,"context_line":"A new method ``process_network_event`` is going to be added. Received"},{"line_number":133,"context_line":"external event is processed here. We comparing current port network status"},{"line_number":134,"context_line":"stored in ``port.external_info[\u0027network_status\u0027]`` field with received port"},{"line_number":135,"context_line":"status in event. If we received new \"port_status\" we decreasing \"count\" from"},{"line_number":136,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid]`` by 1. If \"count\" value become a 0"},{"line_number":137,"context_line":"it means that we received all expected events, we calling ``release()`` on"},{"line_number":138,"context_line":"on \"semaphore\" object to unsuspend main greenthread."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_02044d13","line":135,"range":{"start_line":135,"start_character":53,"end_line":135,"end_character":63},"updated":"2016-08-08 15:42:56.000000000","message":"decrease","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":132,"context_line":"A new method ``process_network_event`` is going to be added. Received"},{"line_number":133,"context_line":"external event is processed here. We comparing current port network status"},{"line_number":134,"context_line":"stored in ``port.external_info[\u0027network_status\u0027]`` field with received port"},{"line_number":135,"context_line":"status in event. If we received new \"port_status\" we decreasing \"count\" from"},{"line_number":136,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid]`` by 1. If \"count\" value become a 0"},{"line_number":137,"context_line":"it means that we received all expected events, we calling ``release()`` on"},{"line_number":138,"context_line":"on \"semaphore\" object to unsuspend main greenthread."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_9b37edaf","line":135,"range":{"start_line":135,"start_character":53,"end_line":135,"end_character":63},"in_reply_to":"9ad45d7e_02044d13","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":133,"context_line":"external event is processed here. We comparing current port network status"},{"line_number":134,"context_line":"stored in ``port.external_info[\u0027network_status\u0027]`` field with received port"},{"line_number":135,"context_line":"status in event. If we received new \"port_status\" we decreasing \"count\" from"},{"line_number":136,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid]`` by 1. If \"count\" value become a 0"},{"line_number":137,"context_line":"it means that we received all expected events, we calling ``release()`` on"},{"line_number":138,"context_line":"on \"semaphore\" object to unsuspend main greenthread."},{"line_number":139,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_82103d50","line":136,"range":{"start_line":136,"start_character":65,"end_line":136,"end_character":73},"updated":"2016-08-08 15:42:56.000000000","message":"becomes","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":133,"context_line":"external event is processed here. We comparing current port network status"},{"line_number":134,"context_line":"stored in ``port.external_info[\u0027network_status\u0027]`` field with received port"},{"line_number":135,"context_line":"status in event. If we received new \"port_status\" we decreasing \"count\" from"},{"line_number":136,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid]`` by 1. If \"count\" value become a 0"},{"line_number":137,"context_line":"it means that we received all expected events, we calling ``release()`` on"},{"line_number":138,"context_line":"on \"semaphore\" object to unsuspend main greenthread."},{"line_number":139,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_bb463121","line":136,"range":{"start_line":136,"start_character":65,"end_line":136,"end_character":73},"in_reply_to":"9ad45d7e_82103d50","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":134,"context_line":"stored in ``port.external_info[\u0027network_status\u0027]`` field with received port"},{"line_number":135,"context_line":"status in event. If we received new \"port_status\" we decreasing \"count\" from"},{"line_number":136,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid]`` by 1. If \"count\" value become a 0"},{"line_number":137,"context_line":"it means that we received all expected events, we calling ``release()`` on"},{"line_number":138,"context_line":"on \"semaphore\" object to unsuspend main greenthread."},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_022bad83","line":137,"range":{"start_line":137,"start_character":50,"end_line":137,"end_character":57},"updated":"2016-08-08 15:42:56.000000000","message":"call","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":134,"context_line":"stored in ``port.external_info[\u0027network_status\u0027]`` field with received port"},{"line_number":135,"context_line":"status in event. If we received new \"port_status\" we decreasing \"count\" from"},{"line_number":136,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid]`` by 1. If \"count\" value become a 0"},{"line_number":137,"context_line":"it means that we received all expected events, we calling ``release()`` on"},{"line_number":138,"context_line":"on \"semaphore\" object to unsuspend main greenthread."},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_4225a5a9","line":137,"range":{"start_line":137,"start_character":72,"end_line":137,"end_character":74},"updated":"2016-08-08 15:42:56.000000000","message":"duplicated","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":134,"context_line":"stored in ``port.external_info[\u0027network_status\u0027]`` field with received port"},{"line_number":135,"context_line":"status in event. If we received new \"port_status\" we decreasing \"count\" from"},{"line_number":136,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid]`` by 1. If \"count\" value become a 0"},{"line_number":137,"context_line":"it means that we received all expected events, we calling ``release()`` on"},{"line_number":138,"context_line":"on \"semaphore\" object to unsuspend main greenthread."},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_3b5361e3","line":137,"range":{"start_line":137,"start_character":50,"end_line":137,"end_character":57},"in_reply_to":"9ad45d7e_022bad83","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":134,"context_line":"stored in ``port.external_info[\u0027network_status\u0027]`` field with received port"},{"line_number":135,"context_line":"status in event. If we received new \"port_status\" we decreasing \"count\" from"},{"line_number":136,"context_line":"``neutron.NEUTRON_SEMAPHORES[node_uuid]`` by 1. If \"count\" value become a 0"},{"line_number":137,"context_line":"it means that we received all expected events, we calling ``release()`` on"},{"line_number":138,"context_line":"on \"semaphore\" object to unsuspend main greenthread."},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_7b6319b2","line":137,"range":{"start_line":137,"start_character":72,"end_line":137,"end_character":74},"in_reply_to":"9ad45d7e_4225a5a9","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":202,"context_line":"Dependencies"},{"line_number":203,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"* Ironic should be switch to use FLAT Neutron network at the gates:"},{"line_number":206,"context_line":"  https://review.openstack.org/#/c/334382/"},{"line_number":207,"context_line":"  https://review.openstack.org/#/c/340695"},{"line_number":208,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_8265dde2","line":205,"range":{"start_line":205,"start_character":19,"end_line":205,"end_character":25},"updated":"2016-08-08 15:42:56.000000000","message":"switched to using","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":202,"context_line":"Dependencies"},{"line_number":203,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"* Ironic should be switch to use FLAT Neutron network at the gates:"},{"line_number":206,"context_line":"  https://review.openstack.org/#/c/334382/"},{"line_number":207,"context_line":"  https://review.openstack.org/#/c/340695"},{"line_number":208,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_bb5d91eb","line":205,"range":{"start_line":205,"start_character":19,"end_line":205,"end_character":25},"in_reply_to":"9ad45d7e_8265dde2","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":210,"context_line":"  ports remain in DOWN state."},{"line_number":211,"context_line":"  https://bugs.launchpad.net/neutron/+bug/1599836"},{"line_number":212,"context_line":"  The driver will perform \u0027fake\u0027 port binding for FLAT network. It is an"},{"line_number":213,"context_line":"  Ironic pre-requirement that hardware server is pre-plugged to network."},{"line_number":214,"context_line":"  For multitenancy case nothing to be done. Existed ML2 drivers should"},{"line_number":215,"context_line":"  already perform port binding."},{"line_number":216,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_02a0cdf3","line":213,"range":{"start_line":213,"start_character":49,"end_line":213,"end_character":59},"updated":"2016-08-08 15:42:56.000000000","message":"already plugged","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":210,"context_line":"  ports remain in DOWN state."},{"line_number":211,"context_line":"  https://bugs.launchpad.net/neutron/+bug/1599836"},{"line_number":212,"context_line":"  The driver will perform \u0027fake\u0027 port binding for FLAT network. It is an"},{"line_number":213,"context_line":"  Ironic pre-requirement that hardware server is pre-plugged to network."},{"line_number":214,"context_line":"  For multitenancy case nothing to be done. Existed ML2 drivers should"},{"line_number":215,"context_line":"  already perform port binding."},{"line_number":216,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_1b73fd81","line":213,"range":{"start_line":213,"start_character":49,"end_line":213,"end_character":59},"in_reply_to":"9ad45d7e_02a0cdf3","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"57120ce0a1181d3bae5a69db96424a2f7da15a7e","unresolved":false,"context_lines":[{"line_number":211,"context_line":"  https://bugs.launchpad.net/neutron/+bug/1599836"},{"line_number":212,"context_line":"  The driver will perform \u0027fake\u0027 port binding for FLAT network. It is an"},{"line_number":213,"context_line":"  Ironic pre-requirement that hardware server is pre-plugged to network."},{"line_number":214,"context_line":"  For multitenancy case nothing to be done. Existed ML2 drivers should"},{"line_number":215,"context_line":"  already perform port binding."},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"* Add new endpoint on Ironic side."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_626ee9ca","line":214,"range":{"start_line":214,"start_character":44,"end_line":214,"end_character":51},"updated":"2016-08-08 15:42:56.000000000","message":"existing","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"af62106dc95b007fb29ef6c84caaf58650a946d1","unresolved":false,"context_lines":[{"line_number":211,"context_line":"  https://bugs.launchpad.net/neutron/+bug/1599836"},{"line_number":212,"context_line":"  The driver will perform \u0027fake\u0027 port binding for FLAT network. It is an"},{"line_number":213,"context_line":"  Ironic pre-requirement that hardware server is pre-plugged to network."},{"line_number":214,"context_line":"  For multitenancy case nothing to be done. Existed ML2 drivers should"},{"line_number":215,"context_line":"  already perform port binding."},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"* Add new endpoint on Ironic side."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ad45d7e_5b6d7597","line":214,"range":{"start_line":214,"start_character":44,"end_line":214,"end_character":51},"in_reply_to":"9ad45d7e_626ee9ca","updated":"2016-08-09 03:42:49.000000000","message":"Done","commit_id":"c25349ae979e9bdcb598ed637193414f47ce46c0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"77807c1d92c9f9c02c314fe564d10f0d2bd19083","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        \"count\": len(vif_list)"},{"line_number":45,"context_line":"    }"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"to ``common.neutron.NEUTRON_SEMAPHORES`` global variable. The \"semaphore\" key"},{"line_number":48,"context_line":"contain semaphore object that is created with resource count \u003d 0, meaning that"},{"line_number":49,"context_line":"thread is suspended when ``acquire()`` is called, untill the resource count"},{"line_number":50,"context_line":"will become non-zero again. And \"count\" key that contains the number of Neutron"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_19b06b8b","line":47,"updated":"2016-10-20 18:47:53.000000000","message":"Do you need to ensure that only one set of neutron port updates is being done at any given time? Or is that what the semaphore is for? (I don\u0027t quite understand your description of the semaphore.)","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9adaa316b453f30b039638e083368a036f1b7c4b","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        \"count\": len(vif_list)"},{"line_number":45,"context_line":"    }"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"to ``common.neutron.NEUTRON_SEMAPHORES`` global variable. The \"semaphore\" key"},{"line_number":48,"context_line":"contain semaphore object that is created with resource count \u003d 0, meaning that"},{"line_number":49,"context_line":"thread is suspended when ``acquire()`` is called, untill the resource count"},{"line_number":50,"context_line":"will become non-zero again. And \"count\" key that contains the number of Neutron"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_53d1c9cc","line":47,"in_reply_to":"da6895a0_19b06b8b","updated":"2016-10-21 11:16:52.000000000","message":"The semaphore is used to suspend ironic thread until we receive the same number of notifications from Neutron as the number of Neutron ports we updated.\nThe thread will be automatically unsuspended when timeout (events_timeout) is reached.","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"77807c1d92c9f9c02c314fe564d10f0d2bd19083","unresolved":false,"context_lines":[{"line_number":55,"context_line":"``NEUTRON_SEMAPHORES[node_uuid][\u0027semaphore\u0027]`` object, that suspends"},{"line_number":56,"context_line":"current greenthread until semaphore resource count becomes non-zero or"},{"line_number":57,"context_line":"``timeout`` is reached. An external events is received on dedicated API"},{"line_number":58,"context_line":"endpoint ``v1/events``. An external event example is the following::"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    {\"events\":"},{"line_number":61,"context_line":"        ["}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_99ed5b91","line":58,"updated":"2016-10-20 18:47:53.000000000","message":"I\u0027m lost. Who/how do those external events get generated? Are they already being generated but ironic isn\u0027t listening to them? Maybe some background or a link to something that I should-know-but-don\u0027t ? I\u0027m guessing it has something to do with neutron :)","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9adaa316b453f30b039638e083368a036f1b7c4b","unresolved":false,"context_lines":[{"line_number":55,"context_line":"``NEUTRON_SEMAPHORES[node_uuid][\u0027semaphore\u0027]`` object, that suspends"},{"line_number":56,"context_line":"current greenthread until semaphore resource count becomes non-zero or"},{"line_number":57,"context_line":"``timeout`` is reached. An external events is received on dedicated API"},{"line_number":58,"context_line":"endpoint ``v1/events``. An external event example is the following::"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    {\"events\":"},{"line_number":61,"context_line":"        ["}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_f3749dfe","line":58,"in_reply_to":"da6895a0_99ed5b91","updated":"2016-10-21 11:16:52.000000000","message":"The events are generated from Neutron, they will be sent via API call to ironic /events endpoint.","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"77807c1d92c9f9c02c314fe564d10f0d2bd19083","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        ]"},{"line_number":70,"context_line":"    }"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"When external event is received Ironic API performs node-by-mac lookup and"},{"line_number":73,"context_line":"calls ``process_network_event()`` RPC method on conductor that manages node."},{"line_number":74,"context_line":"In ``process_network_event()`` Ironic compares current port network status"},{"line_number":75,"context_line":"stored in ``port.internal_info[\u0027network_status\u0027]`` field with new"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_9949db91","line":72,"updated":"2016-10-20 18:47:53.000000000","message":"how is this external event received? Do we have some sort of listener, listening to notifications on the message bus?","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9adaa316b453f30b039638e083368a036f1b7c4b","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        ]"},{"line_number":70,"context_line":"    }"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"When external event is received Ironic API performs node-by-mac lookup and"},{"line_number":73,"context_line":"calls ``process_network_event()`` RPC method on conductor that manages node."},{"line_number":74,"context_line":"In ``process_network_event()`` Ironic compares current port network status"},{"line_number":75,"context_line":"stored in ``port.internal_info[\u0027network_status\u0027]`` field with new"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_73a40d57","line":72,"in_reply_to":"da6895a0_9949db91","updated":"2016-10-21 11:16:52.000000000","message":"We have a separate API endpoint for this, Neutron+Nova uses the same mechanism at the moment.","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"77807c1d92c9f9c02c314fe564d10f0d2bd19083","unresolved":false,"context_lines":[{"line_number":70,"context_line":"    }"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"When external event is received Ironic API performs node-by-mac lookup and"},{"line_number":73,"context_line":"calls ``process_network_event()`` RPC method on conductor that manages node."},{"line_number":74,"context_line":"In ``process_network_event()`` Ironic compares current port network status"},{"line_number":75,"context_line":"stored in ``port.internal_info[\u0027network_status\u0027]`` field with new"},{"line_number":76,"context_line":"\u0027network_status\u0027 received with external event. If we received a new port status"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_195eab45","line":73,"updated":"2016-10-20 18:47:53.000000000","message":"is this a new method?","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9adaa316b453f30b039638e083368a036f1b7c4b","unresolved":false,"context_lines":[{"line_number":70,"context_line":"    }"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"When external event is received Ironic API performs node-by-mac lookup and"},{"line_number":73,"context_line":"calls ``process_network_event()`` RPC method on conductor that manages node."},{"line_number":74,"context_line":"In ``process_network_event()`` Ironic compares current port network status"},{"line_number":75,"context_line":"stored in ``port.internal_info[\u0027network_status\u0027]`` field with new"},{"line_number":76,"context_line":"\u0027network_status\u0027 received with external event. If we received a new port status"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_f3901def","line":73,"in_reply_to":"da6895a0_195eab45","updated":"2016-10-21 11:16:52.000000000","message":"yes","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"77807c1d92c9f9c02c314fe564d10f0d2bd19083","unresolved":false,"context_lines":[{"line_number":72,"context_line":"When external event is received Ironic API performs node-by-mac lookup and"},{"line_number":73,"context_line":"calls ``process_network_event()`` RPC method on conductor that manages node."},{"line_number":74,"context_line":"In ``process_network_event()`` Ironic compares current port network status"},{"line_number":75,"context_line":"stored in ``port.internal_info[\u0027network_status\u0027]`` field with new"},{"line_number":76,"context_line":"\u0027network_status\u0027 received with external event. If we received a new port status"},{"line_number":77,"context_line":"we decrease \"count\" value from ``NEUTRON_SEMAPHORES[node_uuid]``"},{"line_number":78,"context_line":"by 1. If \"count\" value becomes 0 it means that we received all expected events"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_d911935f","line":75,"updated":"2016-10-20 18:47:53.000000000","message":"is this a new key in port.internal_info?","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9adaa316b453f30b039638e083368a036f1b7c4b","unresolved":false,"context_lines":[{"line_number":72,"context_line":"When external event is received Ironic API performs node-by-mac lookup and"},{"line_number":73,"context_line":"calls ``process_network_event()`` RPC method on conductor that manages node."},{"line_number":74,"context_line":"In ``process_network_event()`` Ironic compares current port network status"},{"line_number":75,"context_line":"stored in ``port.internal_info[\u0027network_status\u0027]`` field with new"},{"line_number":76,"context_line":"\u0027network_status\u0027 received with external event. If we received a new port status"},{"line_number":77,"context_line":"we decrease \"count\" value from ``NEUTRON_SEMAPHORES[node_uuid]``"},{"line_number":78,"context_line":"by 1. If \"count\" value becomes 0 it means that we received all expected events"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_73bb2d73","line":75,"in_reply_to":"da6895a0_d911935f","updated":"2016-10-21 11:16:52.000000000","message":"yes","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"77807c1d92c9f9c02c314fe564d10f0d2bd19083","unresolved":false,"context_lines":[{"line_number":75,"context_line":"stored in ``port.internal_info[\u0027network_status\u0027]`` field with new"},{"line_number":76,"context_line":"\u0027network_status\u0027 received with external event. If we received a new port status"},{"line_number":77,"context_line":"we decrease \"count\" value from ``NEUTRON_SEMAPHORES[node_uuid]``"},{"line_number":78,"context_line":"by 1. If \"count\" value becomes 0 it means that we received all expected events"},{"line_number":79,"context_line":"and we call ``release()`` on \"semaphore\" to unsuspend the main greenthread."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Once green thread is unsuspended we check all Ironic ports for"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_5c1d7165","line":78,"updated":"2016-10-20 18:47:53.000000000","message":"is it possible to get more than one external event for the same port, before you get events for all the ports?","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9adaa316b453f30b039638e083368a036f1b7c4b","unresolved":false,"context_lines":[{"line_number":75,"context_line":"stored in ``port.internal_info[\u0027network_status\u0027]`` field with new"},{"line_number":76,"context_line":"\u0027network_status\u0027 received with external event. If we received a new port status"},{"line_number":77,"context_line":"we decrease \"count\" value from ``NEUTRON_SEMAPHORES[node_uuid]``"},{"line_number":78,"context_line":"by 1. If \"count\" value becomes 0 it means that we received all expected events"},{"line_number":79,"context_line":"and we call ``release()`` on \"semaphore\" to unsuspend the main greenthread."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Once green thread is unsuspended we check all Ironic ports for"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_26525114","line":78,"in_reply_to":"da6895a0_5c1d7165","updated":"2016-10-21 11:16:52.000000000","message":"Yes, we may get more that one event for specific port. We will decrease \u0027count\u0027 only once, when first event for port is received, all other events for this port will just change port status.","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"77807c1d92c9f9c02c314fe564d10f0d2bd19083","unresolved":false,"context_lines":[{"line_number":76,"context_line":"\u0027network_status\u0027 received with external event. If we received a new port status"},{"line_number":77,"context_line":"we decrease \"count\" value from ``NEUTRON_SEMAPHORES[node_uuid]``"},{"line_number":78,"context_line":"by 1. If \"count\" value becomes 0 it means that we received all expected events"},{"line_number":79,"context_line":"and we call ``release()`` on \"semaphore\" to unsuspend the main greenthread."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Once green thread is unsuspended we check all Ironic ports for"},{"line_number":82,"context_line":"network_status in ``port.internal_info[\u0027network_status\u0027]`` field. If we have at"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_9c7389b4","line":79,"updated":"2016-10-20 18:47:53.000000000","message":"Do we really want to suspend the thread? i\u0027m wondering what that will do wrt performance. i think we have it configured for CONF.conductor.workers_pool_size workers (these are the conductor worker threads right?); this may mean we\u0027d need to increase the number of threads by quite a bit?","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9adaa316b453f30b039638e083368a036f1b7c4b","unresolved":false,"context_lines":[{"line_number":76,"context_line":"\u0027network_status\u0027 received with external event. If we received a new port status"},{"line_number":77,"context_line":"we decrease \"count\" value from ``NEUTRON_SEMAPHORES[node_uuid]``"},{"line_number":78,"context_line":"by 1. If \"count\" value becomes 0 it means that we received all expected events"},{"line_number":79,"context_line":"and we call ``release()`` on \"semaphore\" to unsuspend the main greenthread."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Once green thread is unsuspended we check all Ironic ports for"},{"line_number":82,"context_line":"network_status in ``port.internal_info[\u0027network_status\u0027]`` field. If we have at"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_c949a6d2","line":79,"in_reply_to":"da6895a0_9c7389b4","updated":"2016-10-21 11:16:52.000000000","message":"When we start deployment new thread is created on conductor that do actual deployment we are going to suspend it for a while, while waiting for neutron information. Since this thread is responsible only for deployment of specific node there shouldn\u0027t be any performance degradation.","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"77807c1d92c9f9c02c314fe564d10f0d2bd19083","unresolved":false,"context_lines":[{"line_number":83,"context_line":"least one port with ``ACTIVE`` status we continue deploy and show warning"},{"line_number":84,"context_line":"with VIFs that were failed to update. We clean \u0027node_uuid\u0027 in"},{"line_number":85,"context_line":"\"NEUTRON_SEMAPHORES\u0027 and \u0027network_status\u0027 in ``port.internal_info``."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Alternatives"},{"line_number":88,"context_line":"------------"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_7ce4f53a","line":86,"updated":"2016-10-20 18:47:53.000000000","message":"Have you thought about how we have in our provisioning FSM, DEPLOYWAIT \u0026 CLEANWAIT? What about adding some dunno NETWORKWAIT and doing something similar to the agent \u0027heartbeat\u0027 (that\u0027s the external event you describe here) to trigger the conductor doing the rest of the stuff to the node.","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9adaa316b453f30b039638e083368a036f1b7c4b","unresolved":false,"context_lines":[{"line_number":83,"context_line":"least one port with ``ACTIVE`` status we continue deploy and show warning"},{"line_number":84,"context_line":"with VIFs that were failed to update. We clean \u0027node_uuid\u0027 in"},{"line_number":85,"context_line":"\"NEUTRON_SEMAPHORES\u0027 and \u0027network_status\u0027 in ``port.internal_info``."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Alternatives"},{"line_number":88,"context_line":"------------"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_a6c10183","line":86,"in_reply_to":"da6895a0_7ce4f53a","updated":"2016-10-21 11:16:52.000000000","message":"We may consider implementing this via adding new state as option. The first drawback that I see is that we need a separate periodic task that will check for NETWORKWAIT timeout and fail or continue deploy.","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"77807c1d92c9f9c02c314fe564d10f0d2bd19083","unresolved":false,"context_lines":[{"line_number":117,"context_line":"            },"},{"line_number":118,"context_line":"            ..."},{"line_number":119,"context_line":"        ]"},{"line_number":120,"context_line":"    }"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"Client (CLI) impact"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_fc5c85ef","line":120,"updated":"2016-10-20 18:47:53.000000000","message":"If we have a /v1/events, it is general enough that it should be able to accept *any* event. We may want it for neutron-related events, but what if some feature FOO comes along that wants this endpoint for events from FOOService?\n\nDo events have some sort of descriptor? Does OpenStack have some sort of convention for services communicating between each other?","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9adaa316b453f30b039638e083368a036f1b7c4b","unresolved":false,"context_lines":[{"line_number":117,"context_line":"            },"},{"line_number":118,"context_line":"            ..."},{"line_number":119,"context_line":"        ]"},{"line_number":120,"context_line":"    }"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"Client (CLI) impact"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_06054dc1","line":120,"in_reply_to":"da6895a0_fc5c85ef","updated":"2016-10-21 11:16:52.000000000","message":"This is one of item to discuss at the summit. \n\nOpenStack services uses API calls to communicate between each other.","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"77807c1d92c9f9c02c314fe564d10f0d2bd19083","unresolved":false,"context_lines":[{"line_number":123,"context_line":"Client (CLI) impact"},{"line_number":124,"context_line":"-------------------"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"Client will be updated to support sending an external notification."},{"line_number":127,"context_line":"TBD."},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"RPC API impact"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_9c2b8933","line":126,"updated":"2016-10-20 18:47:53.000000000","message":"We have \u0027notifications\u0027 in ironic [1] and I think w/i OpenStack, that\u0027s what we mean by notification. So we shouldn\u0027t use \u0027notification\u0027 to mean something else. Or do you really mean \u0027notifications\u0027 here?\n\n[1] http://docs.openstack.org/developer/ironic/dev/notifications.html","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9adaa316b453f30b039638e083368a036f1b7c4b","unresolved":false,"context_lines":[{"line_number":123,"context_line":"Client (CLI) impact"},{"line_number":124,"context_line":"-------------------"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"Client will be updated to support sending an external notification."},{"line_number":127,"context_line":"TBD."},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"RPC API impact"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da6895a0_e60059ad","line":126,"in_reply_to":"da6895a0_9c2b8933","updated":"2016-10-21 11:16:52.000000000","message":"Will replace by events.","commit_id":"21b40402075086578f139333b061f31519310606"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2571f2e92480a02d54ffc56aa0f25cd3b03c39df","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1304673"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Most of neutron operations is asynchronous. We need to keep track of their"},{"line_number":14,"context_line":"results by leveraging neutron notifications."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_ef92d5f5","line":13,"updated":"2017-02-16 22:47:06.000000000","message":"s/is/are/","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1304673"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Most of neutron operations is asynchronous. We need to keep track of their"},{"line_number":14,"context_line":"results by leveraging neutron notifications."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_286dc804","line":13,"in_reply_to":"fa31d9ce_ef92d5f5","updated":"2017-03-17 12:01:48.000000000","message":"Done","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1304673"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Most of neutron operations is asynchronous. We need to keep track of their"},{"line_number":14,"context_line":"results by leveraging neutron notifications."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_a7f63dd5","line":14,"range":{"start_line":14,"start_character":30,"end_line":14,"end_character":43},"updated":"2017-02-20 16:52:38.000000000","message":"Are these oslo.messaging notifications or API / RPC callbacks?\n\n\"Notifications\" is kind of a loaded term and, to me, indicates potentially unreliable notifications being sent over a message bus. I think it\u0027s important to be clear with these terms.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1304673"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Most of neutron operations is asynchronous. We need to keep track of their"},{"line_number":14,"context_line":"results by leveraging neutron notifications."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_084f2c93","line":14,"range":{"start_line":14,"start_character":30,"end_line":14,"end_character":43},"in_reply_to":"da36d5c6_a7f63dd5","updated":"2017-03-17 12:01:48.000000000","message":"In neutron, they are called notifications, and they are HTTP ones. Will clarify.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2571f2e92480a02d54ffc56aa0f25cd3b03c39df","unresolved":false,"context_lines":[{"line_number":36,"context_line":"Ironic should be able to receive notifications from neutron when port state is"},{"line_number":37,"context_line":"changed. Only Ironic related ports should trigger notification event. This spec"},{"line_number":38,"context_line":"concentrates on the binding operations, but the event handlers can be extended"},{"line_number":39,"context_line":"further, for example to be able to process DHCP options updates."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_4f1cc177","line":39,"updated":"2017-02-16 22:47:06.000000000","message":"maybe s/DHCP options updates/updates to DHCP options/","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":36,"context_line":"Ironic should be able to receive notifications from neutron when port state is"},{"line_number":37,"context_line":"changed. Only Ironic related ports should trigger notification event. This spec"},{"line_number":38,"context_line":"concentrates on the binding operations, but the event handlers can be extended"},{"line_number":39,"context_line":"further, for example to be able to process DHCP options updates."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_2844e872","line":39,"in_reply_to":"fa31d9ce_4f1cc177","updated":"2017-03-17 12:01:48.000000000","message":"Done","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"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":"bfc7ea2ebbd9014256ef9409649e5600c61bdfb5","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"When ironic changes neutron port information during provisioning or cleaning"},{"line_number":46,"context_line":"(e.g. updates port binding) or creates a port (multitenancy integration), we"},{"line_number":47,"context_line":"put the node in the new ``EVENTWAIT`` state, and pause the deployment/cleaning"},{"line_number":48,"context_line":"waiting for neutron notification. As several ports can be updated"},{"line_number":49,"context_line":"simultaneously, we need to put the node in the ``EVENTWAIT`` only after sending"},{"line_number":50,"context_line":"the requests for all of them."}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_ec9e6362","line":47,"updated":"2017-02-16 21:44:12.000000000","message":"With many different ironic actions now having an EVENTWAIT, isn\u0027t it going to be a lot more confusing for operators to not be able to easily differentiate what\u0027s going on?\n\nAt a minimum it\u0027s going to make our states SVG file unreadable :P","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"When ironic changes neutron port information during provisioning or cleaning"},{"line_number":46,"context_line":"(e.g. updates port binding) or creates a port (multitenancy integration), we"},{"line_number":47,"context_line":"put the node in the new ``EVENTWAIT`` state, and pause the deployment/cleaning"},{"line_number":48,"context_line":"waiting for neutron notification. As several ports can be updated"},{"line_number":49,"context_line":"simultaneously, we need to put the node in the ``EVENTWAIT`` only after sending"},{"line_number":50,"context_line":"the requests for all of them."}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_430e6735","line":47,"in_reply_to":"da36d5c6_47dd8141","updated":"2017-03-17 12:01:48.000000000","message":"Changed to using our existing states.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"When ironic changes neutron port information during provisioning or cleaning"},{"line_number":46,"context_line":"(e.g. updates port binding) or creates a port (multitenancy integration), we"},{"line_number":47,"context_line":"put the node in the new ``EVENTWAIT`` state, and pause the deployment/cleaning"},{"line_number":48,"context_line":"waiting for neutron notification. As several ports can be updated"},{"line_number":49,"context_line":"simultaneously, we need to put the node in the ``EVENTWAIT`` only after sending"},{"line_number":50,"context_line":"the requests for all of them."}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_47dd8141","line":47,"in_reply_to":"fa31d9ce_1ab6893d","updated":"2017-02-20 16:52:38.000000000","message":"Yes, I\u0027d like to hear a justification for why we don\u0027t just reuse the \"wait call-back\" state during a deploy.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2571f2e92480a02d54ffc56aa0f25cd3b03c39df","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"When ironic changes neutron port information during provisioning or cleaning"},{"line_number":46,"context_line":"(e.g. updates port binding) or creates a port (multitenancy integration), we"},{"line_number":47,"context_line":"put the node in the new ``EVENTWAIT`` state, and pause the deployment/cleaning"},{"line_number":48,"context_line":"waiting for neutron notification. As several ports can be updated"},{"line_number":49,"context_line":"simultaneously, we need to put the node in the ``EVENTWAIT`` only after sending"},{"line_number":50,"context_line":"the requests for all of them."}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_1ab6893d","line":47,"in_reply_to":"fa31d9ce_ec9e6362","updated":"2017-02-16 22:47:06.000000000","message":"I asked Jay what he meant, see below. I guess the question is can we use the existing *WAIT states? : \n\n17:14 JayF: I mean, lets say the network is getting setup for cleaning\n17:14 JayF: or the network is getting setup for deployment\n17:15 JayF: or for inspection\n17:15 rloo: JayF: ok, so you want a different state for each of those cases?\n17:15 JayF: all will traverse \"EVENTWAIT\" rather than following our existing pattern of having those transitory states being ACTIONBLAH\n17:15 JayF: well, I don\u0027t know if that\u0027s what I want. I\u0027m not sure why the existing *WAIT states don\u0027t work","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2571f2e92480a02d54ffc56aa0f25cd3b03c39df","unresolved":false,"context_lines":[{"line_number":52,"context_line":"Also the handler can save the status inside the ironic resources, for example,"},{"line_number":53,"context_line":"in case of port updates, we may want to save the event we\u0027re waiting for in"},{"line_number":54,"context_line":"each port or port group to ``internal_info[\u0027waiting_event\u0027]`` and continue"},{"line_number":55,"context_line":"provisioning actions only after all ports have either received the event or"},{"line_number":56,"context_line":"waiting for it timed out. The event handler method that needs to be called on"},{"line_number":57,"context_line":"the event retrieval should be present in the event body generated by neutron."},{"line_number":58,"context_line":"In case of desired event received, ``waiting_event`` key should be removed"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_fa6b7583","line":55,"updated":"2017-02-16 22:47:06.000000000","message":"Hmm. I think we need to be careful about mixing (or not mixing) states. I mean, we should NOT mix states.\n\nI need to think about it, but I think it would be fine to have this internal status thingy, but NOT have the node in this new WAIT state. The node *could* go into this new WAIT state if the node actually has to wait before it can do anything else. Would that make more sense?\n\nAnd/or as the first implementation, the node just waits until neutron gets back. We could parallelize things later?","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":52,"context_line":"Also the handler can save the status inside the ironic resources, for example,"},{"line_number":53,"context_line":"in case of port updates, we may want to save the event we\u0027re waiting for in"},{"line_number":54,"context_line":"each port or port group to ``internal_info[\u0027waiting_event\u0027]`` and continue"},{"line_number":55,"context_line":"provisioning actions only after all ports have either received the event or"},{"line_number":56,"context_line":"waiting for it timed out. The event handler method that needs to be called on"},{"line_number":57,"context_line":"the event retrieval should be present in the event body generated by neutron."},{"line_number":58,"context_line":"In case of desired event received, ``waiting_event`` key should be removed"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_a7cb9d71","line":55,"in_reply_to":"fa31d9ce_fa6b7583","updated":"2017-02-20 16:52:38.000000000","message":"I agree with the strategy you outlined. Have a waiting_event status and reuse the existing wait state. If that\u0027s the implementation, then we\u0027d also have to update the code to indicate when we\u0027re waiting for IPA to respond (e.g. for an image download)","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":58,"context_line":"In case of desired event received, ``waiting_event`` key should be removed"},{"line_number":59,"context_line":"from ``internal_info``."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"A new periodic task ``check_event_timeouts`` will be added, to track the tasks"},{"line_number":62,"context_line":"that take too long to complete. It will be putting the nodes that are in"},{"line_number":63,"context_line":"``EVENTWAIT`` for too long into ``*FAIL`` state and cleaning up all the"},{"line_number":64,"context_line":"``internal_info[\u0027waiting_event\u0027]`` items from ports and port groups."}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_6787e50f","line":61,"updated":"2017-02-20 16:52:38.000000000","message":"If we go with the strategy Ruby outlined on L55, it might be good to have config options to allow different timeouts for different deploy wait events. One for IPA, one for neutron, etc.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2571f2e92480a02d54ffc56aa0f25cd3b03c39df","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"A new periodic task ``check_event_timeouts`` will be added, to track the tasks"},{"line_number":62,"context_line":"that take too long to complete. It will be putting the nodes that are in"},{"line_number":63,"context_line":"``EVENTWAIT`` for too long into ``*FAIL`` state and cleaning up all the"},{"line_number":64,"context_line":"``internal_info[\u0027waiting_event\u0027]`` items from ports and port groups."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"This spec handles the neutron events case, but to make it more generic, it is"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_7a25c55a","line":63,"updated":"2017-02-16 22:47:06.000000000","message":"I\u0027m not going to suggest any new names for this or the new periodic task, until we are closer to agreement on this spec :)","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2571f2e92480a02d54ffc56aa0f25cd3b03c39df","unresolved":false,"context_lines":[{"line_number":74,"context_line":"The base ``BaseNetworkEventHandler`` class will need to contain the following"},{"line_number":75,"context_line":"methods::"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":" class BaseNetworkEventHandler(object):"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"     @abc.abstractmethod"},{"line_number":80,"context_line":"     def port_active(self, event):"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_3a87cd13","line":77,"updated":"2017-02-16 22:47:06.000000000","message":"Do you envision some sort of BaseEventHandler class?","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":74,"context_line":"The base ``BaseNetworkEventHandler`` class will need to contain the following"},{"line_number":75,"context_line":"methods::"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":" class BaseNetworkEventHandler(object):"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"     @abc.abstractmethod"},{"line_number":80,"context_line":"     def port_active(self, event):"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_47ccb235","line":77,"in_reply_to":"da36d5c6_07b629dc","updated":"2017-03-17 12:01:48.000000000","message":"I don\u0027t think there should be one, network events and eg cinder events may be completely different.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":74,"context_line":"The base ``BaseNetworkEventHandler`` class will need to contain the following"},{"line_number":75,"context_line":"methods::"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":" class BaseNetworkEventHandler(object):"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"     @abc.abstractmethod"},{"line_number":80,"context_line":"     def port_active(self, event):"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_07b629dc","line":77,"in_reply_to":"fa31d9ce_3a87cd13","updated":"2017-02-20 16:52:38.000000000","message":"Interesting idea. It might require a pretty big refactor if we used it for IPA deploy callbacks, though :(","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2571f2e92480a02d54ffc56aa0f25cd3b03c39df","unresolved":false,"context_lines":[{"line_number":77,"context_line":" class BaseNetworkEventHandler(object):"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"     @abc.abstractmethod"},{"line_number":80,"context_line":"     def port_active(self, event):"},{"line_number":81,"context_line":"         \"\"\"Ensures that the newly created port is ready to be used.\"\"\""},{"line_number":82,"context_line":"         pass"},{"line_number":83,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_baa2dd98","line":80,"updated":"2017-02-16 22:47:06.000000000","message":"what would these methods return/raise?\n\nWhat\u0027s an \u0027event\u0027?","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":77,"context_line":" class BaseNetworkEventHandler(object):"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"     @abc.abstractmethod"},{"line_number":80,"context_line":"     def port_active(self, event):"},{"line_number":81,"context_line":"         \"\"\"Ensures that the newly created port is ready to be used.\"\"\""},{"line_number":82,"context_line":"         pass"},{"line_number":83,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_47659243","line":80,"in_reply_to":"fa31d9ce_baa2dd98","updated":"2017-03-17 12:01:48.000000000","message":"Will rewrite this bit.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":97,"context_line":"neutron ports on the network we want are bound, if any of them failed to bind,"},{"line_number":98,"context_line":"we should send ``fail`` event instead."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"External events is received on dedicated API endpoint ``v1/events``. An"},{"line_number":101,"context_line":"external event example is the following::"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    {"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_07dd4914","line":100,"range":{"start_line":100,"start_character":55,"end_line":100,"end_character":66},"updated":"2017-02-20 16:52:38.000000000","message":"Aha, so this is an API call. In that case, I don\u0027t think we should use the term \"notifications\" to avoid confusion with the existing ironic feature.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":97,"context_line":"neutron ports on the network we want are bound, if any of them failed to bind,"},{"line_number":98,"context_line":"we should send ``fail`` event instead."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"External events is received on dedicated API endpoint ``v1/events``. An"},{"line_number":101,"context_line":"external event example is the following::"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    {"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_679fee03","line":100,"range":{"start_line":100,"start_character":55,"end_line":100,"end_character":66},"in_reply_to":"da36d5c6_07dd4914","updated":"2017-03-17 12:01:48.000000000","message":"In neutron, they are called notifications. I\u0027ll use notifications when talking about the neutron side. Will clarify it in the beginning of the spec and try to make sure it\u0027s clear :)","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":101,"context_line":"external event example is the following::"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    {"},{"line_number":104,"context_line":"        \"events\": ["},{"line_number":105,"context_line":"            {"},{"line_number":106,"context_line":"                \"event_handler\": \"network.port_bound\""},{"line_number":107,"context_line":"                \"port_id\": \"VIF UUID\","}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_072b89ec","line":104,"updated":"2017-02-20 16:52:38.000000000","message":"Is it necessary to have this as a list? (Or phrased differently, will multiple event callbacks happen at once?)\n\nAlso, does neutron already know how to post back in this format?","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":101,"context_line":"external event example is the following::"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    {"},{"line_number":104,"context_line":"        \"events\": ["},{"line_number":105,"context_line":"            {"},{"line_number":106,"context_line":"                \"event_handler\": \"network.port_bound\""},{"line_number":107,"context_line":"                \"port_id\": \"VIF UUID\","}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_e7811e91","line":104,"in_reply_to":"da36d5c6_072b89ec","updated":"2017-03-17 12:01:48.000000000","message":"1. yes, neutron can batch events if it thinks it\u0027s necessary, to avoid too many requests.\n\n2. it will know as soon as we\u0027ll write the notifier. it will happen in the networking-baremetal repo, so we\u0027ll be able to send whatever info neutron has, which we think is relevant to us.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2571f2e92480a02d54ffc56aa0f25cd3b03c39df","unresolved":false,"context_lines":[{"line_number":116,"context_line":""},{"line_number":117,"context_line":"When an external network event is received, ironic API performs node-by-mac"},{"line_number":118,"context_line":"lookup and calls ``process_network_event`` RPC method on conductor that"},{"line_number":119,"context_line":"manages this node. In ``process_network_event`` ironic compares current"},{"line_number":120,"context_line":"``internal_info[\u0027waiting_event\u0027]`` field of a port or port group with new"},{"line_number":121,"context_line":"``\"event_handler\"`` received with external event. If we received what we\u0027re"},{"line_number":122,"context_line":"waiting for, we also check other fields present in the payload, to ensure that"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_ba53bd6b","line":119,"updated":"2017-02-16 22:47:06.000000000","message":"is there any way for the request that is made to v1/events, to include the node info?\n\nI think I\u0027m missing how the event handler works wrt the original neutron request.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":116,"context_line":""},{"line_number":117,"context_line":"When an external network event is received, ironic API performs node-by-mac"},{"line_number":118,"context_line":"lookup and calls ``process_network_event`` RPC method on conductor that"},{"line_number":119,"context_line":"manages this node. In ``process_network_event`` ironic compares current"},{"line_number":120,"context_line":"``internal_info[\u0027waiting_event\u0027]`` field of a port or port group with new"},{"line_number":121,"context_line":"``\"event_handler\"`` received with external event. If we received what we\u0027re"},{"line_number":122,"context_line":"waiting for, we also check other fields present in the payload, to ensure that"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_e7583e59","line":119,"in_reply_to":"da36d5c6_0760e934","updated":"2017-03-17 12:01:48.000000000","message":"We can send only the things that are in neutron DB.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":116,"context_line":""},{"line_number":117,"context_line":"When an external network event is received, ironic API performs node-by-mac"},{"line_number":118,"context_line":"lookup and calls ``process_network_event`` RPC method on conductor that"},{"line_number":119,"context_line":"manages this node. In ``process_network_event`` ironic compares current"},{"line_number":120,"context_line":"``internal_info[\u0027waiting_event\u0027]`` field of a port or port group with new"},{"line_number":121,"context_line":"``\"event_handler\"`` received with external event. If we received what we\u0027re"},{"line_number":122,"context_line":"waiting for, we also check other fields present in the payload, to ensure that"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_0760e934","line":119,"in_reply_to":"fa31d9ce_ba53bd6b","updated":"2017-02-20 16:52:38.000000000","message":"It seems like neutron would have to have the node info in that case, which may be possible (binding:host_id is node UUID right)?","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2571f2e92480a02d54ffc56aa0f25cd3b03c39df","unresolved":false,"context_lines":[{"line_number":118,"context_line":"lookup and calls ``process_network_event`` RPC method on conductor that"},{"line_number":119,"context_line":"manages this node. In ``process_network_event`` ironic compares current"},{"line_number":120,"context_line":"``internal_info[\u0027waiting_event\u0027]`` field of a port or port group with new"},{"line_number":121,"context_line":"``\"event_handler\"`` received with external event. If we received what we\u0027re"},{"line_number":122,"context_line":"waiting for, we also check other fields present in the payload, to ensure that"},{"line_number":123,"context_line":"the actual event we requested happened, and ``waiting_event`` is removed from"},{"line_number":124,"context_line":"``internal_info``. If none of the ports and port groups have"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_3a942de7","line":121,"updated":"2017-02-16 22:47:06.000000000","message":"So if you allow the node to do some other eg provisioning things while the ports are in this wait-thing, and the node is locked when this request comes in, what happens?","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":118,"context_line":"lookup and calls ``process_network_event`` RPC method on conductor that"},{"line_number":119,"context_line":"manages this node. In ``process_network_event`` ironic compares current"},{"line_number":120,"context_line":"``internal_info[\u0027waiting_event\u0027]`` field of a port or port group with new"},{"line_number":121,"context_line":"``\"event_handler\"`` received with external event. If we received what we\u0027re"},{"line_number":122,"context_line":"waiting for, we also check other fields present in the payload, to ensure that"},{"line_number":123,"context_line":"the actual event we requested happened, and ``waiting_event`` is removed from"},{"line_number":124,"context_line":"``internal_info``. If none of the ports and port groups have"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_27189684","line":121,"in_reply_to":"fa31d9ce_3a942de7","updated":"2017-03-17 12:01:48.000000000","message":"A bit of text from earlier text: \"we may want to save the event we\u0027re waiting for in each port or port group to ``internal_info[\u0027waiting_event\u0027]`` and continue provisioning actions only after all ports have either received the event or waiting for it timed out.\".\n\nSo, I don\u0027t intend to allow other actions for now.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2571f2e92480a02d54ffc56aa0f25cd3b03c39df","unresolved":false,"context_lines":[{"line_number":121,"context_line":"``\"event_handler\"`` received with external event. If we received what we\u0027re"},{"line_number":122,"context_line":"waiting for, we also check other fields present in the payload, to ensure that"},{"line_number":123,"context_line":"the actual event we requested happened, and ``waiting_event`` is removed from"},{"line_number":124,"context_line":"``internal_info``. If none of the ports and port groups have"},{"line_number":125,"context_line":"``internal_info[\u0027waiting_event\u0027]`` key, it means that we received all expected"},{"line_number":126,"context_line":"events and we trigger ``continue`` event on the state machine, along with the"},{"line_number":127,"context_line":"next provisioning action steps that need to be perfromed."}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_baaf3d2a","line":124,"updated":"2017-02-16 22:47:06.000000000","message":"would it make more sense to store this info in the node\u0027s driver_internal_info? I haven\u0027t thought about the cost of going through all the ports \u0026 portgroups of a node, but it seems like it\u0027d be more efficient to just do it at the node level - one db save, vs separate db saves for each port \u0026 portgroup (unless there is some adv for that info to be avail in the port/portgroup objects?)","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":121,"context_line":"``\"event_handler\"`` received with external event. If we received what we\u0027re"},{"line_number":122,"context_line":"waiting for, we also check other fields present in the payload, to ensure that"},{"line_number":123,"context_line":"the actual event we requested happened, and ``waiting_event`` is removed from"},{"line_number":124,"context_line":"``internal_info``. If none of the ports and port groups have"},{"line_number":125,"context_line":"``internal_info[\u0027waiting_event\u0027]`` key, it means that we received all expected"},{"line_number":126,"context_line":"events and we trigger ``continue`` event on the state machine, along with the"},{"line_number":127,"context_line":"next provisioning action steps that need to be perfromed."}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_aaafebe1","line":124,"in_reply_to":"fa31d9ce_baaf3d2a","updated":"2017-03-17 12:01:48.000000000","message":"Yes, I\u0027ve reimplemented it this way now.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":129,"context_line":"Alternatives"},{"line_number":130,"context_line":"------------"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"* Use Neutron port status polling."},{"line_number":133,"context_line":""},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_87dbf9ec","line":132,"updated":"2017-02-20 16:52:38.000000000","message":"Can you please indicate why this is an undesirable alternative (for example, it could still have race conditions)?","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":129,"context_line":"Alternatives"},{"line_number":130,"context_line":"------------"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"* Use Neutron port status polling."},{"line_number":133,"context_line":""},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_2ad05b53","line":132,"in_reply_to":"da36d5c6_87dbf9ec","updated":"2017-03-17 12:01:48.000000000","message":"The reason it\u0027s undesirable is, it is actually possible for neutron port to be eg in status active, tho the provisioning block that was doing something to the port is not yet finished. The notifications take that into account too. I will add the semaphore solution as a feasible alternative.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":135,"context_line":"Data model impact"},{"line_number":136,"context_line":"-----------------"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"None."},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"State Machine Impact"},{"line_number":141,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_67ed258b","line":138,"updated":"2017-02-20 16:52:38.000000000","message":"Not sure if we care about this in this section, but you will be adding a new key to the port(group) internal_info dict","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":135,"context_line":"Data model impact"},{"line_number":136,"context_line":"-----------------"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"None."},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"State Machine Impact"},{"line_number":141,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_4a63d7b1","line":138,"in_reply_to":"da36d5c6_67ed258b","updated":"2017-03-17 12:01:48.000000000","message":"It is a free form dict, and it is not something we intend the users should be looking to, so I don\u0027t think we should mention it here.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":143,"context_line":"A new ``EVENT WAIT`` state is introduced. Nodes can move to it from"},{"line_number":144,"context_line":"``DEPLOYING`` and ``CLEANING`` states, upon receiving ``event wait`` event."},{"line_number":145,"context_line":"When ``continue`` event is received while the node is in ``EVENT WAIT``, the"},{"line_number":146,"context_line":"node switches back to the ``DEPOYING`` or ``CLEANING`` state, and that"},{"line_number":147,"context_line":"provisioning action proceeds."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_0763891b","line":146,"range":{"start_line":146,"start_character":28,"end_line":146,"end_character":36},"updated":"2017-02-20 16:52:38.000000000","message":"typo in DEPLOYING\n\nand there were concerns with state machine impact on L55","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2571f2e92480a02d54ffc56aa0f25cd3b03c39df","unresolved":false,"context_lines":[{"line_number":178,"context_line":"  ``ironic.event_handlers.\u003cevent_type\u003e`` entrypoint in setup.cfg will be tried,"},{"line_number":179,"context_line":"  the first one that is able to process the event does it."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"Other fields are optional, and if the event_handler currently being tried can"},{"line_number":182,"context_line":"not process the event, it should raise ``UnableToProcessEvent`` exception,"},{"line_number":183,"context_line":"which will indicate that ironic should keep trying other handlers. If none of"},{"line_number":184,"context_line":"them are able to process it, ``fail`` state machine event is triggered by"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_ba249dc6","line":181,"updated":"2017-02-16 22:47:06.000000000","message":"Is it true that other fields are optional? It seems like it depends on the \u003cevent_type\u003e.\u003cmethod_name\u003e. we\u0027re going to have to document what each method is expecting...","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":178,"context_line":"  ``ironic.event_handlers.\u003cevent_type\u003e`` entrypoint in setup.cfg will be tried,"},{"line_number":179,"context_line":"  the first one that is able to process the event does it."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"Other fields are optional, and if the event_handler currently being tried can"},{"line_number":182,"context_line":"not process the event, it should raise ``UnableToProcessEvent`` exception,"},{"line_number":183,"context_line":"which will indicate that ironic should keep trying other handlers. If none of"},{"line_number":184,"context_line":"them are able to process it, ``fail`` state machine event is triggered by"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_6addf341","line":181,"in_reply_to":"fa31d9ce_ba249dc6","updated":"2017-03-17 12:01:48.000000000","message":"It is going to change significantly, so I\u0027ll just skip this comment for now :)","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2571f2e92480a02d54ffc56aa0f25cd3b03c39df","unresolved":false,"context_lines":[{"line_number":182,"context_line":"not process the event, it should raise ``UnableToProcessEvent`` exception,"},{"line_number":183,"context_line":"which will indicate that ironic should keep trying other handlers. If none of"},{"line_number":184,"context_line":"them are able to process it, ``fail`` state machine event is triggered by"},{"line_number":185,"context_line":"conductor."},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"The normal response code to the request on this endpoint is 200 (OK), the error"},{"line_number":188,"context_line":"codes are:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_f51c666c","line":185,"updated":"2017-02-16 22:47:06.000000000","message":"Whoa, so we\u0027re going to allow more than one handler for a particular type of event? eg  for ironic.event_handlers.network in setup.cfg, if we had \u0027neutron\u0027 and \u0027foobar\u0027, if neutron couldn\u0027t handle it, you\u0027d try foobar? How does the user specify the order in which they should be tried?","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":182,"context_line":"not process the event, it should raise ``UnableToProcessEvent`` exception,"},{"line_number":183,"context_line":"which will indicate that ironic should keep trying other handlers. If none of"},{"line_number":184,"context_line":"them are able to process it, ``fail`` state machine event is triggered by"},{"line_number":185,"context_line":"conductor."},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"The normal response code to the request on this endpoint is 200 (OK), the error"},{"line_number":188,"context_line":"codes are:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_4ae2f7d6","line":185,"in_reply_to":"fa31d9ce_f51c666c","updated":"2017-03-17 12:01:48.000000000","message":"This is how the ml2 drivers work in neutron. Tho we might not need this, and hardcode the event handler we\u0027re going to use in the network interface, as they are tightly coupled.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":194,"context_line":"* 401 (Unauthorized),  if the authorization has been refused for the provided"},{"line_number":195,"context_line":"  credentials."},{"line_number":196,"context_line":"* 403 (Forbidden), if the user that has issued the request is not allowed to"},{"line_number":197,"context_line":"  use this endpoint."},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"Client (CLI) impact"},{"line_number":200,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_c706d11f","line":197,"updated":"2017-02-20 16:52:38.000000000","message":"What about if a node is locked?","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":194,"context_line":"* 401 (Unauthorized),  if the authorization has been refused for the provided"},{"line_number":195,"context_line":"  credentials."},{"line_number":196,"context_line":"* 403 (Forbidden), if the user that has issued the request is not allowed to"},{"line_number":197,"context_line":"  use this endpoint."},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"Client (CLI) impact"},{"line_number":200,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_aad1abfd","line":197,"in_reply_to":"da36d5c6_c706d11f","updated":"2017-03-17 12:01:48.000000000","message":"Yup, good point.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":199,"context_line":"Client (CLI) impact"},{"line_number":200,"context_line":"-------------------"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"Client will be updated to support sending an external notification."},{"line_number":203,"context_line":"TBD."},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"RPC API impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_c2379fe1","line":202,"updated":"2017-02-20 16:52:38.000000000","message":"You mean just hitting the /v1/events endpoint, right?\n\nI think not using the term \"notification\" here will especially be important, or users may think they\u0027re able to send ironic usage notifications with the CLI.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":199,"context_line":"Client (CLI) impact"},{"line_number":200,"context_line":"-------------------"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"Client will be updated to support sending an external notification."},{"line_number":203,"context_line":"TBD."},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"RPC API impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_aaf8cb7d","line":202,"in_reply_to":"da36d5c6_c2379fe1","updated":"2017-03-17 12:01:48.000000000","message":"ditto, I\u0027ll try to make clear the separation of terms","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":270,"context_line":"Primary assignee:"},{"line_number":271,"context_line":"  vsaienko"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"Other contributors:"},{"line_number":274,"context_line":"  vdrok"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"Work Items"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_a241cb3b","line":273,"updated":"2017-02-20 16:52:38.000000000","message":"I\u0027d like to help here or with other networking-related patches this cycle if you want additional assistance.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":270,"context_line":"Primary assignee:"},{"line_number":271,"context_line":"  vsaienko"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"Other contributors:"},{"line_number":274,"context_line":"  vdrok"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"Work Items"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_6a35f344","line":273,"in_reply_to":"da36d5c6_a241cb3b","updated":"2017-03-17 12:01:48.000000000","message":"thanks, I\u0027ll add your name here.","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":291,"context_line":"  The driver will perform \"fake\" port binding for FLAT network. It is an"},{"line_number":292,"context_line":"  ironic pre-requirement that hardware server is already plugged to network."},{"line_number":293,"context_line":"  For multitenancy case nothing to be done. Existing ML2 drivers should"},{"line_number":294,"context_line":"  already perform port binding."},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"Testing"},{"line_number":297,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_22823b53","line":294,"updated":"2017-02-20 16:52:38.000000000","message":"Does neutron also need to be updated to do these /v1/events POSTs, or is that already supported?","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":291,"context_line":"  The driver will perform \"fake\" port binding for FLAT network. It is an"},{"line_number":292,"context_line":"  ironic pre-requirement that hardware server is already plugged to network."},{"line_number":293,"context_line":"  For multitenancy case nothing to be done. Existing ML2 drivers should"},{"line_number":294,"context_line":"  already perform port binding."},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"Testing"},{"line_number":297,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_ca234704","line":294,"in_reply_to":"da36d5c6_22823b53","updated":"2017-03-17 12:01:48.000000000","message":"It does, neutron does not know anything about ironic yet :)","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":296,"context_line":"Testing"},{"line_number":297,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"The change will be tested at the gates."},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":302,"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"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_42872f61","line":299,"updated":"2017-02-20 16:52:38.000000000","message":"unit and tempest, right?","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":296,"context_line":"Testing"},{"line_number":297,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"The change will be tested at the gates."},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":302,"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"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_6a8333cd","line":299,"in_reply_to":"da36d5c6_42872f61","updated":"2017-03-17 12:01:48.000000000","message":"yes","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"66268d8a1e1c8fb590507672bb7d55763d3bfc78","unresolved":false,"context_lines":[{"line_number":307,"context_line":"Documentation Impact"},{"line_number":308,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"This feature will be documented in the developer documentation."},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"References"},{"line_number":313,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da36d5c6_028e1778","line":310,"updated":"2017-02-20 16:52:38.000000000","message":"also in API ref","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b81969f2e1a012d9e42c47e56df8c79dec17579","unresolved":false,"context_lines":[{"line_number":307,"context_line":"Documentation Impact"},{"line_number":308,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"This feature will be documented in the developer documentation."},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"References"},{"line_number":313,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a1ced50_8a886fe9","line":310,"in_reply_to":"da36d5c6_028e1778","updated":"2017-03-17 12:01:48.000000000","message":"Done","commit_id":"4fc2c869884b1c0413bc63c4a56bc63e494dd51c"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"4c2dbe7b4b1e797c00176bb27fea72fa4f636e04","unresolved":false,"context_lines":[{"line_number":80,"context_line":"following::"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":" ironic.event_handlers.network \u003d"},{"line_number":83,"context_line":"     neutron \u003d ironic.event_handlers.network.neutron:NeutronEventHandler"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"The base ``BaseNetworkEventHandler`` class will contain the following"},{"line_number":86,"context_line":"methods::"}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a1ced50_6c195d79","line":83,"updated":"2017-03-20 10:25:23.000000000","message":"This makes configuration more complex. For example looks like neutron net driver can use only neutron event handler. Maybe something else, any driver (interface) can expose event handler that ironic register internally.","commit_id":"e2397860f678038719c96d39510ad28da17ae2c8"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"647e857ff9af3fb4ef1b0dfa56f05195d519ad35","unresolved":false,"context_lines":[{"line_number":80,"context_line":"following::"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":" ironic.event_handlers.network \u003d"},{"line_number":83,"context_line":"     neutron \u003d ironic.event_handlers.network.neutron:NeutronEventHandler"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"The base ``BaseNetworkEventHandler`` class will contain the following"},{"line_number":86,"context_line":"methods::"}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a1ced50_92ff9000","line":83,"in_reply_to":"1a1ced50_6c195d79","updated":"2017-03-20 10:59:07.000000000","message":"Yeah, it might make more sense to actually hardcode it inside the network interface, will update.","commit_id":"e2397860f678038719c96d39510ad28da17ae2c8"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"4c2dbe7b4b1e797c00176bb27fea72fa4f636e04","unresolved":false,"context_lines":[{"line_number":117,"context_line":"         \"\"\"Ensures that all cleaning ports are deleted.\"\"\""},{"line_number":118,"context_line":"         pass"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":121,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":122,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":123,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a1ced50_ec29cd38","line":120,"updated":"2017-03-20 10:25:23.000000000","message":"There is explicit dependency between event handler and interface, maybe make handler part of interface (factory method for example).","commit_id":"e2397860f678038719c96d39510ad28da17ae2c8"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":117,"context_line":"         \"\"\"Ensures that all cleaning ports are deleted.\"\"\""},{"line_number":118,"context_line":"         pass"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":121,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":122,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":123,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a1ced50_a744d049","line":120,"in_reply_to":"1a1ced50_b202cc07","updated":"2017-10-12 16:53:13.000000000","message":"It should be a very simple object, that at worst, should be just checking field values of some db entities. so added it as a class field, initialized right on the class load.","commit_id":"e2397860f678038719c96d39510ad28da17ae2c8"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"647e857ff9af3fb4ef1b0dfa56f05195d519ad35","unresolved":false,"context_lines":[{"line_number":117,"context_line":"         \"\"\"Ensures that all cleaning ports are deleted.\"\"\""},{"line_number":118,"context_line":"         pass"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":121,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":122,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":123,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a1ced50_b202cc07","line":120,"in_reply_to":"1a1ced50_ec29cd38","updated":"2017-03-20 10:59:07.000000000","message":"yup","commit_id":"e2397860f678038719c96d39510ad28da17ae2c8"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"4c2dbe7b4b1e797c00176bb27fea72fa4f636e04","unresolved":false,"context_lines":[{"line_number":160,"context_line":"\"done\", it should be removed from the ``driver_internal_info[\u0027waiting_for\u0027]``"},{"line_number":161,"context_line":"list, and the provisioning action can proceed, by triggering the \u0027continue\u0027"},{"line_number":162,"context_line":"state machine event and calling the callback that we have saved before."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"Alternatives"},{"line_number":165,"context_line":"------------"},{"line_number":166,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a1ced50_8cb699da","line":163,"updated":"2017-03-20 10:25:23.000000000","message":"Please describe timeouts mechanism also (no events, events timeout).","commit_id":"e2397860f678038719c96d39510ad28da17ae2c8"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"647e857ff9af3fb4ef1b0dfa56f05195d519ad35","unresolved":false,"context_lines":[{"line_number":160,"context_line":"\"done\", it should be removed from the ``driver_internal_info[\u0027waiting_for\u0027]``"},{"line_number":161,"context_line":"list, and the provisioning action can proceed, by triggering the \u0027continue\u0027"},{"line_number":162,"context_line":"state machine event and calling the callback that we have saved before."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"Alternatives"},{"line_number":165,"context_line":"------------"},{"line_number":166,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a1ced50_523518d8","line":163,"in_reply_to":"1a1ced50_8cb699da","updated":"2017-03-20 10:59:07.000000000","message":"for now, the usual deploywait/cleanwait timeout is used, tho might need a new deletewait one, will clarify.","commit_id":"e2397860f678038719c96d39510ad28da17ae2c8"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"4c2dbe7b4b1e797c00176bb27fea72fa4f636e04","unresolved":false,"context_lines":[{"line_number":227,"context_line":"* 400 (Bad Request), in case of none of the event handlers can process the"},{"line_number":228,"context_line":"  event."},{"line_number":229,"context_line":"* 404 (Not Found), in case of making a request with old API microversion"},{"line_number":230,"context_line":"  header."},{"line_number":231,"context_line":"* 401 (Unauthorized),  if the authorization has been refused for the provided"},{"line_number":232,"context_line":"  credentials."},{"line_number":233,"context_line":"* 403 (Forbidden), if the user that has issued the request is not allowed to"}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a1ced50_8c04d97e","line":230,"updated":"2017-03-20 10:25:23.000000000","message":"And if mac_address not found?","commit_id":"e2397860f678038719c96d39510ad28da17ae2c8"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"647e857ff9af3fb4ef1b0dfa56f05195d519ad35","unresolved":false,"context_lines":[{"line_number":227,"context_line":"* 400 (Bad Request), in case of none of the event handlers can process the"},{"line_number":228,"context_line":"  event."},{"line_number":229,"context_line":"* 404 (Not Found), in case of making a request with old API microversion"},{"line_number":230,"context_line":"  header."},{"line_number":231,"context_line":"* 401 (Unauthorized),  if the authorization has been refused for the provided"},{"line_number":232,"context_line":"  credentials."},{"line_number":233,"context_line":"* 403 (Forbidden), if the user that has issued the request is not allowed to"}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a1ced50_d2574800","line":230,"in_reply_to":"1a1ced50_8c04d97e","updated":"2017-03-20 10:59:07.000000000","message":"++","commit_id":"e2397860f678038719c96d39510ad28da17ae2c8"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"38251001e09c7efbb1828c9fde25cbec89dc6f17","unresolved":false,"context_lines":[{"line_number":28,"context_line":"especially if the machine boots very quickly (e.g. a local VM)."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Another issue, that has a more serious security impact, is if Neutron failed"},{"line_number":31,"context_line":"to bind port when configuring tenant network, ironic proceeds with finishing"},{"line_number":32,"context_line":"the deployment, leaving port bound to the provisioning network."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Furthermore, Neutron ports remain unbound and in DOWN state due to"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_27df3bd7","line":31,"updated":"2017-10-06 22:34:20.000000000","message":"to bind the port when configuring the tenant network, ...","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":28,"context_line":"especially if the machine boots very quickly (e.g. a local VM)."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Another issue, that has a more serious security impact, is if Neutron failed"},{"line_number":31,"context_line":"to bind port when configuring tenant network, ironic proceeds with finishing"},{"line_number":32,"context_line":"the deployment, leaving port bound to the provisioning network."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Furthermore, Neutron ports remain unbound and in DOWN state due to"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_17eb6879","line":31,"in_reply_to":"7f515b1d_27df3bd7","updated":"2017-10-12 16:53:13.000000000","message":"Done","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"38251001e09c7efbb1828c9fde25cbec89dc6f17","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Another issue, that has a more serious security impact, is if Neutron failed"},{"line_number":31,"context_line":"to bind port when configuring tenant network, ironic proceeds with finishing"},{"line_number":32,"context_line":"the deployment, leaving port bound to the provisioning network."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Furthermore, Neutron ports remain unbound and in DOWN state due to"},{"line_number":35,"context_line":"https://bugs.launchpad.net/neutron/+bug/1599836."}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_07f0bf66","line":32,"range":{"start_line":32,"start_character":16,"end_line":32,"end_character":29},"updated":"2017-10-06 22:34:20.000000000","message":"leaving the port","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Another issue, that has a more serious security impact, is if Neutron failed"},{"line_number":31,"context_line":"to bind port when configuring tenant network, ironic proceeds with finishing"},{"line_number":32,"context_line":"the deployment, leaving port bound to the provisioning network."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Furthermore, Neutron ports remain unbound and in DOWN state due to"},{"line_number":35,"context_line":"https://bugs.launchpad.net/neutron/+bug/1599836."}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_f7ed6c8b","line":32,"range":{"start_line":32,"start_character":16,"end_line":32,"end_character":29},"in_reply_to":"7f515b1d_07f0bf66","updated":"2017-10-12 16:53:13.000000000","message":"Done","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":35,"context_line":"https://bugs.launchpad.net/neutron/+bug/1599836."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Ironic should be able to receive notifications from neutron when the port state"},{"line_number":38,"context_line":"is changed. Only Ironic related ports should trigger sending notifications."},{"line_number":39,"context_line":"This spec concentrates on the binding operations, but the event handlers can be"},{"line_number":40,"context_line":"extended further, for example to be able to process updates to DHCP options."},{"line_number":41,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_997b7d8a","line":38,"updated":"2017-10-02 21:13:31.000000000","message":"maybe s/trigger sending notifications/cause neutron to send notifications/\n\nDo you have a link to a description of neutron notifications? How do they work? Do they emit notifications to the entire world, are are they configured to emit notifications to ironic only?","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":35,"context_line":"https://bugs.launchpad.net/neutron/+bug/1599836."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Ironic should be able to receive notifications from neutron when the port state"},{"line_number":38,"context_line":"is changed. Only Ironic related ports should trigger sending notifications."},{"line_number":39,"context_line":"This spec concentrates on the binding operations, but the event handlers can be"},{"line_number":40,"context_line":"extended further, for example to be able to process updates to DHCP options."},{"line_number":41,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_17b92879","line":38,"in_reply_to":"7f515b1d_997b7d8a","updated":"2017-10-12 16:53:13.000000000","message":"each notifier can decide for itself where and how to send the notification. events trigger all the notifiers enabled. here is a nova notifier inside neutron -- https://github.com/openstack/neutron/blob/master/neutron/notifiers/nova.py","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"38251001e09c7efbb1828c9fde25cbec89dc6f17","unresolved":false,"context_lines":[{"line_number":51,"context_line":"(e.g. updates port binding) or creates a port (multitenancy integration), we"},{"line_number":52,"context_line":"put the node in the ``*WAIT`` state, and pause the deployment/cleaning"},{"line_number":53,"context_line":"waiting for neutron notification. As several ports can be updated"},{"line_number":54,"context_line":"simultaneously, we need to put the node in the ``*WAIT`` only after sending"},{"line_number":55,"context_line":"the requests for all of them."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"The notifications are generated on neutron side, and are sent to a dedicated"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_a7ec4b8f","line":54,"range":{"start_line":54,"start_character":43,"end_line":54,"end_character":61},"updated":"2017-10-06 22:34:20.000000000","message":"the ``WAIT`` state only","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":51,"context_line":"(e.g. updates port binding) or creates a port (multitenancy integration), we"},{"line_number":52,"context_line":"put the node in the ``*WAIT`` state, and pause the deployment/cleaning"},{"line_number":53,"context_line":"waiting for neutron notification. As several ports can be updated"},{"line_number":54,"context_line":"simultaneously, we need to put the node in the ``*WAIT`` only after sending"},{"line_number":55,"context_line":"the requests for all of them."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"The notifications are generated on neutron side, and are sent to a dedicated"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_f417aa50","line":54,"range":{"start_line":54,"start_character":43,"end_line":54,"end_character":61},"in_reply_to":"7f515b1d_a7ec4b8f","updated":"2017-10-12 16:53:13.000000000","message":"Done","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":59,"context_line":"following fields::"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    {"},{"line_number":62,"context_line":"        \"events\": ["},{"line_number":63,"context_line":"            {"},{"line_number":64,"context_line":"                \"event_handler\": \"network.bind_port\""},{"line_number":65,"context_line":"                \"port_id\": \"VIF UUID\","}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_59f4e5f0","line":62,"updated":"2017-10-02 21:13:31.000000000","message":"if we end up using this new /events API endpoint for other kinds of events (not e.g. neutron-port-related), how are we going to distinguish them? Some sort of event-type ID? Or is it the \u0027event_handler\u0027 that distinguishes them?\n\nie, that events is a list of event\u0027s. And an event is a json with \u0027event_handler\u0027; the rest of the information depends on what that event_handler is expecting?\n\nAh, reading ahead, I see / think that is what you are proposing.","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":59,"context_line":"following fields::"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    {"},{"line_number":62,"context_line":"        \"events\": ["},{"line_number":63,"context_line":"            {"},{"line_number":64,"context_line":"                \"event_handler\": \"network.bind_port\""},{"line_number":65,"context_line":"                \"port_id\": \"VIF UUID\","}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_942f56a0","line":62,"in_reply_to":"7f515b1d_59f4e5f0","updated":"2017-10-12 16:53:13.000000000","message":"you are correct :)","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"38251001e09c7efbb1828c9fde25cbec89dc6f17","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                \"status\": \"VIF port status\","},{"line_number":68,"context_line":"                \"device_id\": \"VIF device ID\","},{"line_number":69,"context_line":"                \"binding:host_id\": \"hostname\","},{"line_number":70,"context_line":"            },"},{"line_number":71,"context_line":"            ..."},{"line_number":72,"context_line":"        ]"},{"line_number":73,"context_line":"    }"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_47ab571c","line":70,"updated":"2017-10-06 22:34:20.000000000","message":"I\u0027m kind of wondering about the security implications of this. Does it require authentication to use this API?","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                \"status\": \"VIF port status\","},{"line_number":68,"context_line":"                \"device_id\": \"VIF device ID\","},{"line_number":69,"context_line":"                \"binding:host_id\": \"hostname\","},{"line_number":70,"context_line":"            },"},{"line_number":71,"context_line":"            ..."},{"line_number":72,"context_line":"        ]"},{"line_number":73,"context_line":"    }"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_341e6270","line":70,"in_reply_to":"7f515b1d_47ab571c","updated":"2017-10-12 16:53:13.000000000","message":"yes, it is authenticated and intended to be used by service tenant (eg neutron service)","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":75,"context_line":"Event handler is an object processing the events received on the ``/events``"},{"line_number":76,"context_line":"endpoint. This spec handles the neutron notifications case, but to make it"},{"line_number":77,"context_line":"more generic, it is proposed to define the event handlers inside the related"},{"line_number":78,"context_line":"driver interface, in the ``event_handler`` interface class field. For example,"},{"line_number":79,"context_line":"for network related events, it is going to be the following::"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":" class NeutronNetwork(common.VIFPortIDMixin,"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_1948ad2a","line":78,"updated":"2017-10-02 21:13:31.000000000","message":"maybe s/in the event_handler interface class field/in the interface class\u0027 event_handler field/\n\nI thought you had created a new interface named event_handler :)","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":75,"context_line":"Event handler is an object processing the events received on the ``/events``"},{"line_number":76,"context_line":"endpoint. This spec handles the neutron notifications case, but to make it"},{"line_number":77,"context_line":"more generic, it is proposed to define the event handlers inside the related"},{"line_number":78,"context_line":"driver interface, in the ``event_handler`` interface class field. For example,"},{"line_number":79,"context_line":"for network related events, it is going to be the following::"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":" class NeutronNetwork(common.VIFPortIDMixin,"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_77e05c97","line":78,"in_reply_to":"7f515b1d_1948ad2a","updated":"2017-10-12 16:53:13.000000000","message":"Done","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":88,"context_line":"The base ``BaseNetworkEventHandler`` class will contain the following"},{"line_number":89,"context_line":"methods::"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":" class BaseNetworkEventHandler(object):"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"     @abc.abstractmethod"},{"line_number":94,"context_line":"     def configure_tenant_networks(self, task):"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_3976c971","line":91,"updated":"2017-10-02 21:13:31.000000000","message":"I wonder if we should have a BaseEventHandler, but I guess we\u0027ll find out if we need one or not in the future...","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":88,"context_line":"The base ``BaseNetworkEventHandler`` class will contain the following"},{"line_number":89,"context_line":"methods::"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":" class BaseNetworkEventHandler(object):"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"     @abc.abstractmethod"},{"line_number":94,"context_line":"     def configure_tenant_networks(self, task):"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_d77710d4","line":91,"in_reply_to":"7f515b1d_3976c971","updated":"2017-10-12 16:53:13.000000000","message":"yes, I\u0027m not sure about it yet.","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":122,"context_line":""},{"line_number":123,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":124,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":125,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":126,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."},{"line_number":127,"context_line":"If the call is synchronous, we\u0027ll just proceed to the next one when the"},{"line_number":128,"context_line":"previous is done, otherwise we\u0027ll be triggering the state machine \u0027wait\u0027 event"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_39d24929","line":125,"updated":"2017-10-02 21:13:31.000000000","message":"what exactly will this value be? a list of \u0027event\u0027s? What is an \u0027event\u0027? Not the same thing as L63-70?","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":122,"context_line":""},{"line_number":123,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":124,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":125,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":126,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."},{"line_number":127,"context_line":"If the call is synchronous, we\u0027ll just proceed to the next one when the"},{"line_number":128,"context_line":"previous is done, otherwise we\u0027ll be triggering the state machine \u0027wait\u0027 event"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_3750a432","line":125,"in_reply_to":"7f515b1d_39d24929","updated":"2017-10-12 16:53:13.000000000","message":"it is described further in this paragraph","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":135,"context_line":"we receieve the event. If an unexpected event is received, we\u0027ll be ignoring"},{"line_number":136,"context_line":"it. Neutron does not know which method name it should include in the request"},{"line_number":137,"context_line":"body, as it only operates on the neutron entities, so knows about things such"},{"line_number":138,"context_line":"as port bound, port unbound, port deleted etc. We will be mapping the things"},{"line_number":139,"context_line":"we\u0027re waiting for to things neutron passes in via the simple dictionary::"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"  NETWORK_HANDLER_TO_EVENT_MAP \u003d {"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_b964f94a","line":138,"updated":"2017-10-02 21:13:31.000000000","message":"Who is \u0027we\u0027 that will be mapping, and where will the mapping be used? At api or conductor level? I think it is misleading at L64, if the event_handler (in the info emitted in the neutron notification) is \u0027network.configure_tenant_networks\u0027.\n\nOR maybe i didn\u0027t understand what is going on.\n\nGuess it would be useful for me to see a step-by-step list of things.\n\neg.\n1. ironic (in \u003cthis code\u003e) asks neutron to do-something\n2. ironic adds to node.internal_info[\u003csomething, i didn\u0027t get what\u003e]\n3. conductor puts node into \u003csome\u003eWAIT state\n4. neutron sends notification, POST? /v1/events with body: ..?\n5. ironic-api does what to that request\n6. something translates the neutron request, using the NETWORK_HANDLER_TO_EVENT_MAP\nThe rest is vague to me, sorry :-(","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":135,"context_line":"we receieve the event. If an unexpected event is received, we\u0027ll be ignoring"},{"line_number":136,"context_line":"it. Neutron does not know which method name it should include in the request"},{"line_number":137,"context_line":"body, as it only operates on the neutron entities, so knows about things such"},{"line_number":138,"context_line":"as port bound, port unbound, port deleted etc. We will be mapping the things"},{"line_number":139,"context_line":"we\u0027re waiting for to things neutron passes in via the simple dictionary::"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"  NETWORK_HANDLER_TO_EVENT_MAP \u003d {"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_452fe6f5","line":138,"in_reply_to":"7f515b1d_b964f94a","updated":"2017-10-12 16:53:13.000000000","message":"1 and 2. during deploy, ironic knows that a couple of network interface methods can be async https://review.openstack.org/#/c/440778/8/ironic/conductor/manager.py@2873. the waiting_for_events method will return not-false if any of the methods are actually async (determined by presence of attribute on eg  method unconfigure_tenant_networks). all the events passed to this helper are written to driver_internal_info[\u0027waiting_for\u0027]\u003d[\u0027unconfigure_tenant_networks\u0027, \u0027add_provisioning_network\u0027]\n3. conductor puts node in some wait state https://review.openstack.org/#/c/440778/8/ironic/conductor/manager.py@2877\n4. first in events list is unconfigure_tenant_networks, so it is triggered first, and ironic will start waiting for this event. neutron sends notification to /v1/events with the following body:\n\n    {\n        \"events\": [\n            {\n                \"event_handler\": \"network.unbind_port\"\n                \"port_id\": \"VIF UUID\",\n                \"mac_address\": \"VIF MAC address\",\n                \"status\": \"DOWN\",\n                \"device_id\": \"VIF device ID \u003d\u003d instance UUID\",\n                \"binding:host_id\": \"hostname\",\n            }\n        ]\n    }\n\n5. api sees that event_handler starts with network, and calls process_network_event conductor method.\n6. conductor translates neutron\u0027s event type to the function ironic will trigger at https://review.openstack.org/#/c/440778/8/ironic/conductor/manager.py@1910 and then calls the event_handler method with that name at https://review.openstack.org/#/c/440778/8/ironic/conductor/manager.py@1926\n7. event handler methods decides if the event for the node is completely done. https://review.openstack.org/#/c/440778/8/ironic/drivers/modules/network/neutron.py@49. if so, we remove it from waiting list in driver_internal_info[\u0027waiting_for\u0027]\n8. if there are more events left in driver_internal_info[\u0027waiting_for\u0027], we go to point 3 again.","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":148,"context_line":"  }"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"When an external network event is received, and if we\u0027re waiting for it, ironic"},{"line_number":151,"context_line":"API performs node-by-mac and port-by-mac lookup. The port status received in"},{"line_number":152,"context_line":"the request body is saved to the port\u0027s ``internal_info[\u0027network_status\u0027]``,"},{"line_number":153,"context_line":"and then ``process_network_event`` is triggered. On the conductor side,"},{"line_number":154,"context_line":"``process_network_event`` will be calling the event handler, and dealing with"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_99cc9d35","line":151,"updated":"2017-10-02 21:13:31.000000000","message":"why is it ironic-api that does this mapping. there is an assumption here that the event is from neutron and that this mapping needs to be done. If we have other kinds of non-network-related events, would we still leave it at the ironic-api level to start figuring out what to do, or push it to the conductor to deal with the event(s)?\n\nI\u0027m not against this being done at the api layer; i just don\u0027t understand yet, the pros/cons/issues that we ought to consider, in order to make a good decision.\n\nMaybe some \u0027network\u0027 event handler should handle these, since they are all prefixed with \u0027network\u0027 in L142-147.","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":148,"context_line":"  }"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"When an external network event is received, and if we\u0027re waiting for it, ironic"},{"line_number":151,"context_line":"API performs node-by-mac and port-by-mac lookup. The port status received in"},{"line_number":152,"context_line":"the request body is saved to the port\u0027s ``internal_info[\u0027network_status\u0027]``,"},{"line_number":153,"context_line":"and then ``process_network_event`` is triggered. On the conductor side,"},{"line_number":154,"context_line":"``process_network_event`` will be calling the event handler, and dealing with"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_37cb041f","line":151,"in_reply_to":"7f515b1d_99cc9d35","updated":"2017-10-12 16:53:13.000000000","message":"good point, makes sense to do it on conductor.","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":165,"context_line":"state machine event and calling the callback that we have saved before."},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"The usual ``*WAIT`` states timeout periodic tasks will be used to check that"},{"line_number":168,"context_line":"we\u0027re not waiting for the events forever."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"Alternatives"},{"line_number":171,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_394129aa","line":168,"updated":"2017-10-02 21:13:31.000000000","message":"My eyes glazed over, trying to understand all this :-(","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":190,"context_line":"When \u0027continue\u0027 event is triggered while the node is in ``DELETE WAIT``, the"},{"line_number":191,"context_line":"node switches back to the ``DELETING`` state."},{"line_number":192,"context_line":"This is introduced because we need to unconfigure the tenant networks prior to"},{"line_number":193,"context_line":"moving the node to available state or starting the cleaning."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"REST API impact"},{"line_number":196,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_d970d542","line":193,"updated":"2017-10-02 21:13:31.000000000","message":"can\u0027t go from delete -\u003e avail; it is delete -\u003e cleaning. I suppose it skips cleaning if cleaning is disabled though. Maybe that\u0027s what you meant.","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":190,"context_line":"When \u0027continue\u0027 event is triggered while the node is in ``DELETE WAIT``, the"},{"line_number":191,"context_line":"node switches back to the ``DELETING`` state."},{"line_number":192,"context_line":"This is introduced because we need to unconfigure the tenant networks prior to"},{"line_number":193,"context_line":"moving the node to available state or starting the cleaning."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"REST API impact"},{"line_number":196,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_57632043","line":193,"in_reply_to":"7f515b1d_d970d542","updated":"2017-10-12 16:53:13.000000000","message":"correct","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":196,"context_line":"---------------"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"The new endpoint ``/events`` needs to be created. Only"},{"line_number":199,"context_line":"authenticated POST requests are allowed to this endpoint with the"},{"line_number":200,"context_line":"following message format::"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"    {"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_599aa561","line":199,"updated":"2017-10-02 21:13:31.000000000","message":"what do we mean by \u0027authenticated\u0027?","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":196,"context_line":"---------------"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"The new endpoint ``/events`` needs to be created. Only"},{"line_number":199,"context_line":"authenticated POST requests are allowed to this endpoint with the"},{"line_number":200,"context_line":"following message format::"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"    {"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_f711ecad","line":199,"in_reply_to":"7f515b1d_599aa561","updated":"2017-10-12 16:53:13.000000000","message":"it means that this endpoint will require authentication. it will be admin-only by default, as most of our other endpoints.","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":244,"context_line":"-------------------"},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"Client will be updated to support sending an external notification. This"},{"line_number":247,"context_line":"functional will only be added to the client\u0027s python API, no new commands are"},{"line_number":248,"context_line":"going to be introduced. The new method will just be passing the JSON it"},{"line_number":249,"context_line":"receives to the ``/events`` endpoint."},{"line_number":250,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_79b0c1dd","line":247,"updated":"2017-10-02 21:13:31.000000000","message":"nit s/functional/function/","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":244,"context_line":"-------------------"},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"Client will be updated to support sending an external notification. This"},{"line_number":247,"context_line":"functional will only be added to the client\u0027s python API, no new commands are"},{"line_number":248,"context_line":"going to be introduced. The new method will just be passing the JSON it"},{"line_number":249,"context_line":"receives to the ``/events`` endpoint."},{"line_number":250,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_b7237405","line":247,"in_reply_to":"7f515b1d_79b0c1dd","updated":"2017-10-12 16:53:13.000000000","message":"Done","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":246,"context_line":"Client will be updated to support sending an external notification. This"},{"line_number":247,"context_line":"functional will only be added to the client\u0027s python API, no new commands are"},{"line_number":248,"context_line":"going to be introduced. The new method will just be passing the JSON it"},{"line_number":249,"context_line":"receives to the ``/events`` endpoint."},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"RPC API impact"},{"line_number":252,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_d9be95ac","line":249,"updated":"2017-10-02 21:13:31.000000000","message":"I\u0027m lost here. I thought it was neutron that was sending notifications to ironic. Why do we want the ironic client to sent notifications? Is it sending notifications to the ironic-api service?","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":246,"context_line":"Client will be updated to support sending an external notification. This"},{"line_number":247,"context_line":"functional will only be added to the client\u0027s python API, no new commands are"},{"line_number":248,"context_line":"going to be introduced. The new method will just be passing the JSON it"},{"line_number":249,"context_line":"receives to the ``/events`` endpoint."},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"RPC API impact"},{"line_number":252,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_f7868cdb","line":249,"in_reply_to":"7f515b1d_d9be95ac","updated":"2017-10-12 16:53:13.000000000","message":"neutron will intialize ironic client and it will send the notification.","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":297,"context_line":"Performance Impact"},{"line_number":298,"context_line":"------------------"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"The node provisioning may take some additional time when we\u0027ll be waiting for"},{"line_number":301,"context_line":"the external events."},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"Other deployer impact"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_79e561db","line":300,"updated":"2017-10-02 21:13:31.000000000","message":"\u0026 deprovisioning","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":297,"context_line":"Performance Impact"},{"line_number":298,"context_line":"------------------"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"The node provisioning may take some additional time when we\u0027ll be waiting for"},{"line_number":301,"context_line":"the external events."},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"Other deployer impact"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_7744dcb7","line":300,"in_reply_to":"7f515b1d_79e561db","updated":"2017-10-12 16:53:13.000000000","message":"Done","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":328,"context_line":""},{"line_number":329,"context_line":"Other contributors:"},{"line_number":330,"context_line":"  vsaienko"},{"line_number":331,"context_line":"  mariojv"},{"line_number":332,"context_line":""},{"line_number":333,"context_line":"Work Items"},{"line_number":334,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_39d36906","line":331,"updated":"2017-10-02 21:13:31.000000000","message":"i guess we can remove this","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":328,"context_line":""},{"line_number":329,"context_line":"Other contributors:"},{"line_number":330,"context_line":"  vsaienko"},{"line_number":331,"context_line":"  mariojv"},{"line_number":332,"context_line":""},{"line_number":333,"context_line":"Work Items"},{"line_number":334,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_d73f1023","line":331,"in_reply_to":"7f515b1d_39d36906","updated":"2017-10-12 16:53:13.000000000","message":"Done","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":348,"context_line":"Dependencies"},{"line_number":349,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":350,"context_line":""},{"line_number":351,"context_line":"* Ironic should be switched to using flat network in the gate [#]_, [#]_."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"* To fix the issue with neutron ports that remain in DOWN state, an ML2 driver"},{"line_number":354,"context_line":"  that will perform \"fake\" port binding in the flat network needs to be"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_19ce6d59","line":351,"updated":"2017-10-02 21:13:31.000000000","message":"have we already done this?","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":348,"context_line":"Dependencies"},{"line_number":349,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":350,"context_line":""},{"line_number":351,"context_line":"* Ironic should be switched to using flat network in the gate [#]_, [#]_."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"* To fix the issue with neutron ports that remain in DOWN state, an ML2 driver"},{"line_number":354,"context_line":"  that will perform \"fake\" port binding in the flat network needs to be"}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_1736c853","line":351,"in_reply_to":"7f515b1d_19ce6d59","updated":"2017-10-12 16:53:13.000000000","message":"not completely I think, we\u0027ll need to enable the networking-baremetal plugin in our gates.","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2bb27e67c1f134230ffb8cd72ce6f9b29fdb7bc2","unresolved":false,"context_lines":[{"line_number":373,"context_line":"This does not affect the usual upgrade procedure. To make use of events, both"},{"line_number":374,"context_line":"API and conductor need to be upgraded. During upgrade, the ironic notifier"},{"line_number":375,"context_line":"needs to be configured in neutron."},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"Documentation Impact"},{"line_number":378,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":379,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"7f515b1d_19f78d8d","line":376,"updated":"2017-10-02 21:13:31.000000000","message":"what happens during rolling upgrades; that is, if a conductor has been updated, but the api-service hasn\u0027t yet. could the conductor make some change to neutron, and neutron hit the /events endpoint that the API service can\u0027t handle yet?\n\nThis isn\u0027t configurable, right? It is just going to be \u0027on\u0027 when the code is added?","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a76bed98e2a6bad1ff70032b9f12c62adce3be44","unresolved":false,"context_lines":[{"line_number":373,"context_line":"This does not affect the usual upgrade procedure. To make use of events, both"},{"line_number":374,"context_line":"API and conductor need to be upgraded. During upgrade, the ironic notifier"},{"line_number":375,"context_line":"needs to be configured in neutron."},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"Documentation Impact"},{"line_number":378,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":379,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"5f4e5783_f75a0c28","line":376,"in_reply_to":"7f515b1d_19f78d8d","updated":"2017-10-12 16:53:13.000000000","message":"correct, it will be just \u0027on\u0027. in case of cold upgrade, what is described here can be done. in case of rolling upgrade, first conductors are upgraded, then apis, then neutron is reconfigured to enable the notifier and the feature can be used.","commit_id":"739b44b44e98564e5276781a1350f84d0098dbdc"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a88a0a1a9dea032f70f7605e09a868e0243089b8","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Proposed change"},{"line_number":49,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"When ironic changes neutron port information during provisioning or cleaning"},{"line_number":52,"context_line":"(e.g. updates port binding) or creates a port (multitenancy integration), we"},{"line_number":53,"context_line":"put the node in the ``*WAIT`` state, and pause the deployment/cleaning"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_4367124f","line":50,"updated":"2017-10-19 17:34:13.000000000","message":"I would like to see pointers to the Neutron documentation about event notifications put into this document.","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Proposed change"},{"line_number":49,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"When ironic changes neutron port information during provisioning or cleaning"},{"line_number":52,"context_line":"(e.g. updates port binding) or creates a port (multitenancy integration), we"},{"line_number":53,"context_line":"put the node in the ``*WAIT`` state, and pause the deployment/cleaning"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_84cd90b8","line":50,"in_reply_to":"3f4b6375_4367124f","updated":"2017-11-03 17:49:31.000000000","message":"I don\u0027t see any docs about the notifiers there. The closest you can get is the notifier code referenced in [1]","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a88a0a1a9dea032f70f7605e09a868e0243089b8","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"When ironic changes neutron port information during provisioning or cleaning"},{"line_number":52,"context_line":"(e.g. updates port binding) or creates a port (multitenancy integration), we"},{"line_number":53,"context_line":"put the node in the ``*WAIT`` state, and pause the deployment/cleaning"},{"line_number":54,"context_line":"waiting for neutron notification. As several ports can be updated"},{"line_number":55,"context_line":"simultaneously, we need to put the node in the ``*WAIT`` state only after"},{"line_number":56,"context_line":"sending the requests for all of them."}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_831e2ab8","line":53,"range":{"start_line":53,"start_character":13,"end_line":53,"end_character":19},"updated":"2017-10-19 17:34:13.000000000","message":"s/in the/into a/","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a88a0a1a9dea032f70f7605e09a868e0243089b8","unresolved":false,"context_lines":[{"line_number":52,"context_line":"(e.g. updates port binding) or creates a port (multitenancy integration), we"},{"line_number":53,"context_line":"put the node in the ``*WAIT`` state, and pause the deployment/cleaning"},{"line_number":54,"context_line":"waiting for neutron notification. As several ports can be updated"},{"line_number":55,"context_line":"simultaneously, we need to put the node in the ``*WAIT`` state only after"},{"line_number":56,"context_line":"sending the requests for all of them."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The notifications are generated on neutron side, and are sent to a dedicated"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_0388fae4","line":55,"range":{"start_line":55,"start_character":40,"end_line":55,"end_character":46},"updated":"2017-10-19 17:34:13.000000000","message":"s/in the/into a/","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a88a0a1a9dea032f70f7605e09a868e0243089b8","unresolved":false,"context_lines":[{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The notifications are generated on neutron side, and are sent to a dedicated"},{"line_number":59,"context_line":"ironic API endpoint - ``/events``. An external network event contains the"},{"line_number":60,"context_line":"following fields::"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    {"},{"line_number":63,"context_line":"        \"events\": ["}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_23e776e7","line":60,"updated":"2017-10-19 17:34:13.000000000","message":"Is this a Neutron standard the \"/events\" ?","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The notifications are generated on neutron side, and are sent to a dedicated"},{"line_number":59,"context_line":"ironic API endpoint - ``/events``. An external network event contains the"},{"line_number":60,"context_line":"following fields::"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    {"},{"line_number":63,"context_line":"        \"events\": ["}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_a4ef6c1b","line":60,"in_reply_to":"3f4b6375_23e776e7","updated":"2017-11-03 17:49:31.000000000","message":"no, there is no standard","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a88a0a1a9dea032f70f7605e09a868e0243089b8","unresolved":false,"context_lines":[{"line_number":60,"context_line":"following fields::"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    {"},{"line_number":63,"context_line":"        \"events\": ["},{"line_number":64,"context_line":"            {"},{"line_number":65,"context_line":"                \"event_handler\": \"network.bind_port\""},{"line_number":66,"context_line":"                \"port_id\": \"VIF UUID\","}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_83d74aee","line":63,"updated":"2017-10-19 17:34:13.000000000","message":"Is this data structure a Neutron standard?\n\nI see this document: https://docs.openstack.org/neutron-lib/latest/contributor/callbacks.html","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":60,"context_line":"following fields::"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    {"},{"line_number":63,"context_line":"        \"events\": ["},{"line_number":64,"context_line":"            {"},{"line_number":65,"context_line":"                \"event_handler\": \"network.bind_port\""},{"line_number":66,"context_line":"                \"port_id\": \"VIF UUID\","}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_44daf877","line":63,"in_reply_to":"3f4b6375_44d62e2a","updated":"2017-11-03 17:49:31.000000000","message":"the callbacks are used by neutron components themselves, here we need http calls, we define the structure we need ourselves.","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"506a6956b02df6efb60518c3c7e6f9d9c431d240","unresolved":false,"context_lines":[{"line_number":60,"context_line":"following fields::"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    {"},{"line_number":63,"context_line":"        \"events\": ["},{"line_number":64,"context_line":"            {"},{"line_number":65,"context_line":"                \"event_handler\": \"network.bind_port\""},{"line_number":66,"context_line":"                \"port_id\": \"VIF UUID\","}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_44d62e2a","line":63,"in_reply_to":"3f4b6375_83d74aee","updated":"2017-10-27 15:32:28.000000000","message":"no this data is not standard, for example event to nova looks like: https://github.com/openstack/neutron/blob/master/neutron/notifiers/nova.py#L213\n\nevents to ironic will be generated on networking-baremetal side an old PoC is https://review.openstack.org/#/c/357780/6/networking_generic_switch/ironic_notifier.py@113","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":23375,"name":"Stenio Araujo","email":"stenioaraujo@lsd.ufcg.edu.br","username":"stenioaraujo"},"change_message_id":"312cb98f14f1afa278bec815d42e2b407ad0f954","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Event handler is an object processing the events received on the ``/events``"},{"line_number":77,"context_line":"endpoint. This spec handles the neutron notifications case, but to make it"},{"line_number":78,"context_line":"more generic, it is proposed to define the event handlers inside the related"},{"line_number":79,"context_line":"driver interface, in the interface class\u0027 ``event_handler`` field. For example,"},{"line_number":80,"context_line":"for network related events, it is going to be the following::"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":" class NeutronNetwork(common.VIFPortIDMixin,"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_24d59544","line":79,"range":{"start_line":78,"start_character":14,"end_line":79,"end_character":16},"updated":"2017-10-26 19:04:31.000000000","message":"How is the related driver interface identified? By the event_handler field in the payload sent to /event?","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Event handler is an object processing the events received on the ``/events``"},{"line_number":77,"context_line":"endpoint. This spec handles the neutron notifications case, but to make it"},{"line_number":78,"context_line":"more generic, it is proposed to define the event handlers inside the related"},{"line_number":79,"context_line":"driver interface, in the interface class\u0027 ``event_handler`` field. For example,"},{"line_number":80,"context_line":"for network related events, it is going to be the following::"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":" class NeutronNetwork(common.VIFPortIDMixin,"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_04b9a013","line":79,"range":{"start_line":78,"start_character":14,"end_line":79,"end_character":16},"in_reply_to":"3f4b6375_24d59544","updated":"2017-11-03 17:49:31.000000000","message":"event handler is shown on L65, it is \u003cinterface name\u003e.\u003caction\u003e\n\nnetwork means that we\u0027ll be calling the network interface event handler.","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"506a6956b02df6efb60518c3c7e6f9d9c431d240","unresolved":false,"context_lines":[{"line_number":122,"context_line":"         pass"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":125,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":126,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":127,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."},{"line_number":128,"context_line":"If the call is synchronous, we\u0027ll just proceed to the next one when the"},{"line_number":129,"context_line":"previous is done, otherwise we\u0027ll be triggering the state machine \u0027wait\u0027 event"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_84eb06db","line":126,"range":{"start_line":125,"start_character":17,"end_line":126,"end_character":46},"updated":"2017-10-27 15:32:28.000000000","message":"will we accept events in all nodes states or only in specific ones?","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":122,"context_line":"         pass"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":125,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":126,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":127,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."},{"line_number":128,"context_line":"If the call is synchronous, we\u0027ll just proceed to the next one when the"},{"line_number":129,"context_line":"previous is done, otherwise we\u0027ll be triggering the state machine \u0027wait\u0027 event"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_8442300e","line":126,"range":{"start_line":125,"start_character":17,"end_line":126,"end_character":46},"in_reply_to":"3f4b6375_84eb06db","updated":"2017-11-03 17:49:31.000000000","message":"here it\u0027s not about accepting but about enqueuing them. we can add new ones to the queue whenever we need","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":23375,"name":"Stenio Araujo","email":"stenioaraujo@lsd.ufcg.edu.br","username":"stenioaraujo"},"change_message_id":"312cb98f14f1afa278bec815d42e2b407ad0f954","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":125,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":126,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":127,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."},{"line_number":128,"context_line":"If the call is synchronous, we\u0027ll just proceed to the next one when the"},{"line_number":129,"context_line":"previous is done, otherwise we\u0027ll be triggering the state machine \u0027wait\u0027 event"},{"line_number":130,"context_line":"and saving the callback that will be called when the corresponding event is"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_04a739bf","line":127,"range":{"start_line":126,"start_character":57,"end_line":127,"end_character":17},"updated":"2017-10-26 19:04:31.000000000","message":"Right after saving the expected events in the node? Or will it be called when one of the expected events happen?","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":125,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":126,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":127,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."},{"line_number":128,"context_line":"If the call is synchronous, we\u0027ll just proceed to the next one when the"},{"line_number":129,"context_line":"previous is done, otherwise we\u0027ll be triggering the state machine \u0027wait\u0027 event"},{"line_number":130,"context_line":"and saving the callback that will be called when the corresponding event is"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_6474d468","line":127,"range":{"start_line":126,"start_character":57,"end_line":127,"end_character":17},"in_reply_to":"3f4b6375_04a739bf","updated":"2017-11-03 17:49:31.000000000","message":"right after. we call the method, and if it is async, start waiting. if not, we proceed to the next method. do you have a suggestion how to make this clearer? I tried to be literal here","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":23375,"name":"Stenio Araujo","email":"stenioaraujo@lsd.ufcg.edu.br","username":"stenioaraujo"},"change_message_id":"544dd47f20243a4a9d3626bb6985f6c5cebee1f9","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":125,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":126,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":127,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."},{"line_number":128,"context_line":"If the call is synchronous, we\u0027ll just proceed to the next one when the"},{"line_number":129,"context_line":"previous is done, otherwise we\u0027ll be triggering the state machine \u0027wait\u0027 event"},{"line_number":130,"context_line":"and saving the callback that will be called when the corresponding event is"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_d519b8d0","line":127,"range":{"start_line":126,"start_character":57,"end_line":127,"end_character":17},"in_reply_to":"3f4b6375_6474d468","updated":"2017-11-07 17:39:15.000000000","message":"I got confused because saving an event seemed like waiting for it, and not starting it. But I understand what you mean.  Maybe just saying that the first method is immediately called for the first waiting_for states that?","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":23375,"name":"Stenio Araujo","email":"stenioaraujo@lsd.ufcg.edu.br","username":"stenioaraujo"},"change_message_id":"312cb98f14f1afa278bec815d42e2b407ad0f954","unresolved":false,"context_lines":[{"line_number":130,"context_line":"and saving the callback that will be called when the corresponding event is"},{"line_number":131,"context_line":"done. All callbacks will be stored in a simple dictionary keyed by node UUID."},{"line_number":132,"context_line":"``driver_internal_info[\u0027waiting_for\u0027]`` is going to be a simple list of"},{"line_number":133,"context_line":"strings, each of which is going to be the corresponding driver interface and"},{"line_number":134,"context_line":"event handler\u0027s method name, so that we know which method of the event handler"},{"line_number":135,"context_line":"of a specific driver interface to trigger when an action is asynchronous and"},{"line_number":136,"context_line":"we receieve the event. If an unexpected event is received, we\u0027ll be ignoring"},{"line_number":137,"context_line":"it. Neutron does not know which method name it should include in the request"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_df81eac4","line":134,"range":{"start_line":133,"start_character":42,"end_line":134,"end_character":27},"updated":"2017-10-26 19:04:31.000000000","message":"So if different events happen for the same event_handler, we need to put `network.method` multiple times?","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":130,"context_line":"and saving the callback that will be called when the corresponding event is"},{"line_number":131,"context_line":"done. All callbacks will be stored in a simple dictionary keyed by node UUID."},{"line_number":132,"context_line":"``driver_internal_info[\u0027waiting_for\u0027]`` is going to be a simple list of"},{"line_number":133,"context_line":"strings, each of which is going to be the corresponding driver interface and"},{"line_number":134,"context_line":"event handler\u0027s method name, so that we know which method of the event handler"},{"line_number":135,"context_line":"of a specific driver interface to trigger when an action is asynchronous and"},{"line_number":136,"context_line":"we receieve the event. If an unexpected event is received, we\u0027ll be ignoring"},{"line_number":137,"context_line":"it. Neutron does not know which method name it should include in the request"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_c40a68d0","line":134,"range":{"start_line":133,"start_character":42,"end_line":134,"end_character":27},"in_reply_to":"3f4b6375_df81eac4","updated":"2017-11-03 17:49:31.000000000","message":"yes, if we have two consecutive async calls, eg network.unbind and network.bind, we put both in the queue.","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"506a6956b02df6efb60518c3c7e6f9d9c431d240","unresolved":false,"context_lines":[{"line_number":136,"context_line":"we receieve the event. If an unexpected event is received, we\u0027ll be ignoring"},{"line_number":137,"context_line":"it. Neutron does not know which method name it should include in the request"},{"line_number":138,"context_line":"body, as it only operates on the neutron entities, so knows about things such"},{"line_number":139,"context_line":"as port bound, port unbound, port deleted etc. We will be mapping the things"},{"line_number":140,"context_line":"we\u0027re waiting for to things neutron passes in via the simple dictionary::"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"  NETWORK_HANDLER_TO_EVENT_MAP \u003d {"},{"line_number":143,"context_line":"      \u0027network.unconfigure_tenant_networks\u0027: \u0027network.unbind_port\u0027,"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_c4cb3e48","line":140,"range":{"start_line":139,"start_character":47,"end_line":140,"end_character":73},"updated":"2017-10-27 15:32:28.000000000","message":"we need to look at the current provision state also to identify event handler.","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":136,"context_line":"we receieve the event. If an unexpected event is received, we\u0027ll be ignoring"},{"line_number":137,"context_line":"it. Neutron does not know which method name it should include in the request"},{"line_number":138,"context_line":"body, as it only operates on the neutron entities, so knows about things such"},{"line_number":139,"context_line":"as port bound, port unbound, port deleted etc. We will be mapping the things"},{"line_number":140,"context_line":"we\u0027re waiting for to things neutron passes in via the simple dictionary::"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"  NETWORK_HANDLER_TO_EVENT_MAP \u003d {"},{"line_number":143,"context_line":"      \u0027network.unconfigure_tenant_networks\u0027: \u0027network.unbind_port\u0027,"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_64229454","line":140,"range":{"start_line":139,"start_character":47,"end_line":140,"end_character":73},"in_reply_to":"3f4b6375_c4cb3e48","updated":"2017-11-03 17:49:31.000000000","message":"why, I don\u0027t think we care actually. if we\u0027re waiting for an event, we\u0027re processing it. we could do more validation, but i don\u0027t think it is a must-do","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":23375,"name":"Stenio Araujo","email":"stenioaraujo@lsd.ufcg.edu.br","username":"stenioaraujo"},"change_message_id":"312cb98f14f1afa278bec815d42e2b407ad0f954","unresolved":false,"context_lines":[{"line_number":149,"context_line":"  }"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"When an external network event is received, and if we\u0027re waiting for it, ironic"},{"line_number":152,"context_line":"API performs node-by-mac and port-by-mac lookup, to check that the respective"},{"line_number":153,"context_line":"node and port exist. The port status received in the request body is saved to"},{"line_number":154,"context_line":"the port\u0027s ``internal_info[\u0027network_status\u0027]``, and then"},{"line_number":155,"context_line":"``process_network_event`` is triggered. On the conductor side,"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_00b28249","line":152,"range":{"start_line":152,"start_character":13,"end_line":152,"end_character":40},"updated":"2017-10-26 19:04:31.000000000","message":"Will it support request to update MAC address on Neutron Ports? If so, how do we match the new MAC address with the Ironic Nodes/Ports?","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":149,"context_line":"  }"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"When an external network event is received, and if we\u0027re waiting for it, ironic"},{"line_number":152,"context_line":"API performs node-by-mac and port-by-mac lookup, to check that the respective"},{"line_number":153,"context_line":"node and port exist. The port status received in the request body is saved to"},{"line_number":154,"context_line":"the port\u0027s ``internal_info[\u0027network_status\u0027]``, and then"},{"line_number":155,"context_line":"``process_network_event`` is triggered. On the conductor side,"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_a4ae4c7e","line":152,"range":{"start_line":152,"start_character":13,"end_line":152,"end_character":40},"in_reply_to":"3f4b6375_00b28249","updated":"2017-11-03 17:49:31.000000000","message":"good question.\n\n1. this spec mainly concentrates on deployment things, updates of neutron objects might be a next step.\n\n2. we can add more fields to the event we send to the ironic api, eg we might add old_mac_address field. in the neutron notifier code, we know both states of an object, old and new. or, another way is, we are just passing the whole event body into event handler, and the handler will decide if the mac was updated, eg look at the ironic port mac (not updated yet) and neutron port mac. if neutron port mac is different, and we were waiting for network.mac_address_change, we are done.\n\nwe can define as many events as we like, eg this mac_address_change, as long as neutron can understand it happened. and it can by just looking at neutron port before update, and neutron port after it. if the mac differs, neutron will send mac_address_change event, ironic will proceed with ironic port update.","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":23375,"name":"Stenio Araujo","email":"stenioaraujo@lsd.ufcg.edu.br","username":"stenioaraujo"},"change_message_id":"312cb98f14f1afa278bec815d42e2b407ad0f954","unresolved":false,"context_lines":[{"line_number":159,"context_line":""},{"line_number":160,"context_line":"The event handler will be looking at the status of the ironic resources, for"},{"line_number":161,"context_line":"example, in case of network events, we want to save the neutron port status in"},{"line_number":162,"context_line":"each port or port group to ``internal_info[\u0027network_status\u0027]`` and consider an"},{"line_number":163,"context_line":"asynchronous action \"done\" only when port(group)s have the desired status. The"},{"line_number":164,"context_line":"event handler method that needs to be called on the event retrieval should be"},{"line_number":165,"context_line":"present in the event body generated by neutron. In case of desired event is"},{"line_number":166,"context_line":"\"done\", it should be removed from the ``driver_internal_info[\u0027waiting_for\u0027]``"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_d53302aa","line":163,"range":{"start_line":162,"start_character":63,"end_line":163,"end_character":73},"updated":"2017-10-26 19:04:31.000000000","message":"The same event_handler is used for different statuses. Does the event_handler method is called for every call or only when the status is done?","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":159,"context_line":""},{"line_number":160,"context_line":"The event handler will be looking at the status of the ironic resources, for"},{"line_number":161,"context_line":"example, in case of network events, we want to save the neutron port status in"},{"line_number":162,"context_line":"each port or port group to ``internal_info[\u0027network_status\u0027]`` and consider an"},{"line_number":163,"context_line":"asynchronous action \"done\" only when port(group)s have the desired status. The"},{"line_number":164,"context_line":"event handler method that needs to be called on the event retrieval should be"},{"line_number":165,"context_line":"present in the event body generated by neutron. In case of desired event is"},{"line_number":166,"context_line":"\"done\", it should be removed from the ``driver_internal_info[\u0027waiting_for\u0027]``"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_24f01c91","line":163,"range":{"start_line":162,"start_character":63,"end_line":163,"end_character":73},"in_reply_to":"3f4b6375_d53302aa","updated":"2017-11-03 17:49:31.000000000","message":"event handler is called every time corresponding event comes in. and every time it checks if everything this handler considers a requirement is met. eg for some event handler it will be enough to have one port in ACTIVE state reported by neutron, for some handler, all the ports need to be DOWN. you can write whatever you want in handler, you have access to the whole ironic DB :)","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"506a6956b02df6efb60518c3c7e6f9d9c431d240","unresolved":false,"context_lines":[{"line_number":174,"context_line":"Alternatives"},{"line_number":175,"context_line":"------------"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"* Using semaphores to pause the greenthread while waiting for events. This will"},{"line_number":178,"context_line":"  make the code clearer and simpler, with only one downside -- if the conductor"},{"line_number":179,"context_line":"  is going to be restarted, we\u0027ll loose the info about the events we wait for."},{"line_number":180,"context_line":"  This is still better than what we have now, and possibly can be worked"},{"line_number":181,"context_line":"  around."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* Use Neutron port status polling. There is an issue with that, as even if"},{"line_number":184,"context_line":"  the neutron port\u0027s status is ACTIVE, some actions might not have finished"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_045f1673","line":181,"range":{"start_line":177,"start_character":2,"end_line":181,"end_character":8},"updated":"2017-10-27 15:32:28.000000000","message":"this is what exactly is implemented on nova side","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"506a6956b02df6efb60518c3c7e6f9d9c431d240","unresolved":false,"context_lines":[{"line_number":203,"context_line":"REST API impact"},{"line_number":204,"context_line":"---------------"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"The new endpoint ``/events`` needs to be created. The default policy for this"},{"line_number":207,"context_line":"endpoint will be ``\"rule:is_admin\"``. Request body format is going to be the"},{"line_number":208,"context_line":"following::"},{"line_number":209,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_c4d57eb9","line":206,"updated":"2017-10-27 15:32:28.000000000","message":"just curious before making this thing such generic have we thought what services may use it also?\n\nmaybe cinder and bfv?\nMight be there is no need to overcomplicate this and simple alternative 1 is goud enough for us?","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":203,"context_line":"REST API impact"},{"line_number":204,"context_line":"---------------"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"The new endpoint ``/events`` needs to be created. The default policy for this"},{"line_number":207,"context_line":"endpoint will be ``\"rule:is_admin\"``. Request body format is going to be the"},{"line_number":208,"context_line":"following::"},{"line_number":209,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_a431ac5b","line":206,"in_reply_to":"3f4b6375_c4d57eb9","updated":"2017-11-03 17:49:31.000000000","message":"yes, it might be the case. i\u0027m open to discussion on that :) also if you have some custom deploy interface that uses kind of own agent, that would be sending events instead of heartbeats, some third party storage interface, etc. every interface can make use of it if needed.","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":23375,"name":"Stenio Araujo","email":"stenioaraujo@lsd.ufcg.edu.br","username":"stenioaraujo"},"change_message_id":"312cb98f14f1afa278bec815d42e2b407ad0f954","unresolved":false,"context_lines":[{"line_number":324,"context_line":"Developer impact"},{"line_number":325,"context_line":"----------------"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"Developers will be able to create the needed event handlers for whatever"},{"line_number":328,"context_line":"events they would like to use during provisioning, and add those to the driver"},{"line_number":329,"context_line":"interfaces."},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"Implementation"},{"line_number":332,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_959a2a5f","line":329,"range":{"start_line":327,"start_character":0,"end_line":329,"end_character":11},"updated":"2017-10-26 19:04:31.000000000","message":"Does that allow third-party drivers to add listeners to specific events? For example network.bind_port?","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":324,"context_line":"Developer impact"},{"line_number":325,"context_line":"----------------"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"Developers will be able to create the needed event handlers for whatever"},{"line_number":328,"context_line":"events they would like to use during provisioning, and add those to the driver"},{"line_number":329,"context_line":"interfaces."},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"Implementation"},{"line_number":332,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_c467084d","line":329,"range":{"start_line":327,"start_character":0,"end_line":329,"end_character":11},"in_reply_to":"3f4b6375_959a2a5f","updated":"2017-11-03 17:49:31.000000000","message":"I think yes, it is possible, in your custom interface, you\u0027ll just set the waiting_for field in driver_internal_info, and add the callback you need to call after the event is done.","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"07fd3d9ccb4c0b1fdae7629713ac946dd46361ef","unresolved":false,"context_lines":[{"line_number":324,"context_line":"Developer impact"},{"line_number":325,"context_line":"----------------"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"Developers will be able to create the needed event handlers for whatever"},{"line_number":328,"context_line":"events they would like to use during provisioning, and add those to the driver"},{"line_number":329,"context_line":"interfaces."},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"Implementation"},{"line_number":332,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1f485f77_9abb19c3","line":329,"range":{"start_line":327,"start_character":0,"end_line":329,"end_character":11},"in_reply_to":"3f4b6375_9be131d3","updated":"2017-11-13 18:18:49.000000000","message":"not sure, you mean you want to have a single network event handler for all network interfaces, defined in setup.cfg? or you want something more dynamic, like registering handlers per network interface in setup.cfg?\n\nWith current proposal, yes, you will need to define a custom network interface, overriding a single field, event_handler, setting it to the event handler class you want to use","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":23375,"name":"Stenio Araujo","email":"stenioaraujo@lsd.ufcg.edu.br","username":"stenioaraujo"},"change_message_id":"544dd47f20243a4a9d3626bb6985f6c5cebee1f9","unresolved":false,"context_lines":[{"line_number":324,"context_line":"Developer impact"},{"line_number":325,"context_line":"----------------"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"Developers will be able to create the needed event handlers for whatever"},{"line_number":328,"context_line":"events they would like to use during provisioning, and add those to the driver"},{"line_number":329,"context_line":"interfaces."},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"Implementation"},{"line_number":332,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_9be131d3","line":329,"range":{"start_line":327,"start_character":0,"end_line":329,"end_character":11},"in_reply_to":"3f4b6375_c467084d","updated":"2017-11-07 17:39:15.000000000","message":"I meant more like registering an object for the event network.bind_port for example. The way it is now, the third-party driver would need to create a network interface in order to be able to listen to the events. Is it correct what I said?","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"506a6956b02df6efb60518c3c7e6f9d9c431d240","unresolved":false,"context_lines":[{"line_number":368,"context_line":"  done. Existing ML2 drivers should already perform port binding. Neutron"},{"line_number":369,"context_line":"  notifier needs to be developed in the same repo."},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"* Nova driver should set ``vnic_type\u003dbaremetal`` for Ironic instances [#]_."},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"* Nova should be cleaning up only the ports owned by \"compute\" in case of the"},{"line_number":374,"context_line":"  InstanceDeployFailure [#]_."}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_e3e3d303","line":371,"range":{"start_line":371,"start_character":1,"end_line":371,"end_character":75},"updated":"2017-10-27 15:32:28.000000000","message":"we no longer require this as we update vnic_type when doing vif attach.","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"658d7de3228061ac07e028950938eefd7cb70c7f","unresolved":false,"context_lines":[{"line_number":368,"context_line":"  done. Existing ML2 drivers should already perform port binding. Neutron"},{"line_number":369,"context_line":"  notifier needs to be developed in the same repo."},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"* Nova driver should set ``vnic_type\u003dbaremetal`` for Ironic instances [#]_."},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"* Nova should be cleaning up only the ports owned by \"compute\" in case of the"},{"line_number":374,"context_line":"  InstanceDeployFailure [#]_."}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_04a52047","line":371,"range":{"start_line":371,"start_character":1,"end_line":371,"end_character":75},"in_reply_to":"3f4b6375_e3e3d303","updated":"2017-11-03 17:49:31.000000000","message":"Done","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a88a0a1a9dea032f70f7605e09a868e0243089b8","unresolved":false,"context_lines":[{"line_number":409,"context_line":"#. Notifier - https://review.openstack.org/357780"},{"line_number":410,"context_line":"#. Ironic - https://review.openstack.org/440778"},{"line_number":411,"context_line":"#. Ironic client - https://review.openstack.org/354770"},{"line_number":412,"context_line":""},{"line_number":413,"context_line":".. [#] https://github.com/openstack/neutron/blob/master/neutron/notifiers/nova.py"},{"line_number":414,"context_line":".. [#] https://github.com/openstack/ironic/blob/f16e7cdf41701159704697775c436e9b7ffc0013/ironic/conductor/manager.py#L1458-L1479"},{"line_number":415,"context_line":".. [#] https://bugs.launchpad.net/neutron/+bug/1599836"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_e3cb9e50","line":412,"updated":"2017-10-19 17:34:13.000000000","message":"Should there be a link and reference to:\n\nhttps://docs.openstack.org/neutron-lib/latest/contributor/callbacks.html","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"506a6956b02df6efb60518c3c7e6f9d9c431d240","unresolved":false,"context_lines":[{"line_number":409,"context_line":"#. Notifier - https://review.openstack.org/357780"},{"line_number":410,"context_line":"#. Ironic - https://review.openstack.org/440778"},{"line_number":411,"context_line":"#. Ironic client - https://review.openstack.org/354770"},{"line_number":412,"context_line":""},{"line_number":413,"context_line":".. [#] https://github.com/openstack/neutron/blob/master/neutron/notifiers/nova.py"},{"line_number":414,"context_line":".. [#] https://github.com/openstack/ironic/blob/f16e7cdf41701159704697775c436e9b7ffc0013/ironic/conductor/manager.py#L1458-L1479"},{"line_number":415,"context_line":".. [#] https://bugs.launchpad.net/neutron/+bug/1599836"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3f4b6375_63d7e34c","line":412,"in_reply_to":"3f4b6375_e3cb9e50","updated":"2017-10-27 15:32:28.000000000","message":"this is neutron internal events, we will not use them.","commit_id":"a159ab2fb0bfad31e189cf1e64539fc0a3ffd933"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"3ba6a50d675eb75d402c14c71baf8eeed77aea77","unresolved":false,"context_lines":[{"line_number":55,"context_line":"simultaneously, we need to put the node into a ``*WAIT`` state only after"},{"line_number":56,"context_line":"sending the requests for all of them."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The notifications are generated on neutron side, and are sent to a dedicated"},{"line_number":59,"context_line":"ironic API endpoint - ``/events``. An external network event will contain"},{"line_number":60,"context_line":"the following fields::"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"1f485f77_9cfbd477","line":58,"updated":"2017-11-15 17:42:12.000000000","message":"I\u0027m still unclear on this. How are we asking Neutron to do this? Do we need to write a plug-in for Neutron? Is it just a call to Neutron to tell it to do it?","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":55,"context_line":"simultaneously, we need to put the node into a ``*WAIT`` state only after"},{"line_number":56,"context_line":"sending the requests for all of them."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The notifications are generated on neutron side, and are sent to a dedicated"},{"line_number":59,"context_line":"ironic API endpoint - ``/events``. An external network event will contain"},{"line_number":60,"context_line":"the following fields::"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_5b2544c1","line":58,"in_reply_to":"1f485f77_9cfbd477","updated":"2017-12-06 23:19:17.000000000","message":"There is an internal framework for generating events in neutron itself, we don\u0027t have to do anything there. What is roughly happening on neutron side:\n\n1. neutron sees that port is updated.\n2. it triggers a method on_port_update in each notifier it has enabled in neutron conf.\n3. notifier does what it needs to.\n\nIt is that simple","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"9357270de25041bd9bbd9052e0731639e4f1b951","unresolved":false,"context_lines":[{"line_number":55,"context_line":"simultaneously, we need to put the node into a ``*WAIT`` state only after"},{"line_number":56,"context_line":"sending the requests for all of them."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The notifications are generated on neutron side, and are sent to a dedicated"},{"line_number":59,"context_line":"ironic API endpoint - ``/events``. An external network event will contain"},{"line_number":60,"context_line":"the following fields::"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_58cfee56","line":58,"in_reply_to":"df87a7cf_5b2544c1","updated":"2017-12-13 14:57:32.000000000","message":"I think it is worth adding this to the spec, or providing a link to documentation that describes that support in neutron.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":62,"context_line":"    {"},{"line_number":63,"context_line":"        \"events\": ["},{"line_number":64,"context_line":"            {"},{"line_number":65,"context_line":"                \"event_handler\": \"network.bind_port\""},{"line_number":66,"context_line":"                \"port_id\": \"VIF UUID\","},{"line_number":67,"context_line":"                \"mac_address\": \"VIF MAC address\","},{"line_number":68,"context_line":"                \"status\": \"VIF port status\","}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_a53a4f95","line":65,"updated":"2017-11-22 18:31:57.000000000","message":"maybe we should change this to s/event_handler/event/ because if I understand it, \u0027network.bind_port\u0027 is NOT the event handler in the ironic code.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":62,"context_line":"    {"},{"line_number":63,"context_line":"        \"events\": ["},{"line_number":64,"context_line":"            {"},{"line_number":65,"context_line":"                \"event_handler\": \"network.bind_port\""},{"line_number":66,"context_line":"                \"port_id\": \"VIF UUID\","},{"line_number":67,"context_line":"                \"mac_address\": \"VIF MAC address\","},{"line_number":68,"context_line":"                \"status\": \"VIF port status\","}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_db1ab47b","line":65,"in_reply_to":"ff82abbf_a53a4f95","updated":"2017-12-06 23:19:17.000000000","message":"Hrm, might be, yeah. It is an event that allows us to determine which handler to use.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":125,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":126,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":127,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."},{"line_number":128,"context_line":"If the call is synchronous, we\u0027ll just proceed to the next one when the"},{"line_number":129,"context_line":"previous is done, otherwise we\u0027ll be triggering the state machine \u0027wait\u0027 event"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_4fa5a403","line":126,"updated":"2017-11-22 18:31:57.000000000","message":"hmm, i\u0027m willing to wait to comment in the code patch. it seems to me that the network interface would be saving the events to this, cuz not all network interfaces will support this, so the conductor can\u0027t know?","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"9357270de25041bd9bbd9052e0731639e4f1b951","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":125,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":126,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":127,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."},{"line_number":128,"context_line":"If the call is synchronous, we\u0027ll just proceed to the next one when the"},{"line_number":129,"context_line":"previous is done, otherwise we\u0027ll be triggering the state machine \u0027wait\u0027 event"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_7b0e6c33","line":126,"in_reply_to":"df87a7cf_1b081c2a","updated":"2017-12-13 14:57:32.000000000","message":"you could add a link, eg @L125, \u0027e.g., do_node_deploy() \u003chttps:...\u003e`_","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":125,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"},{"line_number":126,"context_line":"node\u0027s ``driver_internal_info[\u0027waiting_for\u0027]`` field and calling the network"},{"line_number":127,"context_line":"interface methods (this will be moved to conductor from the deploy interface)."},{"line_number":128,"context_line":"If the call is synchronous, we\u0027ll just proceed to the next one when the"},{"line_number":129,"context_line":"previous is done, otherwise we\u0027ll be triggering the state machine \u0027wait\u0027 event"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_1b081c2a","line":126,"in_reply_to":"ff82abbf_4fa5a403","updated":"2017-12-06 23:19:17.000000000","message":"The code is in the references section. Should I highlight this somehow? Like in the very beginning say: \"Hey, code is here: ...\"?","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":134,"context_line":"event handler\u0027s method name, so that we know which method of the event handler"},{"line_number":135,"context_line":"of a specific driver interface to trigger when an action is asynchronous and"},{"line_number":136,"context_line":"we receieve the event. If an unexpected event is received, we\u0027ll be ignoring"},{"line_number":137,"context_line":"it."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"Third-party driver interface methods can be also adding things they want to"},{"line_number":140,"context_line":"wait for into the ``driver_internal_info[\u0027waiting_for\u0027]``, along with a"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_52ea2b75","line":137,"updated":"2017-11-22 18:31:57.000000000","message":"I\u0027m not sure we should be ignoring it. Shouldn\u0027t we return some Http status code, eg 400?","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"9357270de25041bd9bbd9052e0731639e4f1b951","unresolved":false,"context_lines":[{"line_number":134,"context_line":"event handler\u0027s method name, so that we know which method of the event handler"},{"line_number":135,"context_line":"of a specific driver interface to trigger when an action is asynchronous and"},{"line_number":136,"context_line":"we receieve the event. If an unexpected event is received, we\u0027ll be ignoring"},{"line_number":137,"context_line":"it."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"Third-party driver interface methods can be also adding things they want to"},{"line_number":140,"context_line":"wait for into the ``driver_internal_info[\u0027waiting_for\u0027]``, along with a"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_7baaecd2","line":137,"in_reply_to":"df87a7cf_765b7f53","updated":"2017-12-13 14:57:32.000000000","message":"At the very least, we should log it. These notifications are via the new endpoint, right? If the processing of the notification is sync (I\u0027ve already forgotten the details and am too lazy to reread this spec in detail), then we should return the appropriate HTTP status code. It is up to the sender of the API request/notification to do whatever it wants with the response.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":134,"context_line":"event handler\u0027s method name, so that we know which method of the event handler"},{"line_number":135,"context_line":"of a specific driver interface to trigger when an action is asynchronous and"},{"line_number":136,"context_line":"we receieve the event. If an unexpected event is received, we\u0027ll be ignoring"},{"line_number":137,"context_line":"it."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"Third-party driver interface methods can be also adding things they want to"},{"line_number":140,"context_line":"wait for into the ``driver_internal_info[\u0027waiting_for\u0027]``, along with a"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_765b7f53","line":137,"in_reply_to":"ff82abbf_52ea2b75","updated":"2017-12-06 23:19:17.000000000","message":"We could, yeah, tho in case of neutron notifier, but I\u0027m not sure what should be done by neutron notifier in this case. We receive the error that this event is unexpected, and notifier still will not do anything about it, as it just sends the notifications about events happeining in neutron, it does not care about anything else.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"3ba6a50d675eb75d402c14c71baf8eeed77aea77","unresolved":false,"context_lines":[{"line_number":136,"context_line":"we receieve the event. If an unexpected event is received, we\u0027ll be ignoring"},{"line_number":137,"context_line":"it."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"Third-party driver interface methods can be also adding things they want to"},{"line_number":140,"context_line":"wait for into the ``driver_internal_info[\u0027waiting_for\u0027]``, along with a"},{"line_number":141,"context_line":"callback saved into global per-node ``CALLBACKS`` dictionary, along with the"},{"line_number":142,"context_line":"arguments with which it should be called. This will allow to wait for custom"}],"source_content_type":"text/x-rst","patch_set":10,"id":"1f485f77_fcc408f7","line":139,"updated":"2017-11-15 17:42:12.000000000","message":"This is a bit confusing to me.\n\nThird-party driver interface methods can also add things they want to wait for by doing the following:\n\n * Add something into the ``driver_inter_info[\u0027waiting_for\u0027]`` variable.\n * Something into CALLBACKS\n * something else...","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":140,"context_line":"wait for into the ``driver_internal_info[\u0027waiting_for\u0027]``, along with a"},{"line_number":141,"context_line":"callback saved into global per-node ``CALLBACKS`` dictionary, along with the"},{"line_number":142,"context_line":"arguments with which it should be called. This will allow to wait for custom"},{"line_number":143,"context_line":"events registered in custom driver interfaces."},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"Neutron does not know which method name it should include in the request"},{"line_number":146,"context_line":"body, as it only operates on the neutron entities, so knows about things such"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_a587af61","line":143,"updated":"2017-11-22 18:31:57.000000000","message":"OH...\n\nnow i am thinking that it might be easier if the info we save in the \u0027waiting_for\u0027 include 1. the name of event handler  \u0026 2. the event; and the event handler is called with all the stuff from the request, for the handler to deal with.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":140,"context_line":"wait for into the ``driver_internal_info[\u0027waiting_for\u0027]``, along with a"},{"line_number":141,"context_line":"callback saved into global per-node ``CALLBACKS`` dictionary, along with the"},{"line_number":142,"context_line":"arguments with which it should be called. This will allow to wait for custom"},{"line_number":143,"context_line":"events registered in custom driver interfaces."},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"Neutron does not know which method name it should include in the request"},{"line_number":146,"context_line":"body, as it only operates on the neutron entities, so knows about things such"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_11e79d42","line":143,"in_reply_to":"ff82abbf_a587af61","updated":"2017-12-06 23:19:17.000000000","message":"the handler will need things like task, which should not be serialzied inside of DB :) We can instantiate a new task OTOH. But it will narrow a list of possible info to be used in the handler, to only task and what is present in the event body. Maybe it\u0027s fine, will need to think about this.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"3ba6a50d675eb75d402c14c71baf8eeed77aea77","unresolved":false,"context_lines":[{"line_number":143,"context_line":"events registered in custom driver interfaces."},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"Neutron does not know which method name it should include in the request"},{"line_number":146,"context_line":"body, as it only operates on the neutron entities, so knows about things such"},{"line_number":147,"context_line":"as port bound, port unbound, port deleted etc. We will be mapping the things"},{"line_number":148,"context_line":"we\u0027re waiting for to things neutron passes in via the simple dictionary::"},{"line_number":149,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"1f485f77_7c201849","line":146,"range":{"start_line":146,"start_character":51,"end_line":146,"end_character":59},"updated":"2017-11-15 17:42:12.000000000","message":"s/so knows/it knows/\n\nI\u0027m assuming that \u0027neturon\u0027 is what knows about these things.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":143,"context_line":"events registered in custom driver interfaces."},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"Neutron does not know which method name it should include in the request"},{"line_number":146,"context_line":"body, as it only operates on the neutron entities, so knows about things such"},{"line_number":147,"context_line":"as port bound, port unbound, port deleted etc. We will be mapping the things"},{"line_number":148,"context_line":"we\u0027re waiting for to things neutron passes in via the simple dictionary::"},{"line_number":149,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_76205fb1","line":146,"range":{"start_line":146,"start_character":51,"end_line":146,"end_character":59},"in_reply_to":"1f485f77_7c201849","updated":"2017-12-06 23:19:17.000000000","message":"Done","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":147,"context_line":"as port bound, port unbound, port deleted etc. We will be mapping the things"},{"line_number":148,"context_line":"we\u0027re waiting for to things neutron passes in via the simple dictionary::"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"  NETWORK_HANDLER_TO_EVENT_MAP \u003d {"},{"line_number":151,"context_line":"      \u0027network.unconfigure_tenant_networks\u0027: \u0027network.unbind_port\u0027,"},{"line_number":152,"context_line":"      \u0027network.configure_tenant_networks\u0027: \u0027network.bind_port\u0027,"},{"line_number":153,"context_line":"      \u0027network.add_provisioning_network\u0027: \u0027network.bind_port\u0027,"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_a5ec8f29","line":150,"updated":"2017-11-22 18:31:57.000000000","message":"ok, we\u0027re in trouble here. You\u0027re using \u0027event handler\u0027 to mean two different things:\n1. the ironic interface method to call\n2. the field \u0027event_handler\u0027 in the /events\u0027 request body\u0027s \u0027events\u0027 entry. And you refer to this as \u0027event\u0027 here.\n\nMaybe we should change \u0027event_handler\u0027 to \u0027event\u0027?","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":147,"context_line":"as port bound, port unbound, port deleted etc. We will be mapping the things"},{"line_number":148,"context_line":"we\u0027re waiting for to things neutron passes in via the simple dictionary::"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"  NETWORK_HANDLER_TO_EVENT_MAP \u003d {"},{"line_number":151,"context_line":"      \u0027network.unconfigure_tenant_networks\u0027: \u0027network.unbind_port\u0027,"},{"line_number":152,"context_line":"      \u0027network.configure_tenant_networks\u0027: \u0027network.bind_port\u0027,"},{"line_number":153,"context_line":"      \u0027network.add_provisioning_network\u0027: \u0027network.bind_port\u0027,"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_b6bb4770","line":150,"in_reply_to":"ff82abbf_a5ec8f29","updated":"2017-12-06 23:19:17.000000000","message":"++","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":148,"context_line":"we\u0027re waiting for to things neutron passes in via the simple dictionary::"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"  NETWORK_HANDLER_TO_EVENT_MAP \u003d {"},{"line_number":151,"context_line":"      \u0027network.unconfigure_tenant_networks\u0027: \u0027network.unbind_port\u0027,"},{"line_number":152,"context_line":"      \u0027network.configure_tenant_networks\u0027: \u0027network.bind_port\u0027,"},{"line_number":153,"context_line":"      \u0027network.add_provisioning_network\u0027: \u0027network.bind_port\u0027,"},{"line_number":154,"context_line":"      \u0027network.remove_provisioning_network\u0027: \u0027network.delete_port\u0027,"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_9231930e","line":151,"updated":"2017-11-22 18:31:57.000000000","message":"i suppose we can figure this out later, but if the event request\u0027s \u0027event_handler\u0027 contains the event, I\u0027d think we want to map the event to the handler, not the handler to the event. But maybe you\u0027re using this for something else too.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":148,"context_line":"we\u0027re waiting for to things neutron passes in via the simple dictionary::"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"  NETWORK_HANDLER_TO_EVENT_MAP \u003d {"},{"line_number":151,"context_line":"      \u0027network.unconfigure_tenant_networks\u0027: \u0027network.unbind_port\u0027,"},{"line_number":152,"context_line":"      \u0027network.configure_tenant_networks\u0027: \u0027network.bind_port\u0027,"},{"line_number":153,"context_line":"      \u0027network.add_provisioning_network\u0027: \u0027network.bind_port\u0027,"},{"line_number":154,"context_line":"      \u0027network.remove_provisioning_network\u0027: \u0027network.delete_port\u0027,"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_36a73752","line":151,"in_reply_to":"ff82abbf_9231930e","updated":"2017-12-06 23:19:17.000000000","message":"This is more of implementation detail, provided it just for clarity about what I\u0027m talking about.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":177,"context_line":""},{"line_number":178,"context_line":"To ensure that we don\u0027t wait for events forever, the usual ``*WAIT`` states"},{"line_number":179,"context_line":"timeout periodic tasks will be used. A new one will be added for the new"},{"line_number":180,"context_line":"``DELETE WAIT`` state. An example of such periodic task is at [#]_."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"Alternatives"},{"line_number":183,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_72e08ffb","line":180,"updated":"2017-11-22 18:31:57.000000000","message":"i wonder if we should have a periodic task for events only (vs node state) because the timeouts might be significantly diff, but i guess we can add this in later if we decide it is needed.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":177,"context_line":""},{"line_number":178,"context_line":"To ensure that we don\u0027t wait for events forever, the usual ``*WAIT`` states"},{"line_number":179,"context_line":"timeout periodic tasks will be used. A new one will be added for the new"},{"line_number":180,"context_line":"``DELETE WAIT`` state. An example of such periodic task is at [#]_."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"Alternatives"},{"line_number":183,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_f68d4f31","line":180,"in_reply_to":"ff82abbf_72e08ffb","updated":"2017-12-06 23:19:17.000000000","message":"Yeah it is possible to add separate periodics for event waiting.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":186,"context_line":"  make the code clearer and simpler, with only one downside -- if the conductor"},{"line_number":187,"context_line":"  is going to be restarted, we\u0027ll loose the info about the events we wait for."},{"line_number":188,"context_line":"  This is still better than what we have now, and possibly can be worked"},{"line_number":189,"context_line":"  around."},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"* Use Neutron port status polling. There is an issue with that, as even if"},{"line_number":192,"context_line":"  the neutron port\u0027s status is ACTIVE, some actions might not have finished"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_72b96fe7","line":189,"updated":"2017-11-22 18:31:57.000000000","message":"conductor also goes down in rolling upgrade. this events stuff is the way to go.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":186,"context_line":"  make the code clearer and simpler, with only one downside -- if the conductor"},{"line_number":187,"context_line":"  is going to be restarted, we\u0027ll loose the info about the events we wait for."},{"line_number":188,"context_line":"  This is still better than what we have now, and possibly can be worked"},{"line_number":189,"context_line":"  around."},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"* Use Neutron port status polling. There is an issue with that, as even if"},{"line_number":192,"context_line":"  the neutron port\u0027s status is ACTIVE, some actions might not have finished"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_56951b3f","line":189,"in_reply_to":"ff82abbf_72b96fe7","updated":"2017-12-06 23:19:17.000000000","message":"hrm, yeah, I did not think about this, agreed","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":211,"context_line":"REST API impact"},{"line_number":212,"context_line":"---------------"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"The new endpoint ``/events`` needs to be created. The default policy for this"},{"line_number":215,"context_line":"endpoint will be ``\"rule:is_admin\"``. Request body format is going to be the"},{"line_number":216,"context_line":"following::"},{"line_number":217,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_cf5454cd","line":214,"updated":"2017-11-22 18:31:57.000000000","message":"POST?","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":211,"context_line":"REST API impact"},{"line_number":212,"context_line":"---------------"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"The new endpoint ``/events`` needs to be created. The default policy for this"},{"line_number":215,"context_line":"endpoint will be ``\"rule:is_admin\"``. Request body format is going to be the"},{"line_number":216,"context_line":"following::"},{"line_number":217,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_96b643fa","line":214,"in_reply_to":"ff82abbf_cf5454cd","updated":"2017-12-06 23:19:17.000000000","message":"yup, sigh","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":241,"context_line":"  handler that will be called."},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"If the event handling fails, ``fail`` state machine event is triggered by the"},{"line_number":244,"context_line":"conductor."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"The normal response code to the request on this endpoint is 200 (OK), the error"},{"line_number":247,"context_line":"codes are:"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_2f1dc00e","line":244,"updated":"2017-11-22 18:31:57.000000000","message":"I guess it depends on the reason for failing. E.g, if we can\u0027t map the event to any node. You handle it below in the http status code, so maybe just delete this -- or mention it above, eg where you describe the BaseNetworkEventHandler? Or where you describe what the conductor does.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":241,"context_line":"  handler that will be called."},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"If the event handling fails, ``fail`` state machine event is triggered by the"},{"line_number":244,"context_line":"conductor."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"The normal response code to the request on this endpoint is 200 (OK), the error"},{"line_number":247,"context_line":"codes are:"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_b6e027fc","line":244,"in_reply_to":"ff82abbf_2f1dc00e","updated":"2017-12-06 23:19:17.000000000","message":"Yeah if we can\u0027t map an event to any node it just gets ignored. Here I mean the actual failure, like the neutron port returning ERROR in neutron port status.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":276,"context_line":"``\"event_handler\"`` in the event. If we received the desired event for all"},{"line_number":277,"context_line":"port(group)s we need, we trigger ``continue`` event on the state machine, and"},{"line_number":278,"context_line":"the callback that was saved into the per-node ``CALLBACKS`` dictionary prior"},{"line_number":279,"context_line":"to triggering the state machine\u0027s \u0027wait\u0027 is called."},{"line_number":280,"context_line":""},{"line_number":281,"context_line":"Driver API impact"},{"line_number":282,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_8f4c0c9f","line":279,"updated":"2017-11-22 18:31:57.000000000","message":"I\u0027m guessing (hoping) that all this is NOT being done in the new ConductorAPI.process_event() (in rpcapi.py). Maybe you mean on the conductor side?\n\nHmm. so this is interesting. Remind me if I forget -- we need to make sure this works wrt rolling upgrade. ie. the conductor/interfaces cannot start using this new event handler stuff until *after* the rolling upgrade is done (ie, unpinned services). Otherwise, nodes will be waiting but ironic-api service won\u0027t forward the /events requests.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":276,"context_line":"``\"event_handler\"`` in the event. If we received the desired event for all"},{"line_number":277,"context_line":"port(group)s we need, we trigger ``continue`` event on the state machine, and"},{"line_number":278,"context_line":"the callback that was saved into the per-node ``CALLBACKS`` dictionary prior"},{"line_number":279,"context_line":"to triggering the state machine\u0027s \u0027wait\u0027 is called."},{"line_number":280,"context_line":""},{"line_number":281,"context_line":"Driver API impact"},{"line_number":282,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_b62b472e","line":279,"in_reply_to":"ff82abbf_8f4c0c9f","updated":"2017-12-06 23:19:17.000000000","message":"Correct, this is done in conductor of course","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":305,"context_line":"Other end user impact"},{"line_number":306,"context_line":"---------------------"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"The neutron notifier needs to be configured. It needs the admin credentials and"},{"line_number":309,"context_line":"the ironic API address to send events to."},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"Scalability impact"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_2f2060b0","line":308,"updated":"2017-11-22 18:31:57.000000000","message":"apologies that i don\u0027t know neutron. which neutron configs are these? do they already exist, or are there changes to neutron that need to be done to support this?","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"9357270de25041bd9bbd9052e0731639e4f1b951","unresolved":false,"context_lines":[{"line_number":305,"context_line":"Other end user impact"},{"line_number":306,"context_line":"---------------------"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"The neutron notifier needs to be configured. It needs the admin credentials and"},{"line_number":309,"context_line":"the ironic API address to send events to."},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"Scalability impact"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_d8777e08","line":308,"in_reply_to":"df87a7cf_76461f24","updated":"2017-12-13 14:57:32.000000000","message":"All this is on the neutron side then? Someone will need to update the neutron configs to include admin credentials, ironic API address to send events to?\n\nWhich neutron config options? Or put a link to some documentation about it.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":305,"context_line":"Other end user impact"},{"line_number":306,"context_line":"---------------------"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"The neutron notifier needs to be configured. It needs the admin credentials and"},{"line_number":309,"context_line":"the ironic API address to send events to."},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"Scalability impact"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_76461f24","line":308,"in_reply_to":"ff82abbf_2f2060b0","updated":"2017-12-06 23:19:17.000000000","message":"nah, the plugin will just read the options from neutron.conf. The enablement of the notifier is just a matter of adding it to a list of enabled notifiers.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":317,"context_line":"------------------"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"The node provisioning and unprovisioning may take some additional time when"},{"line_number":320,"context_line":"we\u0027ll be waiting for the external events."},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"Other deployer impact"},{"line_number":323,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_d21cfb6b","line":320,"updated":"2017-11-22 18:31:57.000000000","message":"don\u0027t we have sleeps now? or maybe for only some things?","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":317,"context_line":"------------------"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"The node provisioning and unprovisioning may take some additional time when"},{"line_number":320,"context_line":"we\u0027ll be waiting for the external events."},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"Other deployer impact"},{"line_number":323,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_d637ebaf","line":320,"in_reply_to":"ff82abbf_d21cfb6b","updated":"2017-12-06 23:19:17.000000000","message":"We only had one IIRC, but it was only for ssh drivers if I\u0027m not mistaken. So at the moment, I think we don\u0027t have any sleeps, at least not in the service itself, just in devstack plugin","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":333,"context_line":"----------------"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"Developers will be able to create the needed event handlers for whatever"},{"line_number":336,"context_line":"events they would like to use during provisioning, and add those to the driver"},{"line_number":337,"context_line":"interfaces."},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_924d1374","line":336,"updated":"2017-11-22 18:31:57.000000000","message":"so this generic event handler can be used for other things besides during provisioning (just thinking about it, it is ok to leave what you have there)","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":333,"context_line":"----------------"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"Developers will be able to create the needed event handlers for whatever"},{"line_number":336,"context_line":"events they would like to use during provisioning, and add those to the driver"},{"line_number":337,"context_line":"interfaces."},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_d6d28b5c","line":336,"in_reply_to":"ff82abbf_924d1374","updated":"2017-12-06 23:19:17.000000000","message":"exactly","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":352,"context_line":"----------"},{"line_number":353,"context_line":""},{"line_number":354,"context_line":"#. Move all the network interface methods\u0027 calls from the deploy interface to"},{"line_number":355,"context_line":"   the conductor."},{"line_number":356,"context_line":""},{"line_number":357,"context_line":"#. Add the event handlers to neutron and flat network interfaces."},{"line_number":358,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_725acf2a","line":355,"updated":"2017-11-22 18:31:57.000000000","message":"out-of-tree drivers will have to do this too, or do/will we still support those?","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":352,"context_line":"----------"},{"line_number":353,"context_line":""},{"line_number":354,"context_line":"#. Move all the network interface methods\u0027 calls from the deploy interface to"},{"line_number":355,"context_line":"   the conductor."},{"line_number":356,"context_line":""},{"line_number":357,"context_line":"#. Add the event handlers to neutron and flat network interfaces."},{"line_number":358,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_56dd1b6e","line":355,"in_reply_to":"ff82abbf_725acf2a","updated":"2017-12-06 23:19:17.000000000","message":"If they do call deploy interfaces inside, and some async works happens there, driver maintainers will have to add the logic to handle the events themselves. If they will not do so, their driver will just continue to work as it does now.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":368,"context_line":""},{"line_number":369,"context_line":"* Ironic should be switched to using networking-baremetal plugin in the gate."},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"* To fix the issue with neutron ports that remain in DOWN state, an ML2 driver"},{"line_number":372,"context_line":"  that will perform \"fake\" port binding in the flat network needs to be"},{"line_number":373,"context_line":"  developed ([#]_ and [#]_). It is an ironic pre-requirement that hardware"},{"line_number":374,"context_line":"  server is already plugged to network. For multitenant case nothing to be"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_f28c9f80","line":371,"updated":"2017-11-22 18:31:57.000000000","message":"s/state/state [#]_/ because the link is to the neutron bug.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":370,"context_line":""},{"line_number":371,"context_line":"* To fix the issue with neutron ports that remain in DOWN state, an ML2 driver"},{"line_number":372,"context_line":"  that will perform \"fake\" port binding in the flat network needs to be"},{"line_number":373,"context_line":"  developed ([#]_ and [#]_). It is an ironic pre-requirement that hardware"},{"line_number":374,"context_line":"  server is already plugged to network. For multitenant case nothing to be"},{"line_number":375,"context_line":"  done. Existing ML2 drivers should already perform port binding. Neutron"},{"line_number":376,"context_line":"  notifier needs to be developed in the same repo."}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_52f30b0b","line":373,"updated":"2017-11-22 18:31:57.000000000","message":"so the code patch has been abandoned :-( Does this bullet need to be updated?","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":370,"context_line":""},{"line_number":371,"context_line":"* To fix the issue with neutron ports that remain in DOWN state, an ML2 driver"},{"line_number":372,"context_line":"  that will perform \"fake\" port binding in the flat network needs to be"},{"line_number":373,"context_line":"  developed ([#]_ and [#]_). It is an ironic pre-requirement that hardware"},{"line_number":374,"context_line":"  server is already plugged to network. For multitenant case nothing to be"},{"line_number":375,"context_line":"  done. Existing ML2 drivers should already perform port binding. Neutron"},{"line_number":376,"context_line":"  notifier needs to be developed in the same repo."}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_f6878f60","line":373,"in_reply_to":"ff82abbf_52f30b0b","updated":"2017-12-06 23:19:17.000000000","message":"Yeah, I need to check all the links.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":373,"context_line":"  developed ([#]_ and [#]_). It is an ironic pre-requirement that hardware"},{"line_number":374,"context_line":"  server is already plugged to network. For multitenant case nothing to be"},{"line_number":375,"context_line":"  done. Existing ML2 drivers should already perform port binding. Neutron"},{"line_number":376,"context_line":"  notifier needs to be developed in the same repo."},{"line_number":377,"context_line":""},{"line_number":378,"context_line":"* Nova should be cleaning up only the ports owned by \"compute\" in case of the"},{"line_number":379,"context_line":"  InstanceDeployFailure [#]_."}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_32d8c77d","line":376,"updated":"2017-11-22 18:31:57.000000000","message":"by \u0027the same repo\u0027, you mean neutron repo? i think you mean networking-generic-switch? Looks like you have code for this: https://review.openstack.org/357780","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":373,"context_line":"  developed ([#]_ and [#]_). It is an ironic pre-requirement that hardware"},{"line_number":374,"context_line":"  server is already plugged to network. For multitenant case nothing to be"},{"line_number":375,"context_line":"  done. Existing ML2 drivers should already perform port binding. Neutron"},{"line_number":376,"context_line":"  notifier needs to be developed in the same repo."},{"line_number":377,"context_line":""},{"line_number":378,"context_line":"* Nova should be cleaning up only the ports owned by \"compute\" in case of the"},{"line_number":379,"context_line":"  InstanceDeployFailure [#]_."}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_368df77a","line":376,"in_reply_to":"ff82abbf_32d8c77d","updated":"2017-12-06 23:19:17.000000000","message":"The repo for that fake ML2 driver. Currently this driver resides in networking-baremetal, so the notifier will be there as well. Will clarify","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":376,"context_line":"  notifier needs to be developed in the same repo."},{"line_number":377,"context_line":""},{"line_number":378,"context_line":"* Nova should be cleaning up only the ports owned by \"compute\" in case of the"},{"line_number":379,"context_line":"  InstanceDeployFailure [#]_."},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"Testing"},{"line_number":382,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_b265b747","line":379,"updated":"2017-11-22 18:31:57.000000000","message":"this too has been abandoned :-(","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":376,"context_line":"  notifier needs to be developed in the same repo."},{"line_number":377,"context_line":""},{"line_number":378,"context_line":"* Nova should be cleaning up only the ports owned by \"compute\" in case of the"},{"line_number":379,"context_line":"  InstanceDeployFailure [#]_."},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"Testing"},{"line_number":382,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_7637ffe4","line":379,"in_reply_to":"ff82abbf_b265b747","updated":"2017-12-06 23:19:17.000000000","message":"Yes, I did not push on this patch, because right now it does not really matter who does the cleanup.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":389,"context_line":"This does not affect the usual upgrade procedure. To make use of events, both"},{"line_number":390,"context_line":"API and conductor need to be upgraded. During upgrade, the ironic notifier"},{"line_number":391,"context_line":"needs to be configured in neutron. There is going to be no need to enable this"},{"line_number":392,"context_line":"feature, it will be enabled by default."},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"In case of rolling upgrade, ironic conductors are upgraded first, then ironic"},{"line_number":395,"context_line":"APIs, then neutron is reconfigured to enable the notifier."}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_52846b0c","line":392,"updated":"2017-11-22 18:31:57.000000000","message":"so by default, this is enabled in ironic. Is there a way to disable it then?","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":389,"context_line":"This does not affect the usual upgrade procedure. To make use of events, both"},{"line_number":390,"context_line":"API and conductor need to be upgraded. During upgrade, the ironic notifier"},{"line_number":391,"context_line":"needs to be configured in neutron. There is going to be no need to enable this"},{"line_number":392,"context_line":"feature, it will be enabled by default."},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"In case of rolling upgrade, ironic conductors are upgraded first, then ironic"},{"line_number":395,"context_line":"APIs, then neutron is reconfigured to enable the notifier."}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_164b1359","line":392,"in_reply_to":"ff82abbf_52846b0c","updated":"2017-12-06 23:19:17.000000000","message":"As of current WIP pathces, no, there is not.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":398,"context_line":"enabling notifier in neutron becomes obligatory, otherwise an operator will"},{"line_number":399,"context_line":"have to send the notifications to ironic API manually, or the deployment will"},{"line_number":400,"context_line":"be failing by timeout as no network event is going to be received. This bit"},{"line_number":401,"context_line":"might need to be revisisted during review :)"},{"line_number":402,"context_line":""},{"line_number":403,"context_line":"Documentation Impact"},{"line_number":404,"context_line":"\u003d\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":10,"id":"ff82abbf_329e8754","line":401,"updated":"2017-11-22 18:31:57.000000000","message":"ouch. i think we may need something to disable the event stuff.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":398,"context_line":"enabling notifier in neutron becomes obligatory, otherwise an operator will"},{"line_number":399,"context_line":"have to send the notifications to ironic API manually, or the deployment will"},{"line_number":400,"context_line":"be failing by timeout as no network event is going to be received. This bit"},{"line_number":401,"context_line":"might need to be revisisted during review :)"},{"line_number":402,"context_line":""},{"line_number":403,"context_line":"Documentation Impact"},{"line_number":404,"context_line":"\u003d\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":10,"id":"df87a7cf_763cdfbe","line":401,"in_reply_to":"ff82abbf_329e8754","updated":"2017-12-06 23:19:17.000000000","message":"This will bring some additional complexity into code, and basicalyy it will allow people to say \"I don\u0027t care about security, and don\u0027t care about whether tenant ports are actually plugged into tenant network\". I\u0027d prefer to solve it in upgrade script rather than providing such switch. But other thoughts on that are welcome, I can add this if needed.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":399,"context_line":"have to send the notifications to ironic API manually, or the deployment will"},{"line_number":400,"context_line":"be failing by timeout as no network event is going to be received. This bit"},{"line_number":401,"context_line":"might need to be revisisted during review :)"},{"line_number":402,"context_line":""},{"line_number":403,"context_line":"Documentation Impact"},{"line_number":404,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":405,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_d2215bfd","line":402,"updated":"2017-11-22 18:31:57.000000000","message":"I\u0027m worried about the timing of ironic-api, ironic-conductor, and ironic-notifier-in-neutron.\n\nironic-api doesn\u0027t need to do anything until after ironic-conductor makes one of these network interface calls. So as long as ironic-api supports this by the time the conductor uses it, we\u0027re good. (See note above about not doing this until services are unpinned).\n\nI am not that clear about the ironic-notifier-in-neutron. i almost feel like we need some versioning, so that we can turn on this notification stuff in the ironic-notifier, but that it doesn\u0027t do anything until some *thing* is encountered.\n\nIt would be really useful if you could add a paragraph about the ironic-notifier-in-neutron and how this all relates. E.g., ironic makes calls directly to neutron\u0027s API. If I understand it, this ironic-notifier-in-neutron is implemented in the network-generic-switch as a plugin to neutron.  How does this ironic-notifier know which/what events to send to ironic, unless it is also part of/knows about the initial request to neutron?","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"ab65b4ba4d1fcafacb6a84dd1bca07ceb85f5106","unresolved":false,"context_lines":[{"line_number":399,"context_line":"have to send the notifications to ironic API manually, or the deployment will"},{"line_number":400,"context_line":"be failing by timeout as no network event is going to be received. This bit"},{"line_number":401,"context_line":"might need to be revisisted during review :)"},{"line_number":402,"context_line":""},{"line_number":403,"context_line":"Documentation Impact"},{"line_number":404,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":405,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_51e76513","line":402,"in_reply_to":"ff82abbf_d2215bfd","updated":"2017-12-06 23:32:48.000000000","message":"oh, missed this comment. I replied to John in the beginning of the spec regarding this. There are just a bunch of methods neutron triggers in the notifiers when events happen, like port is updated. WRT upgrade, yeah, if the notifier is not installed, notifications won\u0027t come to ironic and basically booting machines will be timing out on waiting for events. The builds that have started right before the upgrade start might fail on timeout as well. But I don\u0027t think ironic handles well a bunch of conductors restarting during the deployment.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":418,"context_line":".. [#] https://github.com/openstack/neutron/blob/master/neutron/notifiers/nova.py"},{"line_number":419,"context_line":".. [#] https://github.com/openstack/ironic/blob/f16e7cdf41701159704697775c436e9b7ffc0013/ironic/conductor/manager.py#L1458-L1479"},{"line_number":420,"context_line":".. [#] https://bugs.launchpad.net/neutron/+bug/1599836"},{"line_number":421,"context_line":".. [#] https://review.openstack.org/339129"},{"line_number":422,"context_line":".. [#] https://review.openstack.org/339143"},{"line_number":423,"context_line":".. [#] https://bugs.launchpad.net/nova/+bug/1673429"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_527eab6b","line":421,"updated":"2017-11-22 18:31:57.000000000","message":"this has been abandoned","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":418,"context_line":".. [#] https://github.com/openstack/neutron/blob/master/neutron/notifiers/nova.py"},{"line_number":419,"context_line":".. [#] https://github.com/openstack/ironic/blob/f16e7cdf41701159704697775c436e9b7ffc0013/ironic/conductor/manager.py#L1458-L1479"},{"line_number":420,"context_line":".. [#] https://bugs.launchpad.net/neutron/+bug/1599836"},{"line_number":421,"context_line":".. [#] https://review.openstack.org/339129"},{"line_number":422,"context_line":".. [#] https://review.openstack.org/339143"},{"line_number":423,"context_line":".. [#] https://bugs.launchpad.net/nova/+bug/1673429"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_d69b6bc6","line":421,"in_reply_to":"ff82abbf_527eab6b","updated":"2017-12-06 23:19:17.000000000","message":"This has moved into networking-baremetal. I\u0027ll change the link","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":419,"context_line":".. [#] https://github.com/openstack/ironic/blob/f16e7cdf41701159704697775c436e9b7ffc0013/ironic/conductor/manager.py#L1458-L1479"},{"line_number":420,"context_line":".. [#] https://bugs.launchpad.net/neutron/+bug/1599836"},{"line_number":421,"context_line":".. [#] https://review.openstack.org/339129"},{"line_number":422,"context_line":".. [#] https://review.openstack.org/339143"},{"line_number":423,"context_line":".. [#] https://bugs.launchpad.net/nova/+bug/1673429"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_d2763b07","line":422,"updated":"2017-11-22 18:31:57.000000000","message":"this, too, has been abandoned.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":419,"context_line":".. [#] https://github.com/openstack/ironic/blob/f16e7cdf41701159704697775c436e9b7ffc0013/ironic/conductor/manager.py#L1458-L1479"},{"line_number":420,"context_line":".. [#] https://bugs.launchpad.net/neutron/+bug/1599836"},{"line_number":421,"context_line":".. [#] https://review.openstack.org/339129"},{"line_number":422,"context_line":".. [#] https://review.openstack.org/339143"},{"line_number":423,"context_line":".. [#] https://bugs.launchpad.net/nova/+bug/1673429"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_b6a827db","line":422,"in_reply_to":"ff82abbf_d2763b07","updated":"2017-12-06 23:19:17.000000000","message":"It was abandoned just because noone reviewed it.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6d30c97885a9290e84cab77d4197d91e81dacaa4","unresolved":false,"context_lines":[{"line_number":420,"context_line":".. [#] https://bugs.launchpad.net/neutron/+bug/1599836"},{"line_number":421,"context_line":".. [#] https://review.openstack.org/339129"},{"line_number":422,"context_line":".. [#] https://review.openstack.org/339143"},{"line_number":423,"context_line":".. [#] https://bugs.launchpad.net/nova/+bug/1673429"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ff82abbf_52d1cbcc","line":423,"updated":"2017-11-22 18:31:57.000000000","message":"this isn\u0027t referred to; I am wondering if there is an off-by-one issue somewhere...","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ece74613278496e1d4a8be25b22441a1d28ec44","unresolved":false,"context_lines":[{"line_number":420,"context_line":".. [#] https://bugs.launchpad.net/neutron/+bug/1599836"},{"line_number":421,"context_line":".. [#] https://review.openstack.org/339129"},{"line_number":422,"context_line":".. [#] https://review.openstack.org/339143"},{"line_number":423,"context_line":".. [#] https://bugs.launchpad.net/nova/+bug/1673429"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df87a7cf_16b9d32c","line":423,"in_reply_to":"ff82abbf_52d1cbcc","updated":"2017-12-06 23:19:17.000000000","message":"Thanks for checking Ruby, will see what is referred where.","commit_id":"9f7bc7ca4ba9f9292d9a51d42727c7886fa750c1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c36249be14874f19e087dd02c5b03d59d0ae539c","unresolved":false,"context_lines":[{"line_number":309,"context_line":"Client (CLI) impact"},{"line_number":310,"context_line":"-------------------"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"Client will be updated to support sending an external notification. This"},{"line_number":313,"context_line":"functionality will only be added to the client\u0027s python API, no new commands"},{"line_number":314,"context_line":"are going to be introduced. The new method will just be passing the JSON it"},{"line_number":315,"context_line":"receives to the ``/events`` endpoint."}],"source_content_type":"text/x-rst","patch_set":13,"id":"5f7c97a3_9ae056fa","line":312,"range":{"start_line":312,"start_character":0,"end_line":312,"end_character":66},"updated":"2018-07-09 14:20:06.000000000","message":"Why does this need to be in our CLI?","commit_id":"fc8184fdee1d4e0951ba5eecb6a0220a4d865bde"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"8263814a9f1cf387d6a557133468e8edd6c22ed0","unresolved":false,"context_lines":[{"line_number":309,"context_line":"Client (CLI) impact"},{"line_number":310,"context_line":"-------------------"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"Client will be updated to support sending an external notification. This"},{"line_number":313,"context_line":"functionality will only be added to the client\u0027s python API, no new commands"},{"line_number":314,"context_line":"are going to be introduced. The new method will just be passing the JSON it"},{"line_number":315,"context_line":"receives to the ``/events`` endpoint."}],"source_content_type":"text/x-rst","patch_set":13,"id":"5f7c97a3_56d3c402","line":312,"range":{"start_line":312,"start_character":0,"end_line":312,"end_character":66},"in_reply_to":"5f7c97a3_9ae056fa","updated":"2018-07-17 13:09:42.000000000","message":"not cli, python binding, so notification can be sent from neutron ml2 driver for example by instantiating IronicClient","commit_id":"fc8184fdee1d4e0951ba5eecb6a0220a4d865bde"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c36249be14874f19e087dd02c5b03d59d0ae539c","unresolved":false,"context_lines":[{"line_number":310,"context_line":"-------------------"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"Client will be updated to support sending an external notification. This"},{"line_number":313,"context_line":"functionality will only be added to the client\u0027s python API, no new commands"},{"line_number":314,"context_line":"are going to be introduced. The new method will just be passing the JSON it"},{"line_number":315,"context_line":"receives to the ``/events`` endpoint."},{"line_number":316,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"5f7c97a3_3ac4a25f","line":313,"range":{"start_line":313,"start_character":14,"end_line":313,"end_character":59},"updated":"2018-07-09 14:20:06.000000000","message":"This seems like the ideal reason to use keystoneauth1 and the rest client it provides. This will also better align with the desired future directions in the community.","commit_id":"fc8184fdee1d4e0951ba5eecb6a0220a4d865bde"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"8263814a9f1cf387d6a557133468e8edd6c22ed0","unresolved":false,"context_lines":[{"line_number":310,"context_line":"-------------------"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"Client will be updated to support sending an external notification. This"},{"line_number":313,"context_line":"functionality will only be added to the client\u0027s python API, no new commands"},{"line_number":314,"context_line":"are going to be introduced. The new method will just be passing the JSON it"},{"line_number":315,"context_line":"receives to the ``/events`` endpoint."},{"line_number":316,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"5f7c97a3_16030c78","line":313,"range":{"start_line":313,"start_character":14,"end_line":313,"end_character":59},"in_reply_to":"5f7c97a3_3ac4a25f","updated":"2018-07-17 13:09:42.000000000","message":"sure can be done this way as well","commit_id":"fc8184fdee1d4e0951ba5eecb6a0220a4d865bde"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c36249be14874f19e087dd02c5b03d59d0ae539c","unresolved":false,"context_lines":[{"line_number":388,"context_line":"  vdrok"},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"Other contributors:"},{"line_number":391,"context_line":"  vsaienko"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"Work Items"},{"line_number":394,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5f7c97a3_1aa3e6b2","line":391,"range":{"start_line":391,"start_character":0,"end_line":391,"end_character":10},"updated":"2018-07-09 14:20:06.000000000","message":"Question: Is this correct still?","commit_id":"fc8184fdee1d4e0951ba5eecb6a0220a4d865bde"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"8263814a9f1cf387d6a557133468e8edd6c22ed0","unresolved":false,"context_lines":[{"line_number":388,"context_line":"  vdrok"},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"Other contributors:"},{"line_number":391,"context_line":"  vsaienko"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"Work Items"},{"line_number":394,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5f7c97a3_d6f8347f","line":391,"range":{"start_line":391,"start_character":0,"end_line":391,"end_character":10},"in_reply_to":"5f7c97a3_1aa3e6b2","updated":"2018-07-17 13:09:42.000000000","message":"will remove","commit_id":"fc8184fdee1d4e0951ba5eecb6a0220a4d865bde"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c36249be14874f19e087dd02c5b03d59d0ae539c","unresolved":false,"context_lines":[{"line_number":405,"context_line":"Dependencies"},{"line_number":406,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":407,"context_line":""},{"line_number":408,"context_line":"* Ironic should be switched to using networking-baremetal plugin in the gate."},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"* Nova should be cleaning up only the ports owned by \"compute\" in case of the"},{"line_number":411,"context_line":"  InstanceDeployFailure [#]_."}],"source_content_type":"text/x-rst","patch_set":13,"id":"5f7c97a3_daa80e8c","line":408,"updated":"2018-07-09 14:20:06.000000000","message":"++","commit_id":"fc8184fdee1d4e0951ba5eecb6a0220a4d865bde"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c36249be14874f19e087dd02c5b03d59d0ae539c","unresolved":false,"context_lines":[{"line_number":408,"context_line":"* Ironic should be switched to using networking-baremetal plugin in the gate."},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"* Nova should be cleaning up only the ports owned by \"compute\" in case of the"},{"line_number":411,"context_line":"  InstanceDeployFailure [#]_."},{"line_number":412,"context_line":""},{"line_number":413,"context_line":"Testing"},{"line_number":414,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5f7c97a3_9a77f63b","line":411,"updated":"2018-07-09 14:20:06.000000000","message":"by compute, do you mean purely created by compute? For heat instantiated cases, we added logic recently to heat to handle cleaning up ports for failed deploys, but heat essentially has a different behavior pattern in that it does not delete the instance before it tries to replace it.\n\nDoes this also block us from being able to put a notifier in place to wait upon nova to land changes?  I guess I don\u0027t understand why this necessarily.","commit_id":"fc8184fdee1d4e0951ba5eecb6a0220a4d865bde"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"8263814a9f1cf387d6a557133468e8edd6c22ed0","unresolved":false,"context_lines":[{"line_number":408,"context_line":"* Ironic should be switched to using networking-baremetal plugin in the gate."},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"* Nova should be cleaning up only the ports owned by \"compute\" in case of the"},{"line_number":411,"context_line":"  InstanceDeployFailure [#]_."},{"line_number":412,"context_line":""},{"line_number":413,"context_line":"Testing"},{"line_number":414,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5f7c97a3_b6fd783c","line":411,"in_reply_to":"5f7c97a3_9a77f63b","updated":"2018-07-17 13:09:42.000000000","message":"yes probably we\u0027ll be able to work around this (by checking if port is already unbound before trying to wait for an event). still worth fixing but instead of dependency I\u0027ll just reference this patch","commit_id":"fc8184fdee1d4e0951ba5eecb6a0220a4d865bde"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":41,"context_line":"neutron [#]_."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"The scope of this spec is adding a possibility to process network events from"},{"line_number":44,"context_line":"neutron when NeutronNetwork interface is used, and ironic is either used"},{"line_number":45,"context_line":"standalone or with nova and instance is booted with ``--nic port-id\u003d\u003cID\u003e``."},{"line_number":46,"context_line":"Next step would be thinking about how to make it work with nova when instance"},{"line_number":47,"context_line":"is booted by providing only ``--nic net-id\u003d\u003cID\u003e``, as nova creates only"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_e71b9c81","line":44,"updated":"2018-07-24 12:21:15.000000000","message":"Why cannot we do it for FlatNetwork? I\u0027d prefer an explanation here.","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":41,"context_line":"neutron [#]_."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"The scope of this spec is adding a possibility to process network events from"},{"line_number":44,"context_line":"neutron when NeutronNetwork interface is used, and ironic is either used"},{"line_number":45,"context_line":"standalone or with nova and instance is booted with ``--nic port-id\u003d\u003cID\u003e``."},{"line_number":46,"context_line":"Next step would be thinking about how to make it work with nova when instance"},{"line_number":47,"context_line":"is booted by providing only ``--nic net-id\u003d\u003cID\u003e``, as nova creates only"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_073c6690","line":44,"in_reply_to":"5f7c97a3_e71b9c81","updated":"2018-07-26 04:47:23.000000000","message":"we can, just wanted to reduce the scope. can mention both","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":45,"context_line":"standalone or with nova and instance is booted with ``--nic port-id\u003d\u003cID\u003e``."},{"line_number":46,"context_line":"Next step would be thinking about how to make it work with nova when instance"},{"line_number":47,"context_line":"is booted by providing only ``--nic net-id\u003d\u003cID\u003e``, as nova creates only"},{"line_number":48,"context_line":"``vnic_type\u003dnormal`` ports during instance spawn."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"In this spec, the term \"notification\" is used when talking about the"},{"line_number":51,"context_line":"notifications sent by neutron. The term \"event\" is more generic, and is used"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_8728a898","line":48,"updated":"2018-07-24 12:21:15.000000000","message":"Again, this lacks explanation. Are we filtering by vnic_type on neutron side? can we somehow mark ports are used by ironic when binding? I\u0027m not sure, some optional field, something like port.extra?\n\nI\u0027m afraid that --nic net-id case is much more popular than --nic port-id.","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":45,"context_line":"standalone or with nova and instance is booted with ``--nic port-id\u003d\u003cID\u003e``."},{"line_number":46,"context_line":"Next step would be thinking about how to make it work with nova when instance"},{"line_number":47,"context_line":"is booted by providing only ``--nic net-id\u003d\u003cID\u003e``, as nova creates only"},{"line_number":48,"context_line":"``vnic_type\u003dnormal`` ports during instance spawn."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"In this spec, the term \"notification\" is used when talking about the"},{"line_number":51,"context_line":"notifications sent by neutron. The term \"event\" is more generic, and is used"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_87687688","line":48,"in_reply_to":"5f7c97a3_8728a898","updated":"2018-07-26 04:47:23.000000000","message":"right, we filter baremetal ports on neutron side. we could maybe update normal ports to have type baremetal on ironic side, but the ideal solution I think would be creating them as such in nova. as it might involve nova change I thought I\u0027ll start with easy cases of standalone or being provided with correct port as a nic","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":" class EventHandler(object):"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"     def __init__(self, desired_status, success_strategy, filter_function):"},{"line_number":102,"context_line":"         self.desired_status \u003d desired_status"},{"line_number":103,"context_line":"         self.success_strategy \u003d success_strategy"},{"line_number":104,"context_line":"         self.filter_function \u003d filter_function"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_a725a4c1","line":101,"updated":"2018-07-24 12:21:15.000000000","message":"A docstring would come handy for all these methods, even though you explain some of them below.","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":" class EventHandler(object):"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"     def __init__(self, desired_status, success_strategy, filter_function):"},{"line_number":102,"context_line":"         self.desired_status \u003d desired_status"},{"line_number":103,"context_line":"         self.success_strategy \u003d success_strategy"},{"line_number":104,"context_line":"         self.filter_function \u003d filter_function"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_47001eb2","line":101,"in_reply_to":"5f7c97a3_a725a4c1","updated":"2018-07-26 04:47:23.000000000","message":"will do","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":104,"context_line":"         self.filter_function \u003d filter_function"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"     @staticmethod"},{"line_number":107,"context_line":"     def validate_event_payload(payload):"},{"line_number":108,"context_line":"         pass"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"     @staticmethod"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_4714d050","line":107,"updated":"2018-07-24 12:21:15.000000000","message":"why do you need a separate validation from processing? usually, we separate validate() call because it\u0027s done synchronously. Is it the same here? even if it is, do we really need to report errors back to the caller, given that the caller is neutron?","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":104,"context_line":"         self.filter_function \u003d filter_function"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"     @staticmethod"},{"line_number":107,"context_line":"     def validate_event_payload(payload):"},{"line_number":108,"context_line":"         pass"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"     @staticmethod"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_871636f2","line":107,"in_reply_to":"5f7c97a3_4714d050","updated":"2018-07-26 04:47:23.000000000","message":"just to logically separate it, no other reason here.","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a55475a50605cb5c617bb67100ec2f12702f1a86","unresolved":false,"context_lines":[{"line_number":104,"context_line":"         self.filter_function \u003d filter_function"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"     @staticmethod"},{"line_number":107,"context_line":"     def validate_event_payload(payload):"},{"line_number":108,"context_line":"         pass"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"     @staticmethod"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_37527469","line":107,"in_reply_to":"5f7c97a3_871636f2","updated":"2018-08-01 12:27:27.000000000","message":"what if we have a \u0027fake\u0027 SDN when we do something by hand and then manually send the event to the api :)","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":108,"context_line":"         pass"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"     @staticmethod"},{"line_number":111,"context_line":"     def process_incoming_event(task, context, node_uuid, payload):"},{"line_number":112,"context_line":"         pass"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"     @staticmethod"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_6719cc85","line":111,"updated":"2018-07-24 12:21:15.000000000","message":"who is task, or more specifically - node, determined by payload? is it my MAC address?","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":108,"context_line":"         pass"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"     @staticmethod"},{"line_number":111,"context_line":"     def process_incoming_event(task, context, node_uuid, payload):"},{"line_number":112,"context_line":"         pass"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"     @staticmethod"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_67d19a2e","line":111,"in_reply_to":"","updated":"2018-07-26 04:47:23.000000000","message":"task is a task manager. not sure I get the question about the node. the node is looked up either by mac or by device I\u0027d coming from neutron","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":159,"context_line":"     return inner"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"The event handler class will be instantiated during the execution of"},{"line_number":162,"context_line":"``BaseInterface.__new__`` method by a decorator that will wrap all the"},{"line_number":163,"context_line":"asynchronous methods of the interface."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"This decorator is going to be called ``events_wait_decorator``, and when"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_070ed83c","line":162,"updated":"2018-07-24 12:21:15.000000000","message":"so, another decorator? or the same? why not show it here? I\u0027m a bit confused why we need two decorators if we can do stuff in __new__","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":159,"context_line":"     return inner"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"The event handler class will be instantiated during the execution of"},{"line_number":162,"context_line":"``BaseInterface.__new__`` method by a decorator that will wrap all the"},{"line_number":163,"context_line":"asynchronous methods of the interface."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"This decorator is going to be called ``events_wait_decorator``, and when"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_e78a8a1c","line":162,"in_reply_to":"5f7c97a3_070ed83c","updated":"2018-07-26 04:47:23.000000000","message":"we can, this decorator basically looks just like a regular function call on a method inside __new__. not show here as it\u0027s a bit lengthy","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":166,"context_line":"calling asynchronous method it wraps the following will happen:"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"#. If event handler field is present in the interface definition,"},{"line_number":169,"context_line":"   ``event_handler.validate_wait(task)`` is going to be executed, to determine"},{"line_number":170,"context_line":"   if all prerequisites are met for asynchronous execution (it might check"},{"line_number":171,"context_line":"   any ironic object attributes, config options, etc.)."},{"line_number":172,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_2713d467","line":169,"updated":"2018-07-24 12:21:15.000000000","message":"nit: validate_wait is a confusing name.. validate_async_method?","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a55475a50605cb5c617bb67100ec2f12702f1a86","unresolved":false,"context_lines":[{"line_number":166,"context_line":"calling asynchronous method it wraps the following will happen:"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"#. If event handler field is present in the interface definition,"},{"line_number":169,"context_line":"   ``event_handler.validate_wait(task)`` is going to be executed, to determine"},{"line_number":170,"context_line":"   if all prerequisites are met for asynchronous execution (it might check"},{"line_number":171,"context_line":"   any ironic object attributes, config options, etc.)."},{"line_number":172,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_d7d22033","line":169,"in_reply_to":"5f7c97a3_2713d467","updated":"2018-08-01 12:27:27.000000000","message":"not sure, maybe validate_async_execution_possible.","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":175,"context_line":"#. ``event_handler.pre_wait(task)`` method will be called, it will return an"},{"line_number":176,"context_line":"   object representing the waiter status. There are no requirements on it,"},{"line_number":177,"context_line":"   apart from the fact that event handler must be able to understand it, which"},{"line_number":178,"context_line":"   totally depends on what it does and how it is written."},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"#. The asynchronous method that was wrapped with ``events_wait_decorator`` and"},{"line_number":181,"context_line":"   ``event_handler.wait(task, status_object)`` will be put into"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_c707801e","line":178,"updated":"2018-07-24 12:21:15.000000000","message":"Why do we need to split pre_wait and wait? and if you really want to do something before the next step, why not do it in __init__?","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":175,"context_line":"#. ``event_handler.pre_wait(task)`` method will be called, it will return an"},{"line_number":176,"context_line":"   object representing the waiter status. There are no requirements on it,"},{"line_number":177,"context_line":"   apart from the fact that event handler must be able to understand it, which"},{"line_number":178,"context_line":"   totally depends on what it does and how it is written."},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"#. The asynchronous method that was wrapped with ``events_wait_decorator`` and"},{"line_number":181,"context_line":"   ``event_handler.wait(task, status_object)`` will be put into"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_e7984a68","line":178,"in_reply_to":"5f7c97a3_c707801e","updated":"2018-07-26 04:47:23.000000000","message":"pre wait returns status object (semaphore) that is passed into waiter, easier to show this in code (https://review.openstack.org/#/c/440778/9/ironic/drivers/base.py) but I\u0027ll try to come up with explanation","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a55475a50605cb5c617bb67100ec2f12702f1a86","unresolved":false,"context_lines":[{"line_number":175,"context_line":"#. ``event_handler.pre_wait(task)`` method will be called, it will return an"},{"line_number":176,"context_line":"   object representing the waiter status. There are no requirements on it,"},{"line_number":177,"context_line":"   apart from the fact that event handler must be able to understand it, which"},{"line_number":178,"context_line":"   totally depends on what it does and how it is written."},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"#. The asynchronous method that was wrapped with ``events_wait_decorator`` and"},{"line_number":181,"context_line":"   ``event_handler.wait(task, status_object)`` will be put into"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_b7b8c4e7","line":178,"in_reply_to":"5f7c97a3_e7984a68","updated":"2018-08-01 12:27:27.000000000","message":"I tried to describe this in the docstrings above, pre_wait returns a waiter object so can\u0027t be done in __init__","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":177,"context_line":"   apart from the fact that event handler must be able to understand it, which"},{"line_number":178,"context_line":"   totally depends on what it does and how it is written."},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"#. The asynchronous method that was wrapped with ``events_wait_decorator`` and"},{"line_number":181,"context_line":"   ``event_handler.wait(task, status_object)`` will be put into"},{"line_number":182,"context_line":"   ``futurist.GreenThreadPoolExecutor()`` for execution."},{"line_number":183,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_e704fc1b","line":180,"updated":"2018-07-24 12:21:15.000000000","message":"it was wrapped into async_method decorator, no?","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":177,"context_line":"   apart from the fact that event handler must be able to understand it, which"},{"line_number":178,"context_line":"   totally depends on what it does and how it is written."},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"#. The asynchronous method that was wrapped with ``events_wait_decorator`` and"},{"line_number":181,"context_line":"   ``event_handler.wait(task, status_object)`` will be put into"},{"line_number":182,"context_line":"   ``futurist.GreenThreadPoolExecutor()`` for execution."},{"line_number":183,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_2782c200","line":180,"in_reply_to":"","updated":"2018-07-26 04:47:23.000000000","message":"into both, async method was added in driver module, the events wait decorator added by __new__ to all async methods","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a55475a50605cb5c617bb67100ec2f12702f1a86","unresolved":false,"context_lines":[{"line_number":177,"context_line":"   apart from the fact that event handler must be able to understand it, which"},{"line_number":178,"context_line":"   totally depends on what it does and how it is written."},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"#. The asynchronous method that was wrapped with ``events_wait_decorator`` and"},{"line_number":181,"context_line":"   ``event_handler.wait(task, status_object)`` will be put into"},{"line_number":182,"context_line":"   ``futurist.GreenThreadPoolExecutor()`` for execution."},{"line_number":183,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_17bdf8cf","line":180,"in_reply_to":"5f7c97a3_2782c200","updated":"2018-08-01 12:27:27.000000000","message":"i\u0027ll change to only async_method as events_wait_decorator will be applied to all methods wrapped in async_method","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":179,"context_line":""},{"line_number":180,"context_line":"#. The asynchronous method that was wrapped with ``events_wait_decorator`` and"},{"line_number":181,"context_line":"   ``event_handler.wait(task, status_object)`` will be put into"},{"line_number":182,"context_line":"   ``futurist.GreenThreadPoolExecutor()`` for execution."},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"#. ``event_handler.process_event_join(status_object, fut_function)`` will be"},{"line_number":185,"context_line":"   called, passing ``fut_function``, which is a ``Future`` object that"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_8701880a","line":182,"updated":"2018-07-24 12:21:15.000000000","message":"okay, so wait() is where the main thing happens, right? how will it look for the case of waiting for port binding?","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":179,"context_line":""},{"line_number":180,"context_line":"#. The asynchronous method that was wrapped with ``events_wait_decorator`` and"},{"line_number":181,"context_line":"   ``event_handler.wait(task, status_object)`` will be put into"},{"line_number":182,"context_line":"   ``futurist.GreenThreadPoolExecutor()`` for execution."},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"#. ``event_handler.process_event_join(status_object, fut_function)`` will be"},{"line_number":185,"context_line":"   called, passing ``fut_function``, which is a ``Future`` object that"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_27b082dc","line":182,"in_reply_to":"5f7c97a3_8701880a","updated":"2018-07-26 04:47:23.000000000","message":"no, main work is done by events_wait_decorator, wait call here is just a semaphore acquire call basically","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":191,"context_line":"   complete, the events might start to come in before the ``fut_function`` has"},{"line_number":192,"context_line":"   returned."},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"#. ``futurist.GreenThreadPoolExecutor`` will be shut down in blocking fashion,"},{"line_number":195,"context_line":"   ensuring that both ``event_handler.wait`` and ``fut_function``"},{"line_number":196,"context_line":"   were completed. This will pause the current greenthread."},{"line_number":197,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_a7fe0404","line":194,"updated":"2018-07-24 12:21:15.000000000","message":"btw, we already have one thread pool in the conductor, we can just use it.","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":191,"context_line":"   complete, the events might start to come in before the ``fut_function`` has"},{"line_number":192,"context_line":"   returned."},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"#. ``futurist.GreenThreadPoolExecutor`` will be shut down in blocking fashion,"},{"line_number":195,"context_line":"   ensuring that both ``event_handler.wait`` and ``fut_function``"},{"line_number":196,"context_line":"   were completed. This will pause the current greenthread."},{"line_number":197,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_c7cbce48","line":194,"in_reply_to":"5f7c97a3_a7fe0404","updated":"2018-07-26 04:47:23.000000000","message":"we create a pool for each event waiting and shut it down afterwards, so not sure I could use existing pool if the code remains the same","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":195,"context_line":"   ensuring that both ``event_handler.wait`` and ``fut_function``"},{"line_number":196,"context_line":"   were completed. This will pause the current greenthread."},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"#. Now, the events may start to come in from the API, and each of them will"},{"line_number":199,"context_line":"   be handled by"},{"line_number":200,"context_line":"   ``event_handler.process_incoming_event(task, context, node_uuid, payload)``,"},{"line_number":201,"context_line":"   if prior to that ``event_handler.validate_event_payload(payload)`` call"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_4af9351a","line":198,"updated":"2018-07-24 12:21:15.000000000","message":"okay, so it was before events even kicked in? then I\u0027m finally lost here. why did we need all of the above if the only thing we actually need is move the node to DEPLOYWAIT and then wake it up when we receive the required event? I expected something similar to how heartbeats work: you prepare the node and just return, then at some point an event arrives and you continue.","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":195,"context_line":"   ensuring that both ``event_handler.wait`` and ``fut_function``"},{"line_number":196,"context_line":"   were completed. This will pause the current greenthread."},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"#. Now, the events may start to come in from the API, and each of them will"},{"line_number":199,"context_line":"   be handled by"},{"line_number":200,"context_line":"   ``event_handler.process_incoming_event(task, context, node_uuid, payload)``,"},{"line_number":201,"context_line":"   if prior to that ``event_handler.validate_event_payload(payload)`` call"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_a7e9f2ab","line":198,"in_reply_to":"5f7c97a3_4af9351a","updated":"2018-07-26 04:47:23.000000000","message":"yes, all of that was the preparation to understand all the things we are waiting for. the benefit of not doing return is we won\u0027t have to split every conductor method that possibly can trigger async interface method in two parts.","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":217,"context_line":"``vnic_type\u003dbaremetal`` It means that the nova flow with providing only net ID"},{"line_number":218,"context_line":"during instance boot will not work for now, but if you\u0027re providing port ID"},{"line_number":219,"context_line":"in the boot request and port is of type baremetal, events are going to be"},{"line_number":220,"context_line":"generated."},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"Neutron event handler will be working on the NEUTRON_SEMAPHORES dictionary"},{"line_number":223,"context_line":"that will contain the eventlet semaphores per-node that are currently being"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_6afe7105","line":220,"updated":"2018-07-24 12:21:15.000000000","message":"as I mentioned above, I\u0027m not sure it\u0027s valuable to do until we can solve it.","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":217,"context_line":"``vnic_type\u003dbaremetal`` It means that the nova flow with providing only net ID"},{"line_number":218,"context_line":"during instance boot will not work for now, but if you\u0027re providing port ID"},{"line_number":219,"context_line":"in the boot request and port is of type baremetal, events are going to be"},{"line_number":220,"context_line":"generated."},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"Neutron event handler will be working on the NEUTRON_SEMAPHORES dictionary"},{"line_number":223,"context_line":"that will contain the eventlet semaphores per-node that are currently being"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_6760ba35","line":220,"in_reply_to":"5f7c97a3_6afe7105","updated":"2018-07-26 04:47:23.000000000","message":"yup can add this to scope","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":233,"context_line":"As this spec changes the way greenthreads are consumed by ironic, it needs"},{"line_number":234,"context_line":"to be enabled by a config option, so that people that have a low value of"},{"line_number":235,"context_line":"``[conductor]workers_pool_size`` won\u0027t get immediately broken. The option to"},{"line_number":236,"context_line":"enable the event waiting is ``[DEFAULT]events_enabled``, False by default,"},{"line_number":237,"context_line":"the timeout to wait for all the required neutron events to come is going to be"},{"line_number":238,"context_line":"``[neutron]events_timeout``, 10 minutes by default."},{"line_number":239,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_0a033d0e","line":236,"updated":"2018-07-24 12:21:15.000000000","message":"I\u0027d prefer to avoid new options, even if it requires asking people to increase the pool size.","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":233,"context_line":"As this spec changes the way greenthreads are consumed by ironic, it needs"},{"line_number":234,"context_line":"to be enabled by a config option, so that people that have a low value of"},{"line_number":235,"context_line":"``[conductor]workers_pool_size`` won\u0027t get immediately broken. The option to"},{"line_number":236,"context_line":"enable the event waiting is ``[DEFAULT]events_enabled``, False by default,"},{"line_number":237,"context_line":"the timeout to wait for all the required neutron events to come is going to be"},{"line_number":238,"context_line":"``[neutron]events_timeout``, 10 minutes by default."},{"line_number":239,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_6712fab5","line":236,"in_reply_to":"5f7c97a3_0a033d0e","updated":"2018-07-26 04:47:23.000000000","message":"this will require grenade change then but I don\u0027t have objections here :)","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c9b96b5c1ec36b02793954917538ee6d9e86bf6b","unresolved":false,"context_lines":[{"line_number":248,"context_line":"  somewhat like cleaning, when we do not pause the greenthread but release it"},{"line_number":249,"context_line":"  and wait for event to happen. The code gets messy with this approach, and it"},{"line_number":250,"context_line":"  is hard to make it work without requiring substantial changes to out-of-tree"},{"line_number":251,"context_line":"  interfaces."},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"* Use Neutron port status polling. There is an issue with that, as even if"},{"line_number":254,"context_line":"  the neutron port\u0027s status is ACTIVE, some actions might not have finished"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_2a087925","line":251,"updated":"2018-07-24 12:21:15.000000000","message":"I don\u0027t quite agree and I think this needs some elaboration. For now it looks like out-of-tree interfaces won\u0027t benefit from it anyway.","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fe60374f40503523800ca3c33424f2baf100de5f","unresolved":false,"context_lines":[{"line_number":248,"context_line":"  somewhat like cleaning, when we do not pause the greenthread but release it"},{"line_number":249,"context_line":"  and wait for event to happen. The code gets messy with this approach, and it"},{"line_number":250,"context_line":"  is hard to make it work without requiring substantial changes to out-of-tree"},{"line_number":251,"context_line":"  interfaces."},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"* Use Neutron port status polling. There is an issue with that, as even if"},{"line_number":254,"context_line":"  the neutron port\u0027s status is ACTIVE, some actions might not have finished"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f7c97a3_475d7e7a","line":251,"in_reply_to":"5f7c97a3_2a087925","updated":"2018-07-26 04:47:23.000000000","message":"yeah you\u0027re right, it\u0027s more about me not wanting to split a bunch of conductor methods in two parts, before_interface_call, after_event_came_in. the amount of change to out of tree drivers should be about the same","commit_id":"72b4c2213aabffea6b3e045c0b95574320429eab"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"bd87dd1a609da70bee41eb24cb4207fd80b54cb1","unresolved":false,"context_lines":[{"line_number":93,"context_line":"                      base.NetworkInterface):"},{"line_number":94,"context_line":"     \"\"\"Neutron v2 network interface\"\"\""},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"     event_handler \u003d NeutronEventHandler()"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"The base ``EventHandler`` class will contain the following"},{"line_number":99,"context_line":"methods::"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_caa6700e","line":96,"updated":"2018-09-27 14:20:01.000000000","message":"Thinking about this design, it works well for smartnics which will will likely need some different logic wrapped around it in the end since the process flow for port binding is completely different. :(","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"39610495fb1747ab08a9e142bbd026020d6ff318","unresolved":false,"context_lines":[{"line_number":270,"context_line":""},{"line_number":271,"context_line":"#. The asynchronous method that was wrapped with ``async_method`` and"},{"line_number":272,"context_line":"   ``event_handler.wait(task, status_object)`` will be put into"},{"line_number":273,"context_line":"   ``futurist.GreenThreadPoolExecutor()`` for execution."},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"#. ``event_handler.process_event_join(status_object, fut_function)`` will be"},{"line_number":276,"context_line":"   called, passing ``fut_function``, which is a ``Future`` object that"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_979aa211","line":273,"updated":"2018-08-23 13:43:01.000000000","message":"We already have an executor in the conductor. And you don\u0027t need an executor to execute only one task, it seems like an overkill. I wonder if you can just wait on a green event in the same thread.","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"bd87dd1a609da70bee41eb24cb4207fd80b54cb1","unresolved":false,"context_lines":[{"line_number":270,"context_line":""},{"line_number":271,"context_line":"#. The asynchronous method that was wrapped with ``async_method`` and"},{"line_number":272,"context_line":"   ``event_handler.wait(task, status_object)`` will be put into"},{"line_number":273,"context_line":"   ``futurist.GreenThreadPoolExecutor()`` for execution."},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"#. ``event_handler.process_event_join(status_object, fut_function)`` will be"},{"line_number":276,"context_line":"   called, passing ``fut_function``, which is a ``Future`` object that"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_ea1ecc5d","line":273,"in_reply_to":"3f79a3b5_979aa211","updated":"2018-09-27 14:20:01.000000000","message":"++, I think we would want to keep it to one so we have a fairly consistent framework to refactor/update at once, as opposed to different areas of the code base doing different things.","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"cd87e6459100acc104ac10cb53bc8b0e965be8c2","unresolved":false,"context_lines":[{"line_number":270,"context_line":""},{"line_number":271,"context_line":"#. The asynchronous method that was wrapped with ``async_method`` and"},{"line_number":272,"context_line":"   ``event_handler.wait(task, status_object)`` will be put into"},{"line_number":273,"context_line":"   ``futurist.GreenThreadPoolExecutor()`` for execution."},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"#. ``event_handler.process_event_join(status_object, fut_function)`` will be"},{"line_number":276,"context_line":"   called, passing ``fut_function``, which is a ``Future`` object that"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_9bdc48e2","line":273,"in_reply_to":"3f79a3b5_ea1ecc5d","updated":"2018-09-27 16:24:02.000000000","message":"yup looking at the futurist waiters I think it can be done.","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c938c449978b5cdaa1b67e7c08cd623f86b844fd","unresolved":false,"context_lines":[{"line_number":305,"context_line":""},{"line_number":306,"context_line":"Events are generated on neutron side by ironic notifier class, in the"},{"line_number":307,"context_line":"networking-baremetal ML2 plugin, and only for ports with"},{"line_number":308,"context_line":"``vnic_type\u003dbaremetal`` It means that all the nova ports need to be updated to"},{"line_number":309,"context_line":"use this vnic type."},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"Neutron event handler will be working on the NEUTRON_SEMAPHORES dictionary"},{"line_number":312,"context_line":"that will contain the eventlet semaphores per-node that are currently being"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_37e760af","line":309,"range":{"start_line":308,"start_character":24,"end_line":309,"end_character":19},"updated":"2018-09-13 14:54:11.000000000","message":"All existing ports? It feels like the only thing we would be trying to avoid is the case of trying to allocate the same MAC on the cleaning network. That seems easily solved with retry handling in the setup of those ports.","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"92c7f636060778c260571f020cf3bdf9bd5c92b4","unresolved":false,"context_lines":[{"line_number":306,"context_line":"Events are generated on neutron side by ironic notifier class, in the"},{"line_number":307,"context_line":"networking-baremetal ML2 plugin, and only for ports with"},{"line_number":308,"context_line":"``vnic_type\u003dbaremetal`` It means that all the nova ports need to be updated to"},{"line_number":309,"context_line":"use this vnic type."},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"Neutron event handler will be working on the NEUTRON_SEMAPHORES dictionary"},{"line_number":312,"context_line":"that will contain the eventlet semaphores per-node that are currently being"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_43b81e74","line":309,"in_reply_to":"3f79a3b5_37e760af","updated":"2018-09-13 17:07:24.000000000","message":"hm, they are different networks, it is just the way written now, only baremetal vnic type handled by networking-baremetal","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"db0d1014a3f17f63cc8d5b546df3aa6ed12ceb88","unresolved":false,"context_lines":[{"line_number":306,"context_line":"Events are generated on neutron side by ironic notifier class, in the"},{"line_number":307,"context_line":"networking-baremetal ML2 plugin, and only for ports with"},{"line_number":308,"context_line":"``vnic_type\u003dbaremetal`` It means that all the nova ports need to be updated to"},{"line_number":309,"context_line":"use this vnic type."},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"Neutron event handler will be working on the NEUTRON_SEMAPHORES dictionary"},{"line_number":312,"context_line":"that will contain the eventlet semaphores per-node that are currently being"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_4a312e0a","line":309,"in_reply_to":"3f79a3b5_43b81e74","updated":"2018-10-08 14:45:12.000000000","message":"I suspect we should just rephrase it then to state that.","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c938c449978b5cdaa1b67e7c08cd623f86b844fd","unresolved":false,"context_lines":[{"line_number":314,"context_line":"value 0, so when it is acquired, the greenthread will block until the semaphore"},{"line_number":315,"context_line":"is released, which will happen when we\u0027ll get all the events we are expecting."},{"line_number":316,"context_line":"We\u0027ll be saving info about which events and for which ports we received into"},{"line_number":317,"context_line":"the same dictionary to track statuses of ironic ports/port groups."},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"This will mean that upon conductor restart this status info will be lost and"},{"line_number":320,"context_line":"e.g. instance deployment will fail."}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_77bb9874","line":317,"updated":"2018-09-13 14:54:11.000000000","message":"I can\u0027t help but wonder what this would look like if we looked at this more from the polling process initiation that is being talked about to support reversing the communication flow, but I think if we do head in the route of polling, then this spec may no longer fit.","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"cd87e6459100acc104ac10cb53bc8b0e965be8c2","unresolved":false,"context_lines":[{"line_number":314,"context_line":"value 0, so when it is acquired, the greenthread will block until the semaphore"},{"line_number":315,"context_line":"is released, which will happen when we\u0027ll get all the events we are expecting."},{"line_number":316,"context_line":"We\u0027ll be saving info about which events and for which ports we received into"},{"line_number":317,"context_line":"the same dictionary to track statuses of ironic ports/port groups."},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"This will mean that upon conductor restart this status info will be lost and"},{"line_number":320,"context_line":"e.g. instance deployment will fail."}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_1bab5888","line":317,"in_reply_to":"3f79a3b5_6ab5dc31","updated":"2018-09-27 16:24:02.000000000","message":"do you mean having both polling and callbacks?","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"92c7f636060778c260571f020cf3bdf9bd5c92b4","unresolved":false,"context_lines":[{"line_number":314,"context_line":"value 0, so when it is acquired, the greenthread will block until the semaphore"},{"line_number":315,"context_line":"is released, which will happen when we\u0027ll get all the events we are expecting."},{"line_number":316,"context_line":"We\u0027ll be saving info about which events and for which ports we received into"},{"line_number":317,"context_line":"the same dictionary to track statuses of ironic ports/port groups."},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"This will mean that upon conductor restart this status info will be lost and"},{"line_number":320,"context_line":"e.g. instance deployment will fail."}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_e3736ae7","line":317,"in_reply_to":"3f79a3b5_77bb9874","updated":"2018-09-13 17:07:24.000000000","message":"maybe polling in separate greenthread is fine although neutron provides callbacks and nova at least uses them, and they guarantee when notification abbout port active comes in it is actually active","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"bd87dd1a609da70bee41eb24cb4207fd80b54cb1","unresolved":false,"context_lines":[{"line_number":314,"context_line":"value 0, so when it is acquired, the greenthread will block until the semaphore"},{"line_number":315,"context_line":"is released, which will happen when we\u0027ll get all the events we are expecting."},{"line_number":316,"context_line":"We\u0027ll be saving info about which events and for which ports we received into"},{"line_number":317,"context_line":"the same dictionary to track statuses of ironic ports/port groups."},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"This will mean that upon conductor restart this status info will be lost and"},{"line_number":320,"context_line":"e.g. instance deployment will fail."}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_6ab5dc31","line":317,"in_reply_to":"3f79a3b5_e3736ae7","updated":"2018-09-27 14:20:01.000000000","message":"I guess realistically we will need both for a time, or to maintain the exact current behavior while bolting on callbacks through an rpc call inbound. Seems like we could reserve a configurable number of \"workers\"","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c938c449978b5cdaa1b67e7c08cd623f86b844fd","unresolved":false,"context_lines":[{"line_number":317,"context_line":"the same dictionary to track statuses of ironic ports/port groups."},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"This will mean that upon conductor restart this status info will be lost and"},{"line_number":320,"context_line":"e.g. instance deployment will fail."},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"This functionality will be enabled by default and during upgrade it will be"},{"line_number":323,"context_line":"required to increase ``[conductor]workers_pool_size`` config option"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_979514e6","line":320,"updated":"2018-09-13 14:54:11.000000000","message":"This is already known and we already fail in-progress deploys.","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"92c7f636060778c260571f020cf3bdf9bd5c92b4","unresolved":false,"context_lines":[{"line_number":317,"context_line":"the same dictionary to track statuses of ironic ports/port groups."},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"This will mean that upon conductor restart this status info will be lost and"},{"line_number":320,"context_line":"e.g. instance deployment will fail."},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"This functionality will be enabled by default and during upgrade it will be"},{"line_number":323,"context_line":"required to increase ``[conductor]workers_pool_size`` config option"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_a37d72b3","line":320,"in_reply_to":"3f79a3b5_979514e6","updated":"2018-09-13 17:07:24.000000000","message":"yup","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"39610495fb1747ab08a9e142bbd026020d6ff318","unresolved":false,"context_lines":[{"line_number":335,"context_line":"* Saving the events we wait for in some form into database, and using mechanism"},{"line_number":336,"context_line":"  somewhat like cleaning, when we do not pause the greenthread but release it"},{"line_number":337,"context_line":"  and wait for event to happen. The code gets messy with this approach, as it"},{"line_number":338,"context_line":"  requires to split any function that calls potentially asynchronous interface"},{"line_number":339,"context_line":"  method (which means any interface method) into two, pre-interface-method-call"},{"line_number":340,"context_line":"  and post-interface-method-call."},{"line_number":341,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_379b8e17","line":338,"updated":"2018-08-23 13:43:01.000000000","message":"How many such functions do you anticipate? I\u0027m not sure how messy the code will be, but this proposal is already quite messy, and I have no easy way to compare messyness :)","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"43afd8689301d037077d8606e2cd82606fcc134e","unresolved":false,"context_lines":[{"line_number":335,"context_line":"* Saving the events we wait for in some form into database, and using mechanism"},{"line_number":336,"context_line":"  somewhat like cleaning, when we do not pause the greenthread but release it"},{"line_number":337,"context_line":"  and wait for event to happen. The code gets messy with this approach, as it"},{"line_number":338,"context_line":"  requires to split any function that calls potentially asynchronous interface"},{"line_number":339,"context_line":"  method (which means any interface method) into two, pre-interface-method-call"},{"line_number":340,"context_line":"  and post-interface-method-call."},{"line_number":341,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_175d3246","line":338,"in_reply_to":"3f79a3b5_379b8e17","updated":"2018-08-23 13:47:07.000000000","message":"I think storage interface methods are likely candidates. You can take a look at the code in the references section, it seems less messy than the previous approach without pausing greenthreads.","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c938c449978b5cdaa1b67e7c08cd623f86b844fd","unresolved":false,"context_lines":[{"line_number":341,"context_line":""},{"line_number":342,"context_line":"* Use Neutron port status polling. There is an issue with that, as even if"},{"line_number":343,"context_line":"  the neutron port\u0027s status is ACTIVE, some actions might not have finished"},{"line_number":344,"context_line":"  yet. The neutron\u0027s notifier framework handles this problem for us."},{"line_number":345,"context_line":""},{"line_number":346,"context_line":""},{"line_number":347,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_d7786cc2","line":344,"updated":"2018-09-13 14:54:11.000000000","message":"It would be useful to better understand the conditions in which a port can be ACTIVE and not yet ready. I guess that makes sense from a SDN perspective, but that requires that the ml2 driver ultimately does return anything indicating success to trigger the event. :\\  I guess where my mind is going, is if the neutron notifier framework actually solves the problem, then how is it that a not ready port is in active state?","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"bd87dd1a609da70bee41eb24cb4207fd80b54cb1","unresolved":false,"context_lines":[{"line_number":341,"context_line":""},{"line_number":342,"context_line":"* Use Neutron port status polling. There is an issue with that, as even if"},{"line_number":343,"context_line":"  the neutron port\u0027s status is ACTIVE, some actions might not have finished"},{"line_number":344,"context_line":"  yet. The neutron\u0027s notifier framework handles this problem for us."},{"line_number":345,"context_line":""},{"line_number":346,"context_line":""},{"line_number":347,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_e7428568","line":344,"in_reply_to":"3f79a3b5_4346de7d","updated":"2018-09-27 14:20:01.000000000","message":"It feels like a problem we would have hit prior networking-baremetal in its current state, tbh.","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"92c7f636060778c260571f020cf3bdf9bd5c92b4","unresolved":false,"context_lines":[{"line_number":341,"context_line":""},{"line_number":342,"context_line":"* Use Neutron port status polling. There is an issue with that, as even if"},{"line_number":343,"context_line":"  the neutron port\u0027s status is ACTIVE, some actions might not have finished"},{"line_number":344,"context_line":"  yet. The neutron\u0027s notifier framework handles this problem for us."},{"line_number":345,"context_line":""},{"line_number":346,"context_line":""},{"line_number":347,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_4346de7d","line":344,"in_reply_to":"3f79a3b5_d7786cc2","updated":"2018-09-13 17:07:24.000000000","message":"i dont know the cases but know this is a possible thing (i think vasyl hit this)","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c938c449978b5cdaa1b67e7c08cd623f86b844fd","unresolved":false,"context_lines":[{"line_number":502,"context_line":"``[conductor]workers_pool_size`` needs to be increased during upgrade to"},{"line_number":503,"context_line":"correspond to the projected number of simultaneous deployments. Docs will"},{"line_number":504,"context_line":"describe how to choose this value. ``[neutron]events_timeout`` config option"},{"line_number":505,"context_line":"might need to be adjusted."},{"line_number":506,"context_line":""},{"line_number":507,"context_line":"In case of rolling upgrade, ironic conductors are upgraded first, then ironic"},{"line_number":508,"context_line":"APIs, then neutron is reconfigured to enable the notifier."}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_d7514c32","line":505,"updated":"2018-09-13 14:54:11.000000000","message":"This seems like it is going to be problematic, and we\u0027re already looking to breaking deployment into smaller chunks with the deploy_steps... so leaving paused threads for paused deployments seems far from ideal and I suspect would have performance issues with periodic task workers in that we would likely need to revisit all of that launcher code.","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"db0d1014a3f17f63cc8d5b546df3aa6ed12ceb88","unresolved":false,"context_lines":[{"line_number":502,"context_line":"``[conductor]workers_pool_size`` needs to be increased during upgrade to"},{"line_number":503,"context_line":"correspond to the projected number of simultaneous deployments. Docs will"},{"line_number":504,"context_line":"describe how to choose this value. ``[neutron]events_timeout`` config option"},{"line_number":505,"context_line":"might need to be adjusted."},{"line_number":506,"context_line":""},{"line_number":507,"context_line":"In case of rolling upgrade, ironic conductors are upgraded first, then ironic"},{"line_number":508,"context_line":"APIs, then neutron is reconfigured to enable the notifier."}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_65721b4d","line":505,"in_reply_to":"3f79a3b5_233882ec","updated":"2018-10-08 14:45:12.000000000","message":"I guess there are a couple of issues in the grand scheme of the universe. First, the fact we only really have a single real thread. Someone is looking at changing this. The second is threads go into heavy epoll() in some cases and consume heavy CPU resources. Larger operators have reported that huge thread numbers also results in the conductor just churning.","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"92c7f636060778c260571f020cf3bdf9bd5c92b4","unresolved":false,"context_lines":[{"line_number":502,"context_line":"``[conductor]workers_pool_size`` needs to be increased during upgrade to"},{"line_number":503,"context_line":"correspond to the projected number of simultaneous deployments. Docs will"},{"line_number":504,"context_line":"describe how to choose this value. ``[neutron]events_timeout`` config option"},{"line_number":505,"context_line":"might need to be adjusted."},{"line_number":506,"context_line":""},{"line_number":507,"context_line":"In case of rolling upgrade, ironic conductors are upgraded first, then ironic"},{"line_number":508,"context_line":"APIs, then neutron is reconfigured to enable the notifier."}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f79a3b5_233882ec","line":505,"in_reply_to":"3f79a3b5_d7514c32","updated":"2018-09-13 17:07:24.000000000","message":"not sure why, bur if this is something widely known we need to take this into account. i thought tge whole point of greenthreads is to have lots of them as theyre light","commit_id":"a0981d5f1359441c6da3dce83bb7b3d29f3fe53b"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"de33701411129fbef5a2f22b3ef5a8042a390552","unresolved":false,"context_lines":[{"line_number":117,"context_line":"     @abc.abstractmethod"},{"line_number":118,"context_line":"     def remove_cleaning_network(self, task):"},{"line_number":119,"context_line":"         \"\"\"Ensures that all cleaning ports are deleted.\"\"\""},{"line_number":120,"context_line":"         pass"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"In the conductor methods that deal with network interface (e.g.,"},{"line_number":123,"context_line":"do_node_deploy), we\u0027re going to be saving the events we are expecting in the"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_9b8a6c10","line":120,"updated":"2018-11-29 10:51:14.000000000","message":"I guess we\u0027re missing *_rescuing_network here, but that will probably be obvious in code.","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"de33701411129fbef5a2f22b3ef5a8042a390552","unresolved":false,"context_lines":[{"line_number":139,"context_line":""},{"line_number":140,"context_line":"* adding event names into the ``driver_internal_info[\u0027waiting_for\u0027]`` list;"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"* adding event names to callback mappings into global per-node ``CALLBACKS``"},{"line_number":143,"context_line":"  dictionary, along with the arguments with which it should be called."},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"This will allow to wait for custom events registered in custom driver"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_1b6adce9","line":142,"range":{"start_line":142,"start_character":47,"end_line":142,"end_character":53},"updated":"2018-11-29 10:51:14.000000000","message":"Have we covered conductor fail-over? I forget if we aim to honour in-flight deployments following a fail-over.","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"de33701411129fbef5a2f22b3ef5a8042a390552","unresolved":false,"context_lines":[{"line_number":156,"context_line":"      \u0027network.add_provisioning_network\u0027: \u0027network.bind_port\u0027,"},{"line_number":157,"context_line":"      \u0027network.remove_provisioning_network\u0027: \u0027network.delete_port\u0027,"},{"line_number":158,"context_line":"      \u0027network.add_cleaning_network\u0027: \u0027network.bind_port\u0027,"},{"line_number":159,"context_line":"      \u0027network.remove_cleaning_network\u0027: \u0027network.delete_port\u0027,"},{"line_number":160,"context_line":"  }"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"When an external network event is received, and if we\u0027re waiting for it, ironic"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_3bf6b894","line":159,"updated":"2018-11-29 10:51:14.000000000","message":"The keys \u0026 values seem the wrong way to me here, but I\u0027m sure it will become obvious during implementation if that is the case.","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"14f059a40bbcafe408b78b7c9548a0ab33d679b1","unresolved":false,"context_lines":[{"line_number":190,"context_line":"  is going to be restarted, we\u0027ll loose the info about the events we wait for."},{"line_number":191,"context_line":"  This is still better than what we have now, and possibly can be worked"},{"line_number":192,"context_line":"  around. Another downsides here being possible performance issues if a lot of"},{"line_number":193,"context_line":"  greenthreads are running sumiltaneously, and the fact that conductor goes"},{"line_number":194,"context_line":"  down during the rolling upgrade."},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"* Use Neutron port status polling. There is an issue with that, as even if"},{"line_number":197,"context_line":"  the neutron port\u0027s status is ACTIVE, some actions might not have finished"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_4a78a32a","line":194,"range":{"start_line":193,"start_character":0,"end_line":194,"end_character":34},"updated":"2018-11-27 22:51:23.000000000","message":"Minor note for other readers. We explicitly fail in-flight deployments during a rolling upgrade if the deployment is in-process on the conductor being upgraded.","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"1dd6d713304da3c15e145f9ef44dfa6672f32d80","unresolved":false,"context_lines":[{"line_number":206,"context_line":"State Machine Impact"},{"line_number":207,"context_line":"--------------------"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"A new ``DELETE WAIT`` state is introduced. Nodes can move to it from"},{"line_number":210,"context_line":"``DELETING`` state, upon receiving \u0027wait\u0027 event."},{"line_number":211,"context_line":"When \u0027continue\u0027 event is triggered while the node is in ``DELETE WAIT``, the"},{"line_number":212,"context_line":"node switches back to the ``DELETING`` state."}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_aee60b14","line":209,"updated":"2018-11-29 08:55:22.000000000","message":"s/can// (it will always happen now, right?)","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"de33701411129fbef5a2f22b3ef5a8042a390552","unresolved":false,"context_lines":[{"line_number":206,"context_line":"State Machine Impact"},{"line_number":207,"context_line":"--------------------"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"A new ``DELETE WAIT`` state is introduced. Nodes can move to it from"},{"line_number":210,"context_line":"``DELETING`` state, upon receiving \u0027wait\u0027 event."},{"line_number":211,"context_line":"When \u0027continue\u0027 event is triggered while the node is in ``DELETE WAIT``, the"},{"line_number":212,"context_line":"node switches back to the ``DELETING`` state."}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_fb1da0c0","line":209,"in_reply_to":"3f79a3b5_aee60b14","updated":"2018-11-29 10:51:14.000000000","message":"Not if there are no events to wait for, presumably?","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"1dd6d713304da3c15e145f9ef44dfa6672f32d80","unresolved":false,"context_lines":[{"line_number":208,"context_line":""},{"line_number":209,"context_line":"A new ``DELETE WAIT`` state is introduced. Nodes can move to it from"},{"line_number":210,"context_line":"``DELETING`` state, upon receiving \u0027wait\u0027 event."},{"line_number":211,"context_line":"When \u0027continue\u0027 event is triggered while the node is in ``DELETE WAIT``, the"},{"line_number":212,"context_line":"node switches back to the ``DELETING`` state."},{"line_number":213,"context_line":"This is introduced because we need to unconfigure the tenant networks prior to"},{"line_number":214,"context_line":"starting the cleaning."}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_cee34703","line":211,"updated":"2018-11-29 08:55:22.000000000","message":"I think we call it s/continue/resume/","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"14f059a40bbcafe408b78b7c9548a0ab33d679b1","unresolved":false,"context_lines":[{"line_number":217,"context_line":"---------------"},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"The new endpoint ``POST /events`` needs to be created. The default policy for"},{"line_number":220,"context_line":"this endpoint will be ``\"rule:is_admin\"``. Request body format is going to be"},{"line_number":221,"context_line":"the following::"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"    {"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_0a6e2b64","line":220,"range":{"start_line":220,"start_character":23,"end_line":220,"end_character":40},"updated":"2018-11-27 22:51:23.000000000","message":"fwiw, we should likely apply something different since the goal I believe is to nuke is_admin.\n\nAlso s/rule/role/?","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"de33701411129fbef5a2f22b3ef5a8042a390552","unresolved":false,"context_lines":[{"line_number":217,"context_line":"---------------"},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"The new endpoint ``POST /events`` needs to be created. The default policy for"},{"line_number":220,"context_line":"this endpoint will be ``\"rule:is_admin\"``. Request body format is going to be"},{"line_number":221,"context_line":"the following::"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"    {"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_1b497cb8","line":220,"range":{"start_line":220,"start_character":23,"end_line":220,"end_character":40},"in_reply_to":"3f79a3b5_0a6e2b64","updated":"2018-11-29 10:51:14.000000000","message":"Do we have an alternative yet?\n\nRule is correct here - it\u0027s a policy rule that refers to a role.","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"de33701411129fbef5a2f22b3ef5a8042a390552","unresolved":false,"context_lines":[{"line_number":234,"context_line":"        ]"},{"line_number":235,"context_line":"    }"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"Only ``event`` field is required, and it has the format of"},{"line_number":238,"context_line":"``\u003cevent_type\u003e.\u003cevent\u003e``, where:"},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"* ``\u003cevent_type\u003e`` is a name of the interface whose event handler will be"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_5b9a9412","line":237,"range":{"start_line":237,"start_character":7,"end_line":237,"end_character":12},"updated":"2018-11-29 10:51:14.000000000","message":"mac_address and status are also useful? port_id also for belt and braces?","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"de33701411129fbef5a2f22b3ef5a8042a390552","unresolved":false,"context_lines":[{"line_number":281,"context_line":"In the conductor side of this method we compare current event we\u0027re waiting for"},{"line_number":282,"context_line":"stored in ``driver_internal_info[\u0027waiting_for\u0027]`` field with received"},{"line_number":283,"context_line":"``\"event\"`` in the event body. If we received the desired event for all"},{"line_number":284,"context_line":"port(group)s we need, we trigger ``continue`` event on the state machine, and"},{"line_number":285,"context_line":"the callback that was saved into the per-node ``CALLBACKS`` dictionary prior"},{"line_number":286,"context_line":"to triggering the state machine\u0027s \u0027wait\u0027 is called."},{"line_number":287,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_bba1683e","line":284,"range":{"start_line":284,"start_character":35,"end_line":284,"end_character":43},"updated":"2018-11-29 10:51:14.000000000","message":"as per Dmitry\u0027s comment, resume.","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"14f059a40bbcafe408b78b7c9548a0ab33d679b1","unresolved":false,"context_lines":[{"line_number":314,"context_line":""},{"line_number":315,"context_line":"The neutron notifier needs to be configured. It needs the keystone admin"},{"line_number":316,"context_line":"credentials and (optionally, if not procided will be discovered from keystone"},{"line_number":317,"context_line":"endpoint catalog) the ironic API address to send events to."},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"Scalability impact"},{"line_number":320,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_ea8c0f2e","line":317,"updated":"2018-11-27 22:51:23.000000000","message":"note: afromentioned permission model changes impact this. But I think that is fine, this doesn\u0027t have to be perfect to convey the design or intent.","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"14f059a40bbcafe408b78b7c9548a0ab33d679b1","unresolved":false,"context_lines":[{"line_number":386,"context_line":"API and conductor need to be upgraded. During upgrade, the ironic notifier"},{"line_number":387,"context_line":"needs to be configured in neutron. There is going to be no need to enable this"},{"line_number":388,"context_line":"feature, it will be enabled by default."},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"In case of rolling upgrade, ironic conductors are upgraded first, then ironic"},{"line_number":391,"context_line":"APIs, then neutron is reconfigured to enable the notifier."},{"line_number":392,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"3f79a3b5_aa929747","line":389,"updated":"2018-11-27 22:51:23.000000000","message":"this is an implementation detail, but we might want to end up with a boolean that can be changed upon HUP. Just a thought to allow things to proeed without neutron already begin reconfigured and that configuration could be changed in ironic without a restart.","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"14f059a40bbcafe408b78b7c9548a0ab33d679b1","unresolved":false,"context_lines":[{"line_number":394,"context_line":"enabling notifier in neutron becomes obligatory, otherwise an operator will"},{"line_number":395,"context_line":"have to send the notifications to ironic API manually, or the deployment will"},{"line_number":396,"context_line":"be failing by timeout as no network event is going to be received. This bit"},{"line_number":397,"context_line":"might need to be revisisted during review :)"},{"line_number":398,"context_line":""},{"line_number":399,"context_line":"Documentation Impact"},{"line_number":400,"context_line":"\u003d\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":16,"id":"3f79a3b5_6a98ff65","line":397,"updated":"2018-11-27 22:51:23.000000000","message":":) ++","commit_id":"2724f04a89bd3344d7f326a1f9ea6bbbb9a7a4a0"}]}
