Hi,
I recently downloaded opnewsman and built on my CentOS5 system with the sfcb CIMOM installed and running (actually it has OpenPegasus installed as well). However, after building the the source, I attempted to run the test_Enumeration test and received the following error. I have configured openwsmand to use basic authentication, created the password file for the 'wsman' test user using htpasswd and updated openwsman.conf to point to it. Following are snippets from the outputs for the test_enumeration test harness and
the 'openwsmand -d' command window. Notice the dispatcher error at the very end. Does that mean that openwsman was not able to forward the request to the cimom ? If so, how do I resolve it ?
----- test output -------
Test 1: Enumeration with non existent Resource URI, Checking Fault Subcode: PASSED
Test 2: Enumeration with non existent Resource URI, Checking FaultDetail: PASSED
Test 3: Enumeration with valid Resource URI and Items Count Estimation.: FAILED
Test 4: Enumeration with valid Resource URI.: FAILED
------ openwsmand -d output ---------
Jan 17 13:34:27 [31868] Checking basic for user: wsman; password XXXXX
Jan 17 13:34:27 [31868] user: wsman, passwd: XXXX
Jan 17 13:34:27 [31868] user: wsman, passwd: XXXXX
Jan 17 13:34:27 [31868] do_embedded 1: 875 875
Jan 17 13:34:27 [31868] Server callback started initialy. len = 4095, sent = 0
Jan 17 13:34:27 [31868] Authorization: Basic d3NtYW46c2VjcmV0
Jan 17 13:34:27 [31868] Host: localhost:8889
Jan 17 13:34:27 [31868] Accept: */*
Jan 17 13:34:27 [31868] Content-Type: application/soap+xml;charset=UTF-8
Jan 17 13:34:27 [31868] User-Agent: openwsman 1.5.1
Jan 17 13:34:27 [31868] Content-Length: 875
Jan 17 13:34:27 [31868] Posted request: <?xml version="1.0" encoding="UTF-8"?>
http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumeratehttp://localhost:8889/wsmanhttp://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystemuuid:ca5a86a2-43f1-13f1-8005-a91de0b5ddd2http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
, wsman_msg len = 875
Jan 17 13:34:27 [31868] Inbound call... Request
Jan 17 13:34:27 [31868] <?xml version="1.0" encoding="UTF-8"?>
http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumeratehttp://localhost:8889/wsmanhttp://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystemuuid:ca5a86a2-43f1-13f1-8005-a91de0b5ddd2http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
Jan 17 13:34:27 [31868] uri: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem, action: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate
Jan 17 13:34:27 [31868] namespace: http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
Jan 17 13:34:27 [31868] Dispatcher Error
Jan 17 13:34:27 [31868] dispatch == NULL
Jan 17 13:34:27 [31868] Fault Code: 9
Jan 17 13:34:27 [31868] destroy op
Jan 17 13:34:27 [31868] nothing to destroy...
Jan 17 13:34:27 [31868] Inbound call completed
Jan 17 13:34:27 [31868] message len = 983
Jan 17 13:34:27 [31868] Response (status) 400 ((null))
Jan 17 13:34:27 [31868] HTTP/1.1 400 (null)
Server: openwsman/1.5.1
Content-Type: application/soap+xml;charset=UTF-8
Content-Length: 983
<?xml version="1.0" encoding="UTF-8"?>
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymoushttp://schemas.xmlsoap.org/ws/2004/08/addressing/faultuuid:ca5a86a2-43f1-13f1-8005-a91de0b5ddd2uuid:ca5a8cae-43f1-13f1-8005-a91de0b5ddd2s:Senderwsa:DestinationUnreachableNo route can be determined to reach the destination role defined by the WS-Addressing To.http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/InvalidResourceURI
Thanks
- Shashi
how to use openwsman
hey ppl
how do i go abt using this client side terminal...
wat are the commands that it supports.. i can't seem to get a proper output for it... it keeps giving me error or aborted status..
can someone help me out of it..??
thanks..
Segmentation fault while sending identify request
this is the error that was generated at the client side..
wsman identify -h localhost -P 8889 -u wsman -p secret
Connection failed. response code = 400
server returned nothing (no headers, no data)
*** glibc detected *** wsman: free(): invalid next size (fast): 0x0804e228 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7dc84b6]
/lib/libc.so.6(cfree+0x89)[0xb7dca179]
/usr/lib/libwsman_utils.so.0(u_free+0x21)[0xb7e992b1]
/usr/lib/libwsman_client.so.1(wsmc_options_destroy+0x68)[0xb7eb0318]
wsman[0x804aa9c]
/lib/libc.so.6(__libc_start_main+0xe0)[0xb7d77fe0]
wsman[0x8049941]
======= Memory map: ========
08048000-0804c000 r-xp 00000000 08:02 267295 /usr/bin/wsman
0804c000-0804d000 r--p 00003000 08:02 267295 /usr/bin/wsman
0804d000-0804e000 rw-p 00004000 08:02 267295 /usr/bin/wsman
0804e000-0806f000 rw-p 0804e000 00:00 0 [heap]
b7800000-b7821000 rw-p b7800000 00:00 0
b7821000-b7900000 ---p b7821000 00:00 0
b7998000-b79a2000 r-xp 00000000 08:02 331645 /lib/libgcc_s.so.1
b79a2000-b79a4000 rw-p 00009000 08:02 331645 /lib/libgcc_s.so.1
b79a4000-b79d9000 r--s 00000000 08:02 816148 /var/run/nscd/dbI0OmBU (deleted)
b79d9000-b79da000 rw-p b79d9000 00:00 0
b79da000-b79fd000 r-xp 00000000 08:02 330099 /lib/libm-2.6.1.so
b79fd000-b79ff000 rw-p 00022000 08:02 330099 /lib/libm-2.6.1.so
b79ff000-b7a10000 r-xp 00000000 08:02 330240 /lib/libz.so.1.2.3
b7a10000-b7a12000 rw-p 00010000 08:02 330240 /lib/libz.so.1.2.3
b7a12000-b7a14000 r-xp 00000000 08:02 330097 /lib/libdl-2.6.1.so
b7a14000-b7a16000 rw-p 00001000 08:02 330097 /lib/libdl-2.6.1.so
b7a16000-b7a17000 rw-p b7a16000 00:00 0
b7a17000-b7b44000 r-xp 00000000 08:02 265660 /usr/lib/libcrypto.so.0.9.8
b7b44000-b7b4b000 r--p 0012c000 08:02 265660 /usr/lib/libcrypto.so.0.9.8
b7b4b000-b7b59000 rw-p 00133000 08:02 265660 /usr/lib/libcrypto.so.0.9.8
b7b59000-b7b5d000 rw-p b7b59000 00:00 0
b7b5d000-b7b9c000 r-xp 00000000 08:02 265661 /usr/lib/libssl.so.0.9.8
b7b9c000-b7ba0000 rw-p 0003e000 08:02 265661 /usr/lib/libssl.so.0.9.8
b7ba0000-b7bd0000 r-xp 00000000 08:02 928471 /usr/lib/libidn.so.11.5.29
b7bd0000-b7bd2000 rw-p 0002f000 08:02 928471 /usr/lib/libidn.so.11.5.29
b7bd2000-b7c08000 r-xp 00000000 08:02 928621 /usr/lib/libcurl.so.4.0.0
b7c08000-b7c0a000 rw-p 00036000 08:02 928621 /usr/lib/libcurl.so.4.0.0
b7c0a000-b7d43000 r-xp 00000000 08:02 265363 /usr/lib/libxml2.so.2.6.30
b7d43000-b7d46000 r--p 00139000 08:02 265363 /usr/lib/libxml2.so.2.6.30
b7d46000-b7d49000 rw-p 0013c000 08:02 265363 /usr/lib/libxml2.so.2.6.30
b7d49000-b7d4b000 rw-p b7d49000 00:00 0
b7d4b000-b7d5e000 r-xp 00000000 08:02 330117 /lib/libpthread-2.6.1.so
b7d5e000-b7d60000 rw-p 00013000 08:02 330117 /lib/libpthread-2.6.1.so
b7d60000-b7d62000 rw-p b7d60000 00:00 0
b7d62000-b7e8f000 r-xp 00000000 08:02 330091 /lib/libc-2.6.1.so
b7e8f000-b7e90000 r--p 0012c000 08:02 330091 /lib/libc-2.6.1.so
b7e90000-b7e92000 rw-p 0012d000 08:02 330091 /lib/libc-2.6.1.so
b7e92000-b7e95000 rw-p b7e92000 00:00 0
b7e95000-b7ea2000 r-xp 00000000 08:02 267263 /usr/lib/libwsman_utils.so.0.0.0
b7ea2000-b7ea4000 rw-p 0000c000 08:02 267263 /usr/lib/libwsman_utils.so.0.0.0
b7ea4000-b7ea5000 rw-p b7ea4000 00:00 0
b7ea5000-b7ea9000 r-xp 00000000 08:02 267294 /usr/lib/libwsman_curl_client_transport.so.1.0.0
b7ea9000-b7eab000 rw-p 00003000 08:02 267294 /usr/lib/libwsman_curl_client_transport.so.1.0.0
b7eab000-b7eb1000 r-xp 00000000 08:02 267290 /usr/lib/libwsman_client.so.1.0.0
b7eb1000-b7eb3000 rw-p 00005000 08:02 267290 /usr/lib/libwsman_client.so.1.0.0
b7eb3000-b7ecc000 r-xp 00000000 08:02 267260 /usr/lib/libwsman.so.1.0.0
b7ecc000-b7ece000 rw-p 00018000 08:02 267260 /usr/lib/libwsman.so.1.0.0
b7ece000-b7ecf000 rw-p b7ece000 00:00 0
b7ef9000-b7f13000 r-xp 00000000 08:02 330084 /lib/ld-2.6.1.so
b7f13000-b7f15000 rw-p 0001a000 08:02 330084 /lib/ld-2.6.1.so
bf940000-bf956000 rw-p bf940000 00:00 0 [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
Aborted
This is the error that was generated at the server side...
/usr/sbin/wsmand --debug
May 23 15:52:59 [32039] Loading plugin: /usr/lib/openwsman/plugins/libwsman_test.so
May 23 15:52:59 [32039] Loading plugin: /usr/lib/openwsman/plugins/libwsman_identify_plugin.so
May 23 15:52:59 [32039] Loading plugin: /usr/lib/openwsman/plugins/libwsman_cim_plugin.so
May 23 15:52:59 [32039] Plugin 'Test', version: 1.2.0
May 23 15:52:59 [32039] Plugin 'IdentifyResponse', version: 1.2.0
May 23 15:52:59 [32039] reading configuration file options
May 23 15:52:59 [32039] vendor namespaces: OpenWBEM=http://schema.openwbem.org/wbem/wscim/1/cim-schema/2,Linux=http://sblim.sf.net/wbem/wscim/1/cim-schema/2,OMC=http://schema.omc-project.org/wbem/wscim/1/cim-schema/2
May 23 15:52:59 [32039] cim namespace: root/cimv2
May 23 15:52:59 [32039] Registering inteface
May 23 15:52:59 [32039] Plugin 'CIM Resource', version: 1.2.0
May 23 15:52:59 [32039] make new callback entry
May 23 15:52:59 [32039] make new callback entry
May 23 15:52:59 [32039] Registering 3 plugins
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/transfer/Get
May 23 15:52:59 [32039] Registering endpoint for Get
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate
May 23 15:52:59 [32039] Registering endpoint for Enumerate
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull
May 23 15:52:59 [32039] Registering endpoint for Pull
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Release
May 23 15:52:59 [32039] Registering endpoint for Release
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/transfer/Put
May 23 15:52:59 [32039] Registering endpoint for Put
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: (null)
May 23 15:52:59 [32039] Registering endpoint for Identify
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/transfer/Get
May 23 15:52:59 [32039] Registering endpoint for direct Get
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/transfer/Put
May 23 15:52:59 [32039] Registering endpoint for direct Put
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/transfer/Create
May 23 15:52:59 [32039] Registering endpoint for direct Create
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete
May 23 15:52:59 [32039] Registering endpoint for Delete
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate
May 23 15:52:59 [32039] Registering endpoint for Enumerate
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull
May 23 15:52:59 [32039] Registering endpoint for direct Pull
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Release
May 23 15:52:59 [32039] Registering endpoint for Release
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe
May 23 15:52:59 [32039] Registering endpoint for Subscribe
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe
May 23 15:52:59 [32039] Registering endpoint for Unsubscribe
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.dmtf.org/wbem/wsman/1/wsman/Pull
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull
May 23 15:52:59 [32039] Registering endpoint for Pull
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Registering Endpoint: (null)
May 23 15:52:59 [32039] Registering endpoint for private EndPoint
May 23 15:52:59 [32039] Creating dispatch
May 23 15:52:59 [32039] Basic File authentication uses password file: /etc/openwsman/simple_auth.passwd
May 23 15:52:59 [32039] Working on port 8889
May 23 15:52:59 [32039] Using Digest Authorization
May 23 15:52:59 [32039] Using Basic Authorization libwsman_file_auth.so
May 23 16:09:37 [32039] Sock 4 accepted
May 23 16:09:37 [32039] Creating new thread. Old num_threads = 0
May 23 16:09:37 [32039] Thread -1222591600 created
May 23 16:09:37 [32039] shttpd thread -1222591600 started. num_threads = 1
May 23 16:09:37 [32039] Thread -1222591600 handles sock 4
May 23 16:09:37 [32039] do_init: initialized context 0x8059550
May 23 16:09:37 [32039] Using Digest Authorization
May 23 16:09:37 [32039] Using Basic Authorization libwsman_file_auth.so
May 23 16:09:37 [32039] shttpd_add: ctx 0x8059550, sock 4, conn 0x805aed8
May 23 16:09:37 [32039] 4 readable
May 23 16:09:37 [32039] serve: enter 0x805aed8: local 0.0.0, remote 0.0.0
May 23 16:09:37 [32039] serve: readremote returned 397
May 23 16:09:37 [32039] handle: [POST /wsman HTTP/1.1
Host: localhost:8889
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: openwsman 1.2.0
Content-Length: 238
<?xml version="1.0" encoding="UTF-8"?>
]
May 23 16:09:37 [32039] senderr: [HTTP/1.1 401 Unauthorized
Connection: close
WWW-Authenticate: Digest qop="auth", realm="OPENWSMAN", nonce="1211539177"
WWW-Authenticate: Basic realm="OPENWSMAN"
401 Authorization required]
May 23 16:09:37 [32039] serve: exit 0x805aed8: local 1.193.0, remote 0.397.0
May 23 16:09:37 [32039] sock 4 ready to write from 0 to 193
May 23 16:09:37 [32039] serve: enter 0x805aed8: local 1.193.0, remote 0.397.0
May 23 16:09:37 [32039] writeremote: 193 193 193 0 171 0 [22: Invalid argument]
May 23 16:09:37 [32039] serve: writeremote returned 193
May 23 16:09:37 [32039] serve: exit 0x805aed8: local 1.0.0, remote 0.397.0
May 23 16:09:37 [32039] disconnecting 0x805aed8
May 23 16:09:37 [32039] Thread -1222591600 processed sock 4
May 23 16:09:37 [32039] Thread -1222591600 goes to idle state
May 23 16:09:37 [32039] Sock 4 accepted
May 23 16:09:37 [32039] using idle thread. idle_threads = 1
May 23 16:09:37 [32039] Thread -1222591600 handles sock 4
May 23 16:09:37 [32039] do_init: initialized context 0x8059550
May 23 16:09:37 [32039] Using Digest Authorization
May 23 16:09:37 [32039] Using Basic Authorization libwsman_file_auth.so
May 23 16:09:37 [32039] shttpd_add: ctx 0x8059550, sock 4, conn 0x805aed8
May 23 16:09:37 [32039] 4 readable
May 23 16:09:37 [32039] serve: enter 0x805aed8: local 0.0.0, remote 0.0.0
May 23 16:09:37 [32039] serve: readremote returned 579
May 23 16:09:37 [32039] handle: [POST /wsman HTTP/1.1
Authorization: Digest username="wsman", realm="OPENWSMAN", nonce="1211539177", uri="/wsman", cnonce="MTIxMTUz", nc=00000001, qop="auth", response="23f17694636e0918b70231f780984773"
Host: localhost:8889
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: openwsman 1.2.0
Content-Length: 238
<?xml version="1.0" encoding="UTF-8"?>
]
May 23 16:09:37 [32039] [wsman] [/wsman] [23f17694636e0918b70231f780984773] [auth] [MTIxMTUz] [00000001]
May 23 16:09:37 [32039] Checking for user: wsman in digest
May 23 16:09:37 [32039] Checking for user: wsman in digest
May 23 16:09:37 [32039] user: wsman, realm: OPENWSMAN, ha1: 5a659df1ac36d2f4eb84092145532919
May 23 16:09:37 [32039] check response
May 23 16:09:37 [32039] expected: 23f17694636e0918b70231f780984773, actual: 23f17694636e0918b70231f780984773
May 23 16:09:37 [32039] do_embedded 1: 238 238
May 23 16:09:37 [32039] Server callback started initialy. len = 4095, sent = 0
May 23 16:09:37 [32039] Authorization: Digest username="wsman", realm="OPENWSMAN", nonce="1211539177", uri="/wsman", cnonce="MTIxMTUz", nc=00000001, qop="auth", response="23f17694636e0918b70231f780984773"
May 23 16:09:37 [32039] Host: localhost:8889
May 23 16:09:37 [32039] Accept: */*
May 23 16:09:37 [32039] Content-Type: application/soap+xml;charset=UTF-8
May 23 16:09:37 [32039] User-Agent: openwsman 1.2.0
May 23 16:09:37 [32039] Content-Length: 238
May 23 16:09:37 [32039] Posted request: <?xml version="1.0" encoding="UTF-8"?>
May 23 16:09:37 [32039] Inbound call...
Segmentation fault
plz help i need to get this thing working soon...
thanks...
I need appropriate PKG!!
I wanna use Openwsman ,run on Centos5, and operate CIMOM.
In this case, what package I should use?
Thanks
Error while running openwsman tests - UPDATED
I got a bit farther. Apparently I didnt have SFCC installed before I built OpenWsman (RTFM, eh?). Hence the CIM plugin was not being built. After downloading SFCC and reconfiguring OpenWsman I am now at a point where the test_enumeration test is failing trying to do EnumInstances() on CIM_ComputerSystem (i.e. only 1 of the several tests is failing). I guess this time, its really not able to talk to the CIMOM.
it depends on the
it depends on the environment, these test cases are not expected to work with any CIMOM or set of providers. Different systems might have more instances than others, and thats where it fails in this case.