Re: [Ocfs2-devel] ocfs2 version issue

2015-09-02 Thread Darrick J. Wong
On Wed, Sep 02, 2015 at 07:34:17AM -0500, Goldwyn Rodrigues wrote:
> 
> 
> On 09/01/2015 07:08 PM, Srinivas Eeda wrote:
> 
> >>>
> >>> 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.
> 
> > 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.
> 
> >
> >>   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.

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

> 
> 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?"
> 
> >
> >> 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.
> 
> > 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.
> 
> -- 
> Goldwyn
> 
> ___
> Ocfs2-devel mailing list
> Ocfs2-devel@oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-devel

___
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel


Re: [Ocfs2-devel] ocfs2 version issue

2015-09-02 Thread Goldwyn Rodrigues


On 09/01/2015 07:08 PM, Srinivas Eeda wrote:

>>>
>>> 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.

> 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.

>
>>   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?"

>
>> 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.

> 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.

-- 
Goldwyn

___
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel


Re: [Ocfs2-devel] ocfs2 version issue

2015-09-01 Thread Junxiao Bi
Hi Goldwyn,

On 09/01/2015 06:32 PM, Goldwyn Rodrigues wrote:
> Hi Junxiao,
> 
> On 08/31/2015 09:22 PM, Junxiao Bi wrote:
>> 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.
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.
> 
> 


___
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel


Re: [Ocfs2-devel] ocfs2 version issue

2015-09-01 Thread Srinivas Eeda
Hi Goldwyn

On 09/01/2015 03:32 AM, Goldwyn Rodrigues wrote:
> Hi Junxiao,
>
> On 08/31/2015 09:22 PM, Junxiao Bi wrote:
>> 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.
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).

>   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 ? ;)

> 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 :)


___
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel


Re: [Ocfs2-devel] ocfs2 version issue

2015-09-01 Thread Goldwyn Rodrigues
Hi Junxiao,

On 08/31/2015 09:22 PM, Junxiao Bi wrote:
> 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.


-- 
Goldwyn

___
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel


[Ocfs2-devel] ocfs2 version issue

2015-08-31 Thread 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?

Thanks,
Junxiao.

___
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel