hyperledger-bevel / bevel

An automation framework for rapidly and consistently deploying production-ready DLT platforms
https://hyperledger-bevel.readthedocs.io/en/latest/
Apache License 2.0
346 stars 718 forks source link

No supplychain-net-CA.key created during TASK Check if CA key already exists in vault #2476

Closed Linkadi98 closed 10 months ago

Linkadi98 commented 10 months ago

Describe the bug I don't know if this is a bug or I miss some steps but I have followed the doc to make the network run. This issue comes when there is no secretsv2/crypto/ordererOrganizations/supplychain-net/ca folder created in Vault, and I cannot find any task that creates this folder

To Reproduce Steps to reproduce the behavior: Follow the doc to create network by docker

Expected behavior Move to next step

Screenshots

image

Environment (please complete the following information):

Additional context I use minikube cluster with driver=docker and use the latest code on main branch

Linkadi98 commented 10 months ago

I notice that all the steps right before this error return Conditional result was False like below

image

Is this the reason for this error?

sownak commented 10 months ago

@Linkadi98 Have you gone through https://hyperledger-bevel.readthedocs.io/en/latest/tutorials/bevel-minikube-setup/#execute-provisioning-script ??

Linkadi98 commented 10 months ago

Yes I have followed this doc, also I did read all the docs inside tutorial folder. But I use vault from helm @sownak

sownak commented 10 months ago

image

Linkadi98 commented 10 months ago

image

I see that, but this issue still apprears even if I follow the Excecute provisioning script

sownak commented 10 months ago

So, is the ansible playbook failing when you see the "error" you mentioned. I can clearly see that it was ignored.

Linkadi98 commented 10 months ago

No, the ansible playbook keeps running but after that it fails at step Wait for Job supplychain-cacerts-job in supplychain-net because of timeout after retrying this job, sorry about posting wrong error log, ansible playbook fails at this

image

and this is error log error_log.txt

sownak commented 10 months ago

This is not a bug or issue, there have been many discussions on this on Discord. Simply put, your supplychain-cacerts-job is not running successfully for a reason, you have to check the logs of that job on Kubernetes to figure out what is wrong. Also, please check https://hyperledger-bevel.readthedocs.io/en/latest/contributing/asking-a-question/ rather than creating a "Issue".