IPS Issues

From pressy's brainbackup
Jump to: navigation, search

IPS Issues

Installed OPS Center

for any strage reason, I always get an error, with the installed OPS repositories:

root@venus:/opt# pkg search -r entire
INDEX       ACTION VALUE                                                                                        PACKAGE
pkg.fmri    set    solaris/entire                                                                               pkg:/entire@0.5.11-0.175.0.11.0.4.1
pkg.fmri    set    solaris/entire                                                                               pkg:/entire@0.5.11-0.175.0.12.0.4.0
pkg.summary set    entire incorporation including Support Repository Update (Oracle Solaris 11 11/11 SRU 11.4). pkg:/entire@0.5.11-0.175.0.11.0.4.1
pkg.summary set    entire incorporation including Support Repository Update (Oracle Solaris 11 11/11 SRU 12.4). pkg:/entire@0.5.11-0.175.0.12.0.4.0
root@venus:/opt# 
root@venus:/opt# pkg update 
Recursing into linked image: zone:OPScenter 
Returning from linked image: zone:OPScenter 
Recursing into linked image: zone:testzone  
Returning from linked image: zone:testzone 
            Packages to update:  30        
       Create boot environment: Yes
Create backup boot environment:  No

Recursing into linked image: zone:OPScenter 
Returning from linked image: zone:OPScenter 
pkg: update failed (linked image exception(s)):

A 'update' operation failed for child 'zone:OPScenter' with an unexpected
return value of 1 and the following error message:
pkg: 1/4 catalogs successfully updated:
   
file protocol error: code: 22 reason: The path '/var/opt/sun/xvm/images/IPS/ac-ips-repo' does not contain a valid package repository.
Repository URL: 'file:///var/opt/sun/xvm/images/IPS/ac-ips-repo'.
   
file protocol error: code: 22 reason: The path '/var/opt/sun/xvm/images/IPS/ac-ips-repo' does not contain a valid package repository.
Repository URL: 'file:///var/opt/sun/xvm/images/IPS/ac-ips-repo'.
   
file protocol error: code: 22 reason: The path '/var/opt/sun/xvm/images/IPS/ac-ips-repo' does not contain a valid package repository.
Repository URL: 'file:///var/opt/sun/xvm/images/IPS/ac-ips-repo'.



root@venus:/opt#
root@venus:/opt# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                               origin   online   https://pkg.oracle.com/solaris/support/
root@venus:/opt# 
root@venus:/opt# 
root@venus:/opt# zlogin OPScenter pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                  (syspub)     origin   online   proxy://http://pkg.oracle.com/solaris/support/
cacao                                 origin   online   file:///var/opt/sun/xvm/images/IPS/ac-ips-repo/
mp-re                                 origin   online   file:///var/opt/sun/xvm/images/IPS/ac-ips-repo/
opscenter                             origin   online   file:///var/opt/sun/xvm/images/IPS/ac-ips-repo/
root@venus:/opt# 

a quick workaround is to unset the OPS publishers and attach it after the upgrade again:

root@venus:/opt# zlogin OPScenter
[Connected to zone 'OPScenter' pts/2]
Oracle Corporation      SunOS 5.11      11.0    August 2012
You have new mail.
root@OPScenter:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                  (syspub)     origin   online   proxy://http://pkg.oracle.com/solaris/support/
cacao                                 origin   online   file:///var/opt/sun/xvm/images/IPS/ac-ips-repo/
mp-re                                 origin   online   file:///var/opt/sun/xvm/images/IPS/ac-ips-repo/
opscenter                             origin   online   file:///var/opt/sun/xvm/images/IPS/ac-ips-repo/
root@OPScenter:~# pkg unset-publisher cacao
root@OPScenter:~# pkg unset-publisher mp-re
root@OPScenter:~# pkg unset-publisher opscenter
root@OPScenter:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                  (syspub)     origin   online   proxy://http://pkg.oracle.com/solaris/support/
root@OPScenter:~# exit
logout

[Connection to zone 'OPScenter' pts/2 closed]
root@venus:/opt# 
root@venus:/# pkg update
Recursing into linked image: zone:OPScenter 
Returning from linked image: zone:OPScenter 
Recursing into linked image: zone:testzone  
Returning from linked image: zone:testzone 
            Packages to update:  30        
       Create boot environment: Yes
Create backup boot environment:  No

Recursing into linked image: zone:OPScenter 
           Packages to install:  2
            Packages to update: 24
       Create boot environment: No
Create backup boot environment: No
            Services to change:  2

Returning from linked image: zone:OPScenter 
Recursing into linked image: zone:testzone  
           Packages to install:  3
            Packages to update: 20
       Create boot environment: No
Create backup boot environment: No
            Services to change:  2

Returning from linked image: zone:testzone 
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                30/30     732/732    42.4/42.4

Recursing into linked image: zone:OPScenter 
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                26/26     826/826    28.3/28.3

Returning from linked image: zone:OPScenter 
Recursing into linked image: zone:testzone  
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                23/23   1071/1071    29.5/29.5

Returning from linked image: zone:testzone 
PHASE                                        ACTIONS
Removal Phase                                  87/87 
Install Phase                                141/141
Update Phase                               1060/1060 

PHASE                                          ITEMS
Package State Update Phase                     60/60 
Package Cache Update Phase                     30/30 
Image State Update Phase                         2/2 
Recursing into linked image: zone:OPScenter 
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                26/26     826/826    28.3/28.3

PHASE                                        ACTIONS
Removal Phase                                  76/76 
Install Phase                                531/531 
Update Phase                                 543/543 

PHASE                                          ITEMS
Package State Update Phase                     50/50 
Package Cache Update Phase                     24/24
Image State Update Phase                         2/2 
Returning from linked image: zone:OPScenter 
Recursing into linked image: zone:testzone  
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                23/23   1071/1071    29.5/29.5

PHASE                                        ACTIONS
Removal Phase                                  69/69 
Install Phase                              1493/1493 
Update Phase                                 336/336 

PHASE                                          ITEMS
Package State Update Phase                     43/43 
Package Cache Update Phase                     20/20
Image State Update Phase                         2/2 
Returning from linked image: zone:testzone 

A clone of BUsep12-1 exists and has been updated and activated.
On the next boot the Boot Environment BUsep12-2 will be
mounted on '/'.  Reboot when ready to switch to this updated BE.


---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=REFERENCE&id=1372094.1
---------------------------------------------------------------------------

root@venus:/# 


after the upgrade, you can add the publishers again:

root@venus:~# pkg info entire | grep Version
       Version: 0.5.11 (Oracle Solaris 11 SRU 12.4)
root@venus:~# zlogin OPScenter
[Connected to zone 'OPScenter' pts/4]
Oracle Corporation      SunOS 5.11      11.0    September 2012
root@OPScenter:~# 
root@OPScenter:~# pkg set-publisher -O file:///var/opt/sun/xvm/images/IPS/ac-ips-repo/ cacao
root@OPScenter:~# pkg set-publisher -O file:///var/opt/sun/xvm/images/IPS/ac-ips-repo/ mp-re
root@OPScenter:~# pkg set-publisher -O file:///var/opt/sun/xvm/images/IPS/ac-ips-repo/ opscenter
root@OPScenter:~#                                     
root@OPScenter:~# 
root@OPScenter:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                  (syspub)     origin   online   proxy://http://pkg.oracle.com/solaris/support/
cacao                                 origin   online   file:///var/opt/sun/xvm/images/IPS/ac-ips-repo/
mp-re                                 origin   online   file:///var/opt/sun/xvm/images/IPS/ac-ips-repo/
opscenter                             origin   online   file:///var/opt/sun/xvm/images/IPS/ac-ips-repo/
root@OPScenter:~#

Local Repo

Another issue when updating my server and an AI was inside a zone with a local repo…

root@mprsx01:/root # pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F https://pkg.oracle.com/solaris/support/
solarisstudio               origin   online F https://pkg.oracle.com/solarisstudio/release/
root@mprsx01:/root #
root@mprsx01:/root # pkg update --be-name=s11.1.12.5.0
            Packages to update:  39
       Create boot environment: Yes
Create backup boot environment:  No

Planning linked: 0/1 done; 1 working: zone:mpr-ai-01
Linked progress: \pkg: update failed (linked image exception(s)):

A 'update' operation failed for child 'zone:mpr-ai-01' with an unexpected
return value of 1 and generated the following output:
pkg: 1/2 catalogs successfully updated:

file protocol error: code: 22 reason: The path '/export/repo/sol11/repo' does not contain a valid package repository.
Repository URL: 'file:///export/repo/sol11/repo'.


Inside the zone:

root@mpr-ai-01:/var/pkg/ssl # pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris        (syspub)     origin   online F file:///export/repo/sol11/repo/
solaris        (syspub)     origin   online T <system-repository>
solarisstudio  (syspub)     origin   online T <system-repository>

The update process was looking in the local /export for the files… so you probably could setup a shared ZFS or what I did, just link it: (btw: the updates were downloaded from the internet regardless the local link…)

root@mprsx01:/root # ln -s /zones/mpr-ai-01/root/export/repo/ /export/repo
root@mprsx01:/root # ls -al /export
total 10
drwxr-xr-x   3 root     root           4 Oct 24 11:25 .
drwxr-xr-x  27 root     root          29 Oct  2 11:04 ..
drwxr-xr-x   2 root     root           2 Jul 17 18:31 home
lrwxrwxrwx   1 root     root          34 Oct 24 11:25 repo -> /zones/mpr-ai-01/root/export/repo/
root@mprsx01:/root #
root@mprsx01:/root # pkg update --be-name=s11.1.12.5.0
            Packages to update:  39
       Create boot environment: Yes
Create backup boot environment:  No

Planning linked: 0/1 done; 1 working: zone:mpr-ai-01
Linked image 'zone:mpr-ai-01' output:
| Packages to update: 24
`
Planning linked: 1/1 done
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                              39/39     2637/2637  150.4/150.4  320k/s

Downloading linked: 0/1 done; 1 working: zone:mpr-ai-01
Downloading linked: 1/1 done
PHASE                                          ITEMS
Removing old actions                         126/126
Installing new actions                       166/166
Updating modified actions                  4662/4662
Updating package state database                 Done
Updating package cache                         39/39
Updating image state                            Done
Creating fast lookup database                   Done
Reading search index                            Done
Building new search index                    530/530
Executing linked: 0/1 done; 1 working: zone:mpr-ai-01
Executing linked: 1/1 done

A clone of s11.1.11.4.0 exists and has been updated and activated.
On the next boot the Boot Environment s11.1.12.5.0 will be
mounted on '/'.  Reboot when ready to switch to this updated BE.


---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

https://support.oracle.com/epmos/faces/DocContentDisplay?id=1501435.1
---------------------------------------------------------------------------

root@mprsx01:/root #