[prev in list] [next in list] [prev in thread] [next in thread]
List: scst-devel
Subject: Re: [Scst-devel] nothing provides /sbin/depmod and /bin/killall etc
From: Gilbert Standen <gilstanden () hotmail ! com>
Date: 2021-10-25 4:48:31
Message-ID: SN6PR01MB406489398B71255949FFCCD1CA839 () SN6PR01MB4064 ! prod ! exchangelabs ! com
[Download RAW message or body]
I'm working so many hours at my regular job then all the other waking hours plus some \
half-awake hours developing trying to get v7.0.0-alpha ELENA released that I get kind \
of punchy sometimes ... so just to be clear I didn't even quite state the original \
issue correctly in my original post to the mailing list.
This workaround for /sbin/depmod and /bin/killall pertains to installing the RPM's \
not building them...the proximity of the two commands in the script kind of got \
mashed in my sleep deprived mind when i wrote the post.
Anyway, for both Debian-family and RedHat-family rpm is always run as the \
non-privileged user; here's the code snippet from my script used by all builds:
...
make rpm
cd /usr/src/packages/RPMS/x86_64/
echo 'Installing the scst package...'
sudo rpm -ivh scst*
sleep 10
echo 'Installing the scstadmin package...'
sudo rpm -ivh scstadmin*
sleep 10
...
The strange phenomena that I left unsolved longer than i care to admit, was that \
running the "rpm -ivh" commands would NOT run under "sudo" and always failed with \
those errors about /sbin/depmod and /bin/killall and so lazily rather than get to the \
bottom of a kind of weird snag I had just continued to run the rpm -ivh commands as \
root, until yesterday when I put in that inexplicable little fix in /etc/sudoers.d \
reproduced below so in the case of installing the rpms this was a case that pointed \
out that sudo is NOT always the same as root priv.
[ubuntu@o83sv3 scst-files]$ sudo cat /etc/sudoers.d/scst
ubuntu ALL=(ALL) NOPASSWD: /usr/bin/killall
ubuntu ALL=(ALL) NOPASSWD: /usr/sbin/depmod
[ubuntu@o83sv3 scst-files]$
However, based on your excellent comment, I'm going to a code review of all the SCST \
build scripts in the scst-files.tar archive and ensure sudo is only being used where \
appropriate throughout all the scripts.
The role of SCST in Orabuntu-LXC is being expanded significantly in the upcoming \
v7.0.0-alpha ELENA release. There will now be an option to launch SCST during an LXD \
cluster automated build to generate storage for LXD containerized kubernetes file \
systems, or other products, and to generate storage for ZFS pools. Indeed some of \
the product deployments will call for SCST to play a part.
In the past users unpacked and ran the scst-files.tar after Orabuntu-LXC had finished \
if they needed storage to present to containers, but when the "product" feature was \
added so that various products could be scripted and deployed during Orabuntu-LXC \
deployment an expanded role for SCST was in the cards. Users who do not have storage \
can get file-backed SCST LUNs for various product deployments "in-flight" while \
Orabuntu-LXC is running, or the open-source software can be modified to access \
physical devices for SCST.
So a careful code review of the scripts in scst-files.tar is on the agenda now too \
... endless scope creep ...
Gilbert
________________________________
From: Bart Van Assche <bvanassche@acm.org>
Sent: Sunday, October 24, 2021 10:14 PM
To: Gilbert Standen <gilstanden@hotmail.com>; scst-devel@lists.sourceforge.net \
<scst-devel@lists.sourceforge.net>
Subject: Re: [Scst-devel] nothing provides /sbin/depmod and /bin/killall etc
On 10/24/21 20:12, Gilbert Standen wrote:
> I never could get anything except root to work on the RedHat-family side until I \
> found that workaround yesterday!
More information about the kind of issues encountered would be welcome.
Thanks,
Bart.
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> I'm working so many hours at my regular job then all the other waking \
hours plus some half-awake hours developing trying to get v7.0.0-alpha ELENA released \
that I get kind of punchy sometimes ... so just to be clear I didn't even quite state \
the original issue correctly in my original post to the mailing list.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> This workaround for /sbin/depmod and /bin/killall pertains to \
<b><i>installing</i></b> the RPM's not building them...the proximity of the two \
commands in the script kind of got mashed in my sleep deprived mind when i wrote the \
post.<br> </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> Anyway, for both Debian-family and RedHat-family rpm is always run as \
the non-privileged user; here's the code snippet from my script used by all \
builds:<br> </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span style="font-family: "Courier New", monospace;"> \
...<br> </span>
<div><span style="font-family: "Courier New", monospace;"> \
make rpm</span></div> <div><br>
</div>
<div><span style="font-family: "Courier New", monospace;"> \
cd /usr/src/packages/RPMS/x86_64/</span></div> <div><span \
style="font-family: "Courier New", monospace;"><br> </span></div>
<div><span style="font-family: "Courier New", monospace;"> \
echo 'Installing the scst package...'</span></div> <div><span \
style="font-family: "Courier New", monospace;"> \
sudo rpm -ivh scst*</span></div> <div><span style="font-family: "Courier \
New", monospace;"><br> </span></div>
<div><span style="font-family: "Courier New", monospace;"> \
sleep 10</span></div> <div><span style="font-family: "Courier \
New", monospace;"><br> </span></div>
<div><span style="font-family: "Courier New", monospace;"> \
echo 'Installing the scstadmin package...'</span></div> <div><span \
style="font-family: "Courier New", monospace;"> \
sudo rpm -ivh scstadmin*</span></div> <div><span style="font-family: "Courier \
New", monospace;"><br> </span></div>
<span style="font-family: "Courier New", monospace;"> \
sleep 10</span></div> <div style="font-family: Calibri, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> <span style="font-family: "Courier \
New", monospace;"> ...<br> \
</span></div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: \
12pt; color: rgb(0, 0, 0);"> <span style="font-family: "Courier New", \
monospace;"><br> </span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span style="font-family: "Courier New", \
monospace;"></span>The strange phenomena that I left unsolved longer than i care to \
admit, was that running the "rpm -ivh" commands would NOT run under \
"sudo" and always failed with those errors about /sbin/depmod and \
/bin/killall and so lazily rather than get to the bottom of a kind of weird snag I \
had just continued to run the rpm -ivh commands as root, until yesterday when I put \
in that inexplicable little fix in /etc/sudoers.d <span \
id="��">reproduced below so in the case of installing the rpms this was \
a case that pointed out that sudo is NOT always the same as root priv.<br> \
</span></div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: \
12pt; color: rgb(0, 0, 0);"> <span id="��"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span id="��"><span \
style="color:black;font-size:12pt;font-family:Calibri,Helvetica,sans-serif"><span \
style="font-family:Courier New,monospace">[ubuntu@o83sv3 scst-files]$ sudo cat \
/etc/sudoers.d/scst</span></span> <div \
style="color:black;font-size:12pt;font-family:Calibri,Helvetica,sans-serif"> <span \
style="font-family:Courier New,monospace"><br> </span>
<div><span style="font-family:Courier New,monospace">ubuntu ALL=(ALL) NOPASSWD: \
/usr/bin/killall</span></div> <div><span style="font-family:Courier \
New,monospace">ubuntu ALL=(ALL) NOPASSWD: /usr/sbin/depmod</span></div> <div><span \
style="font-family:Courier New,monospace"><br> </span></div>
<span style="font-family:Courier New,monospace">[ubuntu@o83sv3 scst-files]$ <br>
</span></div>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span id="��"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span id="��">However, based on your excellent comment, \
I'm going to a code review of all the SCST build scripts in the scst-files.tar \
archive and ensure sudo is only being used where appropriate throughout all the \
scripts. <br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span id="��"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span id="��">The role of SCST in Orabuntu-LXC is being \
expanded significantly in the upcoming v7.0.0-alpha ELENA release. There will now be \
an option to launch SCST during an LXD cluster automated build to generate storage \
for LXD containerized kubernetes file systems, or other products, and to generate \
storage for ZFS pools. Indeed some of the product deployments will call for \
SCST to play a part.</span></div> <div style="font-family: Calibri, Helvetica, \
sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> <span id="��"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span id="��">In the past users unpacked and ran the \
scst-files.tar after Orabuntu-LXC had finished if they needed storage to present to \
containers, but when the "product" feature was added so that various \
products could be scripted and deployed during Orabuntu-LXC deployment an expanded \
role for SCST was in the cards. Users who do not have storage can get file-backed \
SCST LUNs for various product deployments "in-flight" while Orabuntu-LXC is \
running, or the open-source software can be modified to access physical devices for \
SCST.<br> </span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span id="��"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span id="��">So a careful code review of the scripts \
in scst-files.tar is on the agenda now too ... endless scope creep ... <br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span id="��"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span id="��">Gilbert</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" \
style="font-size:11pt" color="#000000"><b>From:</b> Bart Van Assche \
<bvanassche@acm.org><br> <b>Sent:</b> Sunday, October 24, 2021 10:14 PM<br>
<b>To:</b> Gilbert Standen <gilstanden@hotmail.com>; \
scst-devel@lists.sourceforge.net <scst-devel@lists.sourceforge.net><br> \
<b>Subject:</b> Re: [Scst-devel] nothing provides /sbin/depmod and /bin/killall \
etc</font> <div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On 10/24/21 20:12, Gilbert Standen wrote:<br>
> I never could get anything except root to work on the RedHat-family side until I \
found that workaround yesterday!<br> <br>
More information about the kind of issues encountered would be welcome.<br>
<br>
Thanks,<br>
<br>
Bart.<br>
</div>
</span></font></div>
</body>
</html>
[Attachment #4 (--===============7115904734153910352==)]
_______________________________________________
Scst-devel mailing list
https://lists.sourceforge.net/lists/listinfo/scst-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic