)]}'
{"tacker/tests/unit/vm/infra_drivers/heat/data/hot_scale_custom.yaml":[{"author":{"_account_id":6348,"name":"xu-haiwei","email":"hai-xu@xr.jp.nec.com","username":"xu-haiwei"},"change_message_id":"742283c02ba7a177511ff8bfff85c5720894d179","unresolved":false,"context_lines":[{"line_number":1,"context_line":"heat_template_version: 2013-05-23"},{"line_number":2,"context_line":"description: \u0027sample-tosca-vnfd-scaling"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"  \u0027"},{"line_number":5,"context_line":"outputs:"},{"line_number":6,"context_line":"  mgmt_ip-VDU1:"},{"line_number":7,"context_line":"    value:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"5a9d85d2_7bf8617d","line":4,"range":{"start_line":4,"start_character":2,"end_line":4,"end_character":3},"updated":"2016-06-20 07:20:52.000000000","message":"This \u0027 is in wrong place.","commit_id":"1dc05a78b7688d5953578fdccaab40d86fba6568"}],"tacker/vm/infra_drivers/heat/heat.py":[{"author":{"_account_id":6348,"name":"xu-haiwei","email":"hai-xu@xr.jp.nec.com","username":"xu-haiwei"},"change_message_id":"742283c02ba7a177511ff8bfff85c5720894d179","unresolved":false,"context_lines":[{"line_number":333,"context_line":"            template_dict \u003d yaml.load(HEAT_TEMPLATE_BASE)"},{"line_number":334,"context_line":"            template_dict[\u0027description\u0027] \u003d \u0027Tacker scaling template\u0027"},{"line_number":335,"context_line":""},{"line_number":336,"context_line":"            parameters \u003d {}"},{"line_number":337,"context_line":"            template_dict[\u0027parameters\u0027] \u003d parameters"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"            # Add scaling related resource defs"},{"line_number":340,"context_line":"            resources \u003d {}"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a9d85d2_9e31bbef","line":337,"range":{"start_line":336,"start_character":12,"end_line":337,"end_character":52},"updated":"2016-06-20 07:20:52.000000000","message":"Why not merge these two lines?","commit_id":"1dc05a78b7688d5953578fdccaab40d86fba6568"},{"author":{"_account_id":6348,"name":"xu-haiwei","email":"hai-xu@xr.jp.nec.com","username":"xu-haiwei"},"change_message_id":"742283c02ba7a177511ff8bfff85c5720894d179","unresolved":false,"context_lines":[{"line_number":351,"context_line":"                                               scale_resource_type):"},{"line_number":352,"context_line":"                group_hot \u003d {\u0027type\u0027: \u0027OS::Heat::AutoScalingGroup\u0027}"},{"line_number":353,"context_line":"                properties \u003d {}"},{"line_number":354,"context_line":"                properties[\u0027min_size\u0027] \u003d group_prp[\u0027min_count\u0027]"},{"line_number":355,"context_line":"                properties[\u0027max_size\u0027] \u003d group_prp[\u0027max_count\u0027]"},{"line_number":356,"context_line":"                properties[\u0027desired_capacity\u0027] \u003d group_prp[\u0027init_count\u0027]"},{"line_number":357,"context_line":"                properties[\u0027cooldown\u0027] \u003d CONF.tacker_heat.scale_cooldown"},{"line_number":358,"context_line":"                # TODO(kanagaraj-manickam) all VDU memebers are considered,"},{"line_number":359,"context_line":"                # and already its converted as custome type template in main"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a9d85d2_7e684fbb","line":356,"range":{"start_line":354,"start_character":0,"end_line":356,"end_character":72},"updated":"2016-06-20 07:20:52.000000000","message":"How about writing like this:\n\n    properties[\u0027min_size\u0027] \u003d group_prp.get(\u0027min_count\u0027, None)\n\n    properties[\u0027max_size\u0027] \u003d group_prp.get(\u0027max_count\u0027, None)\n\n    properties[\u0027desired_capacity\u0027] \u003d group_prp.get(\u0027init_count\u0027, None)\n\nThere should a validation for min_size, max_size, init_count in case they are not configured in template.","commit_id":"1dc05a78b7688d5953578fdccaab40d86fba6568"},{"author":{"_account_id":6348,"name":"xu-haiwei","email":"hai-xu@xr.jp.nec.com","username":"xu-haiwei"},"change_message_id":"742283c02ba7a177511ff8bfff85c5720894d179","unresolved":false,"context_lines":[{"line_number":354,"context_line":"                properties[\u0027min_size\u0027] \u003d group_prp[\u0027min_count\u0027]"},{"line_number":355,"context_line":"                properties[\u0027max_size\u0027] \u003d group_prp[\u0027max_count\u0027]"},{"line_number":356,"context_line":"                properties[\u0027desired_capacity\u0027] \u003d group_prp[\u0027init_count\u0027]"},{"line_number":357,"context_line":"                properties[\u0027cooldown\u0027] \u003d CONF.tacker_heat.scale_cooldown"},{"line_number":358,"context_line":"                # TODO(kanagaraj-manickam) all VDU memebers are considered,"},{"line_number":359,"context_line":"                # and already its converted as custome type template in main"},{"line_number":360,"context_line":"                # logic and for the same scale_group_type is given in params"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a9d85d2_1e5dcbe9","line":357,"updated":"2016-06-20 07:20:52.000000000","message":"Why not define \u0027cooldown\u0027 in template too? Since \u0027cooldown\u0027 time may be different to different vnfs.","commit_id":"1dc05a78b7688d5953578fdccaab40d86fba6568"},{"author":{"_account_id":6348,"name":"xu-haiwei","email":"hai-xu@xr.jp.nec.com","username":"xu-haiwei"},"change_message_id":"742283c02ba7a177511ff8bfff85c5720894d179","unresolved":false,"context_lines":[{"line_number":388,"context_line":"                policy_hot \u003d {\u0027type\u0027: \u0027OS::Heat::ScalingPolicy\u0027}"},{"line_number":389,"context_line":"                properties \u003d {}"},{"line_number":390,"context_line":"                properties[\u0027adjustment_type\u0027] \u003d \u0027change_in_capacity\u0027"},{"line_number":391,"context_line":"                properties[\u0027cooldown\u0027] \u003d CONF.tacker_heat.scale_cooldown"},{"line_number":392,"context_line":"                properties[\u0027scaling_adjustment\u0027] \u003d policy_prp[\u0027adjust_by\u0027]"},{"line_number":393,"context_line":"                # TODO(kanagaraj-manickam) Support for more than 1 target"},{"line_number":394,"context_line":"                # and validate for size"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a9d85d2_7edb2fee","line":391,"updated":"2016-06-20 07:20:52.000000000","message":"ditto","commit_id":"1dc05a78b7688d5953578fdccaab40d86fba6568"},{"author":{"_account_id":20560,"name":"Tung Doan","email":"doantungbk.203@gmail.com","username":"doantungbk"},"change_message_id":"ea1565225e0ed1df3cef140e23181bf7a932c5ee","unresolved":false,"context_lines":[{"line_number":421,"context_line":"            #     - SP1:"},{"line_number":422,"context_line":"            #         type: tosca.policy.tacker.Scaling"},{"line_number":423,"context_line":"            if \u0027policies\u0027 in vnfd_dict:"},{"line_number":424,"context_line":"                for policy_dict in vnfd_dict[\u0027policies\u0027]:"},{"line_number":425,"context_line":"                    name, policy \u003d policy_dict.items()[0]"},{"line_number":426,"context_line":"                    if policy[\u0027type\u0027] \u003d\u003d \u0027tosca.policy.tacker.Scaling\u0027:"},{"line_number":427,"context_line":"                        _convert_to_heat_scaling_policy(policy[\u0027properties\u0027],"},{"line_number":428,"context_line":"                                                        name)"}],"source_content_type":"text/x-python","patch_set":19,"id":"fad55976_246fee93","line":425,"range":{"start_line":424,"start_character":16,"end_line":425,"end_character":57},"updated":"2016-07-15 15:51:28.000000000","message":"It seems to be incorrect here. Please check it again.","commit_id":"5b9381dec1668a682e0d13e16fbf8487658b131b"},{"author":{"_account_id":20560,"name":"Tung Doan","email":"doantungbk.203@gmail.com","username":"doantungbk"},"change_message_id":"af334884bcef18f1696a81be8b8e50696b4aae7f","unresolved":false,"context_lines":[{"line_number":421,"context_line":"            #     - SP1:"},{"line_number":422,"context_line":"            #         type: tosca.policy.tacker.Scaling"},{"line_number":423,"context_line":"            if \u0027policies\u0027 in vnfd_dict:"},{"line_number":424,"context_line":"                for policy_dict in vnfd_dict[\u0027policies\u0027]:"},{"line_number":425,"context_line":"                    name, policy \u003d policy_dict.items()[0]"},{"line_number":426,"context_line":"                    if policy[\u0027type\u0027] \u003d\u003d \u0027tosca.policy.tacker.Scaling\u0027:"},{"line_number":427,"context_line":"                        _convert_to_heat_scaling_policy(policy[\u0027properties\u0027],"},{"line_number":428,"context_line":"                                                        name)"}],"source_content_type":"text/x-python","patch_set":19,"id":"fad55976_b4a5cdb6","line":425,"range":{"start_line":424,"start_character":16,"end_line":425,"end_character":57},"in_reply_to":"fad55976_246fee93","updated":"2016-07-15 16:53:53.000000000","message":"oh.. sorry. it is fine!","commit_id":"5b9381dec1668a682e0d13e16fbf8487658b131b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"bbb6915f72b4c37805ce01f8d9b15d6d441957a5","unresolved":false,"context_lines":[{"line_number":799,"context_line":"        ))"},{"line_number":800,"context_line":""},{"line_number":801,"context_line":"    @log.log"},{"line_number":802,"context_line":"    def scale_wait(self,"},{"line_number":803,"context_line":"                   context,"},{"line_number":804,"context_line":"                   plugin,"},{"line_number":805,"context_line":"                   auth_attr,"}],"source_content_type":"text/x-python","patch_set":24,"id":"dada55a8_bc5e2b74","line":802,"range":{"start_line":802,"start_character":8,"end_line":802,"end_character":18},"updated":"2016-07-23 02:12:09.000000000","message":"can we name this to get_scale_info? or something intuitive (i\u0027m aware we follow the existing functionality of create, update and delete) but we should name this according to the logic it handles which is basically polling the resource status and returning some info like mgmt_ip, etc.","commit_id":"b4325c6a9db172827069bfb26ce4b91acb6e0942"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"8ab8d70d2335821fa6200a26fbabf753742aac38","unresolved":false,"context_lines":[{"line_number":799,"context_line":"        ))"},{"line_number":800,"context_line":""},{"line_number":801,"context_line":"    @log.log"},{"line_number":802,"context_line":"    def scale_wait(self,"},{"line_number":803,"context_line":"                   context,"},{"line_number":804,"context_line":"                   plugin,"},{"line_number":805,"context_line":"                   auth_attr,"}],"source_content_type":"text/x-python","patch_set":24,"id":"dada55a8_cbfeaa37","line":802,"range":{"start_line":802,"start_character":8,"end_line":802,"end_character":18},"in_reply_to":"dada55a8_bc5e2b74","updated":"2016-07-25 04:08:35.000000000","message":"I have kept the same naming convention as other action\u0027s method like create_wait.","commit_id":"b4325c6a9db172827069bfb26ce4b91acb6e0942"}],"tacker/vm/infra_drivers/scale_driver.py":[{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"2730a6c7cf72e691be9d76fd0bfa0a96889bfab2","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":24,"context_line":"class DeviceScaleAbstractDriver(extensions.PluginInterface):"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    @abc.abstractmethod"},{"line_number":27,"context_line":"    def scale(self,"}],"source_content_type":"text/x-python","patch_set":19,"id":"1aa78d24_db3316f5","line":24,"range":{"start_line":24,"start_character":6,"end_line":24,"end_character":17},"updated":"2016-07-15 00:45:12.000000000","message":"VnfScale instead ?","commit_id":"5b9381dec1668a682e0d13e16fbf8487658b131b"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"7beb642cb4f3f076ccc6f73db719aa87e9635f38","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":24,"context_line":"class DeviceScaleAbstractDriver(extensions.PluginInterface):"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    @abc.abstractmethod"},{"line_number":27,"context_line":"    def scale(self,"}],"source_content_type":"text/x-python","patch_set":19,"id":"fad55976_eebe3ed3","line":24,"range":{"start_line":24,"start_character":6,"end_line":24,"end_character":17},"in_reply_to":"1aa78d24_db3316f5","updated":"2016-07-18 03:25:55.000000000","message":"sure","commit_id":"5b9381dec1668a682e0d13e16fbf8487658b131b"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"8347e0b68fc15e99a14f48de6659c2f0bb64c0ec","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":24,"context_line":"class VnfScaleAbstractDriver(extensions.PluginInterface):"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    @abc.abstractmethod"},{"line_number":27,"context_line":"    def scale(self,"}],"source_content_type":"text/x-python","patch_set":26,"id":"bacf61ea_5302470a","line":24,"range":{"start_line":24,"start_character":40,"end_line":24,"end_character":55},"updated":"2016-08-04 03:15:09.000000000","message":"it should not be a plugin.","commit_id":"89cb3c4fbcb7ba658f3f04fb6865cea2349d2dfa"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"ee14866c1daf2d5129b9eab226e8addfb8d1278c","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":24,"context_line":"class VnfScaleAbstractDriver(extensions.PluginInterface):"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    @abc.abstractmethod"},{"line_number":27,"context_line":"    def scale(self,"}],"source_content_type":"text/x-python","patch_set":26,"id":"bacf61ea_99a15549","line":24,"range":{"start_line":24,"start_character":40,"end_line":24,"end_character":55},"in_reply_to":"bacf61ea_164a7dac","updated":"2016-08-04 19:00:50.000000000","message":"gongysh is referring to the PluginInterface class being inherited by a driver child class. It seems weird for a driver inheriting a PluginInterface when we look at this code. However the logic that is in PluginInterface is just validating all subclasses strictly implement the methods defined in the abstract class which is required by both drivers and plugins. I think we should revisit this in follow on, naming it to something intuitive like TackerInterfaceBase, etc.","commit_id":"89cb3c4fbcb7ba658f3f04fb6865cea2349d2dfa"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"5f2351b380e07dbf51428383f75ceb4b075eddb0","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":24,"context_line":"class VnfScaleAbstractDriver(extensions.PluginInterface):"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    @abc.abstractmethod"},{"line_number":27,"context_line":"    def scale(self,"}],"source_content_type":"text/x-python","patch_set":26,"id":"bacf61ea_164a7dac","line":24,"range":{"start_line":24,"start_character":40,"end_line":24,"end_character":55},"in_reply_to":"bacf61ea_5302470a","updated":"2016-08-04 04:26:29.000000000","message":"not sure what is wrong here ? its working code.","commit_id":"89cb3c4fbcb7ba658f3f04fb6865cea2349d2dfa"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"b688854739a158b6479b7213466236323d549863","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":24,"context_line":"class VnfScaleAbstractDriver(extensions.PluginInterface):"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    @abc.abstractmethod"},{"line_number":27,"context_line":"    def scale(self,"}],"source_content_type":"text/x-python","patch_set":26,"id":"bacf61ea_97e4723c","line":24,"range":{"start_line":24,"start_character":40,"end_line":24,"end_character":55},"in_reply_to":"bacf61ea_96647722","updated":"2016-08-05 00:58:48.000000000","message":"ok. i tried to alignment with existing code and we could revisit and revamp this interface name to be aligned across other drivers as well. thanks.","commit_id":"89cb3c4fbcb7ba658f3f04fb6865cea2349d2dfa"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"45a8f11c3ac5ec475419f004fec8209452d85114","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":24,"context_line":"class VnfScaleAbstractDriver(extensions.PluginInterface):"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    @abc.abstractmethod"},{"line_number":27,"context_line":"    def scale(self,"}],"source_content_type":"text/x-python","patch_set":26,"id":"bacf61ea_96647722","line":24,"range":{"start_line":24,"start_character":40,"end_line":24,"end_character":55},"in_reply_to":"bacf61ea_99a15549","updated":"2016-08-04 23:57:18.000000000","message":"+1, we need to revisit this along with other follow items identified for this patchset.","commit_id":"89cb3c4fbcb7ba658f3f04fb6865cea2349d2dfa"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"8347e0b68fc15e99a14f48de6659c2f0bb64c0ec","unresolved":false,"context_lines":[{"line_number":29,"context_line":"              plugin,"},{"line_number":30,"context_line":"              auth_attr,"},{"line_number":31,"context_line":"              policy,"},{"line_number":32,"context_line":"              region_name):"},{"line_number":33,"context_line":"        pass"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    @abc.abstractmethod"}],"source_content_type":"text/x-python","patch_set":26,"id":"bacf61ea_01087c2c","line":32,"range":{"start_line":32,"start_character":25,"end_line":32,"end_character":27},"updated":"2016-08-04 03:15:09.000000000","message":"no need to make it multiple line style.","commit_id":"89cb3c4fbcb7ba658f3f04fb6865cea2349d2dfa"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"5f2351b380e07dbf51428383f75ceb4b075eddb0","unresolved":false,"context_lines":[{"line_number":29,"context_line":"              plugin,"},{"line_number":30,"context_line":"              auth_attr,"},{"line_number":31,"context_line":"              policy,"},{"line_number":32,"context_line":"              region_name):"},{"line_number":33,"context_line":"        pass"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    @abc.abstractmethod"}],"source_content_type":"text/x-python","patch_set":26,"id":"bacf61ea_16e1dd9a","line":32,"range":{"start_line":32,"start_character":25,"end_line":32,"end_character":27},"in_reply_to":"bacf61ea_01087c2c","updated":"2016-08-04 04:26:29.000000000","message":"why do you feel so, its a best practise i followed.","commit_id":"89cb3c4fbcb7ba658f3f04fb6865cea2349d2dfa"}]}
