Initial Testing of Object Storage Connectivity
This chapter contains step by step instructions for initial testing of your connection between your cloud service and your object storage. The instructions represent a simple setup for testing the connection to object storage. These instructions do not represent the complete recommended setup that was described in previous chapter.
1. Log into your OCI Console using credentials provided to you by your security administrator:
a. In the Identity & Security menu section, select Domains and then select your default domain and from the Identity Domain menu, select Users:
i. Create a new user named "INIT-TEST" (Take note of the user OCID).
ii. Add that user to the Administrator user group.
b. In the Identity & Security menu section, select Compartments:
i. Create a new compartment named "INIT-TEST" (take note of the compartment OCID).
c. In the Storage menu section, select Buckets:
i. Select the INIT-TEST compartment in the Compartment field under the List Scope section.
ii. Create the following buckets under the INIT-TEST compartment: CMA-Files
d. In the Governance & Administration menu section, select Tenancy Details (under Account Management):
i. Take note of the tenancy OCID (under Tenancy Information)
ii. Take note of the namespace (Name field under Tenancy Information)
iii. Take note of the home region
2. Log into the Utility Cloud Service development environment (DEV), using credentials provided to you by your security administrator:
a. Go to the Key Ring portal (use the Menu Search option):
i. Add a new Key Ring named "INIT-TEST"
ii. After creating the new Key Ring, click Generate Key.
iii. In the Key Pair section, choose the Activate action for the new generated Key Pair.
iv. Click View to get the public key portion of the key pair.
v. Copy the full content of the public key displayed in a popup window, save it in a text document. You will use this later.
b. Go to the File Storage Configuration extendable lookup and search for a value of OS-SHARED.
c. Edit that value and enter the following information:
i. User: The user OCID of INIT-TEST User from step #1.
ii. Tenancy: The tenancy OCID from step #1.
iii. Compartment: The compartment OCID of INIT-TEST Compartment from step #1.
iv. Namespace: The namespace noted in step #1.
v. Key Ring: Search for the INIT-TEST key ring created above and select it.
vi. Region: The home region noted in step #1.
vii. Click Save.
d. Go to the Master Configuration portal (use the Menu Search option):
i. Look for the Migration Assistant Configuration master configuration.
ii. Make sure that the Import and Export directories have the following value: "file-storage://OS-SHARED/CMA-Files"
3. Log back into your OCI Console using credentials provided to you by your security administrator:
a. a. In the Identity & Security menu section, select Users:
i. Select the INIT-TEST user created earlier.
ii. In the API Keys section, click Add Public Key.
iii. In the popup window, select the Paste Key option and paste the public key value saved in previous step (the public key portion of the key pair generated in the Utilities Cloud Service application), and click Add.
4. You are ready to test the object storage connectivity. Log back into the Utility Cloud Service development environment (DEV), using credentials provided to you by your security administrator:
a. Go to the Migration Request portal (use the Menu Search option).
b. Search for a Migration Request named Users (F1-Users).
c. Click Export for that request (Users).
i. In the popup window enter the file name "init_test" (for example)
ii. Click Save. You will be directed to the Migration Data Set Export page.
d. Go to the Batch Job Submission portal and submit a job with the F1-MGDPR batch code. When the job ends, go back to the Migration Data Set Export portal and check the status:
i. If the status changed to Exported, log into the Oracle Cloud Infrastructure Console, navigate to the CMA-Files object storage Bucket under the INIT-TEST Compartment and check that there is a file called init_test.cma there.
ii. If the file exist, the test is successful!
5. If the connectivity test was successful, proceed with the overall setup of the Object Storage and your Cloud Service application per the recommended setup above.