11 Jun 2024 05:45 AM
We are planning to migrate from Managed to SaaS. Many user accounts and user groups are stored in the Managed cluster. We plan to migrate this information to the SaaS environment using Monaco. Our first step is to download all registered user accounts from the Managed cluster.
I executed the following command.
monaco account download --manifest manifest.yaml
But an error occurred and the download failed.
2024-06-11T13:11:18+09:00 info Monaco version 2.14.0
2024-06-11T13:11:18+09:00 info Loading manifest "manifest.yaml". Restrictions: groups=[], environments=[]
2024-06-11T13:11:18+09:00 error Error: failed to download any resources from accounts [] - not creating download folder
2024-06-11T13:11:18+09:00 error error logs written to .logs\20240611-131118-errors.log
I think there is a problem with the Manifest.yaml I created, but I cannot solve it and am having trouble.
Solved! Go to Solution.
11 Jun 2024 07:50 AM
Hi,
Maybe SaaS Upgrade Assistant would be easier.
How to effectively upgrade from Dynatrace Managed to SaaS
Best regards
11 Jun 2024 08:05 AM
@AntonPineiro Thank you for your comment. Your comment is certainly correct. However, the target Managed Cluster has not been updated to the latest version, so SaaS Upgrade Assistant cannot be used. For these reasons, I decided to use Monaco.
11 Jun 2024 08:47 AM
@Shirai monaco does not support the Dynatrace Managed Cluster Management APIs where the user groups and accounts are stored. So it's not possible to download it. Management of users and groups is different between Managed and SaaS.
You will need to download it manually using Cluster Management APIs and then you can generate the configuration for Monaco to define and update the accounts and groups in SaaS.
12 Jun 2024 01:29 AM
Thank you for your comment.
I understand that it is not possible to download account information from a managed cluster using Monaco.
I would like to download it using the User management API.
https://docs.dynatrace.com/managed/shortlink/account-api-users
12 Jun 2024 07:20 AM
Yes, that's the correct API, just this one is not supported by Monaco.
12 Jun 2024 07:21 AM
Hi Shirai,
Be careful because this doc https://docs.dynatrace.com/managed/shortlink/account-api-users is from new APIs in SaaS.
For export the users and groups from managed you have to use this doc (users and groups)
And as Julius says management of users and groups is different between Managed and SaaS.
So be careful because the groups that were in Managed do not match with SaaS groups and also, for the new APIs in Grail the way to authenticate changes; now you have to use the bearer token.
For import the users you have to use this three endpoints to create groups, create users and assing groups to users.
Hope it helps.
Regards,
Elena.
12 Jun 2024 09:54 AM
@erh_inetum Thank you for your comment.
As you pointed out, the API I provided does not allow me to extract information about Managed clusters. I will try using the API you provided.
By the way, I am wondering why the documentation for this API is included in the Managed documentation.
12 Jun 2024 10:17 AM
@Shirai the docs are confusing, still there are parts of the SaaS-only docs which exist in Managed. Feel free to submit improvement (on the bottom of the docs page there is feedback button for this).
12 Jun 2024 10:28 AM
Hi Shirai,
Sorry because one of my links are wrong.
Around 3 months ago I extracted users and groups successfully from a Managed using this APIs
Users: https://docs.dynatrace.com/managed/managed-cluster/cluster-api/cluster-api-v1/users-v1/get-users
MZ for users: https://docs.dynatrace.com/managed/managed-cluster/cluster-api/cluster-api-v1/user-groups-v1/get-gro...
And on SaaS I used these:
For creating groups: https://docs.dynatrace.com/docs/dynatrace-api/account-management-api/group-management-api/post-group
For creating users: https://docs.dynatrace.com/docs/dynatrace-api/account-management-api/user-management-api/post-user
For assign groups to users: https://docs.dynatrace.com/docs/dynatrace-api/account-management-api/user-management-api/post-user-g...
Hope this helps you now and sorry for the inconveniences.
Regards,
Elena.
13 Jun 2024 01:08 AM
Hi Elena-san. @erh_inetum
The information you provided is very useful for us. Thank you very much.