If you don't want to install and run an automatic data collection with discovery client in your infrastructure, you can manually upload your infrastructure data into Migration Center.
First, use RVTools to gather system data and performance data from your virtual machine (VM) instances running on vCenter. Then, import the table generated by RVTools directly in Migration Center to add your assets.
Limitations
- To successfully import data, create a table with RVTools version 4.3.1 or later. Previous versions of RVTools are not supported.
- Tables generated with the
--DBColumnNames
flag are not supported. - When you upload a table generated with RVTools, Migration Center
uses only the data from the following tabs:
tabvInfo
(required for XLSX and CSV)tabvCPU
(required for XLSX, optional for CSV)tabvDisk
(required for XLSX, optional for CSV)tabvPartition
(required for XLSX, optional for CSV)tabvNetwork
(required for XLSX, optional for CSV)tabvHost
(required for XLSX, optional for CSV)
Upload data from RVTools
To manually upload a table generated with RVTools, follow these steps:
Console
Go to the Data import page.
Click Add data > Upload files.
In the Set up file upload section, enter the name of the file upload.
From the File format list, select Excel exported from RVTools or CSV exported from RVTools.
Click Select files to upload, then select all the files that you want to upload.
To confirm and start uploading the files, click Upload files.
If the files are validated correctly, to create the assets from the files, click Import data, then click Confirm.
API
Create an import job.
POST https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs?importJobId=IMPORT_JOB_ID { "asset_source": "projects/PROJECT_ID/locations/REGION/sources/SOURCE_ID" }
Replace the following:
PROJECT_ID
: ID of the project to create the import job.REGION
: Region to create the import job.IMPORT_JOB_ID
: ID of the new import job.SOURCE_ID
: ID of an existing source to be associated with the import job.
Optional: To confirm that the import job was correctly created, get the import job.
GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID
Create a import data file attached to the import job.
POST https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID/importDataFiles?import_data_file_id=DATA_FILE_ID { "format": "IMPORT_JOB_FORMAT" }
Replace the following:
DATA_FILE_ID
: ID of the new data fileIMPORT_JOB_FORMAT
: EitherIMPORT_JOB_FORMAT_RVTOOLS_CSV
orIMPORT_JOB_FORMAT_RVTOOLS_EXCEL
Get the data file.
GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID/importDataFiles/DATA_FILE_ID
Copy the URL from the
signedUrl
field from the response.Upload a file to the copied URL.
PUT -H 'Content-Type: application/octet-stream' --upload-file UPLOAD_FILE_PATH 'COPIED_URL'
Replace the following:
UPLOAD_FILE_PATH
: The local path of the file that is uploaded.COPIED_URL
: The copied signed URL from the previews steps.
Optional: Repeat steps 3-6 to create more data files under the same import job.
Optional: Get all data files of an import job.
GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID/importDataFiles
Validate the import job.
POST https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID:validate
Get the import job and view the validation report. If the state is
READY
, it is possible to continue to the next steps. Otherwise, you need to fix the job or specific files, this might require deleting files or uploading new ones.GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID
Run the import job.
POST https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID:run
Get the import job and view the execution report. If the state is
COMPLETED
, the job was executed successfully. Otherwise, if the job failed and in a terminal state, the execution report includes the errors. Create a new import job and apply the required changes.GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID
If you experience problems with your file upload, see how to troubleshoot common error messages.
Review the upload
After you upload your files, Migration Center validates them to check if they are formally correct. If the validation is successful, Migration Center then processes the data to create new assets, or update existing ones. You can check the status of your upload jobs from the Google Cloud console.
To review the status of your upload job, follow these steps:
- Go to the Data import page, then click File uploads.
- From the list of file imports, select the upload you want to review.
- On the file upload page, under Data import progress, review the Status for your uploaded files.
You can see your files in one of the following statuses.
List of statuses
- Completed. The import of your file was successful.
- Ready. Your file passed validation, and is ready to be imported.
- Pending. Your file is waiting for another file to finish processing.
- Running. Your file is processing.
- Validating. Your file is in the validation stage.
- Failed validation. Your file contains some errors. Fix the errors then try to upload your file again.
- Failed. Your file couldn't be imported.
Review error details
If you encounter errors after importing your files, you can review the error message directly in the Google Cloud console.
To review the errors of your upload job, follow these steps:
- Go to the Data import page, then click File uploads.
- Click the import file that shows a warning or error. The import file details page shows the complete list of errors.
On the import file details page, you can review the assets and data fields that cause the errors, and view a description of the error. Errors in the file import job might prevent Migration Center from creating new assets or update existing ones with the new changes. To fix the error, edit your files and create a new file import job to upload them again.
For more information about the possible error messages, see Troubleshoot file import errors.
What's next
- Learn more about Migration Center collection methods.
- Learn how to manage your file uploads.