Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] Re: [BWCTL MP] Functional Test

Subject: perfsonar development work

List archive

Re: [pS-dev] Re: [BWCTL MP] Functional Test


Chronological Thread 
  • From: Loukik Kudarimoti <>
  • To: Stijn Melis <>
  • Cc: Verena Venus <>, "" <>,
  • Subject: Re: [pS-dev] Re: [BWCTL MP] Functional Test
  • Date: Tue, 16 Jan 2007 11:06:45 +0000

Hi,

Verena, can you please create a product in bugzilla (something like BWCTL MP - $version - $releaseCandidateNumber )
Stijn, once this product is created, can you please use bugzilla to enter bug reports?

Thanks,
Loukik.

Stijn Melis wrote:
Hi again,

I got the BWCTL MP running in Fedora (in VMWare) now, and I can contact it in my Windows machine using Firefox and port 8090 as you described.

I tried to send a request XML (the first example in the Interface Specification for BWCTL MP document, with source and destination IP changed of course) using a class that Stijn V. also used to test his Telnet/SSH MP (it's just using SOAP to send an XML message to a specific endpoint, and from what I've seen it doesn't do anything specific related to Telnet/SSH). According to the output I get in Eclipse the message reaches the MP and then gives an error (see attachment). From what I believe the MP should return an XML message either stating there was a fault in the request XML, or an answer to the request, is this correct? Since I know nothing about PERL I also haven't checked what the error is about.

As for that Debian installation, I noticed I forgot to mention something in that txt file I sent you earlier. Sorry about that. It's more complicated then just changing some priorities, hence I'm not sure it will work on Debian, but I will try to look into that as well. I also attached that (changed) file.

Regards,

Stijn


Verena Venus wrote:
Hi Stijn,

Am Friday 05 January 2007 15:47 schrieb Stijn Melis:
Hi,

First of all I'd probably better introduce myself. To keep it short, I
am the person who will take over the implementation from Stijn
Verstichel from now on. At the moment Stijn is still guiding me through
the whole perfsonar project though.

Welcome to the Community!

I am trying to do some functional tests on the perl-perfsonar-0.2 you
sent to Loukik earlier.
First of all I tried to install it on a Debian Linux machine, but that
didn't work so well (see also the text file I attached). Since we have
no Fedora terminals here at the moment, I made one in VMWare from
scratch which I will use to perform the tests (until I have a Fedora
terminal at my disposal). Everything worked great until I tried the
./test --path=/opt/perfsonar command. There was a slight problem with
permissions (see also the text file I attached).
I got the test command to work though, so I guess my installation could
be considered successful.

Hmm, looking at the fixes you've done, it should work on debian also. I would be very interested in testing results also from debian. Ideally, it should not matter which linux installation the service is running on. However, we cannot support any other platform (like windows for example) at the moment.

So, for the functional testing itself. I read your documents about the
interfaces, the installation and the functional specifications for BWCTL
MP, and I understand the schemas etc. I downloaded the soapUI on my
Windows desktop machine, which I would use as a client to send the
xml-Requests. I need a wsdl for soapUI though, and I can't seem to find
one that corresponds to the BWCTL MP.

Yes, the WSDL is a problem. Jochen considered this in his email informing about soapUI:
"[...]
There are some problems with soapUI that are more or less perfSONAR/NMWG specific. NMWG's request/response cannot be described using WSDL, like it should normally be done when using web services. Please note: My knowledge about SOAP and WSDL is far from being perfect! If you know how to describe a perfSONAR/NMWG service using WSDL or if you already have a WSDL file, please inform me about it! Having one will make functional testing for the described service possible in a few hours!

On the other hand it's no great problem to work around the WSDL problem. WSDL cannot (yet) use RNC/RNG for schema description, but both can be converted to XML Schema (XSD) using e.g. trang. Since XML Schema is not as powerful as Relax-NG I have some problems at the moment. [...]"

As for the perl-perfsonar running in Fedora (VMWare), how do I know
where to contact it?

By default, the service is running on port 8090. (You can change this in the configuration file [see configuration file manual of the documentation] or by starting the service with --port=<portnumber>).
You should also provide /services/MP/BWCTL as URI in your request.
I think, I should add a section about using the service in the installation documentation.

If you could guide me a little bit in how to start a functional test,
I'd be most grateful.

First of all, you should ensure that the service is working correctly when receiving the example request files (see interface specification document). If this is the case, try to get errors :)

Probably Michalis can explain funcitonal testing in general to you. If you have specific questions about BWCTL feel free to ask me. For questions on soapUI Jochen knows it best.

mail addresses:
- Michael Michalis
<>
- Jochen Reinwand
<>

Kind regards,
Verena

------------------------------------------------------------------------

Delivering Requests via SOAPClient...
End point: http://192.168.217.129:8090/services/MP/BWCTL
Request file: D:\test/RequestFile0.xml
Response file: D:\testoutput/Response_RequestFile0.xml
SOAPClient.makeRequest: General exception encountered by client
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode: faultString: Can't call method &quot;documentElement&quot; on an undefined value at /opt/perfsonar/bin/../lib/NMWG/Message.pm line 67.

faultActor: http://localhost.localdomain:8090/
faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:Can't call method &quot;documentElement&quot; on an undefined value at /opt/perfsonar/bin/../lib/NMWG/Message.pm line 67.

at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:1792)
at
org.perfsonar.service.measurementPoint.lookingGlassType.tests.SOAPClient.makeRequest(SOAPClient.java:98)
at
org.perfsonar.service.measurementPoint.lookingGlassType.tests.RequestDeliverer.sendRequests(RequestDeliverer.java:69)
at
org.perfsonar.service.measurementPoint.lookingGlassType.tests.RequestDeliverer.main(RequestDeliverer.java:81)

{http://xml.apache.org/axis/}hostname:wilde

Can't call method "documentElement" on an undefined value at
/opt/perfsonar/bin/../lib/NMWG/Message.pm line 67.

at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:1792)
at
org.perfsonar.service.measurementPoint.lookingGlassType.tests.SOAPClient.makeRequest(SOAPClient.java:98)
at
org.perfsonar.service.measurementPoint.lookingGlassType.tests.RequestDeliverer.sendRequests(RequestDeliverer.java:69)
at
org.perfsonar.service.measurementPoint.lookingGlassType.tests.RequestDeliverer.main(RequestDeliverer.java:81)
Client exiting
Requests were delivered and Responses are stored in selected directory.
------------------------------------------------------------------------

Debian Linux Distribution
-------------------------

./pre-install

-> libxml2-dev also needed, causes errors to happen (I installed
libxml2-dev using apt-get
and that fixed the problem)

./configure

-> ok

./deploy

-> error: /usr/sbin/groupadd: invalid option -- r
usage: groupadd [-g gid [-o]] group
/usr/sbin/useradd: invalid option -- r
usage: useradd [-u uid [-o]] [-g group] [-G group,...]
[-d home] [-s shell] [-c comment] [-m [-k
template]]
[-f inactive] [-e expire ] [-p passwd] name
useradd -D [-g group] [-b base] [-s shell]
[-f inactive] [-e expire ]

Fix: remove -r option from both commands

./test
if user is 'root' and perfsonar user is the standard
perfsonar/perfsonar group/user
-> error: Can't exec "/etc/init.d/perfsonar": Permission denied at
./test line 18.
Can't exec "/etc/init.d/perfsonar": Permission denied at
./test line 19.

Fix: use chmod on /etc/init.d/perfsonar to make it executable

-> error: /etc/init.d/perfsonar: line 10: /etc/rc.d/init.d/functions:
No such file or directory
/etc/init.d/perfsonar: line 13: /etc/sysconfig/network: No
such file or directory
Starting perfsonar.pl: /etc/init.d/perfsonar: line 43:
daemon: command not found

/etc/init.d/perfsonar: line 10: /etc/rc.d/init.d/functions:
No such file or directory
/etc/init.d/perfsonar: line 13: /etc/sysconfig/network: No
such file or directory
Shutting down perfsonar.pl: /etc/init.d/perfsonar: line 50:
killproc: command not found

There is no /etc/rc.d/init.d directory in Debian
There is no /etc/sysconfig directory in Debian
There is also no deamon and killproc process in Debian

Fix: at the moment I don't now, and I honestly haven't
checked yet.


Clean Fedora Linux Distribution in VMWare
-----------------------------------------

./pre-install -> OK
./configure -> OK
./deploy -> OK
./test -> Test Perfsonar Deamon
Can't exec "/etc/init.d/perfsonar": Permission denied at
./test line 17.
Can't exec "/etc/init.d/perfsonar": Permission denied at
./test line 18.
==> FIX: chmod 755 /etc/init.d/perfsonar
If you try ./test again, you get this:
Test perfsonar demaon....
Starting perfsonar.pl: -bash:
/opt/perfsonar/bin/perfsonar.pl: Permission denied

[FAILED]
Shutting down perfsonar.pl:
[FAILED]
==> FIX: chmod 755 /opt/perfsonar/bin/perfsonar.pl




Archive powered by MHonArc 2.6.16.

Top of Page