Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-2450

Unable to upload patch 6.0 r2p4 if container running the fmc uses a different jaas login module

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • jboss-fuse-6.0
    • Fabric8 v1, Patching
    • % %
    • Hide

      Use attached container-auth.xml and users.properties and follow these steps:

      • update container-auth.xml with location of users.properties
      • start 6.0 GA
      • fabric:create --clean --profile fabric --profile fmc
      • profile-create --parents default auth
      • profile-edit --bundles blueprint:file:/path/to/container-auth.xml auth
      • container-add-profile root auth
      • use FMC to install 6.0 p3-prereq patch
      • upgrade root container to p3-prereq patch
      • use FMC to install 6.0 r2
      • upgrade root container to r2
      • use FMC to upload and apply r2p4. The upload will work, but applying the patch will fail with error below. You don't even get to the point to migrate containers to the new profile version.
      Show
      Use attached container-auth.xml and users.properties and follow these steps: update container-auth.xml with location of users.properties start 6.0 GA fabric:create --clean --profile fabric --profile fmc profile-create --parents default auth profile-edit --bundles blueprint: file:/path/to/container-auth.xml auth container-add-profile root auth use FMC to install 6.0 p3-prereq patch upgrade root container to p3-prereq patch use FMC to install 6.0 r2 upgrade root container to r2 use FMC to upload and apply r2p4. The upload will work, but applying the patch will fail with error below. You don't even get to the point to migrate containers to the new profile version.

      If the container running the FMC is configured to use a different JAAS login module than the default ZookeeperLoginModule, uploading patch r2p4 fails with

      Caused by: java.io.IOException: Error uploading patched jars: Unauthorized
      	at org.fusesource.fabric.service.PatchServiceImpl.applyFinePatch(PatchServiceImpl.java:458)[64:org.fusesource.fabric.fabric-core:7.2.0.redhat-065]
      	... 52 more
      2015-01-08 11:09:43,444 | ERROR | tp1663066232-472 | ContainerResponse  | .spi.container.ContainerResponse  509 | 
      115 - org.fusesource.fabric.fabric-rest - 7.2.0.redhat-065 | Mapped exception to response: 500 (Internal Server Error)
      javax.ws.rs.WebApplicationException
      

      The pre-requisite patches p3-prereq and r2 however install just fine using that JAAS configuration.

            gertv_jira Gert Vanthienen (Inactive)
            rhn-support-tmielke Torsten Mielke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: