Skip to contentSkip to conversation

ocfs2 version issue

Ocfs2-devel Junxiao Bi 4 participants 6 messages Sep 1, 2015 – Sep 2, 2015 OCFS2

lore
Share & tools
lore

Junxiao Bi

author
#0 lore raw

Hi Goldwyn,

Ocfs2 kernel version is removed from commit ff8fb335221e2c446b0d4cbea26be371fd2feb64 ("ocfs2: remove versioning information"), but Oracle CRS depends on this version, and this made Oracle CRS can't be installed. So i think we should revert this commit and sync this version with ocfs2-tools. Do you have any other concern about this?

Thanks,
Junxiao.

#1 lore raw

Hi Junxiao,

Quoted 8 lines · Junxiao Bi

Hi Goldwyn,

Ocfs2 kernel version is removed from commit ff8fb335221e2c446b0d4cbea26be371fd2feb64 ("ocfs2: remove versioning information"), but Oracle CRS depends on this version, and this made Oracle CRS can't be installed. So i think we should revert this commit and sync this version with ocfs2-tools. Do you have any other concern about this?

We removed the version because it did not make sense. Even if we put in the version back we will have to maintain it and will have a similar case where the version number in the kernel is way behind the tools versions because of lack of updating. Add to it the confusion of users who would not know which version to quote.

I suggest the Oracle CRS should be modified to use the kernel version as opposed to the ocfs2 kernel module specific versions.

Signature · 1 line
Goldwyn
#2 lore raw

Hi Goldwyn

Quoted 5 lines · Goldwyn Rodrigues

Hi Junxiao,

Quoted 2 lines · Junxiao Bi

Hi Goldwyn,

Quoted 7 lines
Quoted 6 lines

Ocfs2 kernel version is removed from commit ff8fb335221e2c446b0d4cbea26be371fd2feb64 ("ocfs2: remove versioning information"), but Oracle CRS depends on this version, and this made Oracle CRS can't be installed. So i think we should revert this commit and sync this version with ocfs2-tools. Do you have any other concern about this?

We removed the version because it did not make sense.

I am not sure how other kernel modules work, but for me a OCFS2 maintaining it's own version is a good idea :). This version number defines the feature-set it currently supports. It also allows a feature-set to be backported to older kernels(if need arises).

Quoted 5 lines

Even if we put in
the version back we will have to maintain it and will have a similar case where the version number in the kernel is way behind the tools versions because of lack of updating. Add to it the confusion of users who would not know which version to quote.

I agree that this got out of sync so probably we should fix that part than to remove it all together. I also don't see why tools version has to dictate kernel module version or vise-versa. Isn't it practical for a kernel module to implement a new feature-set but doesn't require any tools changes or vise-versa ? ;)

Quoted 2 lines

I suggest the Oracle CRS should be modified to use the kernel version as opposed to the ocfs2 kernel module specific versions.

It may not be just Oracle CRS ... there may be other applications that might be using this. The problem is that we don't want a customer to upgrade a kernel and run into a failure which just looks bad on kernel/filesystem :(. One may argue to write notes/readme's to inform customers but it's not practical and is a painful for some customers to update application software and kernel at the same time.

Anyway, if we decide to remove the versioning forever then it may be a good idea to deprecate it first so applications have enough time to incorporate these changes. But my vote would be for ocfs2 to maintain it's own version number :)

author
#5 lore raw
In reply to Goldwyn Rodrigues

Hi Goldwyn,

Quoted 12 lines · Goldwyn Rodrigues

Hi Junxiao,

Quoted 8 lines · Junxiao Bi

Hi Goldwyn,

Ocfs2 kernel version is removed from commit ff8fb335221e2c446b0d4cbea26be371fd2feb64 ("ocfs2: remove versioning information"), but Oracle CRS depends on this version, and this made Oracle CRS can't be installed. So i think we should revert this commit and sync this version with ocfs2-tools. Do you have any other concern about this?

Quoted 8 lines

We removed the version because it did not make sense. Even if we put in the version back we will have to maintain it and will have a similar case where the version number in the kernel is way behind the tools versions because of lack of updating. Add to it the confusion of users who would not know which version to quote.

I suggest the Oracle CRS should be modified to use the kernel version as opposed to the ocfs2 kernel module specific versions.

But this still fail for already released software, customer may upgrade to a new kernel but still use the old software.
My fault to say to sync ocfs2 kernel version with tools, we really can make that two versions separated as Srini said. But we can sync their version once now since kernel version is not updated for a long time, then in the future, each do itself versioning.

Thanks,
Junxiao.

Quoted 2 lines
#3 lore raw
In reply to Srinivas Eeda
Quoted 11 lines · Srinivas Eeda
Quoted 8 lines
Quoted 7 lines

Ocfs2 kernel version is removed from commit ff8fb335221e2c446b0d4cbea26be371fd2feb64 ("ocfs2: remove versioning information"), but Oracle CRS depends on this version, and this made Oracle CRS can't be installed. So i think we should revert this commit and sync this version with ocfs2-tools. Do you have any other concern about this?

We removed the version because it did not make sense.

I am not sure how other kernel modules work, but for me a OCFS2 maintaining it's own version is a good idea :). This version number defines the feature-set it currently supports.

The kernel version is enough to define the feature it supports. If at all you backport, it becomes distro-specfic.

Quoted 2 lines

It also allows a
feature-set to be backported to older kernels(if need arises).

Again, this is distro-specific and is unrelated to vanilla kernels.

Quoted 11 lines
Quoted 6 lines

Even if we put in
the version back we will have to maintain it and will have a similar case where the version number in the kernel is way behind the tools versions because of lack of updating. Add to it the confusion of users who would not know which version to quote.

I agree that this got out of sync so probably we should fix that part than to remove it all together. I also don't see why tools version has to dictate kernel module version or vise-versa. Isn't it practical for a kernel module to implement a new feature-set but doesn't require any tools changes or vise-versa ? ;)

Yes, it is possible. For that matter, our feature bits are set in such a way that you can use an older tool with a newer kernel and vice-versa. Even if it fails, it must do gracefully. However, users are getting confused with the version number displayed in the ocfs2 modules.

Users had questions like "Why is indexed dir being used when we are using 1.5?" (and their tools were 1.8 based)

Or "I would like to use feature abc which was introduced in version 1.6 according to the changelog. However, my ocfs2 modules version is 1.5. Is feature abc incorporated?"

Quoted 10 lines
Quoted 3 lines

I suggest the Oracle CRS should be modified to use the kernel version as opposed to the ocfs2 kernel module specific versions.

It may not be just Oracle CRS ... there may be other applications that might be using this. The problem is that we don't want a customer to upgrade a kernel and run into a failure which just looks bad on kernel/filesystem :(. One may argue to write notes/readme's to inform customers but it's not practical and is a painful for some customers to update application software and kernel at the same time.

My suggestion would be to carry a distro-specific deprecating version patch until Oracle CRS learns to use the kernel versioning.

Quoted 4 lines

Anyway, if we decide to remove the versioning forever then it may be a good idea to deprecate it first so applications have enough time to incorporate these changes. But my vote would be for ocfs2 to maintain it's own version number :)

While I see the problem, I fail to see why kernel version is not good enough for this. The only place you would require versioning is if you are dealing with specific hardware/firmware. I don't see any functional value in keeping separate versioning system for kernel modules.

Signature · 1 line
Goldwyn
#4 lore raw
Quoted 36 lines · Goldwyn Rodrigues
Quoted 11 lines · Srinivas Eeda
Quoted 8 lines
Quoted 7 lines

Ocfs2 kernel version is removed from commit ff8fb335221e2c446b0d4cbea26be371fd2feb64 ("ocfs2: remove versioning information"), but Oracle CRS depends on this version, and this made Oracle CRS can't be installed. So i think we should revert this commit and sync this version with ocfs2-tools. Do you have any other concern about this?

We removed the version because it did not make sense.

I am not sure how other kernel modules work, but for me a OCFS2 maintaining it's own version is a good idea :). This version number defines the feature-set it currently supports.

The kernel version is enough to define the feature it supports. If at all you backport, it becomes distro-specfic.

Quoted 2 lines

It also allows a
feature-set to be backported to older kernels(if need arises).

Again, this is distro-specific and is unrelated to vanilla kernels.

Quoted 11 lines
Quoted 6 lines

Even if we put in
the version back we will have to maintain it and will have a similar case where the version number in the kernel is way behind the tools versions because of lack of updating. Add to it the confusion of users who would not know which version to quote.

I agree that this got out of sync so probably we should fix that part than to remove it all together. I also don't see why tools version has to dictate kernel module version or vise-versa. Isn't it practical for a kernel module to implement a new feature-set but doesn't require any tools changes or vise-versa ? ;)

Quoted 4 lines

Yes, it is possible. For that matter, our feature bits are set in such a way that you can use an older tool with a newer kernel and vice-versa. Even if it fails, it must do gracefully. However, users are getting confused with the version number displayed in the ocfs2 modules.

I might be out of my league here, but why not create a /sys/fs/ocfs2/features file that advertises which features the kernel driver supports? Then you can change the software to parse the file for features rather than module version numbers?

Yes, that's a big change to code that gets shipped to customers that'll have to be worked in over a while, but it sounds like the maintainer's forcing an interface break on you already, so you might as well drop the whole game of inferring features from version numbers and just query feature directly.

--D

Quoted 39 lines

Users had questions like "Why is indexed dir being used when we are using 1.5?" (and their tools were 1.8 based)

Or "I would like to use feature abc which was introduced in version 1.6 according to the changelog. However, my ocfs2 modules version is 1.5. Is feature abc incorporated?"

Quoted 10 lines
Quoted 3 lines

I suggest the Oracle CRS should be modified to use the kernel version as opposed to the ocfs2 kernel module specific versions.

It may not be just Oracle CRS ... there may be other applications that might be using this. The problem is that we don't want a customer to upgrade a kernel and run into a failure which just looks bad on kernel/filesystem :(. One may argue to write notes/readme's to inform customers but it's not practical and is a painful for some customers to update application software and kernel at the same time.

My suggestion would be to carry a distro-specific deprecating version patch until Oracle CRS learns to use the kernel versioning.

Quoted 4 lines

Anyway, if we decide to remove the versioning forever then it may be a good idea to deprecate it first so applications have enough time to incorporate these changes. But my vote would be for ocfs2 to maintain it's own version number :)

While I see the problem, I fail to see why kernel version is not good enough for this. The only place you would require versioning is if you are dealing with specific hardware/firmware. I don't see any functional value in keeping separate versioning system for kernel modules.

Signature · 6 lines
Goldwyn

_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel at oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel