GoogleCloudPlatform / pubsec-declarative-toolkit

The GCP PubSec Declarative Toolkit is a collection of declarative solutions to help you on your Journey to Google Cloud. Solutions are designed using Config Connector and deployed using Config Controller.
Apache License 2.0
30 stars 27 forks source link

Fix project api enablement intermittent failures #754

Open jacyang2010 opened 7 months ago

jacyang2010 commented 7 months ago

Describe the bug Sometimes, for some unknown reason, when APIs defined for a project are being deployed, there is a chance that API enabling request failed and we ended up with the API not enabled for the project.

To Reproduce

Step1: Follow the below document to bootstrap kcc config cluster and deploy core landing zone v2 solution. Step2: Run the below command to deploy core landing zone after kcc bootstrapping

kpt live apply core-landing-zone --reconcile-timeout=2m --output=table

Step3: Found the kcc management project failed due to a glitch or failure of Monitoring API enabling as shown below.

Screenshot 2023-12-05 at 11 17 20 AM

Screenshot 2023-12-05 at 11 17 37 AM The problem have never gone automatically until open the project and then enable the API manually.

Expected behavior APIs defined for a project is enabled reliably.