I was building the new lab and recently I came across this issue where I was trying to import the existing vRA from another Aria Lifecycle environment to the new environment in a different Aria lifecycle,
I repointed the vRA to the new vidm/ws1 following the KB (https://kb.vmware.com/s/article/82234) and restarted the pods when I checked the vRA using the command vracli vidm and it was pointing to the new vIDM.
Post that when I tried to import vRA into Aria Lifecycle I got the below error:
Post further research into the logs found that the vidm hostname URL returning from vRA has "/" appended at the end and it's causing the failure:
2024-03-13 08:48:59.231 INFO [pool-3-thread-12] c.v.v.l.u.SshUtils - -- Command: vracli -j vidm
2024-03-13 08:48:59.231 INFO [pool-3-thread-12] c.v.v.l.u.SshUtils - -- ------------------------------------------------------
2024-03-13 08:49:00.277 INFO [pool-3-thread-12] c.v.v.l.u.SshUtils - -- exit-status: 0
2024-03-13 08:49:00.278 INFO [pool-3-thread-12] c.v.v.l.u.SshUtils - -- Command executed sucessfully
2024-03-13 08:49:00.278 INFO [pool-3-thread-12] c.v.v.l.u.SshUtils - -- Command execution response: {
"exitStatus" : 0,
"outputData" : "{\"status_code\": 0, \"output\": {\"cert\": \"-----BEGIN CERTIFICATE-----\\nMIID8TCCAtmgAwIBAgIGAY3z8vAfMA0GCSqGSIb3DQEBCwUAMFMxMzAxBgNVBAMM\\nKnZSZWFsaXplIFN1aXRlIExpZmVjeWNsZSBNYW5hZ2VyIExvY2tlciBDQTEPMA0G\\nA1UECgwGVk13YXJlMQswCQYDVQQGEwJJTjAeFw0yNDAyMjkwODIwMDFaFw0yNjAy\\nMjgwODIwMDFaMHQxHDAaBgNVBAMME3ZpZG0tMDFhLmNvcnAubG9jYWwxDDAKBgNV\\nBAsMA0xhYjERMA8GA1UECgwIQnJvYWRjb20xEjAQBgNVBAcMCUJhbmdhbG9yZTES\\nMBAGA1UECAwJS2FybmF0YWthMQswCQYDVQQGEwJJTjCCASIwDQYJKoZIhvcNAQEB\\nBQADggEPADCCAQoCggEBAKe8imG0aTT1nWXvLtmDlCTiqzmGOIo0ijMmmcwlwRlm\\nzGwegoFN8pbN/09utkD2/Rgd3gVlGnapLxduahnxoevk41JolXOVNLcHO6jBanZg\\nQHxw5lpbhA7q5mn1ixXG8S4pCIF0ZtT1xMNoyl1JYrL+MEuvxVcWpA7J/O54pfg5\\nBR6XJrbdognbz8S72igN+ne+wFuCy8YSNEj5qwYKRkqsMYcjQ2FzLEoExfDm+7rl\\niK2iv+Rb3FLD8gu5WWY9yyaB2SRaIANSSQGKE/kk3jQHzEhP9btncUgcyYeFDdbV\\nprjBXKmnA7M/J49nKVm6+jECW0Lih1hAWeE4BBbvDx0CAwEAAaOBqTCBpjAdBgNV\\nHQ4EFgQU6jdn7h/BVAuv0vN9S6nIU7EnN1QwHwYDVR0jBBgwFoAUGCRZrJJAVGGX\\n2S3jZJCj+ZxKX1MwJAYDVR0RBB0wG4cErBACC4ITdmlkbS0wMWEuY29ycC5sb2Nh\\nbDAOBgNVHQ8BAf8EBAMCBaAwIAYDVR0lAQH/BBYwFAYIKwYBBQUHAwIGCCsGAQUF\\nBwMBMAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQELBQADggEBAOUHuZd3S8NiokVH\\n8kjE/hdl046vs53bycGDplysrwr26jqIw6OTtcuYiEZoVfvHgtTnG/YKn5+cpMHH\\nxBDqdXWFYrax+wr33oJv9PYen5DbS2rvnW1A1yjMi+0/abCZClT7vP0XY7ZPEibV\\n/T/mK6tCI+Aqk7THS+4AC0KARbOqT+MGcibRnhf1SVsfw7gHMZgIBjPYn2q1eZ02\\nSVO2aO3Q8bq2kM+c/ERoAhGKAjmCwSImBjw+lb7snR4mPd1GI++KQ24ihV1yNA2C\\nxq3l3Dqcg21DGgN1/vzrWl5MOeIUQ/KbS7TNfT0EP7w/1N1sFINknHWP5tvFb6YA\\npEHG6NI=\\n-----END CERTIFICATE-----\\n\", \"clients\": {\"ClientID\": \"prelude-0nTt0WYYP6\", \"ClientIDUser\": \"prelude-user-DOhrmBCO6a\", \"ClientSecret\": \"JXJXJXJX\", \"ClientSecretUser\": \"JXJXJXJX\"}, \"defaultOrgAlias\": \"\", \"defaultOrgName\": \"VIDM-01A\", \"isDefaultOrgAliasUpdated\": false, \"sha256\": \"b63869ca1ec5276f43a2d1116111cf30a825688d636c7e5fcf3fbe2da9366f1c\", \"url\": \"https://vidm-01a.corp.local/\", \"user\": \"configadmin\", \"verify_cert\": false}, \"error\": \"\", \"logs\": \"\"}\n",
"errorData" : null,
"commandTimedOut" : false
}
2024-03-13 08:49:00.279 INFO [pool-3-thread-12] c.v.v.l.d.v.h.VraPreludeInstallHelper - -- Command Status code :: 0
2024-03-13 08:49:00.279 INFO [pool-3-thread-12] c.v.v.l.d.v.h.VraPreludeInstallHelper - -- ====================================================
2024-03-13 08:49:00.279 INFO [pool-3-thread-12] c.v.v.l.d.v.h.VraPreludeInstallHelper - -- Output Stream ::
2024-03-13 08:49:00.279 INFO [pool-3-thread-12] c.v.v.l.d.v.h.VraPreludeInstallHelper - -- ====================================================
2024-03-13 08:49:00.279 INFO [pool-3-thread-12] c.v.v.l.d.v.h.VraPreludeInstallHelper - -- {"status_code": 0, "output": {"cert": "-----BEGIN CERTIFICATE-----\nMIID8TCCAtmgAwIBAgIGAY3z8vAfMA0GCSqGSIb3DQEBCwUAMFMxMzAxBgNVBAMM\nKnZSZWFsaXplIFN1aXRlIExpZmVjeWNsZSBNYW5hZ2VyIExvY2tlciBDQTEPMA0G\nA1UECgwGVk13YXJlMQswCQYDVQQGEwJJTjAeFw0yNDAyMjkwODIwMDFaFw0yNjAy\nMjgwODIwMDFaMHQxHDAaBgNVBAMME3ZpZG0tMDFhLmNvcnAubG9jYWwxDDAKBgNV\nBAsMA0xhYjERMA8GA1UECgwIQnJvYWRjb20xEjAQBgNVBAcMCUJhbmdhbG9yZTES\nMBAGA1UECAwJS2FybmF0YWthMQswCQYDVQQGEwJJTjCCASIwDQYJKoZIhvcNAQEB\nBQADggEPADCCAQoCggEBAKe8imG0aTT1nWXvLtmDlCTiqzmGOIo0ijMmmcwlwRlm\nzGwegoFN8pbN/09utkD2/Rgd3gVlGnapLxduahnxoevk41JolXOVNLcHO6jBanZg\nQHxw5lpbhA7q5mn1ixXG8S4pCIF0ZtT1xMNoyl1JYrL+MEuvxVcWpA7J/O54pfg5\nBR6XJrbdognbz8S72igN+ne+wFuCy8YSNEj5qwYKRkqsMYcjQ2FzLEoExfDm+7rl\niK2iv+Rb3FLD8gu5WWY9yyaB2SRaIANSSQGKE/kk3jQHzEhP9btncUgcyYeFDdbV\nprjBXKmnA7M/J49nKVm6+jECW0Lih1hAWeE4BBbvDx0CAwEAAaOBqTCBpjAdBgNV\nHQ4EFgQU6jdn7h/BVAuv0vN9S6nIU7EnN1QwHwYDVR0jBBgwFoAUGCRZrJJAVGGX\n2S3jZJCj+ZxKX1MwJAYDVR0RBB0wG4cErBACC4ITdmlkbS0wMWEuY29ycC5sb2Nh\nbDAOBgNVHQ8BAf8EBAMCBaAwIAYDVR0lAQH/BBYwFAYIKwYBBQUHAwIGCCsGAQUF\nBwMBMAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQELBQADggEBAOUHuZd3S8NiokVH\n8kjE/hdl046vs53bycGDplysrwr26jqIw6OTtcuYiEZoVfvHgtTnG/YKn5+cpMHH\nxBDqdXWFYrax+wr33oJv9PYen5DbS2rvnW1A1yjMi+0/abCZClT7vP0XY7ZPEibV\n/T/mK6tCI+Aqk7THS+4AC0KARbOqT+MGcibRnhf1SVsfw7gHMZgIBjPYn2q1eZ02\nSVO2aO3Q8bq2kM+c/ERoAhGKAjmCwSImBjw+lb7snR4mPd1GI++KQ24ihV1yNA2C\nxq3l3Dqcg21DGgN1/vzrWl5MOeIUQ/KbS7TNfT0EP7w/1N1sFINknHWP5tvFb6YA\npEHG6NI=\n-----END CERTIFICATE-----\n", "clients": {"ClientID": "prelude-0nTt0WYYP6", "ClientIDUser": "prelude-user-DOhrmBCO6a", "ClientSecret": "JXJXJXJX", "ClientSecretUser": "JXJXJXJX"}, "defaultOrgAlias": "", "defaultOrgName": "VIDM-01A", "isDefaultOrgAliasUpdated": false, "sha256": "b63869ca1ec5276f43a2d1116111cf30a825688d636c7e5fcf3fbe2da9366f1c", "url": "https://vidm-01a.corp.local/", "user": "configadmin", "verify_cert": false}, "error": "", "logs": ""}
2024-03-13 08:49:00.280 INFO [pool-3-thread-12] c.v.v.l.d.v.h.VraPreludeInstallHelper - -- ====================================================
2024-03-13 08:49:00.280 INFO [pool-3-thread-12] c.v.v.l.d.v.h.VraPreludeInstallHelper - -- Error Stream ::
2024-03-13 08:49:00.280 INFO [pool-3-thread-12] c.v.v.l.d.v.h.VraPreludeInstallHelper - -- ====================================================
2024-03-13 08:49:00.280 INFO [pool-3-thread-12] c.v.v.l.d.v.h.VraPreludeInstallHelper - -- null
2024-03-13 08:49:00.280 INFO [pool-3-thread-12] c.v.v.l.d.v.h.VraPreludeInstallHelper - -- ====================================================
2024-03-13 08:49:00.281 INFO [pool-3-thread-12] c.v.v.l.d.v.h.VraPreludeInstallHelper - -- VMware Aria Automation 'vra-01a.corp.local' is registered with vIDM 'https://vidm-01a.corp.local/'
2024-03-13 08:49:00.281 ERROR [pool-3-thread-12] c.v.v.l.p.c.v.t.VraVaImportEnvironmentTask - -- Exception while importing VMware Aria Automation VA :
com.vmware.vrealize.lcm.drivers.vra80.exception.VraVaVidmMismatchException: VMware Aria Automation vIDM details mismatch. VMware Aria Automation Import is supported only if VMware Aria Suite Lifecycle vIDM is matched with VMware Aria Automation vIDM details.
Post, correcting the above mismatch I ran the vracli vidm set command followed by a restart of the service (/opt/sbin/deploy.sh), and import into the vrslcm which was successful, but I couldn't see the vRA within the environment.
Further, discussed this issue with colleagues and got a suggestion to try the below action plan which worked and solved my issue:
Create a new environment in the Aria lifecycle
Import vRA into a new environment
Then import the other Aria products (Aria Operations in my case) available.
So I deleted the existing environment from LCM ONLY and imported the other Aria products (Aria Operations in my case) Environment into the environment where vRA was imported first.
Comments