{"action":"created","issue":{"url":"https://api.github.com/repos/minio/minio/issues/4991","repository_url":"https://api.github.com/repos/minio/minio","labels_url":"https://api.github.com/repos/minio/minio/issues/4991/labels{/name}","comments_url":"https://api.github.com/repos/minio/minio/issues/4991/comments","events_url":"https://api.github.com/repos/minio/minio/issues/4991/events","html_url":"https://github.com/minio/minio/issues/4991","id":261217771,"number":4991,"title":"Mirroring a cluster to a single instance doesn't work","user":{"login":"davidgeorgealex","id":27992003,"avatar_url":"https://avatars0.githubusercontent.com/u/27992003?v=4","gravatar_id":"","url":"https://api.github.com/users/davidgeorgealex","html_url":"https://github.com/davidgeorgealex","followers_url":"https://api.github.com/users/davidgeorgealex/followers","following_url":"https://api.github.com/users/davidgeorgealex/following{/other_user}","gists_url":"https://api.github.com/users/davidgeorgealex/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgeorgealex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgeorgealex/subscriptions","organizations_url":"https://api.github.com/users/davidgeorgealex/orgs","repos_url":"https://api.github.com/users/davidgeorgealex/repos","events_url":"https://api.github.com/users/davidgeorgealex/events{/privacy}","received_events_url":"https://api.github.com/users/davidgeorgealex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-28T07:24:43Z","updated_at":"2017-09-28T08:34:20Z","closed_at":null,"author_association":"NONE","body":"I have a Minio cluster that contains 3 instances, each with 2 disks (so 6 disks in total) and a Minio instance in single mode. I want to be able to mirror the files uploaded in the cluster to the Minio in single mode. For this I run `mc mirror` from one instance from the cluster to the Minio in single mode mode.\r\n\r\n## Expected Behavior\r\nThe files uploaded in the cluster, from any instance, should be mirrored to the Minio in single mode.\r\n\r\n## Current Behavior\r\nOnly the files uploaded to the instance that was using in the `mc mirror` command goes to the Minio in single mode.\r\n\r\n## Steps to Reproduce (for bugs)\r\n1. Run the docker-compose file uploaded (uploaded in txt, because .yml is not permitted - change the suffix before running) that contains the Minio cluster and Minio in single mode setup\r\n[docker-compose.txt](https://github.com/minio/minio/files/1339833/docker-compose.txt)\r\n2. Check if the instances are accessible from the browser (localhost:9001-9004)\r\n3. Create two buckets in the cluster (bb1 and bb2)\r\n4. docker run --network=<<networkNameUsedByTheInitialInstances>> -it --entrypoint=/bin/sh minio/mc:RELEASE.2017-06-15T03-38-43Z\r\n5. mc config host add source http://minio1:9000 minio minio123\r\n6. mc config host add target http://minioSingle:9000 minio minio123\r\n7. mc mirror -w --force --remove source target\r\n8. Upload a file using http://localhost:9002/minio/bb1/ and one using http://localhost:9001/minio/bb1/\r\n9. You can see that only the file uploaded from the :9001 will be visible (:9001 is the instance that was provided in the mirror command), even if you can see both files in the cluster.\r\n\r\n## Context\r\nI want to mirror a minio cluster to a single instance without carrieng from which instance in the cluster the file gets uploaded.\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Version used (`minio version`): the versions are in the docker-compose file and in the mc run command\r\n* Environment name and version (e.g. nginx 1.9.1): Ubuntu 16.04.2 LTS\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/minio/minio/issues/comments/332767950","html_url":"https://github.com/minio/minio/issues/4991#issuecomment-332767950","issue_url":"https://api.github.com/repos/minio/minio/issues/4991","id":332767950,"user":{"login":"harshavardhana","id":622699,"avatar_url":"https://avatars0.githubusercontent.com/u/622699?v=4","gravatar_id":"","url":"https://api.github.com/users/harshavardhana","html_url":"https://github.com/harshavardhana","followers_url":"https://api.github.com/users/harshavardhana/followers","following_url":"https://api.github.com/users/harshavardhana/following{/other_user}","gists_url":"https://api.github.com/users/harshavardhana/gists{/gist_id}","starred_url":"https://api.github.com/users/harshavardhana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshavardhana/subscriptions","organizations_url":"https://api.github.com/users/harshavardhana/orgs","repos_url":"https://api.github.com/users/harshavardhana/repos","events_url":"https://api.github.com/users/harshavardhana/events{/privacy}","received_events_url":"https://api.github.com/users/harshavardhana/received_events","type":"User","site_admin":false},"created_at":"2017-09-28T08:34:20Z","updated_at":"2017-09-28T08:34:20Z","author_association":"OWNER","body":"Reproduced it using docker compose, investigating further.. "}}
{"actor":{"display_login":"harshavardhana"}}