1834515 Members
2413 Online
110068 Solutions
New Discussion

swpackage goes wrong

 
SOLVED
Go to solution
Jean-Yves Picard
Trusted Contributor

swpackage goes wrong

Hello folks,

short story:

I am unable to remove my own package from my own depot.
ISEE stuff claim it needs it !!

long story:

I distribute configuration check shell on some of my system in a swdepot.

(see attached package file)
this package is sed'ed to give ##var## real value

then depot is created using :
swpackage -s package-bo.tmp @ /depot/CHC1/MyCompany_Tools

resulting log file is
======= 02/20/06 09:12:04 MET BEGIN swpackage SESSION

* Session started for user
"root@achc1us012h.int.chem.corp.local".

* Source: achc1us012h:package-bo.tmp
* Target: achc1us012h:/depot/CHC1/MyCompany_Tools
* Software selections:
*


* Beginning Selection Phase.
* Reading the Product Specification File (PSF) "package-bo.tmp".
* Reading the product "MyCompanyBO" at line 12.
* Reading the fileset "OutilsVerifMachi" at line 26.
* Reading the fileset "fichiersReferenc" at line 44.

* Selection Phase succeeded.


* Beginning Analysis Phase.
NOTE: The estimated free disk space required on filesystem
"/depot/CHC1" is 28 Kbyte blocks. This requirement will leave
10307063 Kbyte blocks of free disk space on the filesystem
after the packaging session completes.
* Analysis Phase succeeded.


* Beginning Package Phase.
* Packaging the product "MyCompanyBO".
* Packaging the fileset "MyCompanyBO.OutilsVerifMachine".
* Packaging the fileset "MyCompanyBO.fichiersReference".
* Package Phase succeeded.

======= 02/20/06 09:12:04 MET END swpackage SESSION

unfortunatly I can't remove this package
I try issuing

swremove -d 'MyCompanyBO,r==2.2' @ /depot/CHC1/MyCompany>

I get the following :

======= 02/20/06 09:14:04 MET BEGIN swremove SESSION
(non-interactive) (jobid=achc1us012h-0244)

* Session started for user "root@achc1us012h".

* Beginning Selection
* Target connection succeeded for
"achc1us012h:/depot/CHC1/MyCompany_Tools/".
* Software selections:
MyCompanyBO.OutilsVerifMachine,r=2.2,a=HP-UX_B.11.11_32/64,v=CHC
MyCompanyBO.fichiersReference,r=2.2,a=HP-UX_B.11.11_32/64,v=CHC
* Selection succeeded.


* Beginning Analysis
* Session selections have been saved in the file
"/.sw/sessions/swremove.last".
ERROR: "achc1us012h:/depot/CHC1/MyCompany_Tools/": The software
dependencies for 2 products or filesets cannot be resolved.
* The analysis phase failed for
"achc1us012h:/depot/CHC1/MyCompany_Tools/".
* Analysis had errors.


NOTE: More information may be found in the agent logfile using the
command "swjob -a log achc1us012h-0244 @achc1us012h:/depot/CHC1/MyCompany_Tools/".

======= 02/20/06 09:14:05 MET END swremove SESSION (non-interactive)
(jobid=achc1us012h-0244)

So I go for more information

======= 02/20/06 09:14:05 MET BEGIN remove AGENT SESSION (pid=2204)
(jobid=achc1us012h-0244)

* Agent session started for user
"root@achc1us012h.int.chem.corp.local". (pid=2204)

* Beginning Analysis Phase.
* Target: achc1us012h:/depot/CHC1/MyCompany_Tools/
* Target logfile:
achc1us012h:/depot/CHC1/MyCompany_Tools/swagent.log
* Reading source for file information.
* The fileset "ISEE-Chorus.MADHPSERVICES,r=A.5.1.390.872"
requires the selected fileset
"MyCompanyBO.fichiersReference,r=2.2" as a prerequisite.
* The fileset "ISEE-SysInfo.SYSINFOBIN,r=A.01.00.18" requires
the selected fileset "MyCompanyBO.fichiersReference,r=2.2" as a
prerequisite.
* The fileset "Isee_EmsListener.ISEE-EMSCONF,r=A.11.09.10"
requires the selected fileset
"MyCompanyBO.fichiersReference,r=2.2" as a prerequisite.
* The fileset "Isee_EmsListener.ISEE-EMSLSTNR,r=A.11.09.10"
requires the selected fileset
"MyCompanyBO.fichiersReference,r=2.2" as a prerequisite.
ERROR: The dependencies for fileset
"MyCompanyBO.fichiersReference,r=2.2" cannot be resolved (see
previous lines).
You must resolve the above dependencies before operating on
this fileset or change the "enforce_dependencies" option to
"false".
(on it goes)


Am I reading well
The fileset "ISEE-Chorus.MADHPSERVICES,r=A.5.1.390.872"
requires the selected fileset
"MyCompanyBO.fichiersReference,r=2.2" as a prerequisite.

ISEE-Chorus depends on my package ????

what am I making wrong ?

Jean-Yves Picard
6 REPLIES 6
Arunvijai_4
Honored Contributor

Re: swpackage goes wrong

Hi Jean,

Can you check your product's PSF file that you have added ISEE as prerequisite ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Jean-Yves Picard
Trusted Contributor

Re: swpackage goes wrong

Hello Arunvijai,

I add as an enclose document the package file.

to be clearer here it is
vendor
tag FOO
title MyCompany
description Outils specifiques
end
product
tag MyCompanyBO
title Outils et utilitaires BO pour MyCompany ##DATE##
description < check/description
vendor_tag CHC
revision ##MAJEUR##.##MINEUR##
architecture HP-UX_B.11.11_32/64
machine_type *
os_name HP-UX
os_release B.11.11
os_version *
is_locatable false
directory /opt/check-BO
fileset
tag OutilsVerifMachine
title les outils d exploitation MyCompany

directory check=/opt/check-BO
control_file script/uninstall=unconfigure
file_permissions -o root -g root -m 444
file -m 544 check-machine.ksh
## (other files)
end
fileset
tag fichiersReference
title les fichiers de references pour MyCompany
configure check/update-hosts.ksh
file /etc/hosts.referenceMyCompany
end
end

I don't see any dependancies toward ISEE-Chorus and I don't see that ISEE shoudl have dependencied on me ...


as I mentioned, ##var## are substituted before the actual swpackage.

Jean-Yves Picard
Muthukumar_5
Honored Contributor

Re: swpackage goes wrong

Is your package installed. Check with,

# swlist -l file | grep -i

or change -l to -l product. or simply as,

# swlist | grep 'product'

Try this first,

# /sbin/init.d/swagentd stop
# /sbin/init.d/swagentd start

try it again.

--
Muthu
Easy to suggest when don't know about the problem!
Jean-Yves Picard
Trusted Contributor

Re: swpackage goes wrong

Hello,

package was indeed installed.
I remove it using swremove.

I stop/start swagentd

still I am not able to remove my own package.

Jean-Yves Picard
Arunvijai_4
Honored Contributor
Solution

Re: swpackage goes wrong

Hello,

Try remove using,

enforce_dependencies=false while doing "swremove"

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Jean-Yves Picard
Trusted Contributor

Re: swpackage goes wrong

Hello,

I have tired the enforce_dependencies before, but it didin't work.

Now it wroks.

I think problem was solved using
-swremove to remove package in swlist's host system
-stop/start of swagentd
-enforce_dependencies=false in swremove option while removing from depot.

thanks for help

(altough this didn't explain why I was able to remove package w/o enforce option for 6 month ... )