-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate a router Mist-managed #671
Open
Chr1st0ph3rTurn3r
wants to merge
17
commits into
master
Choose a base branch
from
conductor-to-mist-managed
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+128
−1
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d51f07f
adding process doc for mist migration.
Chr1st0ph3rTurn3r d310732
housekeeping
Chr1st0ph3rTurn3r b845143
revised with new procedure. I will fix the image sizes on Wednesday
Chr1st0ph3rTurn3r 56749e0
fix links, hopefully fix graphics sizes.
Chr1st0ph3rTurn3r b618c60
second attempt at image work.
Chr1st0ph3rTurn3r f47db05
updated with smaller graphics
Chr1st0ph3rTurn3r 5ad5b38
Merge branch 'master' into conductor-to-mist-managed
Chr1st0ph3rTurn3r 26749bc
adjust images, fix headings and typos.
Chr1st0ph3rTurn3r 4f99082
dead link for dnsanon tool. Removed link, will look into whether this…
Chr1st0ph3rTurn3r 7043bf3
Merge branch 'master' into conductor-to-mist-managed
Chr1st0ph3rTurn3r 36d9ee5
Merge branch 'master' into conductor-to-mist-managed
Chr1st0ph3rTurn3r 16910ab
Merge branch 'master' into conductor-to-mist-managed
Chr1st0ph3rTurn3r ce12d0c
Merge branch 'master' into conductor-to-mist-managed
Chr1st0ph3rTurn3r 6ca70e4
Merge branch 'master' into conductor-to-mist-managed
Chr1st0ph3rTurn3r 51f31da
Merge branch 'master' into conductor-to-mist-managed
Chr1st0ph3rTurn3r 7e3660f
Merge branch 'master' into conductor-to-mist-managed
Chr1st0ph3rTurn3r be0a01a
Merge branch 'master' into conductor-to-mist-managed
Chr1st0ph3rTurn3r File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
--- | ||
title: Migrating a Router to Mist | ||
sidebar_label: Migrating a Router to Mist | ||
--- | ||
|
||
This document explains the process of migrating a Conductor-managed router to a Mist-managed environment. | ||
|
||
## Prerequisites | ||
|
||
- The conductor and router are running version 3.7.0 or newer of the [Mist WAN Assurance plugin](release_notes_wan_assurance_plugin_3.7.md). | ||
- The router was previously onboarded and connected to the Mist cloud using the [ZTP Onboarding to a Conductor workflow](config_wan_assurance.md). | ||
- For HA routers, each node should have a direct connection to the Mist cloud. | ||
- The router must be online and connected to the cloud for the migration process to be initiated. | ||
- The router is running a cloud-ready installation of SSR software, such as V6.0.0 or greater. | ||
- The router configuration must be re-created on the Mist cloud. | ||
- The Mist cloud configuration should have the necessary components for establishing a successful cloud connection post migration. | ||
|
||
:::warning | ||
The migration operation will be service impacting. | ||
::: | ||
|
||
## Migrating a Standalone Router | ||
|
||
Use the following steps to perform the migration. | ||
|
||
#### 1. Login | ||
|
||
1. Login to the Conductor as `root`. | ||
2. SSH to the router from the conductor. | ||
3. Use the `harware-bootstrapper migrator` to perform the migration process. The options for using the script are shown below: | ||
|
||
``` | ||
Usage: python -m hardware-bootstrapper migrator [OPTIONS] | ||
|
||
migrate the device from conductor managed to mist managed | ||
|
||
Options: | ||
-v, --verbosity LVL Either CRITICAL, ERROR, WARNING, INFO or DEBUG | ||
-l, --log-dir PATH Log directory | ||
--verify Only verify if device is migratable | ||
--dry-run Perform a dry run. Log instead of making changes | ||
-f, --force Skip confirmation | ||
--help Show this message and exit. | ||
``` | ||
#### 2. Run the Compatibility Check | ||
|
||
This check verifies that the router is compatible for migration to Mist. | ||
|
||
``` | ||
[root@t133-dut2 centos]# /usr/libexec/hardwareBootstrapper128t migrator --verify | ||
Verifying 128T is up | ||
Validing reverse ssh | ||
Validing mist agent state | ||
only verify flag present. Exiting | ||
``` | ||
|
||
#### 3. Run the Migrator | ||
|
||
Once you initiate this command, expect a loss of connectivity to the router from the conductor. The migrator runs system checks, and then asks whether to proceed. | ||
|
||
1. Run the command `/usr/libexec/hardwareBootstrapper128t migrator` | ||
2. The migrator runs system checks, and then asks whether to proceed. | ||
3. Enter Y to proceed. | ||
|
||
``` | ||
[root@t133-dut2 centos]# /usr/libexec/hardwareBootstrapper128t migrator | ||
Verifying 128T is up | ||
Validing reverse ssh | ||
Validing mist agent state | ||
WARNING: This tool could break connection to your conductor and/or MIST. Only run this command if you know what you are doing. | ||
Proceed? (y/n) | ||
Cleaning migration backup directory | ||
Backing up file: /etc/128technology/global.init to /etc/128T-hardware-bootstrapper/migration-backups | ||
Backing up file: /etc/128technology/local.init to /etc/128T-hardware-bootstrapper/migration-backups | ||
Backing up file: /etc/128T-hardware-bootstrapper/config.json to /etc/128T-hardware-bootstrapper/migration-backups | ||
Backing up file: /etc/udev/rules.d/128-persistent-net.rules to /etc/128T-hardware-bootstrapper/migration-backups | ||
invalid format returned for interfaces: 17 | ||
unable to find device map. using default: {'ethernet': [{'type': 'WAN', 'name': 'ge-0-0', 'description': '', 'bcpNetwork': {'standaloneBranch': {'name': 'lan1'}}, 'pciAddress': '0000:00:03.0', 'vmbusId': None}, {'type': 'LAN', 'name': 'ge-0-1', 'description': '', 'bcpNetwork': {'standaloneBranch': {'name': 'lan2'}}, 'pciAddress': '0000:00:04.0', 'vmbusId': None}, {'type': 'HASync', 'name': 'ge-0-2', 'description': '', 'bcpNetwork': {'standaloneBranch': {'name': 'lan3'}}, 'pciAddress': '0000:00:05.0', 'vmbusId': None}, {'type': 'HAFabric', 'name': 'ge-0-3', 'description': '', 'bcpNetwork': {'standaloneBranch': {'name': 'lan4'}}, 'pciAddress': '0000:00:06.0', 'vmbusId': None}]} | ||
invalid format returned for interfaces: 17 | ||
Writing linux udev rules | ||
Removing conductor address from global.init | ||
Stopping and disabling salt-minion service | ||
Populating Hardware Config | ||
Restarting 128T-mist-agent service | ||
``` | ||
|
||
#### 4. Unassign the Router from the Mist Site | ||
|
||
1. Log in to your Mist Org. | ||
2. Go to WAN Edges Inventory. | ||
|
||
![Show Device](/img/mist-migration-unassign1.png) | ||
|
||
3. Select your device. | ||
4. From the More dropdown, select Assign to Site. | ||
|
||
![Assign to Site](/img/mist-migration-unassign3.png) | ||
|
||
5. In the Assign WAN Edges dialog, use the Site dropdown to select Unassigned. This unassigns your router from your conductor managed site. | ||
|
||
![Select Unassigned](/img/mist-migration-unassign4.png) | ||
|
||
6. Select the Organization, and choose WAN Edge Templates from the pull out menu. | ||
|
||
![WAN Edge Templates](/img/mist-migration-unassign5.png) | ||
|
||
7. Select the `Standalone_SSR_Migration` template from the list. | ||
8. Click the Assign to Sites button. | ||
9. Select your site from the list of sites, and click apply. | ||
|
||
![Assign to Site](/img/mist-migration2.png) | ||
|
||
10. From the Organization menu, select Inventory. | ||
11. Choose your site. | ||
12. Assign the device for migration back to your site and select `Manage configuration with Mist`. | ||
|
||
![Manage with Mist](/img/mist-migration-unassign6.png) | ||
|
||
#### 5. Installation | ||
|
||
The device starts installing the necessary cloud components to become a Mist-managed device. The SSR restarts several times during the process. | ||
|
||
You are not able to remote SSH into the device from the conductor until the migration is complete. | ||
|
||
If the SSR is currently running a package-based 6.x install, it will not be converted to image-based until the next upgrade. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought engineering developed a
migrate
command that performed several of these steps outlined here.@agrawalkaushik to confirm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We did. Spoke to Chris offline and the doc was created using the wrong source. Chris will be re-writing this.