{"action":"created","issue":{"url":"https://api.github.com/repos/stratis-storage/stratisd/issues/1251","repository_url":"https://api.github.com/repos/stratis-storage/stratisd","labels_url":"https://api.github.com/repos/stratis-storage/stratisd/issues/1251/labels{/name}","comments_url":"https://api.github.com/repos/stratis-storage/stratisd/issues/1251/comments","events_url":"https://api.github.com/repos/stratis-storage/stratisd/issues/1251/events","html_url":"https://github.com/stratis-storage/stratisd/issues/1251","id":366339956,"node_id":"MDU6SXNzdWUzNjYzMzk5NTY=","number":1251,"title":"Bug 1635424 - stratis - creating a snapshot with \"stratis filesystem snapshot\" fails with \"xfs_db: command not found\" due to PATH issue","user":{"login":"DaveWysochanskiRH","id":17653883,"node_id":"MDQ6VXNlcjE3NjUzODgz","avatar_url":"https://avatars1.githubusercontent.com/u/17653883?v=4","gravatar_id":"","url":"https://api.github.com/users/DaveWysochanskiRH","html_url":"https://github.com/DaveWysochanskiRH","followers_url":"https://api.github.com/users/DaveWysochanskiRH/followers","following_url":"https://api.github.com/users/DaveWysochanskiRH/following{/other_user}","gists_url":"https://api.github.com/users/DaveWysochanskiRH/gists{/gist_id}","starred_url":"https://api.github.com/users/DaveWysochanskiRH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaveWysochanskiRH/subscriptions","organizations_url":"https://api.github.com/users/DaveWysochanskiRH/orgs","repos_url":"https://api.github.com/users/DaveWysochanskiRH/repos","events_url":"https://api.github.com/users/DaveWysochanskiRH/events{/privacy}","received_events_url":"https://api.github.com/users/DaveWysochanskiRH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/stratis-storage/stratisd/milestones/12","html_url":"https://github.com/stratis-storage/stratisd/milestone/12","labels_url":"https://api.github.com/repos/stratis-storage/stratisd/milestones/12/labels","id":3646586,"node_id":"MDk6TWlsZXN0b25lMzY0NjU4Ng==","number":12,"title":"Stratis 1.1","description":"","creator":{"login":"agrover","id":2305,"node_id":"MDQ6VXNlcjIzMDU=","avatar_url":"https://avatars1.githubusercontent.com/u/2305?v=4","gravatar_id":"","url":"https://api.github.com/users/agrover","html_url":"https://github.com/agrover","followers_url":"https://api.github.com/users/agrover/followers","following_url":"https://api.github.com/users/agrover/following{/other_user}","gists_url":"https://api.github.com/users/agrover/gists{/gist_id}","starred_url":"https://api.github.com/users/agrover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrover/subscriptions","organizations_url":"https://api.github.com/users/agrover/orgs","repos_url":"https://api.github.com/users/agrover/repos","events_url":"https://api.github.com/users/agrover/events{/privacy}","received_events_url":"https://api.github.com/users/agrover/received_events","type":"User","site_admin":false},"open_issues":50,"closed_issues":4,"state":"open","created_at":"2018-09-11T21:17:03Z","updated_at":"2018-10-03T14:30:08Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2018-10-03T13:30:31Z","updated_at":"2018-10-03T16:53:32Z","closed_at":null,"author_association":"NONE","body":"#!/bin/sh\r\nrm -f /tmp/file[123456].bin\r\nfor i in $(seq 1 3); do truncate /tmp/file$i.bin --size=1G; losetup -f /tmp/file$i.bin; done\r\nfor i in $(seq 4 6); do truncate /tmp/file$i.bin --size=1G; losetup -f /tmp/file$i.bin; done\r\nstratis pool create pool1 /dev/loop[012]\r\nstratis pool create pool2 /dev/loop[345]\r\nstratis pool list\r\nstratis blockdev list pool1\r\nstratis blockdev list pool2\r\nstratis filesystem list pool1\r\nstratis filesystem list pool2\r\nstratis filesystem create pool1 fs1\r\nstratis filesystem create pool2 fs2\r\nstratis filesystem list pool1\r\nstratis filesystem list pool2\r\nstratis filesystem snapshot pool1 fs1 fs1-snap1\r\n\r\n\r\n\r\nActual results:\r\nINTERNAL ERROR: Command failed: cmd: \"/usr/sbin/xfs_admin\" \"-U\" \"2877e0f7-9916-4eff-83cf-ee5c6439cabc\" \"/dev/dm-14\", stdout:  stderr: /usr/sbin/xfs_admin: line 38: xfs_db: command not found\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/stratis-storage/stratisd/issues/comments/426712998","html_url":"https://github.com/stratis-storage/stratisd/issues/1251#issuecomment-426712998","issue_url":"https://api.github.com/repos/stratis-storage/stratisd/issues/1251","id":426712998,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjcxMjk5OA==","user":{"login":"mulkieran","id":1218366,"node_id":"MDQ6VXNlcjEyMTgzNjY=","avatar_url":"https://avatars0.githubusercontent.com/u/1218366?v=4","gravatar_id":"","url":"https://api.github.com/users/mulkieran","html_url":"https://github.com/mulkieran","followers_url":"https://api.github.com/users/mulkieran/followers","following_url":"https://api.github.com/users/mulkieran/following{/other_user}","gists_url":"https://api.github.com/users/mulkieran/gists{/gist_id}","starred_url":"https://api.github.com/users/mulkieran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulkieran/subscriptions","organizations_url":"https://api.github.com/users/mulkieran/orgs","repos_url":"https://api.github.com/users/mulkieran/repos","events_url":"https://api.github.com/users/mulkieran/events{/privacy}","received_events_url":"https://api.github.com/users/mulkieran/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T16:53:32Z","updated_at":"2018-10-03T16:53:32Z","author_association":"MEMBER","body":"It is actually pretty hard to believe that the standard library would fail to correctly copy the environment from the parent process. it is almost easier to believe that it is stratisd's PATH variable that differs between the two environments. Since commit b5289494a9612b1788cd6e118cf1d32fa4a6f866 in May 4, ```xfs_admin``` has always been invoked using an absolute path. So, assuming that the el8 version is no older than that, ```xfs_admin``` invocation would succeed regardless of whether it could be found in the PATH, but then ```xfs_db``` would fail if PATH did not contain ```/usr/sbin```. I think the thing to worry about now is what is stratisd's PATH variable value in each environment. That might get at the root cause.\r\n\r\n"}}
{"actor":{"display_login":"mulkieran"}}