Comments (8)
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/150461780
The labels on this github issue will be updated when the story is started.
from nfs-volume-release.
Can you run cf env nfsbroker
after binding the service and post the results here?
from nfs-volume-release.
My guess is that this line in main.go
is causing the issue:
*dbPort = fmt.Sprintf("%.0f", credentials["port"].(float64))
Probably the posgres release you are using serializes port as a string not a number. As an experiment, you could try changing it to:
*dbPort = credentials["port"]
And let us know if that fixes the issue. If so, then we probably need to add some type assertions to accept port as a string or a number.
from nfs-volume-release.
out put of "cf env nfsbroker" (domain name were masked)
System-Provided:
{
"VCAP_SERVICES": {
"postgresql": [
{
"credentials": {
"dbType": "postgresql",
"hostname": "10.8.39.174",
"name": "id_e444046b_0335_4455_bc4e_2dd4aba5c18d",
"password": "l2t46qpggncnuo4nm7elvqr5c5",
"port": "9999",
"uri": "postgresql://id_e444046b_0335_4455_bc4e_2dd4aba5c18d:[email protected]:9999/id_e444046b_0335_4455_bc4e_2dd4aba5c18d",
"username": "id_e444046b_0335_4455_bc4e_2dd4aba5c18d"
},
"label": "postgresql",
"name": "pg4nfsbroker",
"plan": "developer",
"provider": null,
"syslog_drain_url": null,
"tags": [
"postgresql",
"cache"
],
"volume_mounts": []
}
]
}
}
{
"VCAP_APPLICATION": {
"application_id": "959068f3-7487-470f-9509-535577f471fc",
"application_name": "nfsbroker",
"application_uris": [
"nfsbroker.mydomain.com"
],
"application_version": "29a2481a-e800-445e-bb42-93ef703f5fe0",
"cf_api": "https://ccng.mydomain.com",
"limits": {
"disk": 1024,
"fds": 16384,
"mem": 1024
},
"name": "nfsbroker",
"space_id": "7be1bdc5-c611-4b1f-a1fc-1e29bff6bff7",
"space_name": "nfsbroker",
"uris": [
"nfsbroker.mydomain.com"
],
"users": null,
"version": "29a2481a-e800-445e-bb42-93ef703f5fe0"
}
}
User-Provided:
ALLOWED_OPTIONS: uid,gid,auto_cache,username,password
DBDRIVERNAME: postgres
DBSERVICENAME: postgresql
LOGLEVEL: info
PASSWORD: goodpassword
SERVICENAME: nfs
USERNAME: admin
from nfs-volume-release.
After changed line 183 of main.go to
*dbPort = credentials["port"]
getting following error in building.
./main.go:183: cannot use credentials["port"] (type interface {}) as type string in assignment: need type assertion
from nfs-volume-release.
change line 183 of main.go to
*dbPort = credentials["port"].(string)
worked.
from nfs-volume-release.
Very good, thanks for the feedback. We'll try to get a fix in for this case shortly.
from nfs-volume-release.
Closing this as fixed. Please re-open if you still see the issue.
from nfs-volume-release.
Related Issues (20)
- Add support for cf CLI v8 to the errands HOT 2
- App Binding NFS Service broker error: - Not allowed options: username, password HOT 3
- nfsbrokerpush errand doesn't support cflinuxfs4 HOT 6
- Diego is trying to connect to nfsv3driver that is disabled. HOT 3
- Submodules -> Versioned Deps HOT 2
- NFS Broker doesn't currently support Postgres HOT 7
- Error filling in template 'db_ca.crt.erb' (line 1: Can't find property '["nfsbrokerpush.db.ca_cert"]' HOT 3
- nfs-volume/1.6.0 support Xenial Stemcell HOT 3
- enable-nfs-volume-service.yml HOT 3
- ldap Authentication on NFS volume services HOT 8
- "Service broker error: Not allowed options: username, password" HOT 2
- ldap Authentication on NFS volume services HOT 6
- Detect stale nfs mounts and mark as unhealthy HOT 4
- UID/GID based mapping NFS-experimental HOT 2
- NFS mount Access using API Calls HOT 2
- NFS Mount issue using LDAP HOT 3
- Proxy properties ignored HOT 2
- [Question] Adopting Bionic estimation HOT 20
- Test Tracker integration removal
- nfsv3driver drain fails to complete. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nfs-volume-release.