[INTPAK-193] Debug why no default user in Ansible ODL Created: 11/Jul/18  Updated: 12/Aug/18  Resolved: 12/Aug/18

Status: Resolved
Project: integration-packaging
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Taseer Ahmed Assignee: Taseer Ahmed
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

ODL is designed to have a default admin user. The packaging project ensures that the user is present. The script dedicated for this task is:

https://git.opendaylight.org/gerrit/gitweb?p=releng/builder.git;a=blob;f=jjb/packaging/test-rest-ok.sh

The absence of this user in Ansible-ODL is confirmed by the test logs, which checks the initial state of the users. 

 

TASK [list initial users] ****************************************************** ok: [localhost] => { "changed": false"invocation": { "module_args":

{ "password": null, "state": "list", "username": null }

},  "msg": [ "User names:",  "" ] }

 



 Comments   
Comment by Daniel Farrell [ 11/Jul/18 ]

linux_geek - Can you give a better title/description? We need to be able to understand the issue when we return to it later. At least improve title to note that no user ansible-odl, but RPM tests show default user. Basically discrepancy between two is the issue, or why user isn't in ansible-odl. Also include the relevant links/code snippets from the logs showing no user, the tests you're adding that assert no user, and the RPM logic that seems to use admin user out-of-the-box.

Comment by Daniel Farrell [ 12/Jul/18 ]

linux_geek - Thanks for the updates. For clarity, it's not the ODL RPM that creates the admin user. If it's there, it's just ODL distros in general ship with this user by default. The question is why the same ODL RPMs, when used to install using ansible-odl, don't seem to show this user.

Comment by Daniel Farrell [ 12/Jul/18 ]

It would be interesting to add a check to the RPM verify scripts that uses the AAA user/pass tool to check if there's a user. Maybe that tool just doesn't list the default admin user. Could also add REST calls to ansible-odl tests to verify can use user on NB interface. Can you raise subtasks for each of these linux_geek?

Comment by Taseer Ahmed [ 12/Aug/18 ]

The API wasn't responding because the feature does not get installed by default. Added and tested that feature with an example playbook.

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