<div dir="ltr">Hi Lenz,<div>Yes, hwinfo can be replaced with lsblk on ubuntu.</div><div><br></div><div>Agreed with you that, DeepSea code should be independent of OS and based on the OS user, use, should pickup appropriate commands/tools. But this requires modularization of DeepSea code, which is not there at present.</div><div><br></div><div>Thanks</div><div>Swami</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 1, 2016 at 6:43 PM, Lenz Grimmer <span dir="ltr"><<a href="mailto:lgrimmer@suse.com" target="_blank">lgrimmer@suse.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On 12/01/2016 10:55 AM, M Ranga Swami Reddy wrote:<br>
<br>
>  Please share the files, where we need to do the changes for ubunte...I<br>
> have already setup on Ubunt...and installed the salt-master and<br>
> salt-minion...<br>
<br>
</span>A quick recursive grep for "hwinfo" and "zypper" turned up the following<br>
potential files:<br>
<br>
srv/salt/_modules/examples/<wbr>freedisks.py<br>
srv/salt/_modules/cephdisks.py<br>
srv/modules/runners/validate.<wbr>py<br>
srv/salt/ceph/rgw/default-<wbr>zypper.sls<br>
srv/salt/ceph/updates/default.<wbr>sls<br>
srv/salt/ceph/packages/common/<wbr>default-zypper.sls<br>
srv/salt/ceph/igw/default-<wbr>zypper.sls<br>
srv/salt/ceph/igw/import/<wbr>default-zypper.sls<br>
srv/salt/_modules/zypper_<wbr>locks.py<br>
<br>
It would make sense to figure out if instead of using "zypper" we could<br>
use the functions built into Salt for installing packages. Not sure how<br>
to replace the "hwinfo" calls, though. From what I could tell, it's<br>
being used to list disks attached to the given node. Maybe "lsblk" could<br>
be used here instead?<br>
<br>
In general and if possible, we should only use functions that are<br>
completely distribution-independent. In addition to Debian/Ubuntu, it'd<br>
be excellent if DeepSea would also be supported on Red Hat distributions<br>
like CentOS or Fedora...<br>
<span class="HOEnZb"><font color="#888888"><br>
Lenz<br>
<br>
</font></span><br>______________________________<wbr>_________________<br>
Deepsea-users mailing list<br>
<a href="mailto:Deepsea-users@lists.suse.com">Deepsea-users@lists.suse.com</a><br>
<a href="http://lists.suse.com/mailman/listinfo/deepsea-users" rel="noreferrer" target="_blank">http://lists.suse.com/mailman/<wbr>listinfo/deepsea-users</a><br>
<br></blockquote></div><br></div>