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

instance.properties not updated after ensemble-add

    XMLWordPrintable

Details

    • % %
    • Hide
      • create fabric
      • create child container (say, c1) on root
      • create 2 new containers (say, fs2 and fs3) in the fabric
      • ensemble-add fs2 fs3
        ('config:proplist -p io.fabric8.zookeeper' shows that 'zookeeper.url' is updated correctly)
      • remove FUSE_HOME/instances/c1/data
      • restart c1 child container, ConnectionException appears in the log due to the FUSE_HOME/instances/instance.properties not be updated with the correct zookeeper.url
      Show
      create fabric create child container (say, c1) on root create 2 new containers (say, fs2 and fs3) in the fabric ensemble-add fs2 fs3 ('config:proplist -p io.fabric8.zookeeper' shows that 'zookeeper.url' is updated correctly) remove FUSE_HOME/instances/c1/data restart c1 child container, ConnectionException appears in the log due to the FUSE_HOME/instances/instance.properties not be updated with the correct zookeeper.url

    Description

      After an ensemble-add, the zookeeper.url in the FUSE_HOME/instances/instance.properties does not get updated for a child container.

      Actual:

      item.1.opts = -server......... -Dzookeeper.url=\"172.17.80.22:2181\" ......
      

      Expected:

      item.1.opts = -server......... -Dzookeeper.url=\"
         172.17.80.22:2182,172.17.80.11:2182,172.17.80.8:2182\" ......
      

      The issue surfaced when a customer deleted the FUSE_HOME/instances/childcontainer/data/ directory. Upon restart, there were ConnectionExceptions (below) because the /data/../zookeeper.config file (having the updated zookeeper.url) was gone, and it seems that the old outdated one from instance.properties/zookeeper.url was being used instead.

      2016-07-21 14:22:58,065 | INFO  | 2.17.80.22:2181) | ClientCnxn                       | 89 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Opening socket connection to server 172.17.80.22/172.17.80.22:2181
      2016-07-21 14:22:58,067 | WARN  | 2.17.80.22:2181) | ClientCnxn                       | 89 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
      java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.8.0_91]
      	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)[:1.8.0_91]
      	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)[89:io.fabric8.fabric-zookeeper:1.2.0.redhat-621084]
      	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)[89:io.fabric8.fabric-zookeeper:1.2.0.redhat-621084]
      

      Attachments

        Activity

          People

            pantinor@redhat.com Paolo Antinori
            jean.abraham_jira Jean Abraham (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: