cloudfoundry / bosh-azure-cpi-release

BOSH Azure CPI
Apache License 2.0
63 stars 87 forks source link

BOSH CLI install to Standard_A0 instance hangs at "Compiling package 'ruby_azure_cpi'" #230

Closed cunnie closed 7 years ago

cunnie commented 7 years ago

BOSH CLI can't install to Standard A0 instance — it exhausts memory and swap while compiling the CPI.

I don't believe that there's an easy fix — I think the short-term answer might be to add a note to http://bosh.io/docs/init-azure.html to say, "Instance size must have 1.75GiB RAM or greater (do not use Standard_A0) for install to complete successfully."

Hangs at:

Started deploying
  Waiting for the agent on VM 'cunniestore-0e2eaed8-1b38-4ad8-54fc-a21b6d394da7'... Finished (00:00:01)
  Stopping jobs on instance 'unknown/0'... Finished (00:00:02)
  Deleting VM 'cunniestore-0e2eaed8-1b38-4ad8-54fc-a21b6d394da7'... Finished (00:03:07)
  Creating VM for instance 'nginx_ntp_pdns/0' from stemcell 'bosh-stemcell-2875d88b-4c7f-4931-a607-e21024680c7b'... Finished (00:03:15)
  Waiting for the agent on VM 'cunniestore-7c208d26-0294-49a8-7877-29c94f247459' to be ready... Finished (00:00:49)
  Rendering job templates... Finished (00:00:03)
  Compiling package 'ruby_azure_cpi/87c15bcd83a9a6011b6001be68e58c59ec1c5dcb'...^C

less /var/log/syslog

Dec 23 03:12:49 localhost kernel: [ 1005.372166] Out of memory: Kill process 28561 (cc1) score 8 or sacrifice child

less /var/vcap/sys/log/compilation/packaging.stderr.log

gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[2]: *** [ossl_x509store.o] Error 4
make[2]: *** Waiting for unfinished jobs....
gcc: internal compiler error: Killed (program cc1)
gcc: internal compiler error: Killed (program cc1)
AbelHu commented 7 years ago

@cunnie Thanks for reporting this issue. We have created a PR for docs-bosh.

cunnie commented 7 years ago

Thanks @AbelHu ! Gosh, you're fast.