Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pool create fails with 4: entity not found #112

Closed
agrover opened this issue Mar 15, 2018 · 3 comments
Closed

pool create fails with 4: entity not found #112

agrover opened this issue Mar 15, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@agrover
Copy link
Contributor

agrover commented Mar 15, 2018

I've tried grepping for "entity not found" and am not seeing it anywhere. The pool create actually seems to succeed -- repeating it fails with "blockdev already belongs to pool foo", dm devices are created, but nothing present under /dev/stratis.

[agrover@fedora-devel ~]$ stratis --propagate pool create p1 /dev/vdc
Traceback (most recent call last):
  File "/usr/bin/stratis", line 32, in <module>
    main()
  File "/usr/bin/stratis", line 29, in main
    return run()(sys.argv[1:])
  File "/usr/lib/python3.6/site-packages/stratis_cli/_main.py", line 39, in the_func
    result.func(result)
  File "/usr/lib/python3.6/site-packages/stratis_cli/_actions/_top.py", line 63, in create_pool
    raise StratisCliRuntimeError(rc, message)
stratis_cli._errors.StratisCliRuntimeError: 4: entity not found
@agrover agrover added the bug label Mar 15, 2018
@agrover agrover added this to the Stratis 1.0 milestone Mar 15, 2018
@mulkieran
Copy link
Member

This really seems like a stratisd bug. If all the dm devices are created then that leaves you with a limited region in which to fail.

        let (uuid, pool) = StratPool::initialize(&dm, name, blockdev_paths, redundancy, force)?;

        let name = Name::new(name.to_owned());
        devlinks::pool_added(&name)?;

What about the metadata save? "entity" seems like such an XML-y sort of word.

@agrover
Copy link
Contributor Author

agrover commented Mar 21, 2018

incremental info: grepping around, this looks like it's coming from io::error, ErrorKind NotFound.

@agrover agrover moved this from To do to Backlog in Stratis 1.0 (Sprint 9) Apr 12, 2018
@mulkieran
Copy link
Member

I think this is covered by stratis-storage/stratisd#766 and #118. It's pretty easy to believe that, due to xfs missing, the MetadataVol is not created.

By that point, the blockdevs have already been claimed and most of the dm-devices have been constructed, which matches the situation described here.

Stratis 1.0 (Sprint 9) automation moved this from Backlog to Done Apr 30, 2018
@agrover agrover moved this from Done to Backlog in Stratis 1.0 (Sprint 9) May 1, 2018
@agrover agrover moved this from Backlog to To do in Stratis 1.0 (Sprint 9) May 1, 2018
@agrover agrover self-assigned this May 1, 2018
@agrover agrover moved this from To do to Done in Stratis 1.0 (Sprint 9) May 7, 2018
@agrover agrover moved this from Done (Current Sprint) to Done (Previous Sprints) in Stratis 1.0 (Sprint 9) May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants