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

NAS-131665 / 25.04 / Convert NFS config to new api. #15336

Merged
merged 4 commits into from
Jan 15, 2025
Merged

Conversation

mgrimesix
Copy link
Contributor

@mgrimesix mgrimesix commented Jan 8, 2025

Convert NFS config to new api.
Added a common 'TcpPort' type.

Addressed additional comments. Moved all field_validator tests to new validator module in plugins/nfs_.
Updated the CI tests.

Passes NFS CI tests

Ignore the spurrious failure in test_008_check_root_dataset_settings.

@mgrimesix mgrimesix added the WIP label Jan 8, 2025
@bugclerk
Copy link
Contributor

bugclerk commented Jan 8, 2025

@bugclerk bugclerk changed the title Convert NFS config to new api. NAS-131665 / 25.04 / Convert NFS config to new api. Jan 8, 2025
@mgrimesix mgrimesix removed the WIP label Jan 13, 2025
@mgrimesix mgrimesix requested review from a team and anodos325 January 13, 2025 16:14
src/middlewared/middlewared/api/v25_04_0/nfs.py Outdated Show resolved Hide resolved
src/middlewared/middlewared/api/v25_04_0/nfs.py Outdated Show resolved Hide resolved
src/middlewared/middlewared/api/v25_04_0/nfs.py Outdated Show resolved Hide resolved
src/middlewared/middlewared/plugins/nfs.py Show resolved Hide resolved
src/middlewared/middlewared/api/v25_04_0/nfs.py Outdated Show resolved Hide resolved
src/middlewared/middlewared/api/v25_04_0/nfs.py Outdated Show resolved Hide resolved
src/middlewared/middlewared/api/v25_04_0/nfs.py Outdated Show resolved Hide resolved
src/middlewared/middlewared/api/v25_04_0/nfs.py Outdated Show resolved Hide resolved
src/middlewared/middlewared/api/v25_04_0/nfs.py Outdated Show resolved Hide resolved
tests/api2/test_300_nfs.py Outdated Show resolved Hide resolved
Added a common 'TcpPort' type.

Fix tcp port exclude option.
Convert bindip_choices to new api.

Convert NFS share CRUD to new api.
Adds a new pydantic type: Dir

Remove blocking calls in schema.

Fixup remaining bits.

Add None as option for locked.

Address comments
src/middlewared/middlewared/api/v25_04_0/nfs.py Outdated Show resolved Hide resolved
src/middlewared/middlewared/api/v25_04_0/nfs.py Outdated Show resolved Hide resolved
Add nfs validators module to plugins/nfs_.
Update CI tests.
@mgrimesix mgrimesix requested a review from yocalebo January 15, 2025 16:58
Copy link
Contributor

@yocalebo yocalebo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic, thanks!

@mgrimesix mgrimesix merged commit 3e3b229 into master Jan 15, 2025
2 checks passed
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Jan 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants