Skip to contentSkip to conversation

Is it time to remove opensaf?

DISCUSSION Peter Kjellerstedt 2 participants 5 messages Nov 2, 2021 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

I am currently working on patches for OE-Core to report QA warnings in case some directories that are expected to be empty have some files installed into them. As part of the review process, Khem reported failures for some recipes in OpenEmbedded due to this, opensaf being one of them.

Now I have tried to build and run opensaf in a QEMU image, but I cannot get it to work. The sysvinit initscript relies on /lib/lsb/init-functions, which AFAICT has not existed since lsb was removed from OE-Core two years ago, and opensaf has never depended on lsb in the first place. As for systemd, the service file uses the same sysvinit scripts so it has the same problem. And in addition, the script is in /etc/init.d, which systemd.bbclass removes unless both sysvinit and systemd are enabled in DISTRO_FEATURES.

And in addition to this, if I just try to start the opensafd binary it seg faults immediately.

So all in all, even if opensaf has been updated regularly, it doesn't seem like anyone is actually using it. Which brings me to my actual question: should I just send a patch to remove it?

Alternatively I can fix the creation of the /var/log/opensaf directory, which was the error Khem saw with my patch for OE-Core applied, but it seems like wasted work in case no one is actually using the recipe...

//Peter

#2 lore raw
In reply to a message not in the archive
Quoted 34 lines

-----Original Message-----
From: akuster808 <[email protected]>
Sent: den 2 november 2021 20:41
To: Peter Kjellerstedt <[email protected]>; OE Development ([email protected]) <openembedded- [email protected]>
Subject: Re: [oe] Is it time to remove opensaf?

Peter,

Quoted 23 lines · Peter Kjellerstedt

I am currently working on patches for OE-Core to report QA warnings in case some directories that are expected to be empty have some files installed into them. As part of the review process, Khem reported failures for some recipes in OpenEmbedded due to this, opensaf being one of them.

Now I have tried to build and run opensaf in a QEMU image, but I cannot get it to work. The sysvinit initscript relies on /lib/lsb/init-functions, which AFAICT has not existed since lsb was removed from OE-Core two years ago, and opensaf has never depended on lsb in the first place. As for systemd, the service file uses the same sysvinit scripts so it has the same problem. And in addition, the script is in /etc/init.d, which systemd.bbclass removes unless both sysvinit and systemd are enabled in DISTRO_FEATURES.

And in addition to this, if I just try to start the opensafd binary it seg faults immediately.

So all in all, even if opensaf has been updated regularly, it doesn't seem like anyone is actually using it. Which brings me to my actual question: should I just send a patch to remove it?

Quoted 8 lines
Quoted 4 lines

Alternatively I can fix the creation of the /var/log/opensaf directory, which was the error Khem saw with my patch for OE-Core applied, but it seems like wasted work in case no one is actually using the recipe...

Thanks for the analysis. Does the current mechanism to blacklist a recipe help possible finding users of this recipe?  Is your concern carrying this in the next LTS as well?

I guess adding a PNBLACKLIST for it would work too (I have never used it, so I did not think off it). My concern was mainly that I had to spend time on fixing the recipe to support that /var/volatile is now checked for being empty, for a recipe that apparently is broken. So if a PNBLACKLIST helps the next person that does changes to the system from having to care about the broken opensaf recipe, then that is fine with me. ;)

In the end I did send a patch that changes the opensaf recipe to create /var/log/opensaf in runtime, by copying the solution for one of the other recipes I was fixing. So I am in the clear for my change to OE-Core. But opensaf is still as broken as before when it comes to actually starting the service...

Quoted 3 lines

-armin

Quoted 2 lines

//Peter

//Peter

#3 lore raw
Quoted 44 lines · Peter Kjellerstedt
Quoted 35 lines

-----Original Message-----
From: akuster808 <[email protected]>
Sent: den 2 november 2021 20:41
To: Peter Kjellerstedt <[email protected]>; OE Development ([email protected]) <openembedded- [email protected]>
Subject: Re: [oe] Is it time to remove opensaf?

Peter,

Quoted 23 lines · Peter Kjellerstedt

I am currently working on patches for OE-Core to report QA warnings in case some directories that are expected to be empty have some files installed into them. As part of the review process, Khem reported failures for some recipes in OpenEmbedded due to this, opensaf being one of them.

Now I have tried to build and run opensaf in a QEMU image, but I cannot get it to work. The sysvinit initscript relies on /lib/lsb/init-functions, which AFAICT has not existed since lsb was removed from OE-Core two years ago, and opensaf has never depended on lsb in the first place. As for systemd, the service file uses the same sysvinit scripts so it has the same problem. And in addition, the script is in /etc/init.d, which systemd.bbclass removes unless both sysvinit and systemd are enabled in DISTRO_FEATURES.

And in addition to this, if I just try to start the opensafd binary it seg faults immediately.

So all in all, even if opensaf has been updated regularly, it doesn't seem like anyone is actually using it. Which brings me to my actual question: should I just send a patch to remove it?

Quoted 8 lines
Quoted 4 lines

Alternatively I can fix the creation of the /var/log/opensaf directory, which was the error Khem saw with my patch for OE-Core applied, but it seems like wasted work in case no one is actually using the recipe...

Thanks for the analysis. Does the current mechanism to blacklist a recipe help possible finding users of this recipe? Is your concern carrying this in the next LTS as well?

Quoted 7 lines

I guess adding a PNBLACKLIST for it would work too (I have never used it, so I did not think off it). My concern was mainly that I had to spend time on fixing the recipe to support that /var/volatile is now checked for being empty, for a recipe that apparently is broken. So if a PNBLACKLIST helps the next person that does changes to the system from having to care about the broken opensaf recipe, then that is fine with me. ;)

Generally, I would refrain from excluding recipes via PNBLACKLIST if they can be brought to support whatever improvements we are doing in Core or other dependencies
thats the price of accepting recipes into a layer in the first place. If its broken such that
it can not be fixed then we should perhaps exclude it.

It was added via below commit, so perhaps Bian could be much better suited to say if it is still in use or not.

commit e18830c2b4323487f9afa5205f13579903c7f9d4
Author: Bian Naimeng <[email protected]>
Date: Wed Dec 31 16:22:06 2014 +0800

opensaf: add recipe

OpenSAF is an open source implementation of the SAF AIS specification

Quoted 6 lines

In the end I did send a patch that changes the opensaf recipe to create /var/log/opensaf in runtime, by copying the solution for one of the other recipes I was fixing. So I am in the clear for my change to OE-Core. But opensaf is still as broken as before when it comes to actually starting the service...

Thanks for fixing the bunch of recipes for this,. Really helpful.

Quoted 16 lines
Quoted 4 lines

-armin

Quoted 2 lines

//Peter

//Peter

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#93792): https://lists.openembedded.org/g/openembedded-devel/message/93792
Mute This Topic: https://lists.openembedded.org/mt/86770394/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
Quoted 63 lines

-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Khem Raj
Sent: den 2 november 2021 21:20
To: Peter Kjellerstedt <[email protected]>
Cc: akuster808 <[email protected]>; OE Development (openembedded- [email protected]) <[email protected]>
Subject: Re: [oe] Is it time to remove opensaf?

Quoted 44 lines · Peter Kjellerstedt
Quoted 35 lines

-----Original Message-----
From: akuster808 <[email protected]>
Sent: den 2 november 2021 20:41
To: Peter Kjellerstedt <[email protected]>; OE Development ([email protected]) <openembedded- [email protected]>
Subject: Re: [oe] Is it time to remove opensaf?

Peter,

Quoted 23 lines · Peter Kjellerstedt

I am currently working on patches for OE-Core to report QA warnings in case some directories that are expected to be empty have some files installed into them. As part of the review process, Khem reported failures for some recipes in OpenEmbedded due to this, opensaf being one of them.

Now I have tried to build and run opensaf in a QEMU image, but I cannot get it to work. The sysvinit initscript relies on /lib/lsb/init-functions, which AFAICT has not existed since lsb was removed from OE-Core two years ago, and opensaf has never depended on lsb in the first place. As for systemd, the service file uses the same sysvinit scripts so it has the same problem. And in addition, the script is in /etc/init.d, which systemd.bbclass removes unless both sysvinit and systemd are enabled in DISTRO_FEATURES.

And in addition to this, if I just try to start the opensafd binary it seg faults immediately.

So all in all, even if opensaf has been updated regularly, it doesn't seem like anyone is actually using it. Which brings me to my actual question: should I just send a patch to remove it?

Quoted 8 lines
Quoted 4 lines

Alternatively I can fix the creation of the /var/log/opensaf directory, which was the error Khem saw with my patch for OE-Core applied, but it seems like wasted work in case no one is actually using the recipe...

Thanks for the analysis. Does the current mechanism to blacklist a recipe help possible finding users of this recipe? Is your concern carrying this in the next LTS as well?

Quoted 7 lines

I guess adding a PNBLACKLIST for it would work too (I have never used it, so I did not think off it). My concern was mainly that I had to spend time on fixing the recipe to support that /var/volatile is now checked for being empty, for a recipe that apparently is broken. So if a PNBLACKLIST helps the next person that does changes to the system from having to care about the broken opensaf recipe, then that is fine with me. ;)

Quoted 5 lines

Generally, I would refrain from excluding recipes via PNBLACKLIST if they can be brought to support whatever improvements we are doing in Core or other dependencies thats the price of accepting recipes into a layer in the first place. If its broken such that it can not be fixed then we should perhaps exclude it.

I took a turn down memory lane and checked through the git log for the opensaf recipe. It seems the problem with the service file for systemd relying on files in /etc/init.d was discovered and hacked around in April 2016 and then later broken again in November 2016 because the previous hack was misunderstood... This I can solve properly, and I will send a patch for it (based on top of the series I sent earlier) so that there is at least one less problem.

Unfortunately that will not solve the problem that the intscript relies on /lib/lsb/init-functions, which has not existed since the lsb recipe was removed from OE-Core two years ago (though the opensaf recipe has never depended on the lsb recipe even though it should have).

I could write a comment in the commit message if you want, stating that my fix for the file in /etc/init.d will not actually make the service file work so that there is at least some track of this information for the next person that comes looking at the recipe.

Quoted 7 lines

It was added via below commit, so perhaps Bian could be much better suited to say if it is still in use or not.

commit e18830c2b4323487f9afa5205f13579903c7f9d4
Author: Bian Naimeng <[email protected]>
Date: Wed Dec 31 16:22:06 2014 +0800

Quoted 7 lines

opensaf: add recipe

OpenSAF is an open source implementation of the SAF AIS specification

Bian hasn't been active in the community for over six years, so that is probably hoping for much.

Quoted 7 lines
Quoted 5 lines

In the end I did send a patch that changes the opensaf recipe to create /var/log/opensaf in runtime, by copying the solution for one of the other recipes I was fixing. So I am in the clear for my change to OE-Core. But opensaf is still as broken as before when it comes to actually starting the service...

Thanks for fixing the bunch of recipes for this,. Really helpful.

Well, it was my change to OE-Core that broke them, so of course I will fix them.

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

-armin

Quoted 2 lines

//Peter

//Peter

//Peter

#5 lore raw
Quoted 83 lines · Peter Kjellerstedt
Quoted 64 lines

-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Khem Raj
Sent: den 2 november 2021 21:20
To: Peter Kjellerstedt <[email protected]>
Cc: akuster808 <[email protected]>; OE Development (openembedded- [email protected]) <[email protected]

Subject: Re: [oe] Is it time to remove opensaf?

Quoted 44 lines · Peter Kjellerstedt
Quoted 35 lines

-----Original Message-----
From: akuster808 <[email protected]>
Sent: den 2 november 2021 20:41
To: Peter Kjellerstedt <[email protected]>; OE Development ([email protected]) <openembedded- [email protected]>
Subject: Re: [oe] Is it time to remove opensaf?

Peter,

Quoted 23 lines · Peter Kjellerstedt

I am currently working on patches for OE-Core to report QA warnings in case some directories that are expected to be empty have some files installed into them. As part of the review process, Khem reported failures for some recipes in OpenEmbedded due to this, opensaf being one of them.

Now I have tried to build and run opensaf in a QEMU image, but I cannot get it to work. The sysvinit initscript relies on /lib/lsb/init-functions, which AFAICT has not existed since lsb was removed from OE-Core two years ago, and opensaf has never depended on lsb in the first place. As for systemd, the service file uses the same sysvinit scripts so it has the same problem. And in addition, the script is in /etc/init.d, which systemd.bbclass removes unless both sysvinit and systemd are enabled in DISTRO_FEATURES.

And in addition to this, if I just try to start the opensafd binary it seg faults immediately.

So all in all, even if opensaf has been updated regularly, it doesn't seem like anyone is actually using it. Which brings me to my actual question: should I just send a patch to remove it?

Quoted 8 lines
Quoted 4 lines

Alternatively I can fix the creation of the /var/log/opensaf directory, which was the error Khem saw with my patch for OE-Core applied, but it seems like wasted work in case no one is actually using the recipe...

Thanks for the analysis. Does the current mechanism to blacklist a recipe help possible finding users of this recipe? Is your concern carrying this in the next LTS as well?

Quoted 7 lines

I guess adding a PNBLACKLIST for it would work too (I have never used it, so I did not think off it). My concern was mainly that I had to spend time on fixing the recipe to support that /var/volatile is now checked for being empty, for a recipe that apparently is broken. So if a PNBLACKLIST helps the next person that does changes to the system from having to care about the broken opensaf recipe, then that is fine with me. ;)

Quoted 5 lines

Generally, I would refrain from excluding recipes via PNBLACKLIST if they can be brought to support whatever improvements we are doing in Core or other dependencies thats the price of accepting recipes into a layer in the first place. If its broken such that it can not be fixed then we should perhaps exclude it.

I took a turn down memory lane and checked through the git log for the opensaf recipe. It seems the problem with the service file for systemd relying on files in /etc/init.d was discovered and hacked around in April 2016 and then later broken again in November 2016 because the previous hack was misunderstood... This I can solve properly, and I will send a patch for it (based on top of the series I sent earlier) so that there is at least one less problem.

Unfortunately that will not solve the problem that the intscript relies on /lib/lsb/init-functions, which has not existed since the lsb recipe was removed from OE-Core two years ago (though the opensaf recipe has never depended on the lsb recipe even though it should have).

Quoted 4 lines

I could write a comment in the commit message if you want, stating that my fix for the file in /etc/init.d will not actually make the service file work so that there is at least some track of this information for the next person that comes looking at the recipe.

Absolutely that’s fine

Quoted 42 lines
Quoted 3 lines

It was added via below commit, so perhaps Bian could be much better

suited to

Quoted 9 lines

say if it is still in use or not.

commit e18830c2b4323487f9afa5205f13579903c7f9d4
Author: Bian Naimeng <[email protected]>
Date: Wed Dec 31 16:22:06 2014 +0800

opensaf: add recipe

OpenSAF is an open source implementation of the SAF AIS

specification

Quoted 4 lines

Bian hasn't been active in the community for over six years, so that is probably hoping for much.

Quoted 7 lines
Quoted 5 lines

In the end I did send a patch that changes the opensaf recipe to create /var/log/opensaf in runtime, by copying the solution for one of the other recipes I was fixing. So I am in the clear for my change to OE-Core. But opensaf is still as broken as before when it comes to actually starting the service...

Thanks for fixing the bunch of recipes for this,. Really helpful.

Well, it was my change to OE-Core that broke them, so of course I will fix them.

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

-armin

Quoted 2 lines

//Peter

//Peter

//Peter