{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/4540","repository_url":"https://api.github.com/repos/rancher/rancher","labels_url":"https://api.github.com/repos/rancher/rancher/issues/4540/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/4540/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/4540/events","html_url":"https://github.com/rancher/rancher/issues/4540","id":150608327,"number":4540,"title":"Ports are not mapping and when they do it doesn't work as expected. ","user":{"login":"virtuman","id":1087996,"avatar_url":"https://avatars.githubusercontent.com/u/1087996?v=3","gravatar_id":"","url":"https://api.github.com/users/virtuman","html_url":"https://github.com/virtuman","followers_url":"https://api.github.com/users/virtuman/followers","following_url":"https://api.github.com/users/virtuman/following{/other_user}","gists_url":"https://api.github.com/users/virtuman/gists{/gist_id}","starred_url":"https://api.github.com/users/virtuman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virtuman/subscriptions","organizations_url":"https://api.github.com/users/virtuman/orgs","repos_url":"https://api.github.com/users/virtuman/repos","events_url":"https://api.github.com/users/virtuman/events{/privacy}","received_events_url":"https://api.github.com/users/virtuman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rancher/rancher/labels/area/networking","name":"area/networking","color":"FBCA04"},{"url":"https://api.github.com/repos/rancher/rancher/labels/kind/bug","name":"kind/bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"ibuildthecloud","id":1754002,"avatar_url":"https://avatars.githubusercontent.com/u/1754002?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildthecloud","html_url":"https://github.com/ibuildthecloud","followers_url":"https://api.github.com/users/ibuildthecloud/followers","following_url":"https://api.github.com/users/ibuildthecloud/following{/other_user}","gists_url":"https://api.github.com/users/ibuildthecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildthecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildthecloud/subscriptions","organizations_url":"https://api.github.com/users/ibuildthecloud/orgs","repos_url":"https://api.github.com/users/ibuildthecloud/repos","events_url":"https://api.github.com/users/ibuildthecloud/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildthecloud/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rancher/rancher/milestones/61","html_url":"https://github.com/rancher/rancher/milestones/Release%201.1","labels_url":"https://api.github.com/repos/rancher/rancher/milestones/61/labels","id":1651837,"number":61,"title":"Release 1.1","description":"","creator":{"login":"will-chan","id":10134676,"avatar_url":"https://avatars.githubusercontent.com/u/10134676?v=3","gravatar_id":"","url":"https://api.github.com/users/will-chan","html_url":"https://github.com/will-chan","followers_url":"https://api.github.com/users/will-chan/followers","following_url":"https://api.github.com/users/will-chan/following{/other_user}","gists_url":"https://api.github.com/users/will-chan/gists{/gist_id}","starred_url":"https://api.github.com/users/will-chan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-chan/subscriptions","organizations_url":"https://api.github.com/users/will-chan/orgs","repos_url":"https://api.github.com/users/will-chan/repos","events_url":"https://api.github.com/users/will-chan/events{/privacy}","received_events_url":"https://api.github.com/users/will-chan/received_events","type":"User","site_admin":false},"open_issues":196,"closed_issues":6,"state":"open","created_at":"2016-03-17T17:24:50Z","updated_at":"2016-05-01T02:23:46Z","due_on":"2016-06-11T07:00:00Z","closed_at":null},"comments":2,"created_at":"2016-04-23T23:58:29Z","updated_at":"2016-05-01T23:51:59Z","closed_at":null,"body":"**Rancher Version:** 1.0.1\r\n\r\n**Docker Version:** 1.10 and 1.11\r\n\r\n**OS:** centos7\r\n\r\n**Steps to Reproduce:** \r\n_docker-compose.yml_\r\n```\r\nlogio:\r\n  image: blacklabelops/logio:latest\r\n  container_name: logio\r\n  restart: always\r\n  hostname: \"logger.domain.com\"\r\n  labels:\r\n    io.rancher.scheduler.global: 'true'\r\n    io.rancher.container.pull_image: always\r\n    io.rancher.container.hostname_override: container_name\r\n    io.rancher.scheduler.affinity:host_label: logioserver=true\r\n  expose:\r\n    - 28778:28778\r\n    - 28777:28777\r\n  ports:\r\n    - 28778:28778\r\n    - 28777:28777\r\n  environment:\r\n    TERM: xterm-256color\r\n    LOGIO_ADMIN_USER: ${LOGIO_ADMIN_USER}\r\n    LOGIO_ADMIN_PASSWORD: ${LOGIO_ADMIN_PASSWORD}\r\n    LOGIO_CERTIFICATE_DNAME: ${LOGIO_CERTIFICATE_DNAME}\r\n  volumes:\r\n    - /opt/server\r\n```\r\n\r\n_rancher-compose.yml_\r\n```\r\n.catalog:\r\n  name: Log.io\r\n  description: |\r\n     Log.io server for collecting and display real-time text streams.\r\n  version: v0.0.1\r\n  category: Logging\r\n  minimum_rancher_version: v0.90.0\r\n  \r\n  questions:\r\n\r\n    - variable: LOGIO_ADMIN_USER\r\n      description: \"HTTP Auth username for web interface\"\r\n      label: \"Web Username\"\r\n      required: false\r\n      type: \"string\"\r\n\r\n    - variable: LOGIO_ADMIN_PASSWORD\r\n      description: \"HTTP Auth password for web interface\"\r\n      label: \"Web Password\"\r\n      required: false\r\n      type: \"string\"\r\n\r\n    - variable: LOGIO_CERTIFICATE_DNAME\r\n      description: \"Certificat DName\"\r\n      label: \"Certificate DName\"\r\n      required: false\r\n      type: \"string\r\n```\r\n\r\n\r\n**Results:**\r\nCouple errors:\r\n\r\n1. Ports don't get properly mapped. Before creating this stack I exposed 28777 and 28778 fully in firewalld, after install - ports - ports are closed for public access\r\n\r\n2. IP address that is specified is not binding and the port is showing that it is open globally (in my case it's an issue because port is Jared across multiple services that run on same port and its not able to bind globally since it is already used on a couple of other ips on same host) but when I move my mouse over it is showing that it is associated with ip 172.17.0.1 and if fact it remains block from outer access\r\n\r\n3. When I Try to edit ports and add IP: in front of the port, only first number of the up address gets stripped off, i.e. 5.9.9.9:27017 as source [ip:]port it will keep only number 5 after I save the form and no matter what I try to do it won't work. \r\n\r\nReproducible every time with any other docker-compose that I tried\r\n\r\n\r\n**Expected:**\r\nExpected same as docker standard behavior when it exposes ports or publishes them as specified in docker. \r\n\r\nAnd for edit port mapping to save changes properly without dropping everything after the first . (Period)"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/216082410","html_url":"https://github.com/rancher/rancher/issues/4540#issuecomment-216082410","issue_url":"https://api.github.com/repos/rancher/rancher/issues/4540","id":216082410,"user":{"login":"deniseschannon","id":11410997,"avatar_url":"https://avatars.githubusercontent.com/u/11410997?v=3","gravatar_id":"","url":"https://api.github.com/users/deniseschannon","html_url":"https://github.com/deniseschannon","followers_url":"https://api.github.com/users/deniseschannon/followers","following_url":"https://api.github.com/users/deniseschannon/following{/other_user}","gists_url":"https://api.github.com/users/deniseschannon/gists{/gist_id}","starred_url":"https://api.github.com/users/deniseschannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniseschannon/subscriptions","organizations_url":"https://api.github.com/users/deniseschannon/orgs","repos_url":"https://api.github.com/users/deniseschannon/repos","events_url":"https://api.github.com/users/deniseschannon/events{/privacy}","received_events_url":"https://api.github.com/users/deniseschannon/received_events","type":"User","site_admin":false},"created_at":"2016-05-01T23:51:59Z","updated_at":"2016-05-01T23:51:59Z","body":"For number 3, that's this issue that was fixed in the next release, but please note that we currently don't allow users to change the host IP when editing the port. \r\n https://github.com/rancher/rancher/issues/4280"}}