Send connman mailing list submissions to
        connman@lists.01.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        connman-requ...@lists.01.org

You can reach the person managing the list at
        connman-ow...@lists.01.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. Problem when creating a connman-vpn provider with dbus
      net.connman.vpn.Manager.Create (Thomas Achleitner)


----------------------------------------------------------------------

Message: 1
Date: Thu, 12 Apr 2018 08:54:12 +0200
From: Thomas Achleitner <t.achleit...@meteocontrol.de>
To: <connman@lists.01.org>
Subject: Problem when creating a connman-vpn provider with dbus
        net.connman.vpn.Manager.Create
Message-ID: <339d5d79-46d8-49a6-6454-892217b9a...@meteocontrol.de>
Content-Type: text/plain; charset="utf-8"; format=flowed

Hi,


I may have found a bug when creating a vpn provider with DBus.

The first time i create a connection the provider will not contain the 
vpn type specific configuration (e.g. OpenVPN.ConfigFile)

The configuration seems correct and the connection is set up, 
net.connman.vpn.Connection.GetProperties contains the etries

 ????? dict entry(
 ???????? string "OpenVPN.ConfigFile"
 ???????? variant???????????? string "/media/card/openvpn/openvpn.conf"
 ????? )
 ????? dict entry(
 ???????? string "OpenVPN.DeviceType"
 ???????? variant???????????? string "tap"
 ????? )

but the providerfile looks like

 ??? [vpn_sspcdn_a_net_vpn_sspcdn_a_net]
 ??? ??? Name=Test VPN
 ??? ??? Type=openvpn
 ??? ??? Host=vpn.sspcdn-a.net
 ??? ??? VPN.Domain=sspcdn-a.net

If i call dbus net.connman.vpn.Manager.Create a second time the 
information gets added to the provider file correctily.

connman-vpnd debug output of the first call

connman-vpnd[1252]: ../connman-1.35/vpn/vpn-manager.c:create() conn 0x68988
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:__vpn_provider_create() Type OpenVPN 
name Atlas VPN networks (nil)
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:__vpn_provider_create() ident 
vpn_sspcdn_a_net_vpn_sspcdn_a_net
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_new() provider 0x6a910
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:provider_initialize() provider 0x6a910
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get() provider 0x6a910
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:configuration_count_add() count 1
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:provider_probe() 
provider 0x6a910 driver (nil) name Atlas VPN
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:provider_resolv_host_addr() Trying to 
resolv vpn.sspcdn-a.net
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_ref_debug() 0x6a910 ref 
2 by ../connman-1.35/vpn/vpn-provider.c:594:provider_resolv_host_addr()
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:set_string() 
provider 0x6a910 key Name immutable no value Atlas VPN
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:set_string() 
provider 0x6a910 key Type immutable no value OpenVPN
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:set_string() 
provider 0x6a910 key Host immutable no value vpn.sspcdn-a.net
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:set_string() 
provider 0x6a910 key Domain immutable no value vpn.sspcdn-a.net
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:set_string() 
provider 0x6a910 key OpenVPN.ConfigFile immutable no value 
/media/card/openvpn/openvpn.conf
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:set_string() 
provider 0x6a910 key OpenVPN.DeviceType immutable no value tap
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_save() provider 0x6a910 
immutable no
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:provider_probe() 
provider 0x6a910 driver (nil) name Atlas VPN
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:provider_probe() 
driver 0x6c1bc name openvpn
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:connection_register() provider 
0x6a910 path (null)
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:__vpn_provider_create() provider 
0x6a910 index 0 path 
/net/connman/vpn/connection/vpn_sspcdn_a_net_vpn_sspcdn_a_net
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:resolv_result() 
status 0
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_unref_debug() 0x6a910 
ref 1 by ../connman-1.35/vpn/vpn-provider.c:560:resolv_result()


connman-vpnd debug output of the second call

connman-vpnd[1252]: ../connman-1.35/vpn/vpn-manager.c:create() conn 0x68988
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:__vpn_provider_create() Type OpenVPN 
name Atlas VPN networks (nil)
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:__vpn_provider_create() ident 
vpn_sspcdn_a_net_vpn_sspcdn_a_net
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:set_string() 
provider 0x6a910 key Name immutable no value Atlas VPN
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:set_string() 
provider 0x6a910 key Type immutable no value OpenVPN
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:set_string() 
provider 0x6a910 key Host immutable no value vpn.sspcdn-a.net
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:set_string() 
provider 0x6a910 key Domain immutable no value vpn.sspcdn-a.net
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:set_string() 
provider 0x6a910 key OpenVPN.ConfigFile immutable no value 
/media/card/openvpn/openvpn.conf
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:set_string() 
provider 0x6a910 key OpenVPN.DeviceType immutable no value tap
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_save() provider 0x6a910 
immutable no
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.CACert
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.Cert
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.Key
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.MTU
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.NSCertType
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.Proto
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.Port
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.AuthUserPass
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.AskPass
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.AuthNoCache
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.TLSRemote
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.TLSAuth
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.TLSAuthDir
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.Cipher
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.Auth
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.CompLZO
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.RemoteCertTls
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.ConfigFile
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.DeviceType
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:vpn_provider_get_string() provider 
0x6a910 key OpenVPN.Verb
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-provider.c:provider_probe() 
provider 0x6a910 driver 0x6c1bc name Atlas VPN
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:connection_register() provider 
0x6a910 path /net/connman/vpn/connection/vpn_sspcdn_a_net_vpn_sspcdn_a_net
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:__vpn_provider_create() provider 
0x6a910 index 0 path 
/net/connman/vpn/connection/vpn_sspcdn_a_net_vpn_sspcdn_a_net
connman-vpnd[1252]: ../connman-1.35/vpn/vpn-manager.c:get_connections() 
conn 0x68988
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:__vpn_provider_get_connections()
connman-vpnd[1252]: 
../connman-1.35/vpn/vpn-provider.c:append_connection_structs() path 
/net/connman/vpn/connection/vpn_sspcdn_a_net_vpn_sspcdn_a_net


connmand debug output for both calls

connmand[706]: ../connman-1.35/plugins/vpn.c:connection_added()
connmand[706]: ../connman-1.35/plugins/vpn.c:create_connection_data() 
path /net/connman/vpn/connection/vpn_sspcdn_a_net_vpn_sspcdn_a_net
connmand[706]: ../connman-1.35/plugins/vpn.c:add_connection() data 
0xe2fe0 path /net/connman/vpn/connection/vpn_sspcdn_a_net_vpn_sspcdn_a_net
connmand[706]: ../connman-1.35/plugins/vpn.c:add_connection() state 
(null) -> idle
connmand[706]: ../connman-1.35/plugins/vpn.c:create_provider() 
/net/connman/vpn/connection/vpn_sspcdn_a_net_vpn_sspcdn_a_net
connmand[706]: ../connman-1.35/src/provider.c:provider_new() provider 
0xe2b58
connmand[706]: ../connman-1.35/src/provider.c:provider_initialize() 
provider 0xe2b58
connmand[706]: ../connman-1.35/src/provider.c:connman_provider_get() 
provider 0xe2b58
connmand[706]: ../connman-1.35/plugins/vpn.c:create_provider() provider 
0xe2b58 name Atlas VPN
connmand[706]: 
../connman-1.35/src/service.c:__connman_service_create_from_provider() 
provider 0xe2b58
connmand[706]: ../connman-1.35/src/service.c:connman_service_create() 
service 0xe2200
connmand[706]: ../connman-1.35/src/service.c:service_initialize() 
service 0xe2200
connmand[706]: ../connman-1.35/src/service.c:service_get() service 0xe2200
connmand[706]: 
../connman-1.35/src/provider.c:connman_provider_ref_debug() 0xe2b58 ref 
2 by 
../connman-1.35/src/service.c:7186:__connman_service_create_from_provider()
connmand[706]: ../connman-1.35/plugins/vpn.c:get_string() data 0xe2fe0 
provider 0xe2b58 key Name
connmand[706]: 
../connman-1.35/src/ipconfig.c:__connman_ipconfig_create() ipconfig 
0xe6c40 index 0
connmand[706]: ../connman-1.35/src/ipconfig.c:create_ipv6config() 
ipconfig 0xe38f8 index 0 method auto
connmand[706]: ../connman-1.35/src/service.c:service_register() service 
0xe2200
connmand[706]: ../connman-1.35/src/service.c:service_register() path 
/net/connman/service/vpn_vpn_sspcdn_a_net_vpn_sspcdn_a_net
connmand[706]: 
../connman-1.35/src/config.c:__connman_config_provision_service() 
service 0xe2200 type 7
connmand[706]: ../connman-1.35/src/service.c:service_load() service 0xe2200
connmand[706]: ../connman-1.35/src/storage.c:storage_load() Unable to 
load /var/lib/connman/vpn_vpn_sspcdn_a_net_vpn_sspcdn_a_net/settings: No 
such file or directory

connmand[706]: 
../connman-1.35/src/connection.c:__connman_connection_update_gateway() 
default 0xe2860
connmand[706]: ../connman-1.35/src/service.c:service_schedule_added() 
service 0xe2200
connmand[706]: ../connman-1.35/plugins/vpn.c:set_provider_state() 
provider 0xe2b58 new state idle
connmand[706]: ../connman-1.35/src/provider.c:provider_indicate_state() 
state 1
connmand[706]: ../connman-1.35/plugins/vpn.c:resolv_host_addr() Trying 
to resolv vpn.sspcdn-a.net
connmand[706]: 
../connman-1.35/src/provider.c:connman_provider_set_domain() provider 
0xe2b58 domain vpn.sspcdn-a.net
connmand[706]: ../connman-1.35/plugins/vpn.c:property_changed() key Name
connmand[706]: ../connman-1.35/plugins/vpn.c:property_changed() key Type
connmand[706]: ../connman-1.35/plugins/vpn.c:property_changed() key Host
connmand[706]: ../connman-1.35/plugins/vpn.c:property_changed() key Domain

connmand[706]: 
../connman-1.35/src/provider.c:connman_provider_set_domain() provider 
0xe2b58 domain vpn.sspcdn-a.net
connmand[706]: ../connman-1.35/plugins/vpn.c:property_changed() key 
OpenVPN.ConfigFile
connmand[706]: ../connman-1.35/plugins/vpn.c:property_changed() key 
OpenVPN.DeviceType
connmand[706]: ../connman-1.35/plugins/vpn.c:connection_added()
connmand[706]: ../connman-1.35/src/service.c:service_send_changed()
connmand[706]: 
../connman-1.35/src/service.c:service_append_added_foreach() changed 
/net/connman/service/ethernet_9059af8f4854_cable
connmand[706]: 
../connman-1.35/src/service.c:service_append_added_foreach() new 
/net/connman/service/vpn_vpn_sspcdn_a_net_vpn_sspcdn_a_net
connmand[706]: ../connman-1.35/plugins/vpn.c:resolv_result() status 0










------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
connman@lists.01.org
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 30, Issue 10
***************************************

Reply via email to