{"action":"created","issue":{"url":"https://api.github.com/repos/linkerd/linkerd/issues/1662","repository_url":"https://api.github.com/repos/linkerd/linkerd","labels_url":"https://api.github.com/repos/linkerd/linkerd/issues/1662/labels{/name}","comments_url":"https://api.github.com/repos/linkerd/linkerd/issues/1662/comments","events_url":"https://api.github.com/repos/linkerd/linkerd/issues/1662/events","html_url":"https://github.com/linkerd/linkerd/issues/1662","id":263120720,"number":1662,"title":"Thrift service dest not working","user":{"login":"mirosval","id":1315417,"avatar_url":"https://avatars1.githubusercontent.com/u/1315417?v=4","gravatar_id":"","url":"https://api.github.com/users/mirosval","html_url":"https://github.com/mirosval","followers_url":"https://api.github.com/users/mirosval/followers","following_url":"https://api.github.com/users/mirosval/following{/other_user}","gists_url":"https://api.github.com/users/mirosval/gists{/gist_id}","starred_url":"https://api.github.com/users/mirosval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirosval/subscriptions","organizations_url":"https://api.github.com/users/mirosval/orgs","repos_url":"https://api.github.com/users/mirosval/repos","events_url":"https://api.github.com/users/mirosval/events{/privacy}","received_events_url":"https://api.github.com/users/mirosval/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-05T13:13:48Z","updated_at":"2017-10-05T19:48:02Z","closed_at":null,"author_association":"NONE","body":"# Thanks for your help improving the project! #\r\n\r\n## Getting Help ##\r\n\r\nGithub issues are for bug reports and feature requests. For questions about\r\nlinkerd, how to use it, or debugging assistance, start by\r\n[asking a question in the forums](https://discourse.linkerd.io/) or join us on\r\n[Slack](https://slack.linkerd.io/).\r\n\r\nFull details at [CONTRIBUTING.md](https://github.com/linkerd/linkerd/blob/master/CONTRIBUTING.md).\r\n\r\n## Filing a linkerd issue ##\r\n\r\nIssue Type:\r\n\r\n- [x] Bug report\r\n- [ ] Feature request\r\n\r\n**What happened**:\r\n\r\nI get an exception `org.apache.thrift.TApplicationException: Internal error processing deleteImage: 'com.twitter.finagle.NoBrokersAvailableException: No hosts are available for /svc/deleteImage, Dtab.base=[/consul=>/#/io.l5d.consul/small-virtualbox;/svc=>/consul], Dtab.local=[]. Remote Info: Not Available'` when I attempt to call my Thrift service.\r\n\r\nAs you can see, the dentry being resolved is `/svc/deleteImage`, `deleteImage` is a method.\r\n\r\n**What you expected to happen**:\r\n\r\nAccording to the documentation [here](https://linkerd.io/config/1.2.1/linkerd/index.html#thrift-protocol) the format should be `/ dstPrefix [/ dest] [/ thriftMethod ] ` but there is nothing in the `dest` segment. I am using Finagle 7.1.0 to construct my client like so:\r\n\r\n```scala\r\nnew ImageService.FinagledClient(\r\n  Thrift.client\r\n    .withAttemptTTwitterUpgrade\r\n    .newClient(thriftAddress, \"image_service_client\")\r\n    .toService\r\n)\r\n```\r\n\r\nLinkerd 1.2.1 config\r\n```yaml\r\nadmin:\r\n  ip: 0.0.0.0\r\n  port: 9990\r\n\r\nnamers:\r\n- kind: io.l5d.consul\r\n  includeTag: false\r\n  useHealthCheck: false\r\n  setHost: true\r\n\r\nrouters:\r\n- protocol: http\r\n  label: http\r\n  service:\r\n    responseClassifier:\r\n      kind: io.l5d.http.retryableIdempotent5XX\r\n  identifier:\r\n   kind: io.l5d.methodAndHost\r\n  dtab: |\r\n    /consul => /#/io.l5d.consul/small-virtualbox;\r\n    /local-consul => /$/io.buoyant.http.subdomainOfPfx/service.consul/consul;\r\n    /named-consul => /$/io.buoyant.http.subdomainOfPfx/service.small-virtualbox.consul/consul;\r\n    /svc/*/* => /local-consul | /named-consul;\r\n  servers:\r\n  - port: 80\r\n    ip: 0.0.0.0\r\n  client:\r\n   requeueBudget:\r\n     percentCanRetry: 5.0\r\n- protocol: thrift\r\n  experimental: true\r\n  label: thrift\r\n  dtab: |\r\n    /consul => /#/io.l5d.consul/small-virtualbox;\r\n    /svc => /consul;\r\n  thriftProtocol: binary\r\n  thriftMethodInDst: true\r\n  servers:\r\n  - port: 81\r\n    ip: 0.0.0.0\r\n    thriftFramed: true\r\n  client:\r\n    thriftFramed: true\r\n    attemptTTwitterUpgrade: true\r\n```\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n\r\n**Anything else we need to know?**:\r\n\r\n* HTTP configuration works without problems\r\n* I have tried also ThriftMux on the client and in Linkerd, to no avail\r\n* There is nothing in the logs for thrift, I only get the exception on the client side\r\n"},"comment":{"url":"https://api.github.com/repos/linkerd/linkerd/issues/comments/334572542","html_url":"https://github.com/linkerd/linkerd/issues/1662#issuecomment-334572542","issue_url":"https://api.github.com/repos/linkerd/linkerd/issues/1662","id":334572542,"user":{"login":"esbie","id":41829,"avatar_url":"https://avatars1.githubusercontent.com/u/41829?v=4","gravatar_id":"","url":"https://api.github.com/users/esbie","html_url":"https://github.com/esbie","followers_url":"https://api.github.com/users/esbie/followers","following_url":"https://api.github.com/users/esbie/following{/other_user}","gists_url":"https://api.github.com/users/esbie/gists{/gist_id}","starred_url":"https://api.github.com/users/esbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esbie/subscriptions","organizations_url":"https://api.github.com/users/esbie/orgs","repos_url":"https://api.github.com/users/esbie/repos","events_url":"https://api.github.com/users/esbie/events{/privacy}","received_events_url":"https://api.github.com/users/esbie/received_events","type":"User","site_admin":false},"created_at":"2017-10-05T19:48:02Z","updated_at":"2017-10-05T19:48:02Z","author_association":"OWNER","body":"Thanks @mirosval, we'll take a look"}}
{"actor":{"display_login":"esbie"}}