Hi Vijay,
Thank you very much for your help and holmes can work now. Best Regards, Yan 发件人: Yan Yang [mailto:[email protected]] 发送时间: 2018年11月20日 8:30 收件人: 'VENKATESH KUMAR, VIJAY'; '[email protected]'; 'Yang Xu (Yang, Fixed Network)' 主题: 答复: [DCAE][Holmes] Holmes not startup normally Hi Vijay, Thank you for your quick reply, I will try according to your steps. Best Regards, Yan 发件人: VENKATESH KUMAR, VIJAY [mailto:[email protected]] 发送时间: 2018年11月20日 3:14 收件人: [email protected]; [email protected]; Yang Xu (Yang, Fixed Network) 主题: RE: [DCAE][Holmes] Holmes not startup normally Hi Yan, The error indicates postgres instances required by Holmes was not initialized correctly; please try below steps for restoring Remove current Holmes deployment (using cloudify cli) cfy uninstall holmes_engine cfy deployments delete -f holmes_engine cfy blueprints delete holmes_engine cfy uninstall holmes_rules cfy deployments delete -f holmes_rules cfy blueprints delete holmes_rules Reset the Postgres instance 1. Uninstall the pg initialization blueprint cfy uninstall pgaas_initdb cfy deployments delete -f pgaas_initdb cfy blueprints delete pgaas_initdb 2. Reset the password of PG via psql kubectl exec -it -n onap dev-dcaegen2-dcae-db-0 /bin/sh bash-4.2$ psql postgres=# ALTER ROLE "postgres" WITH PASSWORD 'onapdemodb'; ALTER ROLE postgres-# \q 3. Deploy PG initialization blueprint cfy blueprints upload -b pgaas_initdb /blueprints/k8s-pgaas-initdb.yaml cfy deployments create -b pgaas_initdb -i /inputs/k8s-pgaas-initdb-inputs.yaml pgaas_initdb cfy executions start -d pgaas_initdb install After re-initialization is done, Holmes blueprints (rules and engine modules) can be redeployed with same commands you noted. If still issues, pls do send the deployment logs generated along with bootstrap container logs to debug further. Regards, Vijay From: Yan Yang <[email protected]> Sent: Monday, November 19, 2018 6:02 AM To: [email protected]; VENKATESH KUMAR, VIJAY <[email protected]>; 'Yang Xu (Yang, Fixed Network)' <[email protected]> Subject: [DCAE][Holmes] Holmes not startup normally Hi Vijay, We installed ONAP in CMCC lab , and there is no holmes pod startup. I asked for help from gurong, and he told me we can install Holmes manually, I follow his steps, but when I execute “cfy executions start -d holmes_rules install”, it has the following error: Please help me to see if I miss something or the dcae other components have problems. [root@dev-dcaegen2-dcae-bootstrap-9b6b4fb77-fnsdk blueprints]# cfy deployments create -b holmes_rules -i /inputs/k8s-holmes_rules-inputs.yaml holmes_rules Creating new deployment from blueprint holmes_rules... Deployment created. The deployment's id is holmes_rules [root@dev-dcaegen2-dcae-bootstrap-9b6b4fb77-fnsdk blueprints]# cfy executions start -d holmes_rules install Executing workflow install on deployment holmes_rules [timeout=900 seconds] 2018-11-19 10:34:28.961 CFY <holmes_rules> Starting 'install' workflow execution 2018-11-19 10:34:29.541 CFY <holmes_rules> [pgaasvm_p1aax2] Creating node 2018-11-19 10:34:30.550 CFY <holmes_rules> [pgaasvm_p1aax2.create] Sending task 'pgaas.pgaas_plugin.create_database' 2018-11-19 10:34:30.550 CFY <holmes_rules> [pgaasvm_p1aax2.create] Task started 'pgaas.pgaas_plugin.create_database' 2018-11-19 10:34:31.232 LOG <holmes_rules> [pgaasvm_p1aax2.create] WARNING: create_database(holmes) 2018-11-19 10:34:32.237 LOG <holmes_rules> [pgaasvm_p1aax2.create] WARNING: Error: [Errno 2] No such file or directory: '/opt/manager/resources/pgaas/dcae-pg-primary.onap' 2018-11-19 10:34:32.237 LOG <holmes_rules> [pgaasvm_p1aax2.create] ERROR: Cluster must be deployed when using an existing cluster. Check your domain name: fqdn=dcae-pg-primary.onap, err=[Errno 2] No such file or directory: '/opt/manager/resources/pgaas/dcae-pg-primary.onap' 2018-11-19 10:34:33.241 LOG <holmes_rules> [pgaasvm_p1aax2.create] WARNING: Error: Cluster must be deployed when using an existing cluster. Check your domain name: fqdn=dcae-pg-primary.onap, err=[Errno 2] No such file or directory: '/opt/manager/resources/pgaas/dcae-pg-primary.onap' 2018-11-19 10:34:32.237 LOG <holmes_rules> [pgaasvm_p1aax2.create] WARNING: Stack: Traceback (most recent call last): File "/opt/mgmtworker/env/plugins/default_tenant/pgaas-1.1.0/lib/python2.7/site-p ackages/pgaas/pgaas_plugin.py", line 337, in getclusterinfo with open(fn, 'r') as f: IOError: [Errno 2] No such file or directory: '/opt/manager/resources/pgaas/dcae-pg-primary.onap' 2018-11-19 10:34:33.241 LOG <holmes_rules> [pgaasvm_p1aax2.create] WARNING: Stack: Traceback (most recent call last): File "/opt/mgmtworker/env/plugins/default_tenant/pgaas-1.1.0/lib/python2.7/site-p ackages/pgaas/pgaas_plugin.py", line 441, in create_database info = dbgetinfo(ctx) File "/opt/mgmtworker/env/plugins/default_tenant/pgaas-1.1.0/lib/python2.7/site-p ackages/pgaas/pgaas_plugin.py", line 424, in dbgetinfo ret = getclusterinfo(wfqdn, True, '', '', []) File "/opt/mgmtworker/env/plugins/default_tenant/pgaas-1.1.0/lib/python2.7/site-p ackages/pgaas/pgaas_plugin.py", line 344, in getclusterinfo raiseNonRecoverableError('Cluster must be deployed when using an existing cluster. Check your domain name: fqdn={0}, err={1}'.format(safestr(wfqdn),e)) File "/opt/mgmtworker/env/plugins/default_tenant/pgaas-1.1.0/lib/python2.7/site-p ackages/pgaas/pgaas_plugin.py", line 167, in raiseNonRecoverableError raise NonRecoverableError(msg) NonRecoverableError: Cluster must be deployed when using an existing cluster. Check your domain name: fqdn=dcae-pg-primary.onap, err=[Errno 2] No such file or directory: '/opt/manager/resources/pgaas/dcae-pg-primary.onap' 2018-11-19 10:34:33.238 CFY <holmes_rules> [pgaasvm_p1aax2.create] Task failed 'pgaas.pgaas_plugin.create_database' -> Cluster must be deployed when using an existing cluster. Check your domain name: fqdn=dcae-pg-primary.onap, err=[Errno 2] No such file or directory: '/opt/manager/resources/pgaas/dcae-pg-primary.onap' 2018-11-19 10:34:33.553 CFY <holmes_rules> 'install' workflow execution failed: RuntimeError: Workflow failed: Task failed 'pgaas.pgaas_plugin.create_database' -> Cluster must be deployed when using an existing cluster. Check your domain name: fqdn=dcae-pg-primary.onap, err=[Errno 2] No such file or directory: '/opt/manager/resources/pgaas/dcae-pg-primary.onap' Execution of workflow install for deployment holmes_rules failed. [error=Traceback (most recent call last): File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/dispatch.py", line 548, in _remote_workflow_child_thread Copy the DCAE pods here : Best Regards, Yan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13876): https://lists.onap.org/g/onap-discuss/message/13876 Mute This Topic: https://lists.onap.org/mt/28251545/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
