{"action":"created","issue":{"url":"https://api.github.com/repos/stratis-storage/stratisd/issues/822","repository_url":"https://api.github.com/repos/stratis-storage/stratisd","labels_url":"https://api.github.com/repos/stratis-storage/stratisd/issues/822/labels{/name}","comments_url":"https://api.github.com/repos/stratis-storage/stratisd/issues/822/comments","events_url":"https://api.github.com/repos/stratis-storage/stratisd/issues/822/events","html_url":"https://github.com/stratis-storage/stratisd/issues/822","id":303561850,"number":822,"title":"Stratis block device cleared with wipefs is unable to be used as stratis device","user":{"login":"tasleson","id":2520480,"avatar_url":"https://avatars2.githubusercontent.com/u/2520480?v=4","gravatar_id":"","url":"https://api.github.com/users/tasleson","html_url":"https://github.com/tasleson","followers_url":"https://api.github.com/users/tasleson/followers","following_url":"https://api.github.com/users/tasleson/following{/other_user}","gists_url":"https://api.github.com/users/tasleson/gists{/gist_id}","starred_url":"https://api.github.com/users/tasleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tasleson/subscriptions","organizations_url":"https://api.github.com/users/tasleson/orgs","repos_url":"https://api.github.com/users/tasleson/repos","events_url":"https://api.github.com/users/tasleson/events{/privacy}","received_events_url":"https://api.github.com/users/tasleson/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/3","html_url":"https://github.com/stratis-storage/stratisd/milestone/3","labels_url":"https://api.github.com/repos/stratis-storage/stratisd/milestones/3/labels","id":2047508,"number":3,"title":"Version 1.0","description":"","creator":{"login":"agrover","id":2305,"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":35,"closed_issues":7,"state":"open","created_at":"2016-10-04T17:19:10Z","updated_at":"2018-03-08T18:19:20Z","due_on":"2018-06-14T07:00:00Z","closed_at":null},"comments":0,"created_at":"2018-03-08T17:19:46Z","updated_at":"2018-03-08T18:25:56Z","closed_at":null,"author_association":"MEMBER","body":"With the latest changes to `libblkid` we can identify and seemingly clear a device, eg.\r\n\r\n```\r\n# ./blkid\r\n/dev/sda1: UUID=\"cc97b2a8-1f9e-490b-883b-e53da92116b3\" TYPE=\"ext4\" PARTUUID=\"9c220e1f-01\"\r\n/dev/sda2: UUID=\"70f45ac9-1be5-4a75-ab21-f165cd96f759\" TYPE=\"swap\" PARTUUID=\"9c220e1f-02\"\r\n/dev/sda3: UUID=\"565c8028-1774-42c5-b275-c1673f55b8b4\" TYPE=\"ext4\" PARTUUID=\"9c220e1f-03\"\r\n/dev/sdb: UUID=\"a30ef7337e1945498fc9cdafcd0d4b7e\" POOL_UUID=\"ff2a2962d27c489491aa016db808886d\" BLOCKDEV_SECTORS=\"75497472\" BLOCKDEV_INITTIME=\"1520269046\" TYPE=\"stratis\"\r\n```\r\n\r\n```\r\n# ./wipefs -a /dev/sdb\r\n/dev/sdb: 16 bytes were erased at offset 0x00000204 (stratis): 21 53 74 72 61 30 74 69 73 86 ff 02 5e 41 72 68\r\n```\r\n\r\n```\r\n# ./blkid\r\n/dev/sda1: UUID=\"cc97b2a8-1f9e-490b-883b-e53da92116b3\" TYPE=\"ext4\" PARTUUID=\"9c220e1f-01\"\r\n/dev/sda2: UUID=\"70f45ac9-1be5-4a75-ab21-f165cd96f759\" TYPE=\"swap\" PARTUUID=\"9c220e1f-02\"\r\n/dev/sda3: UUID=\"565c8028-1774-42c5-b275-c1673f55b8b4\" TYPE=\"ext4\" PARTUUID=\"9c220e1f-03\"\r\n```\r\n\r\nYet when I try to create a pool using the cleared device I get\r\n\r\n```\r\n# stratis pool create some_pool /dev/sdb\r\nExecution failed: 1: Device /dev/sdb appears to belong to another application\r\n```\r\n\r\nThe output message from `wipefs` indicates that we cleared one copy, maybe not the second.  However, `blkid` fails to recognize the device as a Stratis device even though `blkid` should check both copies.  This could be an issue with `libblkid` failing to recognize second copy as wipefs failed to clear second copy or it actually did clear both copies and Stratis is being very careful to not step on the device.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/stratis-storage/stratisd/issues/comments/371577928","html_url":"https://github.com/stratis-storage/stratisd/issues/822#issuecomment-371577928","issue_url":"https://api.github.com/repos/stratis-storage/stratisd/issues/822","id":371577928,"user":{"login":"tasleson","id":2520480,"avatar_url":"https://avatars2.githubusercontent.com/u/2520480?v=4","gravatar_id":"","url":"https://api.github.com/users/tasleson","html_url":"https://github.com/tasleson","followers_url":"https://api.github.com/users/tasleson/followers","following_url":"https://api.github.com/users/tasleson/following{/other_user}","gists_url":"https://api.github.com/users/tasleson/gists{/gist_id}","starred_url":"https://api.github.com/users/tasleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tasleson/subscriptions","organizations_url":"https://api.github.com/users/tasleson/orgs","repos_url":"https://api.github.com/users/tasleson/repos","events_url":"https://api.github.com/users/tasleson/events{/privacy}","received_events_url":"https://api.github.com/users/tasleson/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T18:25:56Z","updated_at":"2018-03-08T18:25:56Z","author_association":"MEMBER","body":"This was actually a Stratis bug, see: https://github.com/stratis-storage/stratisd/pull/825"}}
{"actor":{"display_login":"tasleson"}}