brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geomacy <...@git.apache.org>
Subject [GitHub] brooklyn-server issue #645: Persist OSGi bundles
Date Thu, 27 Apr 2017 17:10:42 GMT
Github user geomacy commented on the issue:

    https://github.com/apache/brooklyn-server/pull/645
  
    Still need to test this in HA mode but have tried the test below to verify that resources
included in the zip can be used and survive a rebind.
    
    The script here creates a zip with a couple of boms and an icon, then deploys an app using
the  catalog.bom entity, which is defined in terms of an entity from testent.bom.  The app
deploys ok and the icon appears on the UI. However, upon Karaf shutdown and restart, although
the app rebinds ok, its icon has disappeared, so it's not being fetched from the persisted
bundle.  
    
    ```
    cat > testent.bom <<EOF
    brooklyn.catalog:
      version: 0.12.0.SNAPSHOT
      items:
      - id: myTestEnt
        item:
          type: org.apache.brooklyn.entity.stock.BasicEntity
    
      - id: myOtherTest
        item:
          type: org.apache.brooklyn.entity.stock.BasicEntity
    EOF
    
    cat > catalog.bom <<EOF
    brooklyn.catalog:
      bundle: io.cloudsoft.cli44
      version: 0.12.0.SNAPSHOT
      iconUrl: classpath://io.cloudsoft.cli44:plane.png
    
      items:
      - classpath://testent.bom
      - id: testent1
        item:
          type: myTestEnt
    EOF
    
    cat > test.yaml <<EOF
    location: localhost
    services:
    - type: testent1
      id: testent1
    EOF
    
    wget https://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Plane_icon.svg/200px-Plane_icon.svg.png
-O plane.png
    
    zip test.zip *.bom *.png
    
    br catalog add test.zip
    
    br deploy test.yaml
    
    ```
    
    Can you check the above to verify that this is a valid test? Shouldn't the icon resource
be read from the persisted bundle upon rebind?
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message