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

In Solaris OS, not able to stop Child Containers using wrapper service

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • Fabric8 v1
    • None
    • % %
    • Hide
      - JBossFuse:karaf@root> profile-create NewWrapper
      - JBossFuse:karaf@root> container-create-child root NewChild
      - JBossFuse:karaf@root> profile-edit --features wrapper NewWrapper
      - JBossFuse:karaf@root> container-add-profile NewChild NewWrapper
      - JBossFuse:karaf@root> container-connect NewChild
      - JBossFuse:admin@NewChild> wrapper:install -n fusechild -d fusechild -s AUTO_START
      - Stop Child Container.
      
      • Now go to location jboss-fuse-6.2.1.redhat-084/instances/NewChild/bin
      • Execute
        ./fusechild-service start
        //wait till container starts
        ./fusechild-service stop
        
      Show
      - JBossFuse:karaf@root> profile-create NewWrapper - JBossFuse:karaf@root> container-create-child root NewChild - JBossFuse:karaf@root> profile-edit --features wrapper NewWrapper - JBossFuse:karaf@root> container-add-profile NewChild NewWrapper - JBossFuse:karaf@root> container-connect NewChild - JBossFuse:admin@NewChild> wrapper:install -n fusechild -d fusechild -s AUTO_START - Stop Child Container. Now go to location jboss-fuse-6.2.1.redhat-084/instances/NewChild/bin Execute ./fusechild-service start //wait till container starts ./fusechild-service stop
    • 6.3 Sprint 1 (4-Jan->29-Jan)

    Description

      • In Solaris OS, child-containers can not be stopped using wrapper service.
      • I slightly modified the service script and identified that output of below line in script while stopping container is empty hence it leads to Stale PID:
        pidtest=`$PSEXE -p $pid -o comm | grep $WRAPPER_CMD | tail -1`
        echo "pidtest: $pidtest"
        
        //Output
        bash-3.00# ./fusechild-service stop 
        Stopping fusechild...
        pidtest: 
        Removed stale pid file: /chandrashekhar_testing/jboss-fuse-6.2.1.redhat-084/instances/abc/data/fusechild.pid
        
      • I further looked into this line within script and found that ` grep $WRAPPER_CMD` is not able to grep anything. So we might have to change this while other part of line works well.

      Attachments

        1. fuse
          5 kB
        2. fuse.conf
          1 kB

        Issue Links

          Activity

            People

              lburgazz@redhat.com Luca Burgazzoli
              rhn-support-cpandey Chandra Shekhar Pandey (Inactive)
              Andrej Vano Andrej Vano
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: