Bug 810893 - reporting results and return2beaker doesn't work over Ipv6 (RHEL7 criteria)
Summary: reporting results and return2beaker doesn't work over Ipv6 (RHEL7 criteria)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: beah
Version: 0.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 0.15.3
Assignee: Amit Saha
QA Contact: Ales Zelinka
URL:
Whiteboard: Misc
Depends On:
Blocks: 593663 872571 986153
TreeView+ depends on / blocked
 
Reported: 2012-04-09 14:59 UTC by Ales Zelinka
Modified: 2018-02-06 00:41 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-03 05:00:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Ales Zelinka 2012-04-09 14:59:40 UTC
Description of problem:
I can't return reserved machine if ipv4 address isn't up.


Steps to Reproduce:
1. reserve machine
2. remove ipv4 address
3. return2beaker
  
Actual results:
Unable to connect to server, sleeping 5 seconds...
Unable to connect to server, sleeping 5 seconds...
Unable to connect to server, sleeping 5 seconds...
Unable to connect to server, sleeping 5 seconds...
Unable to connect to server, sleeping 5 seconds...
Unable to connect to server, sleeping 5 seconds...



Expected results:
machines returns to beaker just fine

Additional info:
I need to make sure IPv6 codepaths work in various components. Because beaker doesn't support direct provisioning, I want to provision machines as usual (with dualstack),cripple IPv4 and then run the actual tests. All automated.

Comment 1 Ales Zelinka 2012-04-09 21:13:40 UTC
And reporting results back to beaker doesn't work either. If I cut ipv4 the job gets eventually killed by external watchdog.

Comment 2 Bill Peck 2012-04-12 14:24:53 UTC
I can see one major issue right away in beah where we reference 127.0.0.1 instead of localhost.  

-        self.env['RESULT_SERVER'] = "%s:%s%s" % ("127.0.0.1", port, "")
+        self.env['RESULT_SERVER'] = "%s:%s%s" % ("localhost", port, "")


Testing this now.

Comment 3 Bill Peck 2012-04-12 17:41:11 UTC
Can you give me the steps you used to remove ipv4?

Comment 5 Bill Peck 2012-04-12 18:17:56 UTC
on my system it shows:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

Which seems right to me.  I can't imagine how we would do it otherwise.

Comment 6 Ales Zelinka 2012-04-19 13:57:56 UTC
(In reply to comment #2)
> Testing this now.

Bill, how did the test go? Do you need me to provide additional info or help with testing? Just let me know.

Thanks

Comment 9 Bill Peck 2012-09-12 19:46:12 UTC
I was not able to make any more progress on this.  I started doing additional research on twisted.reactor which is used to receive the xmlrpc calls from return2rhts and all the rhts coomands and it doesn't support IPV6.  See the following:

http://twistedmatrix.com/trac/ticket/3014

http://stackoverflow.com/questions/6217312/is-it-possible-to-use-twisted-with-ipv6

The only option would be to use a different harness than beah.

Comment 10 Nick Coghlan 2012-10-17 04:38:49 UTC
Bulk reassignment of issues as Bill has moved to another team.

Comment 11 Min Shin 2012-11-22 03:41:26 UTC
ncoghlan: we still have the problem of Twisted's IPv6 support be somewhat sketchy, and the beah test harness relies on Twisted, so we can't promise too much on this front. Twisted isn't a dependency we'll upgrade lightly, and even the latest version doesn't have full IPv6 support.

Bumping out of 0.11.

Comment 12 Nick Coghlan 2013-06-13 07:38:43 UTC
Note that the autotest team are working on integration with Beaker's stable harness API, which may provide an alternative avenue for pure IPv6 testing:
http://beaker-project.org/dev/tech-roadmap.html#autotest-support

Comment 13 Ondrej Hudlicky 2013-09-12 15:07:02 UTC
BaseOS QE Team is still partially blocked in IPv6 userspace testing in Beaker due to this bug. Could you recommend some solution until the issues is fully fixed? 
Workaround described by Jan in comment 8 is not reliable.

Comment 14 Nick Coghlan 2013-09-13 05:13:12 UTC
Unfortunately, the old version of Twisted in RHEL6 is still a problem when it comes to getting beah to handle this, and we're not keen to further increase beah's footprint on the system by installing a parallel version.

Bill, is the autotest alternative harness mature enough to potentially be used for IPv6 only testing? (or would Don be in a better position to answer that?)

Comment 15 Don Zickus 2013-09-18 15:35:59 UTC
Hi Nick,

Unfortunately, no.  The autotest work I have done still needs to have its tires kicked and various small pieces that fall out, cleaned up. :-(

Cheers,
Don

Comment 16 Ondrej Hudlicky 2013-09-23 17:04:17 UTC
Is there some alternative for RHEL7? That would be sufficient I believe.

Comment 18 Nick Coghlan 2013-09-24 05:27:29 UTC
Something that may be worth trying is creating an "opt-beah" alternative harness that installs and runs a Python virtualenv from /opt (so still using the system Python, but not any other system packages).

Then we can experiment with getting IPv6 support working there, without risking the stability of mainline beah in the meantime.

Comment 19 Nick Coghlan 2013-09-30 00:47:22 UTC
I suggest we go ahead with the idea of creating a "beah-ipv6" harness to see if we can get this working. While this will happen in the 0.16 timeframe, it should be made available for testing prior to that (since a new test harness can be published without upgrading Beaker)

Suggested approach is to create a "beah-ipv6" RPM that installs an /opt/beah-ipv6 directory containing the latest Twisted release and a potentially modified version of beah (and possibly upgraded versions of other dependencies).

Comment 22 Nick Coghlan 2013-11-12 05:44:50 UTC
Just a note that while we're working on further decoupling beah's release cycle to make it easier to work on a beah-ipv6 variant, Don and Bill are making progress on using autotest and restraint to run Beaker tasks. I'm not sure about their multihost testing support, though.

Restraint (aka "simple harness"): https://github.com/p3ck/restraint

Current state of the autotest integration: https://lists.fedorahosted.org/pipermail/beaker-devel/2013-November/000843.html

Comment 24 Ales Zelinka 2013-11-26 11:19:18 UTC
(In reply to Nick Coghlan from comment #22)
> Restraint (aka "simple harness"): https://github.com/p3ck/restraint

Can I use it already to test for compatibility with our existing tests? How?

Comment 25 Bill Peck 2013-11-26 13:05:38 UTC
(In reply to Ales Zelinka from comment #24)
> (In reply to Nick Coghlan from comment #22)
> > Restraint (aka "simple harness"): https://github.com/p3ck/restraint
> 
> Can I use it already to test for compatibility with our existing tests? How?

Soon, very very soon.  I'll send you an email in a few days with a pointer.

Comment 26 Ben Levenson 2013-12-06 16:00:58 UTC
(In reply to Bill Peck from comment #25)
> > Can I use it already to test for compatibility with our existing tests? How?
> 
> Soon, very very soon.  I'll send you an email in a few days with a pointer.

Any updates Bill?

Comment 27 Bill Peck 2013-12-06 16:06:46 UTC
Hi Ben,

The Thanksgiving holiday slowed me down.  I'll post what I have at the end of Today.  Right now I can run most of KernelTier1 testing.  Here is what doesn't work:

- It doesn't parse guest recipes right now.
- It doesn't check for avc denials.

The avc denials I'm planning to solve with a plugin architecture.  This is what I'm working on right now.

I've also broken some of our unit tests when moving things from for(;;) loops to event based model.

At a minimum I'll point to the pre-compiled binaries I have and the git code.

Comment 28 Amit Saha 2014-01-16 06:46:19 UTC
Patch on Gerrit: http://gerrit.beaker-project.org/#/c/2694/1

Comment 29 Nick Coghlan 2014-01-21 09:06:15 UTC
Just to make the scope of this bug explicit:

Mandatory: reporting results and return2beaker must work for single host testing with IPv4 support on the test system disabled

Mandatory: multihost IPv4 only and IPv4/IPv6 dual stack testing using hostnames (resolving to IPv4 addresses) still works

Desirable: multihost IPv6 only and IPv4/IPv6 dual stack testing using host IPv6 addresses also works

However, if we get to a point where single host testing is working on IPv6 only systems, but multihost testing is not, then we will still close this bug and release a new version of the default harness, and clone it to a new bug to track getting the IPv6 based multihost testing working reliably.

(We may still decide to do the latter regardless, just to track the *testing* for that separately, since it's significantly more complicated than the singlehost testing)

Comment 37 Nick Coghlan 2014-02-03 05:00:03 UTC
This change was included in the beah 0.7.0-1 release and can now be deployed via a harness repo update.

http://beah.readthedocs.org/en/latest/releases.html#beah-0-7-0


Note You need to log in before you can comment on or make changes to this bug.