{"action":"closed","number":114,"pull_request":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/114","id":27103351,"html_url":"https://github.com/cloudify-cosmo/cloudify-cli/pull/114","diff_url":"https://github.com/cloudify-cosmo/cloudify-cli/pull/114.diff","patch_url":"https://github.com/cloudify-cosmo/cloudify-cli/pull/114.patch","issue_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/114","number":114,"state":"closed","locked":false,"title":"BUG missing dest_port for context service on use init","user":{"login":"gaellbn","id":1927435,"avatar_url":"https://avatars.githubusercontent.com/u/1927435?v=3","gravatar_id":"","url":"https://api.github.com/users/gaellbn","html_url":"https://github.com/gaellbn","followers_url":"https://api.github.com/users/gaellbn/followers","following_url":"https://api.github.com/users/gaellbn/following{/other_user}","gists_url":"https://api.github.com/users/gaellbn/gists{/gist_id}","starred_url":"https://api.github.com/users/gaellbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaellbn/subscriptions","organizations_url":"https://api.github.com/users/gaellbn/orgs","repos_url":"https://api.github.com/users/gaellbn/repos","events_url":"https://api.github.com/users/gaellbn/events{/privacy}","received_events_url":"https://api.github.com/users/gaellbn/received_events","type":"User","site_admin":false},"body":"Hi,\r\nWhen i specfied tcp port for manager , i have error because port is wrong on context service request\r\n\r\n    cfy use  -t 127.0.0.1 --port 8080  --debug\r\n\r\n    Sending request: \"GET http://127.0.0.1:80/provider/context\"\r\n\r\n\r\nI just add arg rest_port on the manager.getcontext call.\r\n\r\n\r\n```\r\n❯ cfy use  -t 127.0.0.1 --port 8080  --debug                                                                                                                                       ⏎\r\nSending request: \"GET http://127.0.0.1:8080/status\"\r\nrequest header:  Connection: keep-alive\r\nrequest header:  Content-type: application/json\r\nrequest header:  Accept-Encoding: gzip, deflate\r\nrequest header:  Accept: */*\r\nrequest header:  User-Agent: python-requests/2.5.1 CPython/2.7.6 Darwin/14.0.0\r\nreply:  \"200 OK\" {\"status\": \"running\", \"services\": [{\"instances\": [{\"uptime\": 75480, \"pid\": 506, \"state\": \"up\"}], \"display_name\": \"Riemann\"}, {\"instances\": [{\"uptime\": 75507, \"pid\": 112, \"state\": \"up\"}], \"display_name\": \"Celery Managment\"}, {\"instances\": [{\"uptime\": 75507, \"pid\": 110, \"state\": \"up\"}], \"display_name\": \"Manager Rest-Service\"}, {\"instances\": [{\"uptime\": 75507, \"pid\": 111, \"state\": \"up\"}], \"display_name\": \"AMQP InfluxDB\"}, {\"instances\": [{\"uptime\": 75507, \"pid\": 118, \"state\": \"up\"}], \"display_name\": \"RabbitMQ\"}, {\"instances\": [{\"uptime\": 75507, \"pid\": 113, \"state\": \"up\"}], \"display_name\": \"Elasticsearch\"}, {\"instances\": [{\"uptime\": 75507, \"pid\": 115, \"state\": \"up\"}], \"display_name\": \"Webserver\"}, {\"instances\": [{\"uptime\": 75507, \"pid\": 114, \"state\": \"up\"}], \"display_name\": \"Cloudify UI\"}, {\"instances\": [{\"uptime\": 75507, \"pid\": 109, \"state\": \"up\"}], \"display_name\": \"Logstash\"}]}\r\nresponse header:  date: Fri, 09 Jan 2015 12:16:31 GMT\r\nresponse header:  content-length: 887\r\nresponse header:  content-type: application/json\r\nresponse header:  connection: keep-alive\r\nresponse header:  server: nginx/1.7.9\r\nSending request: \"GET http://127.0.0.1:80/provider/context\"\r\nTraceback (most recent call last):\r\n  File \"/Users/gprudhomme/Documents/Missions/cloukr/cloukrcommonenv/bin/cfy\", line 9, in <module>\r\n    load_entry_point('cloudify==3.1', 'console_scripts', 'cfy')()\r\n  File \"/Users/gprudhomme/Documents/Missions/cloukr/cloukrcommonenv/lib/python2.7/site-packages/cloudify_cli/cli.py\", line 37, in main\r\n    args.handler(args)\r\n  File \"/Users/gprudhomme/Documents/Missions/cloukr/cloukrcommonenv/lib/python2.7/site-packages/cloudify_cli/cli.py\", line 143, in command_cmd_handler\r\n    command['handler'](**kwargs)\r\n  File \"/Users/gprudhomme/Documents/Missions/cloukr/cloukrcommonenv/lib/python2.7/site-packages/cloudify_cli/commands/use.py\", line 48, in use\r\n    management_ip).manager.get_context()\r\n  File \"/Users/gprudhomme/Documents/Missions/cloukr/cloukrcommonenv/lib/python2.7/site-packages/cloudify_rest_client/manager.py\", line 47, in get_context\r\n    response = self.api.get('/provider/context', _include=_include)\r\n  File \"/Users/gprudhomme/Documents/Missions/cloukr/cloukrcommonenv/lib/python2.7/site-packages/cloudify_rest_client/client.py\", line 130, in get\r\n    expected_status_code=expected_status_code)\r\n  File \"/Users/gprudhomme/Documents/Missions/cloukr/cloukrcommonenv/lib/python2.7/site-packages/cloudify_rest_client/client.py\", line 102, in do_request\r\n    'Content-type': 'application/json'\r\n  File \"/Users/gprudhomme/Documents/Missions/cloukr/cloukrcommonenv/lib/python2.7/site-packages/requests/api.py\", line 65, in get\r\n    return request('get', url, **kwargs)\r\n  File \"/Users/gprudhomme/Documents/Missions/cloukr/cloukrcommonenv/lib/python2.7/site-packages/requests/api.py\", line 49, in request\r\n    response = session.request(method=method, url=url, **kwargs)\r\n  File \"/Users/gprudhomme/Documents/Missions/cloukr/cloukrcommonenv/lib/python2.7/site-packages/requests/sessions.py\", line 461, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/Users/gprudhomme/Documents/Missions/cloukr/cloukrcommonenv/lib/python2.7/site-packages/requests/sessions.py\", line 573, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/Users/gprudhomme/Documents/Missions/cloukr/cloukrcommonenv/lib/python2.7/site-packages/requests/adapters.py\", line 415, in send\r\n    raise ConnectionError(err, request=request)\r\nConnectionError: ('Connection aborted.', error(61, 'Connection refused'))\r\n```\r\n","created_at":"2015-01-09T14:37:48Z","updated_at":"2015-07-06T10:36:09Z","closed_at":"2015-07-06T10:36:09Z","merged_at":null,"merge_commit_sha":"9cbdb744a734bc62d5c52703a16f5ccaa8c72c6f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/114/commits","review_comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/114/comments","review_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/114/comments","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/statuses/9d34a8ffc608f9f7e398373769aa93b34388b5a2","head":{"label":"SelfDeploy:BUG_context_user","ref":"BUG_context_user","sha":"9d34a8ffc608f9f7e398373769aa93b34388b5a2","user":{"login":"SelfDeploy","id":10423294,"avatar_url":"https://avatars.githubusercontent.com/u/10423294?v=3","gravatar_id":"","url":"https://api.github.com/users/SelfDeploy","html_url":"https://github.com/SelfDeploy","followers_url":"https://api.github.com/users/SelfDeploy/followers","following_url":"https://api.github.com/users/SelfDeploy/following{/other_user}","gists_url":"https://api.github.com/users/SelfDeploy/gists{/gist_id}","starred_url":"https://api.github.com/users/SelfDeploy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SelfDeploy/subscriptions","organizations_url":"https://api.github.com/users/SelfDeploy/orgs","repos_url":"https://api.github.com/users/SelfDeploy/repos","events_url":"https://api.github.com/users/SelfDeploy/events{/privacy}","received_events_url":"https://api.github.com/users/SelfDeploy/received_events","type":"Organization","site_admin":false},"repo":null},"base":{"label":"cloudify-cosmo:master","ref":"master","sha":"49e81024a9cdf6a199119e2c62d6460361540d4b","user":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"repo":{"id":18326701,"name":"cloudify-cli","full_name":"cloudify-cosmo/cloudify-cli","owner":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudify-cosmo/cloudify-cli","description":"Cloudify's CLI","fork":false,"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli","forks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/forks","keys_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/teams","hooks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/hooks","issue_events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/events{/number}","events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/events","assignees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/assignees{/user}","branches_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/branches{/branch}","tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/tags","blobs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/languages","stargazers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/stargazers","contributors_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/contributors","subscribers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/subscribers","subscription_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/subscription","commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/contents/{+path}","compare_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/merges","archive_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/downloads","issues_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues{/number}","pulls_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/labels{/name}","releases_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/releases{/id}","created_at":"2014-04-01T11:12:15Z","updated_at":"2015-05-15T08:06:23Z","pushed_at":"2015-07-06T09:45:12Z","git_url":"git://github.com/cloudify-cosmo/cloudify-cli.git","ssh_url":"git@github.com:cloudify-cosmo/cloudify-cli.git","clone_url":"https://github.com/cloudify-cosmo/cloudify-cli.git","svn_url":"https://github.com/cloudify-cosmo/cloudify-cli","homepage":null,"size":7642,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":8,"forks":17,"open_issues":8,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/114"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-cli/pull/114"},"issue":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/114"},"comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/114/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/114/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/114/commits"},"statuses":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/statuses/9d34a8ffc608f9f7e398373769aa93b34388b5a2"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":2,"review_comments":0,"commits":2,"additions":2,"deletions":1,"changed_files":1}}