9 Replies Latest reply: Jun 3, 2012 2:12 PM by 936381 RSS

    zoneadm install fails with support repo?

    931016
      Anyone able to install zones in Solaris 11 with the "support" repository?

      Global zone: Solaris 11 with the support repo. Fully updated, working fine.

      # pkg publisher
      solaris origin online https://pkg.oracle.com/solaris/support/

      Configured a basic zone but "zoneadm install" fails to contact the repository. Error Code 404, Not Found.

      Error refreshing publishers, 0/1 catalogs successfully updated:

      Unable to contact valid package repository
      Encountered the following error(s):
      Unable to contact any configured publishers.
      This is likely a network configuration problem.
      http protocol error: code: 404 reason: Not Found
      URL: 'http://pkg.oracle.com/solaris/support'. (happened 4 times)

      Looks like the proxy repo is broken?
      Services "system-repository" and "zones-proxyd" are enabled and running.

      Any ideas?

      Thanks!

      Edited by: osc00 on Apr 25, 2012 12:23 PM
        • 1. Re: zoneadm install fails with support repo?
          931016
          As a test, I reset the publisher back to "release" and tried to install a zone.
          solaris origin online http://pkg.oracle.com/solaris/release/

          This time "zoneadm install" can access the repository (Refreshing catalogs... caching catalogs...).
          but it (obviously) fails because the installed packages no longer match.

          The following pattern(s) did not match any allowable packages. Try
          using a different matching pattern, or refreshing publisher information:
          pkg:///entire@0.5.11,5.11-0.175.0.6.0.6.0:20120410T204143Z

          This seems to indicate that there is a bug in the zone installation program when the support repository is used.
          Perhaps because of "https" in the support repo vs "http" in the release repo???
          I would be surprised if this was not tested with the support repo :(
          • 2. Re: zoneadm install fails with support repo?
            Mike Gerdts-Oracle
            I have confirmed that this is a problem and opened a CR:

            7164396 zone pkg operations broken in 11.0 sru 6

            Please open a support case.
            • 3. Re: zoneadm install fails with support repo?
              931016
              Thanks! Glad it is confirmed and not just me.
              Looking forward for a fix or workaround...
              • 4. Re: zoneadm install fails with support repo?
                Mike Gerdts-Oracle
                You can download a Solaris 11.0 sru 6.6 pkg repository at:

                https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=1313405.1

                This document explains how to create a local copy of the support repository.

                http://download.oracle.com/docs/cd/E23824_01/html/E21803/index.html

                Please do open a support case and mention the bug that I opened. This will help ensure you are aware of updates and will help the support organization help you and others with workarounds. Pointing to the bug that I opened should shortcut a lot of the questions that you would normally be asked.
                • 5. Re: zoneadm install fails with support repo?
                  Mike Gerdts-Oracle
                  This problem has been fixed in Solaris 11.0 SRU 7 which is now available in the support repository. I have updated one of my systems using the support repository over the public internet and successfully installed a zone while running SRU7.

                  Thank you for reporting this problem and for your patience as it was addressed.
                  • 6. Re: zoneadm install fails with support repo?
                    936381
                    Im running into this same issue with a fresh Solaris 11 install and SRU 7.5


                    The following pattern(s) did not match any allowable packages. Try
                    using a different matching pattern, or refreshing publisher information:

                    pkg:///entire@0.5.11,5.11-0.175.0.7.0.5.0:20120507T145736Z
                    pkg:/group/system/solaris-small-server




                    # pkg info entire
                    Name: entire
                    Summary: entire incorporation including Support Repository Update (Oracle Solaris 11 11/11 SRU 7.5).
                    Description: This package constrains system package versions to the same
                    build. WARNING: Proper system update and correct package
                    selection depend on the presence of this incorporation.
                    Removing this package will result in an unsupported system. For
                    more information see https://support.oracle.com/CSP/main/article
                    ?cmd=show&type=NOT&doctype=REFERENCE&id=1372094.1.
                    Category: Meta Packages/Incorporations
                    State: Installed
                    Publisher: solaris
                    Version: 0.5.11 (Oracle Solaris 11 SRU 7.5)
                    Build Release: 5.11
                    Branch: 0.175.0.7.0.5.0
                    Packaging Date: May 7, 2012 02:57:36 PM
                    Size: 5.45 kB
                    FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.0.7.0.5.0:20120507T145736Z
                    • 7. Re: zoneadm install fails with support repo?
                      Mike Gerdts-Oracle
                      @Lumi - what do you get from the following commands?

                      pkg publlisher
                      pkg list -avf entire
                      • 8. Re: zoneadm install fails with support repo?
                        936381
                        Morning,

                        Still learning Solaris 11, hmmh.. could this be related to the repo its trying to connect and not the bug itself then?


                        root@xxx:/# pkg publisher
                        PUBLISHER TYPE STATUS URI
                        solaris origin online https://pkg.oracle.com/solaris/support/
                        root@xxx:/# pkg list -avg entire

                        Errors were encountered while attempting to retrieve package or file data for
                        the requested operation.
                        Details follow:

                        file protocol error: code: 22 reason: The path '/entire' does not contain a valid package repository.
                        Repository URL: 'file:///entire'.
                        • 9. Re: zoneadm install fails with support repo?
                          936381
                          Finally solved this one. I was trying to install zone against a SRU7.5 repo that I had locally mounted from the SRU iso. The SRU repo is not enough to install zones from. And of course the Oracle default support repo is in different patch level, which cannot be used either.

                          I configured full local repository and updated that repository with SRU7.5 patches and everything works fine.