Karaf
  1. Karaf
  2. KARAF-1484

config:propdel is not propagated to other group members

    Details

      Description

      The numbers in round brackets indicate the sequence of commands.

      Node 1

      (1) karaf@trun> config:edit hasilein; config:propset hasi rulez; config:propset chocolate "is even better"; config:update;
      (2) karaf@trun> config:list "(service.pid=hasilein)"
      ----------------------------------------------------------------
      Pid: hasilein
      BundleLocation: mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.4-SNAPSHOT
      Properties:
      service.pid = hasilein
      karaf.cellar.sync = 1337158678209
      felix.fileinstall.filename = file:/Users/jkindler/temp/qa_tesb_cluster/nodes/cluster.node1/container/etc/hasilein.cfg
      chocolate = is even better
      hasi = rulez
      (5) karaf@trun> config:list "(service.pid=hasilein)"
      ----------------------------------------------------------------
      Pid: hasilein
      BundleLocation: mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.4-SNAPSHOT
      Properties:
      service.pid = hasilein
      karaf.cellar.sync = 1337158842435
      felix.fileinstall.filename = file:/Users/jkindler/temp/qa_tesb_cluster/nodes/cluster.node1/container/etc/hasilein.cfg
      chocolate = is even better
      hasi = is best
      (6) karaf@trun> config:edit hasilein; config:propdel chocolate; config:update;
      karaf@trun>

      Node 2

      (3) karaf@trun> config:list "(service.pid=hasilein)"
      ----------------------------------------------------------------
      Pid: hasilein
      BundleLocation: mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.4-SNAPSHOT
      Properties:
      service.pid = hasilein
      karaf.cellar.sync = 1337158678212
      hasi = rulez
      chocolate = is even better
      (4) karaf@trun> config:edit hasilein; config:propset hasi "is best"; config:update;
      (7) karaf@trun> config:list "(service.pid=hasilein)"
      ----------------------------------------------------------------
      Pid: hasilein
      BundleLocation: mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.4-SNAPSHOT
      Properties:
      service.pid = hasilein
      felix.fileinstall.filename = file:/Users/jkindler/temp/qa_tesb_cluster/nodes/cluster.node2/container/etc/hasilein.cfg
      karaf.cellar.sync = 1337158842435
      hasi = is best
      chocolate = is even better
      karaf@trun>

        Activity

        Hide
        Jean-Baptiste Onofré added a comment -

        To avoid to loose some properties (like the felix.fileinstall.filename), I don't override the complete config properties, I append only new properties. The problem is that I should clean up the properties which are not present on the distributed map from the local one.

        Related to that, I will introduce a cluster:config-propdel command as well.

        Show
        Jean-Baptiste Onofré added a comment - To avoid to loose some properties (like the felix.fileinstall.filename), I don't override the complete config properties, I append only new properties. The problem is that I should clean up the properties which are not present on the distributed map from the local one. Related to that, I will introduce a cluster:config-propdel command as well.
        Show
        Jean-Baptiste Onofré added a comment - Fixed on cellar-2.2.x: http://svn.apache.org/viewvc?view=revision&revision=1405791
        Show
        Jean-Baptiste Onofré added a comment - Fixed on cellar-2.3.x: http://svn.apache.org/viewvc?view=revision&revision=1405794
        Show
        Jean-Baptiste Onofré added a comment - Fixed on Cellar trunk: http://svn.apache.org/viewvc?view=revision&revision=1405797
        Hide
        Jürgen Kindler added a comment -

        Cool! Works fine now!

        Show
        Jürgen Kindler added a comment - Cool! Works fine now!
        Hide
        Jürgen Kindler added a comment -

        Works!

        Show
        Jürgen Kindler added a comment - Works!

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Jürgen Kindler
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development