Bug 1035710 - ahcp-config.sh is missing, address cannot be configured
Summary: ahcp-config.sh is missing, address cannot be configured
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ahcpd
Version: 19
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-28 10:25 UTC by Denis Ovsienko
Modified: 2014-03-13 05:04 UTC (History)
1 user (show)

Fixed In Version: ahcpd-0.53-7.fc19
Clone Of:
Environment:
Last Closed: 2014-03-13 05:03:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Denis Ovsienko 2013-11-28 10:25:29 UTC
Description of problem: there is an important file missing from the RPM. ahcpd needs two executables to perform address management. The first is a compiled binary (/usr/sbin/ahcpd in the current package) and the second is a shell script (/etc/ahcp/ahcp-config.sh by default, not currently packaged but available in the source tar.gz). The shell script normally performs actions based on environment variables set by the compiled binary. The compiled binary never does direct management of addresses.


Version-Release number of selected component (if applicable): ahcpd-0.53-4.fc19.x86_64


How reproducible:


Steps to Reproduce:
1. take two hosts and make sure ip6tables don't block UDP port 5359
2. configure host A as AHCP server and start ahcpd
3. configure host B as AHCP client and start ahcpd
4. (optinal) watch packet dump with the development version of tcpdump and see the exchange occurs similar to this: https://raw.github.com/the-tcpdump-group/tcpdump/master/tests/ahcp-vv.out
5. Copy ahcp-config.sh from the repository to /etc/ahcp/ahcp-config.sh and restart the client to see it helps.


Actual results:
Protocol exchange completes successfully but the allocated address isn't assigned to the interface.

Expected results:
The allocated address get assigned.

Additional info:
The current systemd helper file (/usr/lib/systemd/system/ahcpd.service) has network interface name hardcoded and may be non-functional. ahcpd needs to be run from the command line like this: ahcpd -d 5 -t 300 -c /etc/ahcpd.conf wlp2s0

Comment 1 Gwyn Ciesla 2014-02-21 15:51:55 UTC
I've updated the RPM to include ahcp-config.sh and added -d 5 -t 300 to the service file, but left the interface hard-coded, as there isn't a good way to choose a default.  It can be copied to /etc/systemd/user/ and modified.

I've placed a build here:

http://fedorapeople.org/~limb/ahcpd/ahcpd-0.53-7.fc21.x86_64.rpm

See if this is better.

Comment 2 Denis Ovsienko 2014-02-27 08:19:56 UTC
Thank you for the update. I hope to test the new package this weekend.

Comment 3 Denis Ovsienko 2014-03-03 06:17:24 UTC
This build manages the IP address and nameservers OK (given the interface name is correct as noted above).

Comment 4 Gwyn Ciesla 2014-03-03 18:37:01 UTC
Excellent, I'll get updates out.

Comment 5 Fedora Update System 2014-03-03 18:49:22 UTC
ahcpd-0.53-7.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/ahcpd-0.53-7.fc19

Comment 6 Fedora Update System 2014-03-03 18:49:30 UTC
ahcpd-0.53-7.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/ahcpd-0.53-7.fc20

Comment 7 Fedora Update System 2014-03-05 05:12:26 UTC
Package ahcpd-0.53-7.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ahcpd-0.53-7.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-3438/ahcpd-0.53-7.fc19
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2014-03-13 05:03:45 UTC
ahcpd-0.53-7.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2014-03-13 05:04:24 UTC
ahcpd-0.53-7.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.