FS#49079 - [connman] empty /etc/resolv.conf file

Attached to Project: Community Packages
Opened by George Angel (Angel) - Monday, 25 April 2016, 16:17 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 25 April 2016, 17:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

New 1.32 version introduced a new script for handling resolv. It is now a symlink pointing to `runstatedir`:
```
L+ /etc/resolv.conf - - - - @runstatedir@/connman/resolv.conf
```

It is also non-existent:
```
connman(master)/stat /var/run/connman
stat: cannot stat '/var/run/connman': No such file or directory
```

My connman systemd unit file:

```
connman(master)/systemctl cat connman
# /usr/lib/systemd/system/connman.service
[Unit]
Description=Connection service
DefaultDependencies=false
Conflicts=shutdown.target
RequiresMountsFor=/var/lib/connman
After=dbus.service network-pre.target systemd-sysusers.service
Before=network.target multi-user.target shutdown.target
Wants=network.target

[Service]
Type=dbus
BusName=net.connman
Restart=on-failure
ExecStart=/usr/bin/connmand -n
StandardOutput=null
CapabilityBoundingSet=CAP_KILL CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SYS_TIME CAP_SYS_MODULE
ProtectHome=true
ProtectSystem=true

[Install]
WantedBy=multi-user.target
```

My main.conf:
```
connman(master)/cat /etc/connman/main.conf
[General]
AllowHostnameUpdates=false
PreferredTechnologies=ethernet,wifi
NetworkInterfaceBlacklist=vmnet,vboxnet,virbr,ifb,docker,veth
```

Trying to run docker (for example) now comes back with an error:
```
connman(master)/docker run -ti alpine sh
docker: Error response from daemon: open /etc/resolv.conf: no such file or directory.
```

Issue temporarily circumvented by removing the link and copying the `/etc/resolv.conf.bak` file.

```
connman(master)/cat /etc/resolv.conf.bak
# Generated by Connection Manager
nameserver 127.0.0.1
nameserver ::1
```

Thank you.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 25 April 2016, 17:41 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Referenced script is not in the package
Comment by Doug Newgard (Scimmia) - Monday, 25 April 2016, 17:19 GMT
What script does this? I'm confused.
Comment by George Angel (Angel) - Monday, 25 April 2016, 17:24 GMT Comment by Doug Newgard (Scimmia) - Monday, 25 April 2016, 17:28 GMT
As far as I can tell, that is not in the Arch package.
Comment by George Angel (Angel) - Monday, 25 April 2016, 17:36 GMT
Arch package pulls down the connman tarball: https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/connman#n18
Which contains the said script.

Loading...