{"action":"created","issue":{"url":"https://api.github.com/repos/pr1ntf/iohyve/issues/168","repository_url":"https://api.github.com/repos/pr1ntf/iohyve","labels_url":"https://api.github.com/repos/pr1ntf/iohyve/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/pr1ntf/iohyve/issues/168/comments","events_url":"https://api.github.com/repos/pr1ntf/iohyve/issues/168/events","html_url":"https://github.com/pr1ntf/iohyve/issues/168","id":156708067,"number":168,"title":"Starting wrong with almost identical guest names","user":{"login":"mariusvw","id":201711,"avatar_url":"https://avatars.githubusercontent.com/u/201711?v=3","gravatar_id":"","url":"https://api.github.com/users/mariusvw","html_url":"https://github.com/mariusvw","followers_url":"https://api.github.com/users/mariusvw/followers","following_url":"https://api.github.com/users/mariusvw/following{/other_user}","gists_url":"https://api.github.com/users/mariusvw/gists{/gist_id}","starred_url":"https://api.github.com/users/mariusvw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariusvw/subscriptions","organizations_url":"https://api.github.com/users/mariusvw/orgs","repos_url":"https://api.github.com/users/mariusvw/repos","events_url":"https://api.github.com/users/mariusvw/events{/privacy}","received_events_url":"https://api.github.com/users/mariusvw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pr1ntf/iohyve/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-25T09:50:02Z","updated_at":"2016-05-27T08:23:01Z","closed_at":"2016-05-27T08:23:01Z","body":"I have two guest created, one jira64 and one jira64-test\r\n\r\nIf you stop both and try to start the non test guest:\r\n```\r\niohyve start jira64\r\n```\r\nYou get the following error:\r\n```\r\n# iohyve start jira64\r\n[: /iohyve/zroot: unexpected operator\r\nStarting jira64... (Takes 15 seconds for FreeBSD guests)\r\n```\r\n\r\nThe tricky part in this situation is that the guest 'jira64' starts with the volume of jira64-test.\r\nAfter checking the source it seems to be caused by the check to get the guest information.\r\n\r\n```\r\nzfs list -H -t volume -o name | grep iohyve/jira64 | grep disk0 | cut -d '/' -f1-3\r\nzroot/iohyve/jira64-test\r\nzroot/iohyve/jira64\r\n```\r\nI'm not sure if disk0 should always be available, if so this could be resolved by adding it to the grep.\r\n\r\n```\r\nzfs list -H -t volume -o name | grep iohyve/jira64/disk0 | cut -d '/' -f1-3\r\n```\r\n\r\nLooking further into it if this is the right solution for all situations in the code.\r\nAny suggestions are welcome of course."},"comment":{"url":"https://api.github.com/repos/pr1ntf/iohyve/issues/comments/222089050","html_url":"https://github.com/pr1ntf/iohyve/issues/168#issuecomment-222089050","issue_url":"https://api.github.com/repos/pr1ntf/iohyve/issues/168","id":222089050,"user":{"login":"pr1ntf","id":3888554,"avatar_url":"https://avatars.githubusercontent.com/u/3888554?v=3","gravatar_id":"","url":"https://api.github.com/users/pr1ntf","html_url":"https://github.com/pr1ntf","followers_url":"https://api.github.com/users/pr1ntf/followers","following_url":"https://api.github.com/users/pr1ntf/following{/other_user}","gists_url":"https://api.github.com/users/pr1ntf/gists{/gist_id}","starred_url":"https://api.github.com/users/pr1ntf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pr1ntf/subscriptions","organizations_url":"https://api.github.com/users/pr1ntf/orgs","repos_url":"https://api.github.com/users/pr1ntf/repos","events_url":"https://api.github.com/users/pr1ntf/events{/privacy}","received_events_url":"https://api.github.com/users/pr1ntf/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T08:23:00Z","updated_at":"2016-05-27T08:23:00Z","body":"Please open a separate issue for the `iohyve list` issue. I was seeing a slight performance **increase** on my machine. Would be interesting to compare notes on that. \r\n\r\nI'll be closing this out since you no longer are seeing an issue regarding the subject. "}}
{"actor":{"display_login":"pr1ntf"}}