)]}'
{"tacker/api/v1/base.py":[{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"5c50bf11f4064f091a3a466e408c855f134a9bad","unresolved":false,"context_lines":[{"line_number":353,"context_line":"        body \u003d Controller.prepare_request_body(request.context, body, True,"},{"line_number":354,"context_line":"                                               self._resource, self._attr_info,"},{"line_number":355,"context_line":"                                               allow_bulk\u003dself._allow_bulk)"},{"line_number":356,"context_line":"        if self._resource \u003d\u003d \u0027vnfd\u0027 and self._to_validate_vnfd("},{"line_number":357,"context_line":"                body, \u0027vnfd-validate-only\u0027):"},{"line_number":358,"context_line":"            action \u003d self._plugin_handlers[self.VALIDATE]"},{"line_number":359,"context_line":"            obj_validator \u003d getattr(self._plugin, action)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_bc5f560d","line":356,"range":{"start_line":356,"start_character":40,"end_line":356,"end_character":62},"updated":"2016-07-04 02:03:50.000000000","message":"Please give an appropriate method name.\nAlthough IMO, we can directly put check here instead of calling another method.","commit_id":"1c2533f0e4658404d5fb92a2f32a766845694bb3"},{"author":{"_account_id":22061,"name":"Neeldhwaj Pathak","email":"neeldhwaj.pathak@imaginea.com","username":"neel"},"change_message_id":"4cb0d77e9af3fdfe8968918fbeea9c34358ff617","unresolved":false,"context_lines":[{"line_number":353,"context_line":"        body \u003d Controller.prepare_request_body(request.context, body, True,"},{"line_number":354,"context_line":"                                               self._resource, self._attr_info,"},{"line_number":355,"context_line":"                                               allow_bulk\u003dself._allow_bulk)"},{"line_number":356,"context_line":"        if self._resource \u003d\u003d \u0027vnfd\u0027 and self._to_validate_vnfd("},{"line_number":357,"context_line":"                body, \u0027vnfd-validate-only\u0027):"},{"line_number":358,"context_line":"            action \u003d self._plugin_handlers[self.VALIDATE]"},{"line_number":359,"context_line":"            obj_validator \u003d getattr(self._plugin, action)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_5bff2667","line":356,"range":{"start_line":356,"start_character":40,"end_line":356,"end_character":62},"in_reply_to":"1aa78d24_bc5f560d","updated":"2016-07-05 06:42:32.000000000","message":"Yes. I will remove the method. Earlier, had more lines in the method but with optimizations it got reduced to 1 and the method sort of stayed.","commit_id":"1c2533f0e4658404d5fb92a2f32a766845694bb3"}],"tacker/vm/plugin.py":[{"author":{"_account_id":22061,"name":"Neeldhwaj Pathak","email":"neeldhwaj.pathak@imaginea.com","username":"neel"},"change_message_id":"4cb0d77e9af3fdfe8968918fbeea9c34358ff617","unresolved":false,"context_lines":[{"line_number":423,"context_line":"        template \u003d device_template[\u0027device_template\u0027]"},{"line_number":424,"context_line":"        LOG.debug(_(\u0027template %s\u0027), template)"},{"line_number":425,"context_line":""},{"line_number":426,"context_line":"        infra_driver \u003d template.get(\u0027infra_driver\u0027)"},{"line_number":427,"context_line":"        if not attributes.is_attr_set(infra_driver):"},{"line_number":428,"context_line":"            LOG.debug(_(\u0027hosting device driver must be specified\u0027))"},{"line_number":429,"context_line":"            raise vnfm.InfraDriverNotSpecified()"},{"line_number":430,"context_line":"        if infra_driver not in self._device_manager:"},{"line_number":431,"context_line":"            LOG.debug(_(\u0027unknown hosting device driver \u0027"},{"line_number":432,"context_line":"                        \u0027%(infra_driver)s in %(drivers)s\u0027),"},{"line_number":433,"context_line":"                      {\u0027infra_driver\u0027: infra_driver,"},{"line_number":434,"context_line":"                       \u0027drivers\u0027: cfg.CONF.tacker.infra_driver})"},{"line_number":435,"context_line":"            raise vnfm.InvalidInfraDriver(infra_driver\u003dinfra_driver)"},{"line_number":436,"context_line":""},{"line_number":437,"context_line":"        service_types \u003d template.get(\u0027service_types\u0027)"},{"line_number":438,"context_line":"        if not attributes.is_attr_set(service_types):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_76acb935","line":435,"range":{"start_line":426,"start_character":8,"end_line":435,"end_character":68},"updated":"2016-07-05 06:42:32.000000000","message":"Removing this as we have removed in client as a part of review [1]\n\n[1]https://review.openstack.org/#/c/333853/4/tackerclient/v1_0/client.py","commit_id":"1c2533f0e4658404d5fb92a2f32a766845694bb3"},{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"5c50bf11f4064f091a3a466e408c855f134a9bad","unresolved":false,"context_lines":[{"line_number":442,"context_line":"        vnfd_yaml \u003d device_template_dict[\u0027attributes\u0027].get("},{"line_number":443,"context_line":"            \u0027vnfd-validate-only\u0027)"},{"line_number":444,"context_line":"        if vnfd_yaml is None:"},{"line_number":445,"context_line":"            return"},{"line_number":446,"context_line":""},{"line_number":447,"context_line":"        vnfd_dict \u003d yaml.load(vnfd_yaml)"},{"line_number":448,"context_line":"        LOG.debug(_(\u0027vnfd_dict: %s\u0027), vnfd_dict)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_89097e34","line":445,"range":{"start_line":445,"start_character":0,"end_line":445,"end_character":1},"updated":"2016-07-04 02:03:50.000000000","message":"Good to have log message here too.","commit_id":"1c2533f0e4658404d5fb92a2f32a766845694bb3"},{"author":{"_account_id":22061,"name":"Neeldhwaj Pathak","email":"neeldhwaj.pathak@imaginea.com","username":"neel"},"change_message_id":"4cb0d77e9af3fdfe8968918fbeea9c34358ff617","unresolved":false,"context_lines":[{"line_number":442,"context_line":"        vnfd_yaml \u003d device_template_dict[\u0027attributes\u0027].get("},{"line_number":443,"context_line":"            \u0027vnfd-validate-only\u0027)"},{"line_number":444,"context_line":"        if vnfd_yaml is None:"},{"line_number":445,"context_line":"            return"},{"line_number":446,"context_line":""},{"line_number":447,"context_line":"        vnfd_dict \u003d yaml.load(vnfd_yaml)"},{"line_number":448,"context_line":"        LOG.debug(_(\u0027vnfd_dict: %s\u0027), vnfd_dict)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_b6ff41a9","line":445,"range":{"start_line":445,"start_character":0,"end_line":445,"end_character":1},"in_reply_to":"1aa78d24_89097e34","updated":"2016-07-05 06:42:32.000000000","message":"Done","commit_id":"1c2533f0e4658404d5fb92a2f32a766845694bb3"},{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"5c50bf11f4064f091a3a466e408c855f134a9bad","unresolved":false,"context_lines":[{"line_number":456,"context_line":""},{"line_number":457,"context_line":"        return vnfd_dict"},{"line_number":458,"context_line":""},{"line_number":459,"context_line":"    def validate_vnfd(self, context, vnfd):"},{"line_number":460,"context_line":"        vnfd[\u0027device_template\u0027] \u003d vnfd.pop(\u0027vnfd\u0027)"},{"line_number":461,"context_line":"        return self.validate_device_template(context, vnfd)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_49bb1673","line":459,"range":{"start_line":459,"start_character":8,"end_line":459,"end_character":21},"updated":"2016-07-04 02:03:50.000000000","message":"We should have test cases for this.","commit_id":"1c2533f0e4658404d5fb92a2f32a766845694bb3"},{"author":{"_account_id":22061,"name":"Neeldhwaj Pathak","email":"neeldhwaj.pathak@imaginea.com","username":"neel"},"change_message_id":"4cb0d77e9af3fdfe8968918fbeea9c34358ff617","unresolved":false,"context_lines":[{"line_number":456,"context_line":""},{"line_number":457,"context_line":"        return vnfd_dict"},{"line_number":458,"context_line":""},{"line_number":459,"context_line":"    def validate_vnfd(self, context, vnfd):"},{"line_number":460,"context_line":"        vnfd[\u0027device_template\u0027] \u003d vnfd.pop(\u0027vnfd\u0027)"},{"line_number":461,"context_line":"        return self.validate_device_template(context, vnfd)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_f6f1c96b","line":459,"range":{"start_line":459,"start_character":8,"end_line":459,"end_character":21},"in_reply_to":"1aa78d24_49bb1673","updated":"2016-07-05 06:42:32.000000000","message":"We have already created a separate bug [1] for adding the unit test cases in python-tackerclient. Can we even cover this test case as a part of [1]?\n\n[1]https://bugs.launchpad.net/tacker/+bug/1596887","commit_id":"1c2533f0e4658404d5fb92a2f32a766845694bb3"},{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"a1a7f3ed0f94ca509cbd0e8f047fb3ead8b25010","unresolved":false,"context_lines":[{"line_number":433,"context_line":"            LOG.debug(_(\u0027vnfd_yaml not present for \"vnfd-validate-only\".\u0027))"},{"line_number":434,"context_line":"            return"},{"line_number":435,"context_line":""},{"line_number":436,"context_line":"        vnfd_dict \u003d yaml.load(vnfd_yaml)"},{"line_number":437,"context_line":"        LOG.debug(_(\u0027vnfd_dict: %s\u0027), vnfd_dict)"},{"line_number":438,"context_line":""},{"line_number":439,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_df2df4a9","line":436,"range":{"start_line":436,"start_character":8,"end_line":436,"end_character":40},"updated":"2016-07-14 06:20:33.000000000","message":"If vnfd_yaml is not in yaml format, it will raise an exception. It should be handled here.","commit_id":"938d54b56382e90905f9320bcd93f14bee622c0a"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"7b37fe2767539b2bc653766c0c73b9ce9f72e538","unresolved":false,"context_lines":[{"line_number":438,"context_line":"            raise vnfm.ServiceTypesNotSpecified()"},{"line_number":439,"context_line":"        device_template_dict \u003d device_template[\u0027device_template\u0027]"},{"line_number":440,"context_line":"        vnfd_yaml \u003d device_template_dict[\u0027attributes\u0027].get("},{"line_number":441,"context_line":"            \u0027vnfd-validate-only\u0027)"},{"line_number":442,"context_line":"        if vnfd_yaml is None:"},{"line_number":443,"context_line":"            LOG.debug(_(\u0027vnfd_yaml not present for \"vnfd-validate-only\".\u0027))"},{"line_number":444,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_8922ecff","line":441,"range":{"start_line":441,"start_character":18,"end_line":441,"end_character":26},"updated":"2016-07-19 09:13:49.000000000","message":"why do we introduce this special attr?\n\nthis means users must modify the vnfd templates after the validation.\n\nvnfd templates cannot be used after validation is not good for configuration system.","commit_id":"aafd93d9aeac01c933240db9fc68e60e8beaa789"},{"author":{"_account_id":22061,"name":"Neeldhwaj Pathak","email":"neeldhwaj.pathak@imaginea.com","username":"neel"},"change_message_id":"f99f8676d753d9b36fb147db495441c7733b6ab1","unresolved":false,"context_lines":[{"line_number":438,"context_line":"            raise vnfm.ServiceTypesNotSpecified()"},{"line_number":439,"context_line":"        device_template_dict \u003d device_template[\u0027device_template\u0027]"},{"line_number":440,"context_line":"        vnfd_yaml \u003d device_template_dict[\u0027attributes\u0027].get("},{"line_number":441,"context_line":"            \u0027vnfd-validate-only\u0027)"},{"line_number":442,"context_line":"        if vnfd_yaml is None:"},{"line_number":443,"context_line":"            LOG.debug(_(\u0027vnfd_yaml not present for \"vnfd-validate-only\".\u0027))"},{"line_number":444,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_345fd042","line":441,"range":{"start_line":441,"start_character":18,"end_line":441,"end_character":26},"in_reply_to":"dada55a8_8922ecff","updated":"2016-07-19 12:23:52.000000000","message":"@gongysh: The special attribute is inserted dynamically by the tacker client so that tacker server will know that it just has to validate the vnfd template. Users don\u0027t need to change anything. The same (without modification) template can be used to onboard a vnf once the template is successfully validated.\nHope this clarifies your question.","commit_id":"aafd93d9aeac01c933240db9fc68e60e8beaa789"},{"author":{"_account_id":20866,"name":"Janki Chhatbar","email":"jchhatba@redhat.com","username":"janki"},"change_message_id":"4383af06c54c29e55cb24769b65ad5cdf96c9756","unresolved":false,"context_lines":[{"line_number":589,"context_line":""},{"line_number":590,"context_line":"        return scale[\u0027scale\u0027]"},{"line_number":591,"context_line":""},{"line_number":592,"context_line":"    def validate_device_template(self, context, device_template):"},{"line_number":593,"context_line":"        template \u003d device_template[\u0027device_template\u0027]"},{"line_number":594,"context_line":"        LOG.debug(_(\u0027template %s\u0027), template)"},{"line_number":595,"context_line":"        service_types \u003d template.get(\u0027service_types\u0027)"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa7ab95a_58884c71","line":592,"range":{"start_line":592,"start_character":8,"end_line":592,"end_character":33},"updated":"2016-08-30 13:26:20.000000000","message":"Might need to replace \"device_template\" with \"vnfd\" everywhere in accordance with the device refactor process going around. Also remove \"validate_device_template\" func and add its logic to \"validate_vnfd\" func.","commit_id":"5b7f41f37c9456399822bbc59dcb6080086809d4"},{"author":{"_account_id":22061,"name":"Neeldhwaj Pathak","email":"neeldhwaj.pathak@imaginea.com","username":"neel"},"change_message_id":"f3ecef00c9c56bbd7b7864989af74d5f9d2c5fa2","unresolved":false,"context_lines":[{"line_number":589,"context_line":""},{"line_number":590,"context_line":"        return scale[\u0027scale\u0027]"},{"line_number":591,"context_line":""},{"line_number":592,"context_line":"    def validate_device_template(self, context, device_template):"},{"line_number":593,"context_line":"        template \u003d device_template[\u0027device_template\u0027]"},{"line_number":594,"context_line":"        LOG.debug(_(\u0027template %s\u0027), template)"},{"line_number":595,"context_line":"        service_types \u003d template.get(\u0027service_types\u0027)"}],"source_content_type":"text/x-python","patch_set":8,"id":"7a8ec9b2_1a6ab91a","line":592,"range":{"start_line":592,"start_character":8,"end_line":592,"end_character":33},"in_reply_to":"fa7ab95a_58884c71","updated":"2016-09-15 06:51:05.000000000","message":"Done","commit_id":"5b7f41f37c9456399822bbc59dcb6080086809d4"}],"tacker/vnfm/plugin.py":[{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"dd1e265448e0c9f4b2635a296e3784d14bd2af19","unresolved":false,"context_lines":[{"line_number":516,"context_line":"    def validate_vnfd(self, context, vnfd):"},{"line_number":517,"context_line":"        vnfd_data \u003d vnfd[\u0027vnfd\u0027]"},{"line_number":518,"context_line":"        template \u003d vnfd_data[\u0027attributes\u0027].get(\u0027vnfd\u0027)"},{"line_number":519,"context_line":"        if \"tosca_definitions_version\" not in template:"},{"line_number":520,"context_line":"            versionutils.report_deprecated_feature(LOG, \u0027VNFD legacy vnfds\u0027"},{"line_number":521,"context_line":"                \u0027 are deprecated since Mitaka release and will be removed in\u0027"},{"line_number":522,"context_line":"                \u0027 Ocata release. Please use NFV TOSCA vnfds.\u0027)"},{"line_number":523,"context_line":""},{"line_number":524,"context_line":"        LOG.debug(_(\u0027vnfd %s\u0027), vnfd_data)"},{"line_number":525,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa6399be_10fd5f3a","line":522,"range":{"start_line":519,"start_character":6,"end_line":522,"end_character":62},"updated":"2016-10-12 02:24:15.000000000","message":"remove these since we are already in Ocata","commit_id":"98a805e25380dd1c882c0896a7555365a2bb07de"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"dd1e265448e0c9f4b2635a296e3784d14bd2af19","unresolved":false,"context_lines":[{"line_number":529,"context_line":"            raise vnfm.ServiceTypesNotSpecified()"},{"line_number":530,"context_line":"        vnfd_dict \u003d vnfd[\u0027vnfd\u0027]"},{"line_number":531,"context_line":"        vnfd_yaml \u003d vnfd_dict[\u0027attributes\u0027].get("},{"line_number":532,"context_line":"            \u0027vnfd-validate-only\u0027)"},{"line_number":533,"context_line":"        if vnfd_yaml is None:"},{"line_number":534,"context_line":"            LOG.debug(_(\u0027vnfd_yaml not present for \"vnfd-validate-only\".\u0027))"},{"line_number":535,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa6399be_50bc376c","line":532,"range":{"start_line":532,"start_character":18,"end_line":532,"end_character":26},"updated":"2016-10-12 02:24:15.000000000","message":"why we need this vnfd-validate-only attr?","commit_id":"98a805e25380dd1c882c0896a7555365a2bb07de"}]}
