{"action":"created","issue":{"url":"https://api.github.com/repos/ClusterLabs/resource-agents/issues/559","labels_url":"https://api.github.com/repos/ClusterLabs/resource-agents/issues/559/labels{/name}","comments_url":"https://api.github.com/repos/ClusterLabs/resource-agents/issues/559/comments","events_url":"https://api.github.com/repos/ClusterLabs/resource-agents/issues/559/events","html_url":"https://github.com/ClusterLabs/resource-agents/pull/559","id":55439320,"number":559,"title":"Fix: Problem that a state of domain cannot evaluate by LANG of libvirtd","user":{"login":"yuusuke","id":1142178,"avatar_url":"https://avatars.githubusercontent.com/u/1142178?v=3","gravatar_id":"","url":"https://api.github.com/users/yuusuke","html_url":"https://github.com/yuusuke","followers_url":"https://api.github.com/users/yuusuke/followers","following_url":"https://api.github.com/users/yuusuke/following{/other_user}","gists_url":"https://api.github.com/users/yuusuke/gists{/gist_id}","starred_url":"https://api.github.com/users/yuusuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuusuke/subscriptions","organizations_url":"https://api.github.com/users/yuusuke/orgs","repos_url":"https://api.github.com/users/yuusuke/repos","events_url":"https://api.github.com/users/yuusuke/events{/privacy}","received_events_url":"https://api.github.com/users/yuusuke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-26T01:42:13Z","updated_at":"2015-01-28T16:02:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ClusterLabs/resource-agents/pulls/559","html_url":"https://github.com/ClusterLabs/resource-agents/pull/559","diff_url":"https://github.com/ClusterLabs/resource-agents/pull/559.diff","patch_url":"https://github.com/ClusterLabs/resource-agents/pull/559.patch"},"body":"If libvirtd of LANG is set to other than English, I fail to start the domain.\r\nIt occurs when there is not defined of domain in libvirtd.\r\nModify to use the output that does not depend on the language environment.\r\n\r\n * in case of LANG=ja_JP.UTF-8\r\n\r\n```\r\n# cat /proc/`pidof libvirtd`/environ | tr '\\0' '\\n'                                                                                                                                         \r\nPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin\r\nLANG=ja_JP.UTF-8\r\nNOTIFY_SOCKET=@/org/freedesktop/systemd1/notify\r\n# virsh domstate guest-4                                                                                                                                                                    \r\nerror: failed to get domain 'guest-4'\r\nerror: ドメインは見つかりませんでした: 'guest-4' と一致する名前を持つドメインがありません \r\n```\r\n\r\n * in case of LANG=en_US.UTF-8\r\n\r\n```\r\n# cat /proc/`pidof libvirtd`/environ | tr '\\0' '\\n'\r\nPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin\r\nLANG=en_US.UTF-8\r\nNOTIFY_SOCKET=@/org/freedesktop/systemd1/notify\r\n# virsh domstate guest-4\r\nerror: failed to get domain 'guest-4'\r\nerror: Domain not found: no domain with matching name 'guest-4'\r\n```"},"comment":{"url":"https://api.github.com/repos/ClusterLabs/resource-agents/issues/comments/71860074","html_url":"https://github.com/ClusterLabs/resource-agents/pull/559#issuecomment-71860074","issue_url":"https://api.github.com/repos/ClusterLabs/resource-agents/issues/559","id":71860074,"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},"created_at":"2015-01-28T16:02:03Z","updated_at":"2015-01-28T16:02:03Z","body":"@davidvossel Would it be safe to modify that string in status? Otherwise, I think that we should add  LANG=C to all virsh invocations. It'd be good to have this fixed in 3.9.6."}}