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

[Patch mechanism] Unable to patch:fabric-install with proxy configuration

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.2.1
    • Fix Version/s: jboss-fuse-6.3
    • Component/s: Fabric8 v1, Patching
    • Labels:
      None
    • Environment:

      081 -> 083

    • Sprint:
      6.3 Sprint 4 (Mar 28 - Apr 29)
    • Steps to Reproduce:
      Hide

      1. start fuse
      2. create fabric
      3. set proxy settings
      4. try to patch root

      Show
      1. start fuse 2. create fabric 3. set proxy settings 4. try to patch root

      Description

      Unable to apply patch to version when http proxy is configured in following way.

      settings to make resolution working for "install mvn:org.jboss.fuse.qa.test/useless-artifact/1.0"

      profile-edit --pid io.fabric8.maven/io.fabric8.maven.repositories='http://fusewin.tpb.lab.eng.brq.redhat.com:8081/nexus/content/repositories/fuse-qe-repo@id=fuse-qa' --append default
      profile-edit --pid io.fabric8.maven/io.fabric8.maven.settings=/home/fuse/http-proxy-settings.xml default
      

      settings to make "profile-edit --bundle:mvn:org.jboss.fuse.qa.test/useless-artifact/1.1" working

      profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.settings='/home/fuse/http-proxy-settings.xml' default"
      profile-edit --delete --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories default
      

      then

      patch:fabric-install --upload --username admin --password admin --version 1.1 jboss-fuse-full-6.2.1.redhat-083

      leads to

      woodstox-core-asl                                                        <update>    mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1                                                          
      INFO : io.fabric8.patch.patch-management (1): Uploading artifacts to https://repo.fusesource.com/nexus/content/groups/public/
      Error executing command: Connection refused
      2015-11-26 09:41:37,522 | ERROR | Thread-125       | Console                          | 38 - org.apache.karaf.shell.console - 2.4.0.redhat-621081 | Exception caught while executing command
      io.fabric8.patch.management.PatchException: Connection refused
      	at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.uploadPatchArtifacts(GitPatchManagementServiceImpl.java:542)
      	at io.fabric8.patch.impl.FabricPatchServiceImpl.install(FabricPatchServiceImpl.java:200)
      	at io.fabric8.patch.commands.FabricInstallAction.doExecute(FabricInstallAction.java:82)
      	at io.fabric8.patch.commands.PatchActionSupport.doExecute(PatchActionSupport.java:41)
      	at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_75]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_75]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_75]
      	at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_75]
      	at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
      	at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
      	at io.fabric8.patch.commands.$FabricInstall493101469.execute(Unknown Source)
      	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[38:org.apache.karaf.shell.console:2.4.0.redhat-621081]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[38:org.apache.karaf.shell.console:2.4.0.redhat-621081]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[38:org.apache.karaf.shell.console:2.4.0.redhat-621081]
      	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[38:org.apache.karaf.shell.console:2.4.0.redhat-621081]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[38:org.apache.karaf.shell.console:2.4.0.redhat-621081]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[38:org.apache.karaf.shell.console:2.4.0.redhat-621081]
      	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
      	at org.apache.karaf.shell.console.jline.Console.run(Console.java:197)
      	at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.runConsole(ShellFactoryImpl.java:173)[122:org.apache.karaf.shell.ssh:2.4.0.redhat-621081]
      	at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:125)
      	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_75]
      	at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[25:org.apache.karaf.jaas.modules:2.4.0.redhat-621081]
      	at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:123)[122:org.apache.karaf.shell.ssh:2.4.0.redhat-621081]
      Caused by: java.net.ConnectException: Connection refused
      	at java.net.PlainSocketImpl.socketConnect(Native Method)[:1.7.0_75]
      	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)[:1.7.0_75]
      	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)[:1.7.0_75]
      	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)[:1.7.0_75]
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[:1.7.0_75]
      	at java.net.Socket.connect(Socket.java:579)[:1.7.0_75]
      	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)[:1.7.0_75]
      	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)[:1.7.0_75]
      	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)[:1.7.0_75]
      	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)[:1.7.0_75]
      	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)[:1.7.0_75]
      	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)[:1.7.0_75]
      	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)[:1.7.0_75]
      	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)[:1.7.0_75]
      	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933)[:1.7.0_75]
      	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)[:1.7.0_75]
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)[:1.7.0_75]
      	at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.uploadPatchArtifacts(GitPatchManagementServiceImpl.java:524)
      	... 25 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sonicaaaa Paolo Antinori
                  Reporter:
                  emil.cervenan Emil Cervenan
                  Tester:
                  Emil Cervenan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: