fabric:container-list command fails with "Could not find port within range" error
Issue
fabric:container-list
command fails with "Could not find port within range" error- The environment is running Fuse 6.1.0 R2P6. The following describes the environment
- The "tpcorp-proxy-dev-profile" profile contains
- A bundle containing route with a Camel Jetty consumer
- A number of bundles sharing a CXF listen port
- The following configuration changes were made to permit 2 Fuse containers to host the profile one 1 machine.
fabric:profile-edit --pid xx.yy.zzz.health.proxy/com.check.port=\$\{port:9090,9091\} xxxcom-proxy-dev-profile 1.1
fabric:profile-edit --pid xx.yy.zzz.cxf.common/comesb.cxf.endpoint.http=http://0.0.0.0:\$\{port:18001,18002\} xxxcom-proxy-dev-profile 1.1
- The Error from the log shows
io.fabric8.api.FabricException: Could not find port within range [18001,18002] for pid xx.yy.zzz.cxf.common
at io.fabric8.service.ZookeeperPortService.registerPort(ZookeeperPortService.java:97)
at io.fabric8.service.PortPlaceholderResolver.resolve(PortPlaceholderResolver.java:79)
at io.fabric8.service.FabricServiceImpl$2.getValue(FabricServiceImpl.java:1075)
at io.fabric8.zookeeper.utils.InterpolationHelper.substVars(InterpolationHelper.java:178)
at io.fabric8.service.FabricServiceImpl.substituteConfigurations(FabricServiceImpl.java:1071)
at io.fabric8.internal.ProfileOverlayImpl.getConfigurations(ProfileOverlayImpl.java:358)
at io.fabric8.internal.ProfileOverlayImpl.getConfiguration(ProfileOverlayImpl.java:368)
at io.fabric8.internal.ContainerImpl.isManaged(ContainerImpl.java:149)
at io.fabric8.commands.support.CommandUtils.status(CommandUtils.java:176)
at io.fabric8.commands.ContainerList.printContainers(ContainerList.java:98)
at io.fabric8.commands.ContainerList.doExecute(ContainerList.java:73)
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)
at java.lang.Thread.run(Thread.java:745)[:1.7.0_85]
at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.doRun(ShellFactoryImpl.java:158)[49:org.apache.karaf.shell.ssh:2.3.0.redhat-611429]
at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4$1.run(ShellFactoryImpl.java:149)
at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_85]
at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[27:org.apache.karaf.jaas.modules:2.3.0.redhat-611442]
at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.run(ShellFactoryImpl.java:147)[49:org.apache.karaf.shell.ssh:2.3.0.redhat-611429]
Environment
- Red Hat JBoss Fuse
- 6.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.