Question & Answer
Question
Why did I receive Error 404 or 500 when trying to delete an automation policy?
For example:
For example:
Code: FETCH_ERROR_404
Details:
status: 404
...
Failed to find policy Xxx
Answer
The policies are held in Cassandra and synced to ElasticSearch.
The UI displays the policies from ElasticSearch.
A possible root cause is that the two repositories are out of sync.
To resync the repositories:
(1) oc rsh <policy registry pod>
WHERE <policy registry pod> = oc get pod | grep policy-registry-svc | grep -v job
(2) curl -k -X PUT http://localhost:${PORT}/policyregistry.ibm-netcool-prod.aiops.io/v1alpha/system/${API_AUTHSCHEME_NOIUSERS_TENANTID}/_resync -u${SYSTEMAUTH_USERNAME}:${SYSTEMAUTH_PASSWORD} -H 'accept: application/json'
NOTE: Please copy the entire CURL command as-is without any amendment.
(3) exit
You should see the following message:
"Elasticsearch successfully synced with cassandra."
[{"Type":"MASTER","Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSRS1M","label":"IBM Cloud Pak for Watson AIOps"},"ARM Category":[{"code":"a8m3p000000hBd3AAE","label":"Watson AIOps-\u003EAI Manager-\u003EAutomations-\u003EPolicies"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.3.0"}]
Was this topic helpful?
Document Information
Modified date:
23 June 2022
UID
ibm16597877