Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-4380

Persistent storage data gets lost on restarting the image

    • Icon: Test Test
    • Resolution: Won't Fix
    • Icon: Major Major
    • Lamprey 12.0.0
    • Lamprey 12.0.0
    • None
    • QEMU x86_64

      When using agl-service-data-persistence, the data gets lost when the image is restarted. But the Data should be present in the database as it is a persistent storage. I'm trying to figure out how to keep the database alive between restarts.

      Also, database is stored in location /var/platform-scope and this might be the reason why it gets wiped on restart.


      Steps to reproduce the issue:

      1. To launch the image, run qemu from the command line. On the lamprey branch, the image is agl-demo-platform-crosssdk for x86-64.
      2. Run afb-daemon —ws-client=unix:/run/platform/apis/ws/persistence —port=xxxx —token=' ' -v to start the api. 
      3. To test the api, use afb-client-demo localhost:xxxx/api?token=' ' persistence insert {"key":"k","value":"v"}
        persistence read {"key":"k"}
      4. Data is lost when the image is restarted.

            No reviews matched the request. Check your Options in the drop-down menu of this sections header.

                Unassigned Unassigned
                shruti1 Shruti Gandotra
                0 Vote for this issue
                6 Start watching this issue