{"action":"opened","issue":{"url":"https://api.github.com/repos/stratis-storage/stratisd/issues/1130","repository_url":"https://api.github.com/repos/stratis-storage/stratisd","labels_url":"https://api.github.com/repos/stratis-storage/stratisd/issues/1130/labels{/name}","comments_url":"https://api.github.com/repos/stratis-storage/stratisd/issues/1130/comments","events_url":"https://api.github.com/repos/stratis-storage/stratisd/issues/1130/events","html_url":"https://github.com/stratis-storage/stratisd/issues/1130","id":355217392,"node_id":"MDU6SXNzdWUzNTUyMTczOTI=","number":1130,"title":"Stratis stacked on lvm results in startup hang (intermittent)","user":{"login":"tasleson","id":2520480,"node_id":"MDQ6VXNlcjI1MjA0ODA=","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":null,"comments":0,"created_at":"2018-08-29T15:33:16Z","updated_at":"2018-08-29T15:33:16Z","closed_at":null,"author_association":"MEMBER","body":"I created 3 LVs to provide the storage for a Stratis pool.  I then created a single Stratis backed FS, mounted it and added the UUID to fstab.  When I boot the system it sometimes hangs and we get dumped to the emergency shell.  This happens as systemd cannot find the UUID of the Stratis back XFS in `/etc/fstab`\r\n\r\nlvm configuration:\r\n\r\n```\r\n# pvs\r\n  PV           VG       Fmt  Attr PSize     PFree    \r\n  /dev/nvme0n1 stack_it lvm2 a--  <1024.00g <1021.00g\r\n  /dev/nvme0n2 stack_it lvm2 a--  <1024.00g <1024.00g\r\n  /dev/nvme0n3 stack_it lvm2 a--  <1024.00g <1024.00g\r\n\r\n# lvs\r\n  LV   VG       Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert\r\n  lv0  stack_it -wi-ao---- 1.00g                                                    \r\n  lv1  stack_it -wi-ao---- 1.00g                                                    \r\n  lv2  stack_it -wi-a----- 1.00g\r\n\r\n```\r\nThe journal shows:\r\n\r\n```\r\nAug 29 10:11:17 localhost.localdomain stratisd[451]:  WARN libstratis::engine::strat_engine::engine: udev add: no pool set up, reason: Engine(Error, \"failed to set up pool for (pool UUID: ab10b307-edf4-48e1-bf58-6e68d5e21f45, devnodes: /dev/dm-2): reason: Engine(Invalid, \\\"UUIDs of\r\n devices found ({Uuid { bytes: [28, 197, 232, 92, 0, 88, 74, 54, 146, 209, 103, 45, 117, 61, 136, 180] }}) did not correspond with UUIDs specified in the metadata for this group of devices ({Uuid { bytes: [28, 197, 232, 92, 0, 88, 74, 54, 146, 209, 103, 45, 117, 61, 136, 180] }, Uu\r\nid { bytes: [101, 188, 85, 160, 82, 134, 65, 53, 165, 149, 220, 24, 195, 15, 158, 206] }, Uuid { bytes: [69, 28, 82, 240, 192, 63, 73, 184, 129, 216, 107, 120, 210, 119, 138, 140] }})\\\")\")\r\nAug 29 10:11:17 localhost.localdomain stratisd[451]:  WARN libstratis::engine::strat_engine::engine: udev add: no pool set up, reason: Engine(Error, \"failed to set up pool for (pool UUID: ab10b307-edf4-48e1-bf58-6e68d5e21f45, devnodes: /dev/dm-2 ,/dev/dm-1): reason: Engine(Invalid,\r\n \\\"UUIDs of devices found ({Uuid { bytes: [69, 28, 82, 240, 192, 63, 73, 184, 129, 216, 107, 120, 210, 119, 138, 140] }, Uuid { bytes: [28, 197, 232, 92, 0, 88, 74, 54, 146, 209, 103, 45, 117, 61, 136, 180] }}) did not correspond with UUIDs specified in the metadata for this group \r\nof devices ({Uuid { bytes: [101, 188, 85, 160, 82, 134, 65, 53, 165, 149, 220, 24, 195, 15, 158, 206] }, Uuid { bytes: [69, 28, 82, 240, 192, 63, 73, 184, 129, 216, 107, 120, 210, 119, 138, 140] }, Uuid { bytes: [28, 197, 232, 92, 0, 88, 74, 54, 146, 209, 103, 45, 117, 61, 136, 180\r\n] }})\\\")\")\r\n\r\n```\r\nWhen looking around I see that lvm has brought up all the LVs.  I restarted stratisd and the pool was successfully brought up.  I then exited the emergency shell and we completed the boot sequence successfully as the UUID was now available for systemd to mount.\r\n\r\nAppears to be some type of sequencing/race condition.  Thus far I've only booted 2 times, 1 worked, 1 failed.\r\n\r\n"}}
{"actor":{"display_login":"tasleson"}}