[Ovirt-devel] [PATCH server] networkmanager enabled check

Joey Boggs jboggs at redhat.com
Tue Feb 24 15:22:20 UTC 2009



Jeremy Katz wrote:
> On Monday, February 23 2009, Joey Boggs said:
>   
>> Network Manager seems to have some quirkiness in accepting the dhclient options, for now we will check to see 
>> if it's enabled and force to use the regular network service in it's place for now.
>>     
>
> It was working okay for me last week -- what problem are you seeing?
>
>   
>> diff --git a/installer/bin/ovirt-installer b/installer/bin/ovirt-installer
>> index 3ba9813..86c9b9b 100755
>> --- a/installer/bin/ovirt-installer
>> +++ b/installer/bin/ovirt-installer
>> @@ -103,6 +103,15 @@ if File.exist?("/usr/sbin/selinuxenabled")
>>      end
>>  end
>>  
>> +if File.exist?("/etc/init.d/NetworkManager")
>> +    nm = `/sbin/service NetworkManager status`
>> +    if nm !~ /stopped/
>>     
>
> Much better to actually check the return code of the command rather than
> regex of the output -- if you're running in a non-English locale, then
> you'll get a different answer here.
>
> Jeremy
>
> _______________________________________________
> Ovirt-devel mailing list
> Ovirt-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/ovirt-devel
>   

most problems stem back to it ignoring prepended name servers in 
dhclient.conf and taking down freeipa after a reboot. I'll change it to 
check return codes instead forgot about different locales.




More information about the ovirt-devel mailing list