ClearBlade / clearblade-iot-core-migration

Go tool that migrates devices from Google IoT Core registries to ClearBlade device table
MIT License
4 stars 4 forks source link

The tool outputs success but the registry is not created #2

Closed charbull closed 2 years ago

charbull commented 2 years ago

Hi, I am trying the migration tool, it seems the output is successful. However the registry is not created and the devices are not migrated.

Running Version:  v1.2.3 

Enter Devices CSV file path (By default all devices from the registry will be migrated. Press enter to skip!): 
Enter ClearBlade Registry Region (Press enter to skip if you are migrating to the same region): 

✓ All Flags validated! 

✓ GCP Service Account Authenticated! 

| Fetching all devices from registry... (3043/-) [6s]  ✓ Fetched 3043 devices! 

Preparing Device Migration

Migrating Devices... 100% [==============================] (3043/3043)               

✓ Migrated 3043 / 3043 devices! 

✓ Done!
aallsbrook commented 2 years ago

Hi Charbel,

This tools is designed to move devices after you have already enabled the offering in the Google Cloud marketplace and have connected your project. Have you already completed the initial registry migration found here?

  1. https://clearblade.atlassian.net/wiki/spaces/IC/pages/2230976570/Google+Cloud+Marketplace+Activation
  2. https://clearblade.atlassian.net/wiki/spaces/IC/pages/2207449095/Migration+Tutorial

If you did and are still having trouble with this tool - Would you mind opening this issue on our IoT Core Support Desk? I want to make sure we do not lose track of it. https://clearblade.atlassian.net/servicedesk/customer/portal/1/group/1/create/20

charbull commented 2 years ago

Hi @aallsbrook thank you for the quick reply.

I have Clearblade activated in GCP already. We did some migration manually. However, the UI is limited to only 10 devices. I am attempting to migrate ~3000 devices.

I did follow these instructions: https://clearblade.atlassian.net/wiki/spaces/IC/pages/2207449095/Migration+Tutorial

Migrating Devices...  99% [============================> ] (3042/3043)                                                                    Migrating Devices... 100% [==============================] (3043/3043) 

✓ Migrated 3043 / 3043 devices! 

✓ Done! 

However, I don't see the registry created.

1) First I tried without creating a registry (the registry/devices were not created in the project) 2) I created the registry manually in ClearBlade and then attempted the migration, the registry is empty.

I am assuming I am in the correct project on clearblade? as I filled the cbSystemKey and the cbToken from values taken from the project.

Opened a ticket pointing to this issue here.

Cheers

aallsbrook commented 2 years ago

Great!
You should be able to create the registry using the ClearBlade IoT Core Console. Then use this tool to migrate your existing Google IoT Core Registry devices into your newly created ClearBlade IoT Core Registry. Thank you for opening the ticket. We will be following up

charbull commented 2 years ago

Hi @aallsbrook, I was able to make it work, I think updating the documentation to reflect the following would be helpful:

Cheers

charbull commented 2 years ago

One question: Is it possible to use the SystemKey and the cbToken from the service account of a clearblade project. Similar to what is outlined here? https://clearblade.atlassian.net/wiki/spaces/IC/pages/2208203027/list

Thanks

aallsbrook commented 2 years ago

For follow-up, Credential information can be found here https://clearblade.atlassian.net/wiki/spaces/IC/pages/2248441862/getRegistryCredentials

charbull commented 2 years ago

Thank you ! :) Closing this issue.

Cheers