Azure / open-service-broker-azure

The Open Service Broker API Server for Azure Services
https://osba.sh
MIT License
248 stars 100 forks source link

Installing OSBA on Cloud Foundry #709

Open robdickens opened 5 years ago

robdickens commented 5 years ago

Hi,

I am currently installing osba into my OS Cloud Foundry solution (as per these instructions: https://github.com/Azure/open-service-broker-azure/blob/master/contrib/cf/README.md) and have come across an issue when cf pushing the service broker.

I get the following error:

Staging app and tracing logs...
   Cell eb0e351d-78e4-45a3-b388-bc91ce480b81 creating container for instance 5eb1fe9c-ba21-4b54-b9ab-d7827024b10f
   Cell eb0e351d-78e4-45a3-b388-bc91ce480b81 successfully created container for instance 5eb1fe9c-ba21-4b54-b9ab-d7827024b10f
   Downloading app package...
   Downloaded app package (69.4M)
   Downloaded buildpack `https://github.com/cloudfoundry/go-buildpack/releases/download/v1.8.13/go-buildpack-v1.8.13.zip` (4.9M)
   -----> Go Buildpack version 1.8.13
   -----> Installing godep v79
          Download [https://buildpacks.cloudfoundry.org/dependencies/godep/godep-v79-linux-x64-9e37ce0f.tgz]
          Download [https://buildpacks.cloudfoundry.org/dependencies/glide/glide-v0.13.0-linux-x64-f13fe16b.tgz]
   -----> Installing dep v0.3.2
   -----> Installing go 1.8.5
          Download [https://buildpacks.cloudfoundry.org/dependencies/go/go1.8.5.linux-amd64-fe5c03fb.tar.gz]
          Note: skipping (dep ensure) due to non-empty vendor directory.
   -----> Running: go install -tags cloudfoundry -buildmode pie github.com/Azure/open-service-broker-azure/cmd/broker
   vendor/golang.org/x/crypto/scrypt/scrypt.go:13:2: cannot find package "math/bits" in any of:
        /tmp/gobuildpack.gopath255328754/.go/src/github.com/Azure/open-service-broker-azure/vendor/math/bits (vendor tree)
        /tmp/contents923048986/deps/0/go1.8.5/go/src/math/bits (from $GOROOT)
        /tmp/gobuildpack.gopath255328754/.go/src/math/bits (from $GOPATH)
          **ERROR** Unable to compile application: exit status 1
   Failed to compile droplet: Failed to run finalize script: exit status 12
   Exit status 223
   Cell eb0e351d-78e4-45a3-b388-bc91ce480b81 stopping instance 5eb1fe9c-ba21-4b54-b9ab-d7827024b10f
   Cell eb0e351d-78e4-45a3-b388-bc91ce480b81 destroying container for instance 5eb1fe9c-ba21-4b54-b9ab-d7827024b10f
Error staging application: App staging failed in the buildpack compile phase
FAILED

Is anyone able to advise? Also I noticed the default go buildpack is behind the latest - is it as simple as this?

zhongyi-zhang commented 5 years ago

Yeah, I think it is probably caused the old go buildpack. Please have a try newer buildpack.

zhongyi-zhang commented 5 years ago

@robdickens does new buildpack work? If work, I'll update the example.

robdickens commented 5 years ago

HI @zhongyi-zhang, apologies for the delay (other priorities etc..) I updated the go buildpack version to v1.8.42 and used the latest tag of osba (v1.8.2) and everything deployed and the osba started successfully.

The one difference is the fork of go buildpacks based on cflinuxfs 2 & 3 meaning you'll need to reference either buildpack depending on your version of cloud foundry

Haven't fully tested everything yet, but it definitely gopt rid of my immediate issue so thought I'd let you know.

Thanks.

SergeyMuha commented 4 years ago

I have cloned repo v1.8.4. Updated manifest.yml with vars.

██cf push -f contrib/cf/manifest.yml .... Uploading osba... Uploading app files from: /home/sergey/works/projects/xxx/open-service-broker-azure Uploading 70.5M, 19654 files Done uploading

FAILED Error processing app files: Error uploading application. Error: timed out waiting for async job 'https://api.sys.cf.xxx.xxx.com/v2/jobs/4f918543-476d-4758-bd2a-21f91a9b7250' to finish