Uploaded image for project: 'persistence'
  1. persistence
  2. PERSISTENC-4

Test App does not work on re-installation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • unspecified
    • General
    • None
    • Operating System: All
      Platform: All

    • 4003
    • High

      On a re-installation of Persistence Test App, all Karaf CLI commands return execution errors.

      Steps to reproduce:
      1. Fresh controller installation and launch Karaf
      2. Install persistence related feature and persistence Test App:
      feature:install odl-persistence-all
      feature:install odl-persistence-test-app
      3. Enter some Test App commands to confirm that they work on first installation, like user:get-enable, networkdevice:get-reachable
      4. Uninstall Persistence test app and related features:
      feature:uninstall odl-persistence-test-app
      feature:uninstall odl-persistence-all
      5. Now enter any Test App commands return execution errors:

      opendaylight-user@root>user:get-enabled
      Error executing command: Not an entity: class org.opendaylight.testapp.persistence.model.persistence.jpa.entity.UserEntity
      opendaylight-user@root>networkdevice:get-reachable
      Error executing command: Not an entity: class org.opendaylight.testapp.persistence.model.persistence.jpa.entity.NetworkDeviceEntity
      opendaylight-user@root>user:sign-up user2 mypwd user2@example.com
      Error executing command: Unable to sign up

      A work-around is to logout of Karaf, remove the persistence directory, re launch Karaf and install persistence test app again.

            Unassigned Unassigned
            linh.pham@hp.com Linh Pham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: