avahi advertisement support disabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cobbler (Ubuntu) |
Invalid
|
Medium
|
Scott Moser | ||
orchestra (Ubuntu) |
Fix Released
|
High
|
Scott Moser |
Bug Description
Cobbler used to advertise itself via avahi, if possible.. However, the code which did this is now commented out.
It was disabled by upstream as part of:
commit f24ffa0d4d997d6
Author: Michael DeHaan <email address hidden>
Date: Fri Jan 23 16:40:10 2009 -0500
Consolidating services to use just one port, removed syslog logging since we have anamon
(https:/
Specifically:
cobbler/
...
#def do_other_
#
# # FUTURE: this should also start the Web UI, if the dependencies
# # are available.
#
# if os.path.
# pid2 = os.fork()
# if pid2 == 0:
# do_syslog(bootapi, settings, syslog_port, logger)
# else:
# do_avahi(bootapi, settings, logger)
# os.waitpid(pid2, 0)
# else:
# do_syslog(bootapi, settings, syslog_port, logger)
...
#def do_avahi(bootapi, settings, logger):
# # publish via zeroconf. This command will not terminate
# log(logger, "publishing avahi service")
# cmd = [ "/usr/bin/
# "cobblerd",
# "_http._tcp",
# "%s" % settings.
# proc = sub_process.
# proc.communicat
# log(logger, "avahi service terminated")
Related branches
- Andres Rodriguez: Approve
-
Diff: 52 lines (+26/-0) (has conflicts)3 files modifieddebian/changelog (+12/-0)
debian/control (+1/-0)
provisioning-server/etc/avahi/services/orchestra_provisioning_server.service (+13/-0)
Changed in cobbler (Ubuntu): | |
assignee: | nobody → Scott Moser (smoser) |
milestone: | none → precise-alpha-1 |
importance: | Undecided → Medium |
description: | updated |
Changed in cobbler (Ubuntu): | |
status: | New → Confirmed |
Changed in orchestra (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Scott Moser (smoser) |
milestone: | none → precise-alpha-1 |
Changed in cobbler (Ubuntu): | |
status: | Confirmed → Invalid |
As an alternative to re-implementing support in cobbler proper, we could simply add an entry to /etc/avahi/services to accomplish the same thing, using the same tools (avahi-daemon). As far as I can see, the only advantage to having cobblerd do this for us is the fact that the service is only advertised when cobblerd is running.
I've been using a avahi service entry as follows alongside cobbler:
<?xml version="1.0" standalone='no'?> service. dtd"> wildcards= "yes">Cobbler server on %h</name> _orchestra_ cobbler. _tcp</type>
<!DOCTYPE service-group SYSTEM "avahi-
<service-group>
<name replace-
<service protocol="ipv4">
<type>
<port>80</port>
</service>
</service-group>
The service type could be changed to something more general (_orchestra_ provisioning_ server) While this would get discovered regardless of the availability of cobbler, the ability to discover the provisioning server within the local orchestra infrastructure may be useful later on for other tools.