Re: [openstack-dev] [ironic-pyhon-agent][DIB] IPA failed to start on Ubuntu because of modprobe path

2017-01-23 Thread Bruno Cornec

Ian Wienand said on Mon, Jan 23, 2017 at 02:26:36PM +1100:

This should be just "/sbin"; I've proposed [1].  There may be even
better ways to do this which anyone is welcome to propose :)


+1

The problem with distributions not following anymore the FHS closely (and not working jointly on it to have a strong standard avoiding dispersion) is such a result :-( Some are using /usr/sbin (saying publicly that /sbin and /bin should be dead) while some other have different opinion. 


I'm personaly (because I'm an old timer unix/linux guy) in favour of keeping 
/sbin and /bin. But that should be an agreement for every distro, and they 
should commit to maintain compatibility with this even if they use /usr/sbin 
and /usr/bin instead.

Bruno.
--
HPE EMEA EG FLOSS Technology Strategist http://www.hpe.com/engage/opensource
Open Source Profession, WW Linux Community Leadhttp://github.com/bcornec   
FLOSS projects:http://mondorescue.org http://project-builder.org

Musique ancienne?   http://www.musique-ancienne.org  http://www.medieval.org

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [ironic-pyhon-agent][DIB] IPA failed to start on Ubuntu because of modprobe path

2017-01-22 Thread Ian Wienand

On 01/21/2017 09:31 PM, Moshe Levi wrote:

Added ExecStartPre=/usr/sbin/modprobe vfat to the
ironic-python-agent systemd script The problem is that modprobe
location in Ubuntu / sbin/modprobe (the /usr/sbin/modprobe vfat
works for redhat)



I have opened this bug in Launchpad

> https://bugs.launchpad.net/diskimage-builder/+bug/1658297


What is the best way to fix this?


This should be just "/sbin"; I've proposed [1].  There may be even
better ways to do this which anyone is welcome to propose :)

-i

[1] https://review.openstack.org/423893

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [ironic-pyhon-agent][DIB] IPA failed to start on Ubuntu because of modprobe path

2017-01-21 Thread Moshe Levi
Hi,
This commit 
https://github.com/openstack/diskimage-builder/commit/2854f4063bd2a6dcdb6fa5fab93aa56857e47b59
 
Added ExecStartPre=/usr/sbin/modprobe vfat to the ironic-python-agent systemd 
script 
The problem is that modprobe location in Ubuntu / sbin/modprobe (the 
/usr/sbin/modprobe vfat works for redhat)
I have opened this bug in Launchpad 
https://bugs.launchpad.net/diskimage-builder/+bug/1658297  
This break IPA element when building with Ubunut OS.
Is there conditional in systemd scripts like 
If os == Redhat then
ExecStartPre=/usr/sbin/modprobe vfat
Elseif os == Ubuntu  then
ExecStartPre=/sbin/modprobe vfat

What is the best way to fix this? 

Thanks,
Moshe Levi



__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev