ANN: NetworkManager 0.9.10.2 released

2015-03-04 Thread Dan Williams
Hi,

I'm pleased to announce the release of NetworkManager 0.9.10.2, the
latest stable release in the 0.9.10.x series.  We do however recommend
that users upgrade to the NetworkManager 1.0 stable series, which is
D-Bus and C API backwards compatible, and includes stability and
cooperation enhancements, a smaller footprint, and enhanced CLI
capabilities over 0.9.10.

The 0.9.10.2 release is mostly a bugfix release, but it does resolve a
huge number of issues and memory leaks.  An overview of the changes in
0.9.10.2 is here
http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/NEWS?h=nm-0-9-10

Thanks to everyone who tested and contributed patches and translations!

https://download.gnome.org/sources/NetworkManager/0.9/NetworkManager-0.9.10.2.tar.xz
https://download.gnome.org/sources/network-manager-applet/0.9/network-manager-applet-0.9.10.2.tar.xz
https://download.gnome.org/sources/NetworkManager-vpnc/0.9/NetworkManager-vpnc-0.9.10.2.tar.xz
https://download.gnome.org/sources/NetworkManager-openvpn/0.9/NetworkManager-openvpn-0.9.10.2.tar.xz
https://download.gnome.org/sources/NetworkManager-openconnect/0.9/NetworkManager-openconnect-0.9.10.2.tar.xz
https://download.gnome.org/sources/NetworkManager-pptp/0.9/NetworkManager-pptp-0.9.10.2.tar.xz

Dan

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: No more IPv4 address after boot up since NM 0.9.10

2015-03-04 Thread Frederik Himpe
On ma, 2015-03-02 at 16:04 -0600, Dan Williams wrote:

  I am not sure whether this is a really satisfying solution though: what
  if I would want to debug potential kernel errors during boot, then NM
  will cause your these kind of troubles?
 
 Well, I don't think NM is causing any kind of troubles at all, it's just
 noticing that the interface is configured already when it starts, and
 tries very hard not to mess with the interface. 

So now a few days later, I can tell that disabling netconsole did not
entirely fix my problem. In most cases, I'm still left without any IPv4,
and I have no clue what might bring up the interface before NM becomes
active.

I still think that NM's behaviour not to touch the interface when it's
up already is counter-intuitive. If I start up NM with a configuration
for eth0, then I _do_ want this configuration to be applied, just like
the distro specific init networking scripts would do. If you don't want
NM to touch an existing interface, then it makes more sense to me to
completely disable NM, or to set this specific interface unmanaged in
NM.

Maybe this behaviour should be configurable?

-- 
Frederik Himpe frede...@frehi.be

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: D-bus create device, tutorials, resources

2015-03-04 Thread Petr Horacek


- Original Message -
 From: Thomas Haller thal...@redhat.com
 To: Petr Horacek phora...@redhat.com
 Cc: Yegor Yefremov yegorsli...@googlemail.com, networkmanager. 
 networkmanager-list@gnome.org
 Sent: Tuesday, March 3, 2015 4:42:59 PM
 Subject: Re: D-bus create device, tutorials, resources
 
 On Tue, 2015-03-03 at 06:28 -0500, Petr Horacek wrote:
  
  - Original Message -
   From: Thomas Haller thal...@redhat.com
   To: Yegor Yefremov yegorsli...@googlemail.com
   Cc: Petr Horacek phora...@redhat.com, networkmanager.
   networkmanager-list@gnome.org
   Sent: Tuesday, March 3, 2015 12:03:43 PM
   Subject: Re: D-bus create device, tutorials, resources
   
   On Tue, 2015-03-03 at 10:28 +0100, Yegor Yefremov wrote:
On Tue, Mar 3, 2015 at 10:03 AM, Petr Horacek phora...@redhat.com
wrote:
 Hello folks,

 I'm new to NetworkManager, getting familiar with D-bus interface etc.
 I'd like to create a high level Python interface for nm, but I have
 trouble
 with insufficient documentation resources (or my Google skills).

 Is there any tutorial or D-bus code example for e.g. creating a bond
 device
 with defined IP? I've found plenty of 'list devices' but nothing like
 this.

What's wrong with this project
https://github.com/seveas/python-networkmanager ?
  (Copying from another response:)
  I know this lib, problem is, that you still have to handle NetworkManager
  with
  some strings, dictionaries etc. I would like to do it more Pythonic way,
  like:
  
  add_bond(name, slaves), or even better with some context managers and
  stuff.
  
   
   
   See also,
   http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/python/dbus
   which are examples for using Python to access the D-Bus interface
   directly.
   
   
   then there is also
   http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/python/gi
   which uses libnm via gobject introspection. If you want something quick,
   this might be better. If you want to implement the best possible python
   NM library, you might don't want to use it.
   
   Note that libnm will always be installed together with NetworkManager,
   so the additional dependency is not that cumbersome.
   But libnm was only introduced with nm-1-0, so if you want to support
   older NM (too), you must use the now deprecated libnm-utils library.
   http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/python/gi?h=nm-0-9-10
   The deprecated library libnm-utils also works with NM 1.0 and newer, but
   it is... deprecated.
   
   
   The D-Bus API for NM is quite stable, so if you are using D-Bus
   directly, you should easily be able to support various version of
   NetworkManager.
   
   
   
   I didn't look at python-networkmanager, but that might be worth using
   (and improving) instead of adding yet another wrapper.
   
   
   
   
   Thomas
   
  
  I would love to use D-Bus API, but I don't know what strings should I use
  for for
  example adding bond and stuff like that. Thanks for links, but I think, i
  read them all.
 
 NetworkManager is all about connections (i.e. profiles, which basically
 are a bunch of key-value dictionaries).
 
 see:
 http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/python/dbus/add-connection.py
 
 
 To create a bond setting, populate the dictionary accordingly, most
 notably with a different connection.type='bond' entry.
 
 To know which properties are supported, see `man nm-settings`.
 Look also what nmcli does, i.e. create a connection there, and see how
 it turns out. You can do that for example using d-feet and looking at
 the (D-Bus) GetSettings() method.
 
 
 For example
   $ $ nmcli connection add type bond
 
 afterwards, GetSettings() returns:
 
 {'bond': {'interface-name': 'nm-bond', 'options': {'mode': 'balance-rr'}},
  'connection': {'id': 'bond',
 'interface-name': 'nm-bond',
 'permissions': [],
 'secondaries': [],
 'type': 'bond',
 'uuid': '38ac844a-670d-4efe-b9a0-a2b53b1abaee'},
  'ipv4': {'address-data': [],
   'addresses': [],
   'dns': [],
   'dns-search': [],
   'method': 'auto',
   'route-data': [],
   'routes': []},
  'ipv6': {'address-data': [],
   'addresses': [],
   'dns': [],
   'dns-search': [],
   'method': 'auto',
   'route-data': [],
   'routes': []}}
 
 The 'bond' dictionary is special, because it contains yet another
 dictionary 'options', so you would have to know which options are
 supported.
 
 
  Improving python-networkmanager could be fine, but i would like to do more
  higher interface, as I mentioned in response to Yegor. Something like
  Python nmcli.
 
 sure!
 
 
 good luck
 Thomas
 

Thanks a lot! This is really helpful, everything I was looking for :)

Best regards,
Petr

Re: [review] dcbw/nm-0-9-10-slaves

2015-03-04 Thread Thomas Haller
On Tue, 2015-03-03 at 16:16 -0600, Dan Williams wrote:
 Hi,
 
 http://cgit.freedesktop.org/NetworkManager/NetworkManager/log/?h=dcbw/nm-0-9-10-slaves
 
 Posting here since I'm too lazy to make a review bug.  This branch
 backports some fixes to do the following things:
 
 1) fully enable IP-less configs on interfaces
 2) assume connections for slave interfaces
 3) better cooperate with externally-managed interfaces
 4) fix https://bugzilla.redhat.com/show_bug.cgi?id=1176319 (a crasher)
 
 Review/testing appreciated.  This was the last issue before the release
 of NM 0.9.10.2, which I considered a blocker because it causes a crash
 in some not-so-rare circumstances.


looks good to me


signature.asc
Description: This is a digitally signed message part
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list