Administration > Integration > VCF Adapter > expand VCF Instance > Edit vCenter Server Endpoint > Log Operations and enabling “Activate log collection” under Collect Logs (using the “Collect logs using the collector/group” option) completes successfully.Infrastructure Operations > Configurations > Log Collection, an error appears stating “Failed to propagate configuration to CP.”"Failed to propagate configuration to CP" vcf-log-forwarder/log-forwarder.log in the Cloud Proxy shows error similar to :
ERROR c.v.l.l.c.LogCollectionConfigScheduler:### - Error while fetching and applying log collection configurations.
com.vmware.log.forwarder.httpclient.APIException: Got status 401 while retrieving session.
VMware Cloud Foundation Operations 9.0.1
VMware Cloud Foundation Operations for Logs 9.0.1
Due to corrupted credentials for internal user, the Log Forwarder cannot authenticate calls to VCF Operations for Logs, resulting in a failure of log collection.
Broadcom is aware of this issue, and a fix will be included in the upcoming VCF Operations 9.0.2.0 release.
Workaround:
curl --request POST \
--url https://<LI-HOST>:9543/api/v2/sessions \
--header 'content-type: application/json' \
--data '{
"username": "<USERNAME>",
"password": "<PASSWORD>",
"provider": "Local"
}' -k
curl --request PUT \
--url https://<LI-HOST>:9543/api/v2/internal/log-forwarder-credentials \
--header 'authorization: Bearer <LOGS-SESSION-ID>' \
--header 'content-type: application/json' \
--data '{
"credentials": [
{
"opsProxyId": "<CLOUD_PROXY_ID>"
}
]
}' -k
Infrastructure Operations > Configurations > Log Collectionvcf-log-forwarder/log-forwarder.log in the cloud proxy for the error "Failed to create request for retrieving session."
ERROR c.v.1.1.c.LogCollectionConfigScheduler:### - Error while fetching and applying log collection configurations.
com. vmware. log. forwarder.httpclient.APIException: Failed to create request for retrieving session: null
docker ps and check that the vcf-log-forwarder container is listedvcf-log-forwarder container using the command docker restart vcf-log-forwarder.docker ps command to confirm that the container is listed