Code Monkey home page Code Monkey logo

Comments (6)

simonz130 avatar simonz130 commented on May 28, 2024 1

@gzhao408, this bug is FYI. Levy will be working on improving provisioning story and since this is related to Loadgen, you might need to get involved here as well.

from cloud-ops-sandbox.

yuriatgoogle avatar yuriatgoogle commented on May 28, 2024

Full output:

$ ./install.sh
Checking Prerequisites...
Checking for billing accounts
using billing account: My Billing Account
Make sure Terraform is installed
Initialize terraform state

Initializing the backend...

Successfully configured the backend "local"! Terraform will automatically
use this backend unless the backend configuration changes.

Initializing provider plugins...
- Checking for available provider plugins...
- Downloading plugin for provider "google" (hashicorp/google) 2.17.0...
- Downloading plugin for provider "random" (hashicorp/random) 2.2.1...
- Downloading plugin for provider "null" (hashicorp/null) 2.1.2...

The following providers do not have any version constraints in configuration,
so the latest version was installed.

To prevent automatic upgrades to new major versions that may contain breaking
changes, it is recommended to add version = "..." constraints to the
corresponding provider blocks in configuration, with the constraint strings
suggested below.

* provider.null: version = "~> 2.1"

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Apply Terraform automation
data.google_billing_account.acct: Refreshing state...
random_id.project: Creating...
random_id.project: Creation complete after 0s [id=FLoPmA]
google_project.project: Creating...
null_resource.customize_manifests: Creating...
null_resource.customize_manifests: Provisioning with 'local-exec'...
null_resource.customize_manifests (local-exec): Executing: ["/bin/sh" "-c" "./customize-manifests.sh"]
null_resource.customize_manifests (local-exec): Written /home/stackdoctor/stackdriver-sandbox/terraform/../release/kubernetes-manifests.yaml
null_resource.customize_manifests: Creation complete after 0s [id=44092291150053939]
google_project.project: Creation complete after 10s [id=stackdriver-sandbox-347738008]
google_project_service.errorreporting: Creating...
google_project_service.compute: Creating...
google_project_service.compute: Still creating... [20s elapsed]
google_project_service.iam: Still creating... [20s elapsed]
google_project_service.cloudtrace: Still creating... [20s elapsed]
google_project_service.gke: Still creating... [20s elapsed]
google_project_service.clouddebugger: Still creating... [20s elapsed]
google_project_service.errorreporting: Still creating... [30s elapsed]
google_project_service.compute: Still creating... [30s elapsed]
google_project_service.iam: Still creating... [30s elapsed]
google_project_service.cloudtrace: Still creating... [30s elapsed]
google_project_service.gke: Still creating... [30s elapsed]
google_project_service.clouddebugger: Still creating... [30s elapsed]
google_project_service.errorreporting: Still creating... [40s elapsed]
google_project_service.compute: Still creating... [40s elapsed]
google_project_service.iam: Still creating... [40s elapsed]
google_project_service.cloudtrace: Still creating... [40s elapsed]
google_project_service.gke: Still creating... [40s elapsed]
google_project_service.clouddebugger: Still creating... [40s elapsed]
google_project_service.errorreporting: Still creating... [50s elapsed]
google_project_service.compute: Still creating... [50s elapsed]
google_project_service.iam: Still creating... [50s elapsed]
google_project_service.cloudtrace: Still creating... [50s elapsed]
google_project_service.gke: Still creating... [50s elapsed]
google_project_service.clouddebugger: Still creating... [50s elapsed]
google_project_service.errorreporting: Still creating... [1m0s elapsed]
google_project_service.compute: Still creating... [1m0s elapsed]
google_project_service.iam: Still creating... [1m0s elapsed]
google_project_service.cloudtrace: Still creating... [1m0s elapsed]
google_project_service.gke: Still creating... [1m0s elapsed]
google_project_service.clouddebugger: Still creating... [1m0s elapsed]
google_project_service.errorreporting: Still creating... [1m10s elapsed]
google_project_service.compute: Still creating... [1m10s elapsed]
google_project_service.iam: Still creating... [1m10s elapsed]
google_project_service.cloudtrace: Still creating... [1m10s elapsed]
google_project_service.gke: Still creating... [1m10s elapsed]
google_project_service.clouddebugger: Still creating... [1m10s elapsed]
google_project_service.errorreporting: Still creating... [1m20s elapsed]
google_project_service.compute: Still creating... [1m20s elapsed]
google_project_service.iam: Still creating... [1m20s elapsed]
google_project_service.cloudtrace: Still creating... [1m20s elapsed]
google_project_service.gke: Still creating... [1m20s elapsed]
google_project_service.clouddebugger: Still creating... [1m20s elapsed]
cgoogle_project_service.errorreporting: Still creating... [1m30s elapsed]
google_project_service.compute: Still creating... [1m30s elapsed]
google_project_service.iam: Still creating... [1m30s elapsed]
google_project_service.cloudtrace: Still creating... [1m30s elapsed]
google_project_service.gke: Still creating... [1m30s elapsed]
google_project_service.clouddebugger: Still creating... [1m30s elapsed]
google_project_service.errorreporting: Still creating... [1m40s elapsed]
google_project_service.compute: Still creating... [1m40s elapsed]
google_project_service.iam: Still creating... [1m40s elapsed]
google_project_service.cloudtrace: Still creating... [1m40s elapsed]
google_project_service.gke: Still creating... [1m40s elapsed]
google_project_service.clouddebugger: Still creating... [1m40s elapsed]
google_project_service.errorreporting: Still creating... [1m50s elapsed]
google_project_service.compute: Still creating... [1m50s elapsed]
google_project_service.iam: Still creating... [1m50s elapsed]
google_project_service.cloudtrace: Still creating... [1m50s elapsed]
google_project_service.gke: Still creating... [1m50s elapsed]
google_project_service.clouddebugger: Still creating... [1m50s elapsed]
google_project_service.errorreporting: Still creating... [2m0s elapsed]
google_project_service.compute: Still creating... [2m0s elapsed]
google_project_service.iam: Creation complete after 2m19s [id=stackdriver-sandbox-347738008/iam.googleapis.com]
google_project_service.gke: Creation complete after 2m19s [id=stackdriver-sandbox-347738008/container.googleapis.com]
google_project_service.clouddebugger: Creation complete after 2m19s [id=stackdriver-sandbox-347738008/clouddebugger.googleapis.com]
google_container_cluster.gke: Creating...
google_project_service.errorreporting: Creation complete after 2m19s [id=stackdriver-sandbox-347738008/clouderrorreporting.googleapis.com]
google_project_service.cloudtrace: Creation complete after 2m19s [id=stackdriver-sandbox-347738008/cloudtrace.googleapis.com]
google_project_service.compute: Creation complete after 2m19s [id=stackdriver-sandbox-347738008/compute.googleapis.com]
google_container_cluster.gke: Still creating... [10s elapsed]
google_container_cluster.gke: Still creating... [20s elapsed]
google_container_cluster.gke: Still creating... [30s elapsed]
google_container_cluster.gke: Still creating... [40s elapsed]
google_container_cluster.gke: Still creating... [50s elapsed]
google_container_cluster.gke: Still creating... [1m0s elapsed]
google_container_cluster.gke: Still creating... [1m10s elapsed]
google_container_cluster.gke: Still creating... [1m20s elapsed]
google_container_cluster.gke: Still creating... [1m30s elapsed]
google_container_cluster.gke: Still creating... [1m40s elapsed]
google_container_cluster.gke: Still creating... [1m50s elapsed]
google_container_cluster.gke: Still creating... [2m0s elapsed]
google_container_cluster.gke: Still creating... [2m10s elapsed]
google_container_cluster.gke: Still creating... [2m20s elapsed]
google_container_cluster.gke: Provisioning with 'local-exec'...
google_container_cluster.gke (local-exec): Executing: ["/bin/sh" "-c" "gcloud config set compute/zone us-central1-b"]
google_container_cluster.gke: Still creating... [3m10s elapsed]
google_container_cluster.gke (local-exec): Updated property [compute/zone].
google_container_cluster.gke: Creation complete after 3m10s [id=stackdriver-sandbox]
null_resource.set_gke_context: Creating...
null_resource.set_gke_context: Provisioning with 'local-exec'...
null_resource.set_gke_context (local-exec): Executing: ["/bin/sh" "-c" "gcloud container clusters get-credentials stackdriver-sandbox --zone us-central1-b --project stackdriver-sandbox-347738008"]
null_resource.set_gke_context (local-exec): Fetching cluster endpoint and auth data.
null_resource.set_gke_context (local-exec): kubeconfig entry generated for stackdriver-sandbox.
null_resource.set_gke_context: Creation complete after 0s [id=4094094530604067790]
null_resource.deploy_services: Creating...
null_resource.deploy_services: Provisioning with 'local-exec'...
null_resource.deploy_services (local-exec): Executing: ["/bin/sh" "-c" "kubectl apply -f ..//release//kubernetes-manifests.yaml"]
null_resource.deploy_services (local-exec): deployment.extensions/checkoutservice created
null_resource.deploy_services (local-exec): service/checkoutservice created
null_resource.deploy_services (local-exec): deployment.extensions/adservice created
null_resource.deploy_services (local-exec): service/adservice created
null_resource.deploy_services (local-exec): deployment.extensions/redis-cart created
null_resource.deploy_services (local-exec): service/redis-cart created
null_resource.deploy_services (local-exec): deployment.extensions/productcatalogservice created
null_resource.deploy_services (local-exec): service/productcatalogservice created
null_resource.deploy_services (local-exec): deployment.extensions/paymentservice created
null_resource.deploy_services (local-exec): service/paymentservice created
null_resource.deploy_services (local-exec): deployment.extensions/productcatalogservice created
null_resource.deploy_services (local-exec): service/productcatalogservice created
null_resource.deploy_services (local-exec): deployment.extensions/paymentservice created
null_resource.deploy_services (local-exec): service/paymentservice created
null_resource.deploy_services (local-exec): deployment.extensions/currencyservice created
null_resource.deploy_services (local-exec): service/currencyservice created
null_resource.deploy_services (local-exec): deployment.extensions/recommendationservice created
null_resource.deploy_services (local-exec): service/recommendationservice created
null_resource.deploy_services (local-exec): deployment.extensions/frontend created
null_resource.deploy_services (local-exec): service/frontend created
null_resource.deploy_services (local-exec): service/frontend-external created
null_resource.deploy_services (local-exec): deployment.extensions/cartservice created
null_resource.deploy_services (local-exec): service/cartservice created
null_resource.deploy_services (local-exec): deployment.extensions/emailservice created
null_resource.deploy_services (local-exec): service/emailservice created
null_resource.deploy_services (local-exec): deployment.extensions/shippingservice created
null_resource.deploy_services (local-exec): service/shippingservice created
null_resource.deploy_services: Creation complete after 6s [id=7149289796509173827]
null_resource.delay: Creating...
null_resource.delay: Provisioning with 'local-exec'...
null_resource.delay (local-exec): Executing: ["/bin/sh" "-c" "sleep 5"]
null_resource.delay: Creation complete after 5s [id=5792403059859448450]

Warning: "zone": [DEPRECATED] Use location instead

  on 03_gke_cluster.tf line 42, in resource "google_container_cluster" "gke":
  42: resource "google_container_cluster" "gke" {
Apply complete! Resources: 15 added, 0 changed, 0 destroyed.

The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the `terraform show` command.

State path: terraform.tfstate
Waiting for Hipster Shop endpoint...
Waiting for Hipster Shop endpoint...
Waiting for Hipster Shop endpoint...
Waiting for Hipster Shop endpoint...
Waiting for Hipster Shop endpoint...
Waiting for Hipster Shop endpoint...
Waiting for Hipster Shop endpoint...
error: Hipsterhop app at http://34.67.163.61 is unreachable
Running load generator
INFO:root:Setting up Compute Engine to run load generation jobs...
gcloud compute firewall-rules create allow-locust-web --allow=tcp:8080 --target-tags=locust-web
Creating firewall...-Created [https://www.googleapis.com/compute/v1/projects/stackdriver-sandbox-347738008/global/firewalls/allow-locust-web].
Creating firewall...done.
INFO:root:Compute Engine setup for load generation.
ERROR:root:Could not access target address 34.67.163.61
Please double check the target address and try again.
waiting for load generator instance...
waiting for load generator instance...
waiting for load generator instance...
waiting for load generator instance...
waiting for load generator instance...
waiting for load generator instance...
error: load generator unreachable
********************************************************************************
Stackdriver Sandbox deployed successfully!
     Stackdriver Dashboard: https://app.google.stackdriver.com/accounts/create
     Google Cloud Console Dashboard: https://console.cloud.google.com/kubernetes/workload?project=stackdriver-sandbox-347738008
     Hipstershop web app address: http://34.67.163.61
     Load generator web interface: [not found]
********************************************************************************

from cloud-ops-sandbox.

yuriatgoogle avatar yuriatgoogle commented on May 28, 2024

image
No logs created for the load gen VM...

from cloud-ops-sandbox.

eaberman avatar eaberman commented on May 28, 2024

This is an issue I had when setting up my Sandbox as well.

Debugging: I tried running the scripts ./delete.sh and ./install.sh several times to get new versions of the Sandbox instance. Eventually, I was able to get the load generator up, but I'm not sure what made that time different than the rest, although it was a few hours after I had initially started trying this.

Screenshots are attached with the error message and the successful instance creation.
Screenshot 2020-06-30 at 12 28 12 PM

Screenshot 2020-06-30 at 6 00 53 PM

from cloud-ops-sandbox.

nicklin37 avatar nicklin37 commented on May 28, 2024

I believe this is fixed in #139

We added some work during the config to wait for the services to become available before going into the loadgenerator setup #139 (comment)

This fixed the loadgenerator issues.

@daniel-sanche please confirm and if so then I think we can close this issue.

from cloud-ops-sandbox.

daniel-sanche avatar daniel-sanche commented on May 28, 2024

Yeah, I think it's safe to close this now. We made sure the Loadgenerator was set up as part of our v0.2.0 launch

from cloud-ops-sandbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.