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

chore: bump nfs-ganesha to v6.2 #364

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Conversation

derekbit
Copy link
Member

Which issue(s) this PR fixes:

Issue longhorn/longhorn#9614

What this PR does / why we need it:

Special notes for your reviewer:

Additional documentation or context

Longhorn 9614

Signed-off-by: Derek Su <[email protected]>
Copy link

coderabbitai bot commented Nov 21, 2024

Walkthrough

The changes in this pull request involve updates to the Dockerfile for the NFS Ganesha server, including version upgrades for the base image, source code, and dependencies. The base image has been updated from version 15.5 to 15.6, and the NFS Ganesha source code has been upgraded from version 5_20240716 to 6_20241120. Additionally, the compiler versions have been specified, and the build configuration has been slightly modified by removing a specific flag.

Changes

Files Change Summary
package/Dockerfile - Updated base image from 15.5 to 15.6.
- Updated NFS Ganesha source code from 5_20240716 to 6_20241120.
- Updated ntirpc version from 5.8 to 6.0.1.
- Changed compiler environment variables to gcc-14 and g++-14.
- Removed -DUSE_NFS3=OFF flag in CMake configuration.

Assessment against linked issues

Objective Addressed Explanation
Update longhorn-share-manager's nfs-ganesha to v6.2 (#9614) The update is to version 6.0.1, not 6.2 as requested.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (2)
package/Dockerfile (2)

15-18: Consider pinning package versions for reproducible builds

While using gcc14 is good for consistency, consider pinning versions for all packages to ensure reproducible builds across different environments.

Example:

-RUN zypper -n install autoconf bison curl cmake doxygen make git gcc14 gcc14-c++ flex Mesa-libGL-devel libdbus-1-3 \
+RUN zypper -n install autoconf=2.69 bison=3.0.4 curl=7.79.1 cmake=3.17.0 doxygen=1.8.17 make=4.2.1 git=2.35.3 gcc14=14.0.0 gcc14-c++=14.0.0 \
🧰 Tools
🪛 GitHub Check: CodeFactor

[warning] 15-15: package/Dockerfile#L15
Specify version with zypper install -y <package>=<version>. (DL3037)


[warning] 15-15: package/Dockerfile#L15
zypper clean missing after zypper use. (DL3036)


Line range hint 1-24: Consider documenting version upgrade impacts

This is a significant version upgrade that might affect:

  1. Protocol compatibility with existing NFS clients
  2. Performance characteristics
  3. Resource requirements

Consider:

  1. Adding upgrade notes to documentation
  2. Updating any version-specific configurations
  3. Planning for regression testing

Also applies to: 30-34

🧰 Tools
🪛 GitHub Check: CodeFactor

[warning] 15-15: package/Dockerfile#L15
Specify version with zypper install -y <package>=<version>. (DL3037)


[warning] 15-15: package/Dockerfile#L15
zypper clean missing after zypper use. (DL3036)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 5b2d717 and 13ec90b.

📒 Files selected for processing (1)
  • package/Dockerfile (1 hunks)
🧰 Additional context used
🪛 GitHub Check: CodeFactor
package/Dockerfile

[warning] 15-15: package/Dockerfile#L15
Specify version with zypper install -y <package>=<version>. (DL3037)


[warning] 15-15: package/Dockerfile#L15
zypper clean missing after zypper use. (DL3036)

🔇 Additional comments (3)
package/Dockerfile (3)

12-12: LGTM: Consistent version update for base image and repository

The repository URL update matches the base image version (15.6), maintaining system compatibility.


20-24: Verify version compatibility between nfs-ganesha and ntirpc

The upgrade to nfs-ganesha v6_20241120 and ntirpc v6.0.1 looks correct. Let's verify the compatibility.


30-34: Verify impact of removed USE_NFS3 flag

The explicit compiler paths are good for build reproducibility. However, the removal of -DUSE_NFS3=OFF flag needs verification:

  1. Was this intentional?
  2. Does this mean NFSv3 support is now enabled by default?
✅ Verification successful

Removal of USE_NFS3 flag is consistent with intended NFSv4-only support

The removal of -DUSE_NFS3=OFF flag is intentional and aligns with the codebase's design. Evidence from the Dockerfile shows this is explicitly a NFSv4-only build:

  • Comment states: # build ganesha only supporting nfsv4 and vfs
  • The installed packages focus on NFSv4 support (nfs4-acl-tools)
  • The codebase shows NFSv4-specific references

The flag removal doesn't enable NFSv3 support as the build is already configured for NFSv4-only operation through other mechanisms.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check default NFS3 configuration in CMakeLists.txt
rg -A 5 "OPTION.*USE_NFS3" 

# Check if there are any related configuration changes in the new version
ast-grep --pattern 'OPTION.*USE_NFS3.*$_'

Length of output: 72


Script:

#!/bin/bash
# Let's check CMakeLists.txt files for any NFS3-related configuration
fd CMakeLists.txt --exec cat {} | grep -i "nfs3\|nfsv3"

# Search for any NFS3 or NFSv3 related strings in the codebase
rg -i "nfs3\|nfsv3" --type cmake

# Let's also check if there are any NFS protocol version related configurations
fd CMakeLists.txt --exec cat {} | grep -i "option.*nfs"

Length of output: 303


Script:

#!/bin/bash
# Let's check for any NFS configuration in CMake files without type restriction
rg -i "option.*nfs"

# Look for NFS protocol version configurations in any file
rg -i "nfs.*version|nfsv|nfs[2-4]"

# Check if there are any NFS-related build flags in the Dockerfile history
rg -i "use_nfs" package/Dockerfile

Length of output: 9273

Copy link
Contributor

@james-munson james-munson left a comment

Choose a reason for hiding this comment

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

Looks fine. One question.

package/Dockerfile Show resolved Hide resolved
@derekbit derekbit merged commit 1fa9df5 into longhorn:master Nov 22, 2024
9 checks passed
@derekbit derekbit deleted the bump-to-v6.2 branch November 22, 2024 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants