Skip to content
Permalink
Browse files

api: increase wait time during migration to 60s

  • Loading branch information
aither64 committed Feb 8, 2020
1 parent 7dfc766 commit 57d4fd9b0fbe275d2a305b0bb5b67c9638e58c25
@@ -87,7 +87,7 @@ def link_chain(vps, dst_node, opts = {})
mounts.remount_mine

# Wait for routing to remove routes from the original system
append(Transactions::Utils::NoOp, args: [find_node_id, sleep: 20], urgent: true)
append(Transactions::Utils::NoOp, args: [find_node_id, sleep: 60], urgent: true)

# Restore VPS state
call_hooks_for(:pre_start, self, args: [dst_vps, was_running?])
@@ -179,7 +179,7 @@ def link_chain(vps, dst_node, opts = {})
mounts.remount_mine

# Wait for routing to remove routes from the original system
append(Transactions::Utils::NoOp, args: [find_node_id, sleep: 20], urgent: true)
append(Transactions::Utils::NoOp, args: [find_node_id, sleep: 60], urgent: true)

# Convert internal configuration files to OpenVZ based on distribution
append(Transactions::Vps::OsToVz, args: [dst_vps, src_vps.os_template], urgent: true)
@@ -177,7 +177,7 @@ def link_chain(vps, dst_node, opts = {})
mounts.remount_mine

# Wait for routing to remove routes from the original system
append(Transactions::Utils::NoOp, args: [find_node_id, sleep: 20], urgent: true)
append(Transactions::Utils::NoOp, args: [find_node_id, sleep: 60], urgent: true)

# Convert internal configuration files to vpsAdminOS based on distribution
append(Transactions::Vps::VzToOs, args: [dst_vps], urgent: true)
@@ -131,7 +131,7 @@ def link_chain(vps, dst_node, opts = {})
mounts.remount_mine

# Wait for routing to remove routes from the original system
append(Transactions::Utils::NoOp, args: [find_node_id, sleep: 20], urgent: true)
append(Transactions::Utils::NoOp, args: [find_node_id, sleep: 60], urgent: true)

# Restore VPS state
call_hooks_for(:pre_start, self, args: [dst_vps, was_running?])

0 comments on commit 57d4fd9

Please sign in to comment.
You can’t perform that action at this time.