Skip to content

Commit edbca8c

Browse files
authored
evolving migration workflow
1 parent 6a49e36 commit edbca8c

File tree

1 file changed

+5
-1
lines changed
  • plugins/son-mano-service-lifecycle-management/son_mano_slm

1 file changed

+5
-1
lines changed

plugins/son-mano-service-lifecycle-management/son_mano_slm/slm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,11 @@ def from_monitoring_ssm(self, ch, method, prop, payload):
749749
if content['workflow'] == 'rechain':
750750
self.rechain_workflow(serv_id, content['data'])
751751
if content['workflow'] == 'migrate':
752-
self.migrate_workflow(serv_id, content['data'])
752+
new_serv_id = str(uuid.uuid4())
753+
self.services[new_serv_id] = {}
754+
self.services[new_serv_id] = self.services[serv_id]
755+
self.services[new_serv_id]['old_serv_id'] = serv_id
756+
self.migrate_workflow(new_serv_id, content['data'])
753757
# TODO: add additional workflows
754758
if 'schedule' in content.keys():
755759
schedule = content['schedule']

0 commit comments

Comments
 (0)