[PERSISTENC-4] Test App does not work on re-installation Created: 15/Jul/15  Updated: 19/Oct/17

Status: Confirmed
Project: persistence
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Linh Pham Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 4003
Priority: High

 Description   

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.


Generated at Wed Feb 07 20:36:45 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.