On 02/11/09 08:59, jan damborsky wrote: > Hi David, > > > David Garcia - ONPIT wrote: >> Hi Jan, >> >> I was just reading the bug now :) >> >> Then if I understood it right, we can start a new service with an >> existent source image. >> I tested this and it worked but then I came across with another >> possible issue. >> >> # installadm create-service -n x86_install_101a -s >> /images/AI/osol-0811-rc2-ai.iso /export/ai/images/osol-0811-rc2-ai/ >> Now I'll create a new service over an existing source image: >> # installadm create-service -n jare >> /export/ai/images/osol-0811-rc2-ai/ Registering the service >> jare._OSInstall._tcp.local >> # installadm list >> The install services running on the system are: >> x86_install_106 >> x86_install_101a >> x86_install_106 >> x86_install_101a >> x86_install_106 >> x86_install_101a >> jare >> jare >> jare >> >> But then delete-service will try and remove it's source image even >> though there're more active services using it: >> #installadm delete-service -x jare >> Stopping the service jare._OSInstall._tcp.local >> /usr/lib/installadm/setup-service[236]: [: 129.156.229.201: unknown >> operator >> rm: cannot remove directory `/export/ai/images/osol-0811-rc2-ai/': >> Invalid argument >> # ls /export/ai/images/osol-0811-rc2-ai/ >> (empty) >> >> Should installadm delete-service remove the source image if there's >> other services actives 'linked' to that source image? > > This seems like a bug to me. I think that check should be > done if particular image is in use by other services. > If this is the case, user should be informed and image should > not be deleted. > > Jan
Yes, please file a bug on that. Sue >> I was going to open a bug but preferred to comment it here first in >> case I didn't get this right (i.e. if after the service is created >> it's not linked to the source image anymore) >> >> Thanks, >> David >> >> >> jan damborsky wrote: >>> Hi David, >>> >>> >>> David Garcia - ONPIT wrote: >>>> Hi Jan, >>>> >>>> Please see comments inline: >>>> >>>> jan damborsky wrote: >>>>> >>>>> yes, '-s' is mandatory - it is mentioned later in man page, >>>>> but it seems to be marked incorrectly in 'usage' section. >>>>> >>>>> There is a bug filed for tracking these issues: >>>>> >>>>> 5553 required parameters are marked as optional in installadm(1M) >>>>> man page >>>>> >>>>> It seems that the one you noticed is not mentioned in bug report - >>>>> could you please capture it there ? >>>>> >>>> I added a comment in #5553 >>> >>> I talked to Sue and she pointed out that '-s' is optional, not >>> mandatory, >>> as source image is not required. >>> >>> I have added appropriate comment to bug 5553 to address this and >>> captured >>> there man page sections which should be clarified with respect to >>> this point. >>> >>> My apologies for the confusion, >>> Jan >>> >> > > _______________________________________________ > caiman-discuss mailing list > caiman-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
