[INTPAK-11] Fix puppet-opendaylight username/password test curl hang Created: 01/Nov/17  Updated: 17/Nov/17  Resolved: 17/Nov/17

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

Type: Bug Priority: High
Reporter: Daniel Farrell Assignee: Tim Rozet
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

11:33:45 Failures:
11:33:45
11:33:45 1) opendaylight class testing odl username/password using default username/password using non-default bind ip Command "sleep 180 && curl -o /dev/null --fail --silent --head -u admin:admin http://127.0.0.1:8080/restconf" exit_status should eq 0
11:33:45 Failure/Error: its(:exit_status)

Unknown macro: { should eq 0 }


11:33:45  
11:33:45  expected: 0
11:33:45  got: 7
11:33:45  
11:33:45  (compared using ==)
11:33:45  
11:33:45 # ./spec/spec_helper_acceptance.rb:385:in `block (2 levels) in username_password_validations'
11:33:45
11:33:45 Finished in 5 minutes 53 seconds (files took 54.73 seconds to load)
11:33:45 160 examples, 1 failure
11:33:45
11:33:45 Failed examples:
11:33:45
11:33:45 rspec ./spec/acceptance/class_spec.rb[1:6:1:1:3:1:1] # opendaylight class testing odl username/password using default username/password using non-default bind ip Command "sleep 180 && curl -o /dev/null --fail --silent --head -u admin:admin http://127.0.0.1:8080/restconf" exit_status should eq 0

https://logs.opendaylight.org/releng/jenkins092/puppet-test-full-master/230/console.log.gz

Looks like it's happening in all recent puppet-opendaylight jobs. For puppet-test-full, #201 on October 17th was the last daily job to pass. For puppet-test-sanity, #166 on October 17th was the last job to pass. No changes were merged into puppet-opendaylight between those passing build and the current failing builds. The patches that went in most recently before things broke was 4 days before (so daily jobs should have caught it before the 17th) and the verify jobs passed for the change.



 Comments   
Comment by Daniel Farrell [ 02/Nov/17 ]

I think this is related to an issue with the ODL AAA Jolokia feature this puppet-opendaylight logic uses under the hood.

Originally reported in RH BZ 1507856 and then raised for discussion on this related odlparent email thread.

This is a major problem, but it's not in puppet-opendaylight.

Comment by Janki Chhatbar [ 08/Nov/17 ]

I am not sure if that BZ is the reason. Username and password still comes from idmtool, as before, which has nothing to do with Jolokia.

Comment by Daniel Farrell [ 16/Nov/17 ]

I don't know what's causing the problem, but I have a patch to disable the test to get the verify job running while we figure it out.

https://git.opendaylight.org/gerrit/#/c/65596/

Comment by Tim Rozet [ 17/Nov/17 ]

Turns out the problem is odl-restconf is not being installed from the /opt/opendaylight/etc/org.apache.karaf.features.cfg file

If I install it manually in karaf shell, test works fine.

Comment by Tim Rozet [ 17/Nov/17 ]

Fixed by: https://git.opendaylight.org/gerrit/#/c/63239/

Comment by Tim Rozet [ 17/Nov/17 ]

This is really a bug in ODL: https://jira.opendaylight.org/browse/ODLPARENT-131

The changes in puppet-odl simply work around the problem.

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