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

No Warning/Alert creating other fabric in existing fabric node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Minor Minor
    • None
    • jboss-fuse-6.2.1, jboss-fuse-6.3
    • Fabric8 v1
    • % %

      -Run the following script in 621117 instance (to overwrite some ports):

      sed -i "s/(sshPort =)(.*)/\1 5102/" ./etc/org.apache.karaf.shell.cfg
      sed -i "s/(rmiRegistryPort =)(.*)/\1 5109/" ./etc/org.apache.karaf.management.cfg
      sed -i "s/(rmiServerPort =)(.*)/\1 5108/" ./etc/org.apache.karaf.management.cfg
      sed -i "s/(org.osgi.service.http.port*=)(.*)/\1 5100/" ./etc/org.ops4j.pax.web.cfg
      sed -i "s/(org.osgi.service.http.port=)(.*)/\1 5100/" ./etc/org.ops4j.pax.web.cfg
      sed -i "s/(HTTP =)(.*)/\1 5100/" ./fabric/import/fabric/profiles/karaf.profile/io.fabric8.ports.properties
      sed -i "s/(org.osgi.service.http.port*=)(.*)/\1 5100/" ./etc/system.properties
      sed -i "s/(profiles=)(.*)/\1 jboss-fuse-minimal/" ./etc/system.properties
      sed -i "s/(karaf.name.=)(.)/\1 em_d621117/" ./etc/system.properties
      sed -i "/activemq/s/^/#/" ./etc/system.properties
      echo "admin=admin,admin,manager,viewer,Monitor, Operator, Maintainer, Deployer, Auditor, Administrator, SuperUser" >> ./etc/users.properties
      sleep 2
      grep -i -r "karaf.name" ./etc/system.properties
      grep -i -r "sshPort" ./etc/org.apache.karaf.shell.cfg
      grep -i -r "rmiRegistryPort" ./etc/org.apache.karaf.management.cfg
      grep -i -r "rmiServerPort" ./etc/org.apache.karaf.management.cfg
      grep -i -r "org.osgi.service.http.port" ./etc/org.ops4j.pax.web.cfg
      grep -i -r "org.osgi.service.http.port" ./etc/system.properties

      -Create a fabric:

      fabric:create --bootstrap-timeout 5000000 --zookeeper-init-limit 5000000 --wait-for-provisioning --new-user admin --new-user-password admin --zookeeper-password adminadmin --clean --min-port 2186 --max-port 2188 --zookeeper-server-port 2186

      -Run the following script in 630329 instance in same host (to overwrite some ports):

      sed -i "s/(sshPort =)(.*)/\1 5202/" ./etc/org.apache.karaf.shell.cfg
      sed -i "s/(rmiRegistryPort =)(.*)/\1 5209/" ./etc/org.apache.karaf.management.cfg
      sed -i "s/(rmiServerPort =)(.*)/\1 5208/" ./etc/org.apache.karaf.management.cfg
      sed -i "s/(org.osgi.service.http.port*=)(.*)/\1 5200/" ./etc/org.ops4j.pax.web.cfg
      sed -i "s/(org.osgi.service.http.port=)(.*)/\1 5200/" ./etc/org.ops4j.pax.web.cfg
      sed -i "s/(HTTP =)(.*)/\1 5200/" ./fabric/import/fabric/profiles/karaf.profile/io.fabric8.ports.properties
      sed -i "s/(org.osgi.service.http.port*=)(.*)/\1 5200/" ./etc/system.properties
      sed -i "s/(profiles=)(.*)/\1 jboss-fuse-minimal/" ./etc/system.properties
      sed -i "s/(karaf.name.=)(.)/\1 em_d630329/" ./etc/system.properties
      sed -i "/activemq/s/^/#/" ./etc/system.properties
      echo "admin=admin,admin,manager,viewer,Monitor, Operator, Maintainer, Deployer, Auditor, Administrator, SuperUser" >> ./etc/users.properties
      sleep 2
      grep -i -r "karaf.name" ./etc/system.properties
      grep -i -r "sshPort" ./etc/org.apache.karaf.shell.cfg
      grep -i -r "rmiRegistryPort" ./etc/org.apache.karaf.management.cfg
      grep -i -r "rmiServerPort" ./etc/org.apache.karaf.management.cfg
      grep -i -r "org.osgi.service.http.port" ./etc/org.ops4j.pax.web.cfg
      grep -i -r "org.osgi.service.http.port" ./etc/system.properties

      -Create a fabric (same ports as the previous one):

      fabric:create --bootstrap-timeout 5000000 --zookeeper-init-limit 5000000 --wait-for-provisioning --new-user admin --new-user-password admin --zookeeper-password adminadmin --clean --min-port 2186 --max-port 2188 --zookeeper-server-port 2186

      [CURRENT ISSUE]

      • The second instance to be created, does not error or move to the next port in the range, rather it inserts itself and takes over that port and pulls the zookeeper information for the first instance
      • Why wouldn't the 2nd instance fail to create the fabric with port already in use?
      • Why does the 2nd instance re-write the file system file causing the port conflict in the 2nd instance and not allowing it to start?
      • Why doesn't the 2nd instance acknowledge the zookeeper port is in use, and move to the next port in the range?

      [REQUEST]
      -Prevent port overlap with a warning message.

              Unassigned Unassigned
              emunoz@redhat.com Elkin Dario Munoz Duarte
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: