Hi everyone.
I've been working on bug 5091, the bug about service names and what they
can contain. Being that at least a few of us have touched on this topic
in one way or another this last week for installadm, I'm asking for a
concensus on what to do.
I'm augmenting my bugfix to remove what Sue added, which converts dots
and spaces to underscores, since my bug is to not allow illegal
characters in the first place. A new bug 7225 was also filed saying a
space was replaced with a dot instead of an underscore. (I will claim
this bug too, and probably close it as a dup of 5091.)
Along with different people doing/filing different things, I've checked
the installadm manpage and the AI design document and cannot find a
specification on this, so I'm going to try reigning us all into an
agreement. Here's what I suggest:
- In general, the printable ASCII character set is OK to start with, for
service names. (See email thread: "Please review: a few small AI fixes"
of earlier today.)
- Dots confuse the DNS server so they have to come out or be changed
(see text of 5091). I suggest they come out.
- Spaces in the service name cause other confusion and so should not be
allowed. (Or they will need to be changed to another printable
character if kept. I prefer underscore if we go with allowing spaces).
So, I propose that the installadm commandline allows all printable ASCII
characters except spaces or dots in a service name. Is this acceptable
to everyone? I plan on discussing / getting resolution on this at
tomorrow's bugcourt.
Thanks,
Jack
On 03/09/09 14:49, bugzilla-daemon at defect.opensolaris.org wrote:
> http://defect.opensolaris.org/bz/show_bug.cgi?id=7225
>
> Summary: installadm(1M) fails to create service if service name
> contains space character
> Classification: Development
> Product: installer
> Version: unspecified
> Platform: ANY/Generic
> OS/Version: OpenSolaris
> Status: NEW
> Severity: normal
> Priority: P4
> Component: installadm
> AssignedTo: qa-installer at defect.opensolaris.org
> ReportedBy: jan.damborsky at sun.com
> CC: qa-installer at defect.opensolaris.org
>
>
> When testing fix for bug 6320, I have tried to create service with name
> containing space character. installadm failed with following message:
>
> # installadm create-service -n "_install_service 6320" -s
> /export/home/iso/sparc/ai_sparc_6320_108.iso
> /export/home/images/ai_sparc_6320_2
> Setting up the target image at /export/home/images/ai_sparc_6320_2 ...
> httpd (pid 598) already running
> Registering the service _install_service.6320._OSInstall._tcp
> The service _install_service.6320._OSInstall._tcp is not registered
> Failed to register Install Service _install_service 6320.
>
> It is assumed to work in such a way that space character is to be replaced
> with
> underscore. However, space character was for some reason replaced with '.'
> (dot)
> instead.
>
>