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

Invalid behavior after the ZPOOL variable is changed by the user: packages disappear after reboot #1104

Open
3 tasks done
yurivict opened this issue Dec 29, 2023 · 0 comments
Labels

Comments

@yurivict
Copy link
Member

yurivict commented Dec 29, 2023

Prerequisites

  • Have you checked for an existing issue describing your problem?
  • Are you running the latest version?
  • Is your ports tree recent?
  • [ x Is your FreeBSD Host on a supported release?

Describe the bug

When the ZPOOL value is changed by the user old datasets become invalid, yet poudriere starts and works while they are mounted. This causes unpredictable behavior. Particularly, built packages become unavailable after reboot due to confusion that invalid datasets cause.

How to reproduce

Steps to reproduce the behavior:

  1. Run poudriere
  2. Change ZPOOL
  3. Run poudriere again
  4. Observe that old and new ZFS datasets are both mounted

Expected behavior

During the startup:
poudriere should look at each ZFS dataset that is mounted under /usr/local/poudriere, and it should remove it if it is mounted on zpool that isn't currently configured to use poudriere (the ZPOOL variable isn't equal to it).

Environment

  • Poudriere Version [e.g. 3.3.1 or git hash or port version]: 3.3.7
@yurivict yurivict added the bug label Dec 29, 2023
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

1 participant