Mantis - cas_initsmf
Viewing Issue Advanced Details
4960 packaging minor always 2012-06-12 22:40 2012-06-12 23:53
laurent  
 
normal  
new  
open  
none    
none  
0004960: Various errors when installing with -R
When doing an install of the MySQL 5.5 package on a newly created BE, using -R, there are some errors reported by the install script:

# pkgutil -R /.alt.test_opencsw/ -u mysql
CSWmysql5 is using Service Management Facility. The FMRI is svc:/network/cswmysql5:default
ERROR: attribute verification of </.alt.test_opencsw/var/opt/csw/svc/manifest/network/cswmysql5.xml> failed
    pathname does not exist
[ verifying class <cswinitsmf> ]
Installing class <cswtexinfo> ...
Registering texinfo entry for /.alt.test_opencsw/opt/csw/share/info/mysql.info
[ verifying class <cswtexinfo> ]
## Executing postinstall script.
Using /opt/csw/share/mysql/my-small.cnf to create the options file.
Setting up the database
cp: cannot access /opt/csw/share/mysql/my-small.cnf
Creating MySQL core database in /var/opt/csw/mysql5

### The following messages are from mysql_install_db.
/.alt.test_opencsw/var/sadm/pkg/CSWmysql5/install/postinstall: /opt/csw/bin/mysql_install_db: not found
/.alt.test_opencsw/var/sadm/pkg/CSWmysql5/install/postinstall: /opt/csw/share/mysql/my-small.cnf.new: cannot create
mv: cannot access /opt/csw/share/mysql/my-small.cnf.new

### The following messages are from /.alt.test_opencsw/var/sadm/pkg/CSWmysql5/install/postinstall.
See /opt/csw/mysql5/share/mysql/doc/README.CSW for packaging changes.
Please ignore references to starting mysqld_safe in the messages above.
  These messages are from mysql_install_db. See the following
  for starting CSWmysql5.
Running `svcadm enable cswmysql5` start to start the database.
svcadm: Instance "svc:/network/cswmysql5:default" is not in a maintenance or degraded state.

Installation of <CSWmysql5> was successful.
Issue History
2012-06-12 22:40 laurent New Issue
2012-06-12 23:29 laurent Note Added: 0009939
2012-06-12 23:46 yann Note Added: 0009940
2012-06-12 23:51 laurent Note Added: 0009941
2012-06-12 23:53 yann Project openssl => cas_initsmf
2012-06-12 23:53 yann Note Added: 0009942

Notes
(0009939)
laurent   
2012-06-12 23:29   
Oops, I had missed another relevant few lines just above those, which shows the script trying to symlink methods in the current BE:

[ verifying class <ugfiles> ]
Installing class <cswinitsmf> ...
Creating service script in /var/opt/csw/svc/method/svc-cswmysql5 ...
ln: cannot create /var/opt/csw/svc/method/svc-cswmysql5: File exists
Creating manifest ...
Configuring service in SMF ...
CSWmysql5 is using Service Management Facility. The FMRI is svc:/network/cswmysql5:default
(0009940)
yann   
2012-06-12 23:46   
You reporter this bug against openssl. You wanted ti report it against MySQL Disn't You ?
(0009941)
laurent   
2012-06-12 23:51   
Yes, sorry about that. Now I think it's actually a cas_initsmf issue. I've just noticed it on other packages. Can you reroute it please?
(0009942)
yann   
2012-06-12 23:53   
Done