{"action":"created","issue":{"url":"https://api.github.com/repos/ClusterLabs/resource-agents/issues/487","labels_url":"https://api.github.com/repos/ClusterLabs/resource-agents/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/ClusterLabs/resource-agents/issues/487/comments","events_url":"https://api.github.com/repos/ClusterLabs/resource-agents/issues/487/events","html_url":"https://github.com/ClusterLabs/resource-agents/issues/487","id":40678900,"number":487,"title":"VirtualDomain may remove config file in start with virsh undefine","user":{"login":"dmuhamedagic","id":638318,"avatar_url":"https://avatars.githubusercontent.com/u/638318?v=3","gravatar_id":"","url":"https://api.github.com/users/dmuhamedagic","html_url":"https://github.com/dmuhamedagic","followers_url":"https://api.github.com/users/dmuhamedagic/followers","following_url":"https://api.github.com/users/dmuhamedagic/following{/other_user}","gists_url":"https://api.github.com/users/dmuhamedagic/gists{/gist_id}","starred_url":"https://api.github.com/users/dmuhamedagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmuhamedagic/subscriptions","organizations_url":"https://api.github.com/users/dmuhamedagic/orgs","repos_url":"https://api.github.com/users/dmuhamedagic/repos","events_url":"https://api.github.com/users/dmuhamedagic/events{/privacy}","received_events_url":"https://api.github.com/users/dmuhamedagic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ClusterLabs/resource-agents/milestones/3","html_url":"https://github.com/ClusterLabs/resource-agents/milestones/3.9.6-rc1","labels_url":"https://api.github.com/repos/ClusterLabs/resource-agents/milestones/3/labels","id":440563,"number":3,"title":"3.9.6-rc1","description":"Release candidate for v3.9.6. At this point there will be a code freeze. That means no new features and all issues resolved where resolution was feasible. The time between RC and the final release should be used for testing.","creator":{"login":"dmuhamedagic","id":638318,"avatar_url":"https://avatars.githubusercontent.com/u/638318?v=3","gravatar_id":"","url":"https://api.github.com/users/dmuhamedagic","html_url":"https://github.com/dmuhamedagic","followers_url":"https://api.github.com/users/dmuhamedagic/followers","following_url":"https://api.github.com/users/dmuhamedagic/following{/other_user}","gists_url":"https://api.github.com/users/dmuhamedagic/gists{/gist_id}","starred_url":"https://api.github.com/users/dmuhamedagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmuhamedagic/subscriptions","organizations_url":"https://api.github.com/users/dmuhamedagic/orgs","repos_url":"https://api.github.com/users/dmuhamedagic/repos","events_url":"https://api.github.com/users/dmuhamedagic/events{/privacy}","received_events_url":"https://api.github.com/users/dmuhamedagic/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":17,"state":"open","created_at":"2013-09-30T07:40:12Z","updated_at":"2016-01-04T13:25:33Z","due_on":"2015-01-15T23:00:00Z","closed_at":null},"comments":33,"created_at":"2014-08-20T09:37:35Z","updated_at":"2016-01-04T13:38:36Z","closed_at":null,"body":"In case the domain is defined at the time VirtualDomain runs start, virsh undefine is run which apparently removes the XML configuration file. Then the start fails. That was introduced after the domain management strategy change from define/start to create (in f00dcaf19467e3d96d9790d386b860b53ca381f9).\r\n\r\nI'm not sure what would be a possible remedy. To save the xml file to a temporary file before virsh undefined, then move it back?"},"comment":{"url":"https://api.github.com/repos/ClusterLabs/resource-agents/issues/comments/168677976","html_url":"https://github.com/ClusterLabs/resource-agents/issues/487#issuecomment-168677976","issue_url":"https://api.github.com/repos/ClusterLabs/resource-agents/issues/487","id":168677976,"user":{"login":"oalbrigt","id":14937209,"avatar_url":"https://avatars.githubusercontent.com/u/14937209?v=3","gravatar_id":"","url":"https://api.github.com/users/oalbrigt","html_url":"https://github.com/oalbrigt","followers_url":"https://api.github.com/users/oalbrigt/followers","following_url":"https://api.github.com/users/oalbrigt/following{/other_user}","gists_url":"https://api.github.com/users/oalbrigt/gists{/gist_id}","starred_url":"https://api.github.com/users/oalbrigt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oalbrigt/subscriptions","organizations_url":"https://api.github.com/users/oalbrigt/orgs","repos_url":"https://api.github.com/users/oalbrigt/repos","events_url":"https://api.github.com/users/oalbrigt/events{/privacy}","received_events_url":"https://api.github.com/users/oalbrigt/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T13:38:36Z","updated_at":"2016-01-04T13:38:36Z","body":"\"The usage of 'create' and 'undefine' ensures that we are always using the most up-to-date config if config changes occurred.\"\r\nhttps://github.com/ClusterLabs/resource-agents/issues/487#issuecomment-67530801"}}