| Summary: | Script for updating services from IANA | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ville Skyttä <ville.skytta> | ||||
| Component: | setup | Assignee: | Ondrej Vasik <ovasik> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | ovasik, pknirsch | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-08-11 08:33:43 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
Thanks for the script, when I compared results of current /etc/services and iana registry parsed by your script, I see we have 43 entries missing in /etc/services and 304 entries we have in /etc/services and are not in output generated by script. I think it is worth to check these 43 entries and find out why they are missing on our side (I always worked with changes in entries in the past updates and output of my script was hand tweaked due to duplicities and obvious typos on iana side (e.g. check optohost004 multientry in iana ). I'm quite sure most of them are missing by accident, so I'll add them in next build. Back to your report - actually, http-alt is in our /etc/services - listed as alias for 8080 . Difference between iana and our /etc/services is in the fact we don't have any duplicate names - every service has its port - and not multiple ports. Second difference is in aliases (one port can have multiple aliases separated by space in last columns before comment with the name of primary name of service attached to the port). Question is probably whether this is good behaviour or not - I can of course change the structure and allow multi port services, but it can possibly break some scripts (at least it will break my verification script for checking duplicates now). This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle. Changing version to '26'. I pushed the script into https://pagure.io/setup/c/5907d31c889da5aa405a7ec3bb4f77142b30222f?branch=master ... sorry for delay. Meanwhile I received another list of discrepancies between IANA and Fedora /etc/services, will try to fix it soon... |
Created attachment 1205893 [details] generate-services.py I was looking for http-alt entries in /etc/services, but didn't find any, and while at that I noticed that there's a lot of services that are in IANA that are not in /etc/services. Maybe this is on purpose? Anyway, I wrote the attached script that can be helpful with syncing with IANA even if not including all services is desirable. It seems to be doing a good job, but obviously has no idea about aliases as they don't exist in the registry. Feel free to include this in one form or another in the setup package (srpm only?), and/or include the http-alt ports in /etc/services in any case :)