{"action":"closed","issue":{"url":"https://api.github.com/repos/GluuFederation/gluu-flask/issues/78","repository_url":"https://api.github.com/repos/GluuFederation/gluu-flask","labels_url":"https://api.github.com/repos/GluuFederation/gluu-flask/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/GluuFederation/gluu-flask/issues/78/comments","events_url":"https://api.github.com/repos/GluuFederation/gluu-flask/issues/78/events","html_url":"https://github.com/GluuFederation/gluu-flask/issues/78","id":150689533,"number":78,"title":"Guard againsts duplicate machine name","user":{"login":"iromli","id":231601,"avatar_url":"https://avatars.githubusercontent.com/u/231601?v=3","gravatar_id":"","url":"https://api.github.com/users/iromli","html_url":"https://github.com/iromli","followers_url":"https://api.github.com/users/iromli/followers","following_url":"https://api.github.com/users/iromli/following{/other_user}","gists_url":"https://api.github.com/users/iromli/gists{/gist_id}","starred_url":"https://api.github.com/users/iromli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iromli/subscriptions","organizations_url":"https://api.github.com/users/iromli/orgs","repos_url":"https://api.github.com/users/iromli/repos","events_url":"https://api.github.com/users/iromli/events{/privacy}","received_events_url":"https://api.github.com/users/iromli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"shouro","id":91414,"avatar_url":"https://avatars.githubusercontent.com/u/91414?v=3","gravatar_id":"","url":"https://api.github.com/users/shouro","html_url":"https://github.com/shouro","followers_url":"https://api.github.com/users/shouro/followers","following_url":"https://api.github.com/users/shouro/following{/other_user}","gists_url":"https://api.github.com/users/shouro/gists{/gist_id}","starred_url":"https://api.github.com/users/shouro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shouro/subscriptions","organizations_url":"https://api.github.com/users/shouro/orgs","repos_url":"https://api.github.com/users/shouro/repos","events_url":"https://api.github.com/users/shouro/events{/privacy}","received_events_url":"https://api.github.com/users/shouro/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-04-24T18:38:08Z","updated_at":"2016-05-24T16:36:12Z","closed_at":"2016-05-24T16:36:12Z","body":"Currently, duplicate machine name will be rejected. However, this will also deletes existing machine.\r\n\r\nTo reproduce this issue:\r\n\r\n1. Create a node called `gluu-master`.\r\n2. Re-create another called with same `gluu-master` name. An error response will be returned: `{\"message\": \"return code 1: Host already exists: \\\"gluu-master\\\"\",  \"status\": 500}`. Eventually, the existing `gluu-master` machine will be deleted. This could be a problem when we have containers inside the machine.\r\n\r\nThe problematic line is found [here](https://github.com/GluuFederation/gluu-flask/blob/c11dd6915afdd11774127e0e8a97e17e27ec41ee/gluuapi/resource/node.py#L135)."}}
{"actor":{"display_login":"iromli"}}