{"action":"created","issue":{"url":"https://api.github.com/repos/kimchi-project/kimchi/issues/392","labels_url":"https://api.github.com/repos/kimchi-project/kimchi/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/kimchi-project/kimchi/issues/392/comments","events_url":"https://api.github.com/repos/kimchi-project/kimchi/issues/392/events","html_url":"https://github.com/kimchi-project/kimchi/issues/392","id":38517396,"number":392,"title":"kimchi should not create random networks and storage locations","user":{"login":"usernameisalreadytaken2014","id":6303438,"avatar_url":"https://avatars.githubusercontent.com/u/6303438?v=3","gravatar_id":"","url":"https://api.github.com/users/usernameisalreadytaken2014","html_url":"https://github.com/usernameisalreadytaken2014","followers_url":"https://api.github.com/users/usernameisalreadytaken2014/followers","following_url":"https://api.github.com/users/usernameisalreadytaken2014/following{/other_user}","gists_url":"https://api.github.com/users/usernameisalreadytaken2014/gists{/gist_id}","starred_url":"https://api.github.com/users/usernameisalreadytaken2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usernameisalreadytaken2014/subscriptions","organizations_url":"https://api.github.com/users/usernameisalreadytaken2014/orgs","repos_url":"https://api.github.com/users/usernameisalreadytaken2014/repos","events_url":"https://api.github.com/users/usernameisalreadytaken2014/events{/privacy}","received_events_url":"https://api.github.com/users/usernameisalreadytaken2014/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kimchi-project/kimchi/labels/feature","name":"feature","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"alinefm","id":4921718,"avatar_url":"https://avatars.githubusercontent.com/u/4921718?v=3","gravatar_id":"","url":"https://api.github.com/users/alinefm","html_url":"https://github.com/alinefm","followers_url":"https://api.github.com/users/alinefm/followers","following_url":"https://api.github.com/users/alinefm/following{/other_user}","gists_url":"https://api.github.com/users/alinefm/gists{/gist_id}","starred_url":"https://api.github.com/users/alinefm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alinefm/subscriptions","organizations_url":"https://api.github.com/users/alinefm/orgs","repos_url":"https://api.github.com/users/alinefm/repos","events_url":"https://api.github.com/users/alinefm/events{/privacy}","received_events_url":"https://api.github.com/users/alinefm/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/kimchi-project/kimchi/milestones/17","html_url":"https://github.com/kimchi-project/kimchi/milestones/Kimchi%201.5","labels_url":"https://api.github.com/repos/kimchi-project/kimchi/milestones/17/labels","id":1040470,"number":17,"title":"Kimchi 1.5","description":"","creator":{"login":"alinefm","id":4921718,"avatar_url":"https://avatars.githubusercontent.com/u/4921718?v=3","gravatar_id":"","url":"https://api.github.com/users/alinefm","html_url":"https://github.com/alinefm","followers_url":"https://api.github.com/users/alinefm/followers","following_url":"https://api.github.com/users/alinefm/following{/other_user}","gists_url":"https://api.github.com/users/alinefm/gists{/gist_id}","starred_url":"https://api.github.com/users/alinefm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alinefm/subscriptions","organizations_url":"https://api.github.com/users/alinefm/orgs","repos_url":"https://api.github.com/users/alinefm/repos","events_url":"https://api.github.com/users/alinefm/events{/privacy}","received_events_url":"https://api.github.com/users/alinefm/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":7,"state":"open","created_at":"2015-03-26T17:49:30Z","updated_at":"2015-05-06T14:52:43Z","due_on":"2015-06-25T03:00:00Z","closed_at":null},"comments":4,"created_at":"2014-07-23T10:42:55Z","updated_at":"2015-05-06T14:52:43Z","closed_at":"2015-05-06T14:52:43Z","body":"After starting Kimchi the first time, there are \"default\" storage locations and \"default\" network.\r\n\r\nOK, not a big deal, I can remove those either in Kimchi or via virsh or whatever, and create the actual networks I must have in my environment, and point to the actual NFS storage locations that Kimchi should use.\r\n\r\nBut everytime kimchid restarts, those pesty, annoying \"default\" things pop up again.  One of them is even a network that gives virtual machines access to resources that they definitely should not have access to, such as VMs for testing malware suddenly having an open link to the Internet.\r\n\r\nI hacked the source code of kimchi to just plain and simple remove all the pesky default items that kimchi creates.\r\n\r\nNot sure if the patch I've made is agreeable by Kimchi authors though, since it's just \"snip-snip-snip\" ?\r\n\r\nI can post the patch if it sounds reasonable.\r\n\r\nMaybe there should be a better place to put default networks and locations.  Like support for specifying the default items in the config file, so that users who DO NOT want the default items can remove them from the config files, people that distribute kimchi can change the config files and adjust the defaults to their distro, etc...\r\n"},"comment":{"url":"https://api.github.com/repos/kimchi-project/kimchi/issues/comments/99499921","html_url":"https://github.com/kimchi-project/kimchi/issues/392#issuecomment-99499921","issue_url":"https://api.github.com/repos/kimchi-project/kimchi/issues/392","id":99499921,"user":{"login":"alinefm","id":4921718,"avatar_url":"https://avatars.githubusercontent.com/u/4921718?v=3","gravatar_id":"","url":"https://api.github.com/users/alinefm","html_url":"https://github.com/alinefm","followers_url":"https://api.github.com/users/alinefm/followers","following_url":"https://api.github.com/users/alinefm/following{/other_user}","gists_url":"https://api.github.com/users/alinefm/gists{/gist_id}","starred_url":"https://api.github.com/users/alinefm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alinefm/subscriptions","organizations_url":"https://api.github.com/users/alinefm/orgs","repos_url":"https://api.github.com/users/alinefm/repos","events_url":"https://api.github.com/users/alinefm/events{/privacy}","received_events_url":"https://api.github.com/users/alinefm/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T14:52:43Z","updated_at":"2015-05-06T14:52:43Z","body":"Fixed by e1ac63623feec72ce583aee396947f34a344b546 e0a6fb586a464b65f3c22480209eef4665fe2202 b61931d4b29bc1c3eb4c1087b6df70f7bc8d99e5\r\n\r\nNow Kimchi has a template config (/etc/kimchi/template.conf) file that handles the default values to create a template.\r\nIf you don't want to use the default values used by Kimchi, please update the template.conf file accordingly to your needs."}}