Creating a Migration Project
Manually add system components in a container migration (for middleware and Java applications) or a non-container migration (for databases, middleware, and Java applications).
Middleware containers support Redis, Nginx, and Nacos.
Prerequisites
- You have logged in to the Kunpeng DevKit.
- You have prepared the migration source components. For details, see Preparing Migration Source Components.
Important Notes
- After a migration task is complete on a node, you can create another migration task on the node.
- If a node is occupied by another project, wait until the occupied project is complete and the node is automatically released. Alternatively, delete the project and select another node.
- Components on the same node cannot be migrated to the same target components.
- You can manually add a local node (that is, the current DevKit node) as a migration project node.
Procedure
- Click System Migration in the navigation tree on the left and then click
to go to the New Project tab page.Figure 1 New Project
- Set Migration Project Name. A project name is automatically generated by default, which can be changed if needed.
The name must meet the following requirements:
- Contain only letters, digits, periods (.), hyphens (-), and underscores (_).
- 1 to 64 characters.
- Under Component Table, configure the components that you want to migrate.
- When configuring the components to be migrated, you can click Save Configuration in the lower left corner to save the current configuration.
- The estimated migration duration is displayed in real time based on the selected migration content. You can adjust your migration plan accordingly.
- If the information of some selected components is incomplete, the components are marked with red dots. You need to complete the information before starting the migration.
- The owning nodes support Kylin V10 SP3 (Arm) and UOS V20 (Arm).
- Manual adding: You can manually add containerized or non-containerized components.
Figure 2 Adding components
- Click Add.
- Enter component information. Table 1 and Table 2 describe the parameters.
Table 1 Non-containerized components Parameter
Description
Container Migration
Indicates whether to migrate a container.
Component Belonging
The options are Database, Middleware, and Application.
Owning Node
Select the nodes to which the component belongs. You can select a maximum of 20 nodes and search for nodes by their IP addresses. If a node is not included on the list, you can click Add Node to add it for the migration project. For details, see Managing Agent.
Source component
Source Component Name
Name of the source component to be migrated.
Version
Source component version. This parameter is available only to databases and middleware.
Origin of Source Component
Indicates where the source component comes. This parameter is available only to middleware and applications.
NOTE:For details about how to package source components (except the RabbitMQ middleware), see Preparing Migration Source Components.
- Obtain from node server: Obtain the source component package from the specified path on the owning node, scan and analyze it, and generate a migration guide report. If the component belongs to middleware, perform the following steps:
- Compress the installation directory of the source component to be scanned into a package, for example, a tar.gz package. Replace the example package name and source component directory with the actual ones.
1tar cvf xxx.tar.gz /xxx/xxx/xxx
- Log in to the tool through SSH and upload the compressed package to a user-defined directory on the node server.
- Go to the directory of storing the compressed package.
1cd User-defined_directory
- Decompress the source component package. Replace the example package name with the actual one.
1tar xvf xxx.tar.gz
- After the decompression is complete, you can run the following command to delete the source component package.
1rm -f xxx.tar.gz
- Set the path to the decompressed file as the source component path.
- Compress the installation directory of the source component to be scanned into a package, for example, a tar.gz package. Replace the example package name and source component directory with the actual ones.
- Upload source component package: Upload the source component package, scan and analyze it, and generate a migration guide report. If the component belongs to middleware, perform the following steps:
- Compress the directory of the source component to be scanned into a package, for example, a tar.gz package. Replace the example package name and source component directory with the actual ones.
1tar cvf xxx.tar.gz /xxx/xxx/xxx
- Upload the source component package.
- Compress the directory of the source component to be scanned into a package, for example, a tar.gz package. Replace the example package name and source component directory with the actual ones.
- No source component available: No source component package is provided and no migration analysis is performed. This parameter is available only to middleware.
Source Component Path
Path to the source component on the owning node.
NOTE:This parameter is displayed when Origin of Source Component is set to Obtain from node server.
Upload Source Package
Click Upload to upload the required source component package in .zip, .tar, or .tar.gz format.
NOTE:This parameter is displayed when Origin of Source Component is set to Upload source component package.
Target component
Target Component Name
Name of the target component.
Origin of Target Component
Indicates where the target component comes. This parameter is available only to databases and middleware.
- Download from URL: By default, the target component package is downloaded from the Kunpeng image repository and automatically installed.
- Obtain from node server: Obtain the target component package from the specified path on the node and start an automatic installation.
- Upload Target Component Package: Click download the component package in the lower part of the dialog box to obtain the target component package.
URL
Enter the target URL.
NOTE:This parameter is displayed when Origin of Target Component is set to Download from URL.
Target Component Path
Enter the path to the target component on the owning node.
NOTE:This parameter is displayed when Origin of Target Component is set to Obtain from node server.
Upload Target Component Package
Click Upload to upload the required target component package in .zip, .tar, or .tar.gz format.
NOTE:This parameter is displayed when Origin of Target Component is set to Upload Target Component Package.
Default Deployment Path
The default deployment path of the target component cannot be modified.
NOTE:The tool deploys the target component based on the source component path. If the source component path cannot be determined, the default deployment path is used. For the detailed deployment path, see the suggestions on the migration result page.
Commercial Certificate
Click Upload to upload the required commercial certificate.
- Obtain from node server: Obtain the source component package from the specified path on the owning node, scan and analyze it, and generate a migration guide report. If the component belongs to middleware, perform the following steps:
- Click OK.
- Import using Docker Compose: You can parse a Docker Compose file to obtain the container components in the file.
Figure 3 Import Using Docker Compose
Docker Compose is a tool for defining and running multi-container applications. It is the key to unlocking a streamlined and efficient development and deployment experience. Compose simplifies the control of your entire application stack, making it easy to manage services, networks, and volumes in a single, comprehensible YAML configuration file.
- Click Import Using Docker Compose.
- Upload the Docker Compose file and select the owning node.
- Click Analyze.
- After importing the parsed components, click Edit in the Operation column to complete the configuration. For details, see Table 3.
- Trust Target Component URL: If you have selected Download from URL, choose whether to trust the target component URL.
If you enable Trust Target Component URL, SSL certificate verification will be skipped for all software downloads in this migration task. Check that the URL is secure.
- Click Start.