)]}'
{"nova_powervm/virt/powervm/driver.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"b4d530c16988ca24fa60d230c988027477008b46","unresolved":false,"context_lines":[{"line_number":407,"context_line":""},{"line_number":408,"context_line":"        # We need to create a special FeedTask to be executed immediately after"},{"line_number":409,"context_line":"        # the LPAR is created in the event of recreate for scrubbing purposes."},{"line_number":410,"context_line":"        rcrt_stg_ftsk \u003d (pvm_par.build_active_vio_feed_task("},{"line_number":411,"context_line":"            self.adapter, name\u003d\u0027recreate_scrubber\u0027, xag\u003dxag)"},{"line_number":412,"context_line":"            if recreate else stg_ftsk)"},{"line_number":413,"context_line":"        flow_spawn.add(tf_vm.Create("},{"line_number":414,"context_line":"            self.adapter, self.host_wrapper, instance, flavor,"},{"line_number":415,"context_line":"            rcrt_stg_ftsk, nvram_mgr\u003dnvram_mgr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9ad45d7e_50cdab2f","line":412,"range":{"start_line":410,"start_character":0,"end_line":412,"end_character":38},"updated":"2016-08-11 16:55:42.000000000","message":"I don\u0027t like this.  It\u0027s hackish enough that we\u0027re using the task\u0027s name to decide whether to run it right away - we should definitely *not* be splitting that logic across method boundaries.\n\nThe paradigm in other places (like volume connection) is to signify local FeedTask build/execute by passing stg_ftsk\u003dNone.  I think it should be done the same way here.","commit_id":"59cce19e35bf69d5a0d503a2a09ba17db1c60135"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"1e8f04d4992895d6a02f278bced91f4363959eba","unresolved":false,"context_lines":[{"line_number":407,"context_line":""},{"line_number":408,"context_line":"        # We need to create a special FeedTask to be executed immediately after"},{"line_number":409,"context_line":"        # the LPAR is created in the event of recreate for scrubbing purposes."},{"line_number":410,"context_line":"        rcrt_stg_ftsk \u003d (pvm_par.build_active_vio_feed_task("},{"line_number":411,"context_line":"            self.adapter, name\u003d\u0027recreate_scrubber\u0027, xag\u003dxag)"},{"line_number":412,"context_line":"            if recreate else stg_ftsk)"},{"line_number":413,"context_line":"        flow_spawn.add(tf_vm.Create("},{"line_number":414,"context_line":"            self.adapter, self.host_wrapper, instance, flavor,"},{"line_number":415,"context_line":"            rcrt_stg_ftsk, nvram_mgr\u003dnvram_mgr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9ad45d7e_7b1ecb0c","line":412,"range":{"start_line":410,"start_character":0,"end_line":412,"end_character":38},"in_reply_to":"9ad45d7e_50cdab2f","updated":"2016-08-11 18:25:59.000000000","message":"I moved creating this \"recreate\" FeedTask to the driver because the migrate code also calls tf_vm.Create, and can potentially pass None in for the stg_ftsk.\n\nMeaning the migrate code may also do this scrub if it\u0027s created in the Create task, and I believe the migrate code scrubs elsewhere.","commit_id":"59cce19e35bf69d5a0d503a2a09ba17db1c60135"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"47fef317f56c476176f9497e6dc3622840b1b24a","unresolved":false,"context_lines":[{"line_number":407,"context_line":""},{"line_number":408,"context_line":"        # We need to create a special FeedTask to be executed immediately after"},{"line_number":409,"context_line":"        # the LPAR is created in the event of recreate for scrubbing purposes."},{"line_number":410,"context_line":"        rcrt_stg_ftsk \u003d (pvm_par.build_active_vio_feed_task("},{"line_number":411,"context_line":"            self.adapter, name\u003d\u0027recreate_scrubber\u0027, xag\u003dxag)"},{"line_number":412,"context_line":"            if recreate else stg_ftsk)"},{"line_number":413,"context_line":"        flow_spawn.add(tf_vm.Create("},{"line_number":414,"context_line":"            self.adapter, self.host_wrapper, instance, flavor,"},{"line_number":415,"context_line":"            rcrt_stg_ftsk, nvram_mgr\u003dnvram_mgr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9ad45d7e_7e3d192a","line":412,"range":{"start_line":410,"start_character":0,"end_line":412,"end_character":38},"in_reply_to":"9ad45d7e_7b1ecb0c","updated":"2016-08-11 18:57:23.000000000","message":"Nope, there\u0027s no existing invocation of Create that can pass None for stg_ftsk.  Else we would have seen an exception at pypowervm/tasks/storage.py:998","commit_id":"59cce19e35bf69d5a0d503a2a09ba17db1c60135"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"242d949ccfbe92e8561eb3924787c42c8a0eb1a2","unresolved":false,"context_lines":[{"line_number":407,"context_line":""},{"line_number":408,"context_line":"        # If we\u0027re recreating pass None in for the FeedTask. This will make the"},{"line_number":409,"context_line":"        # Create task produce a FeedTask that will be used to scrub stale"},{"line_number":410,"context_line":"        # adapters immediately after the LPAR is created."},{"line_number":411,"context_line":"        flow_spawn.add(tf_vm.Create("},{"line_number":412,"context_line":"            self.adapter, self.host_wrapper, instance, flavor,"},{"line_number":413,"context_line":"            stg_ftsk\u003d(None if recreate else stg_ftsk), nvram_mgr\u003dnvram_mgr,"}],"source_content_type":"text/x-python","patch_set":2,"id":"9ad45d7e_6aaa7386","line":410,"updated":"2016-08-11 20:26:40.000000000","message":"But why do we want to pass it in on an original create?","commit_id":"26c075b51478383238f87f7f98561b26d5dc1aca"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"f43bf5f1e2d7aa0b6ee3b3c092cad274512ae5f8","unresolved":false,"context_lines":[{"line_number":407,"context_line":""},{"line_number":408,"context_line":"        # If we\u0027re recreating pass None in for the FeedTask. This will make the"},{"line_number":409,"context_line":"        # Create task produce a FeedTask that will be used to scrub stale"},{"line_number":410,"context_line":"        # adapters immediately after the LPAR is created."},{"line_number":411,"context_line":"        flow_spawn.add(tf_vm.Create("},{"line_number":412,"context_line":"            self.adapter, self.host_wrapper, instance, flavor,"},{"line_number":413,"context_line":"            stg_ftsk\u003d(None if recreate else stg_ftsk), nvram_mgr\u003dnvram_mgr,"}],"source_content_type":"text/x-python","patch_set":2,"id":"9ad45d7e_357c5ceb","line":410,"in_reply_to":"9ad45d7e_6aaa7386","updated":"2016-08-11 20:52:45.000000000","message":"So that the scrub tasks still get executed as part of that FeedTask (the way it happens now).\n\nPassing in None is a way to distinguish in the Create task to say \"Hey we\u0027re gonna need to scrub right after we create this LPAR\" because we got None. There\u0027s other ways to do this we\u0027re just going with this one.","commit_id":"26c075b51478383238f87f7f98561b26d5dc1aca"}],"nova_powervm/virt/powervm/tasks/vm.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"242d949ccfbe92e8561eb3924787c42c8a0eb1a2","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        # build_map initialization. This was so that we could construct the"},{"line_number":120,"context_line":"        # build map earlier in the spawn, just before the LPAR is created."},{"line_number":121,"context_line":"        # Only rebuilds should be passing in None for stg_ftsk."},{"line_number":122,"context_line":"        if self.stg_ftsk.name \u003d\u003d \u0027create_scrubber\u0027:"},{"line_number":123,"context_line":"            self.stg_ftsk.execute()"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        return wrap"}],"source_content_type":"text/x-python","patch_set":2,"id":"9ad45d7e_0a8e572d","line":122,"updated":"2016-08-11 20:26:40.000000000","message":"Info message?","commit_id":"26c075b51478383238f87f7f98561b26d5dc1aca"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"f43bf5f1e2d7aa0b6ee3b3c092cad274512ae5f8","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        # build_map initialization. This was so that we could construct the"},{"line_number":120,"context_line":"        # build map earlier in the spawn, just before the LPAR is created."},{"line_number":121,"context_line":"        # Only rebuilds should be passing in None for stg_ftsk."},{"line_number":122,"context_line":"        if self.stg_ftsk.name \u003d\u003d \u0027create_scrubber\u0027:"},{"line_number":123,"context_line":"            self.stg_ftsk.execute()"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        return wrap"}],"source_content_type":"text/x-python","patch_set":2,"id":"9ad45d7e_75aff47c","line":122,"in_reply_to":"9ad45d7e_0a8e572d","updated":"2016-08-11 20:52:45.000000000","message":"Done","commit_id":"26c075b51478383238f87f7f98561b26d5dc1aca"}]}
