[LU-809] Jenkins Ubuntu build does not use '--disable-server' configure option Created: 31/Oct/11 Updated: 02/Nov/11 Resolved: 02/Nov/11 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.1.0, Lustre 2.2.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Prakash Surya (Inactive) | Assignee: | Andreas Dilger |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 6532 |
| Description |
|
The Jenkins automated build does not use the '--disable-server' configure option when building the lustre client for Ubuntu. This prevents the ldiskfs configure script from knowing whether it should enable or disable building ldiskfs. |
| Comments |
| Comment by Andreas Dilger [ 31/Oct/11 ] |
|
I don't know that this should be a defect in the build system, since every user that tries to build on a kernel that cannot work as a server (missing patch series or {ldiskfs,zfs}-devel) will fail in a similar manner.I think the configure system itself should be able to determine whether it can build against the current kernel, and only use --disable-server if this automatic check should be overridden. That is the behaviour of the current build system (build server support if available, build client only if server cannot be built). The current server build detects whether the kernel is patched based on the presence or absence of the lustre-version.h file, but I think this is obsolete and should be replaced by proper checks for actually needed symbol exports and -devel packages. Much of this work has been done already, but I think the last missing check is for the {ldiskfs,zfs} -devel package (or more correctly headers from them, in case the package name is different on different distros), or falling back to checking whether the in-tree ldiskfs contains a patch series for the current kernel. |
| Comment by Andreas Dilger [ 02/Nov/11 ] |
|
Prakash fixed this within the ldiskfs configure scripts by detecting whether ldiskfs was available, or if there is an available patch series for the kernel. If no ldiskfs is available for this kernel then no server support will be built. For Orion the configure script will have to detect whether either ldiskfs or ZFS is available before disabling the server build. |