-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added pywbemlistener command #971
Conversation
62ecc4f
to
4cddb41
Compare
4cddb41
to
714bfc1
Compare
714bfc1
to
1432e95
Compare
a880e4c
to
e7f3d9b
Compare
DISCUSSION-DONE: How to specify the indication processing options Proposal:
The latest update of the PR implements this proposal. Update: We decided to go with this proposal for now and adjust as we learn. |
993b3e5
to
cdacaeb
Compare
d31a3e6
to
1b4aa55
Compare
1b4aa55
to
3d10953
Compare
79307aa
to
e779ae2
Compare
DISCUSSION: How to specify logging There are some differences to pywbemcli: In pywbemcli, logging is basically deferred to pywbem which makes sense for that command. One pywbemcli invocation deals with one WBEM server, and each invocation can specify a separate log file if needed. In case of pywbemlistener, there are multiple listeners running, each of which should log to a separate file. Another difference is that in pywbemlistener we want to simply log stdout/stderr of the run commands and not internal APIs or HTTP protocol (even though that could be added at some point). Proposal:
The latest update of the PR implements this proposal. COMMENT:KS I have no problems with this proposal. |
e779ae2
to
ef2f931
Compare
ef2f931
to
f831765
Compare
I did some review and made some comments. I am testing with open pegasus but getting inconsistent results from pegasus test indcation provider for some reason. I have gotten display in some cases but not all. |
I thin a flag that would provide summary results either to a running listener or to one closing (number received, starttim, end time,) I am going to continue to test with openpegasus to sort out why I am having issues getting indications on consistent basis. |
f831765
to
0bad58e
Compare
Some test results from pegasus ===================================
==================================================
============================================
============================================== Test with indi-call where i created a new package with one very simple function
Produces
============================================== |
did first test of the MODULE.FUNCTION capability shown above but to do it I created a temp package. I did not figure out how to defined a module alone. (I assumed it would be a python file at the directory level of the call but that did not work). When I execute sys.path in python 3.9, the current directory shows up in the list. ..'/home/kschopmeyer/pywbem/pycli39issue395/pywbemtools'] |
On using Single-file module:
Package:
Both approaches require that Python includes the current directory in its module search path. I have verified that
DISCUSSION: Can you please verify whether the current directory is in your The latest update to this PR adds the current directory to the module search path before we import the module with the callback function. NOTE: Tested on latest version over weekend and it works. Can use module in current directory or a package. |
b0a95f5
to
257e0f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that a number of the comments are ideas. Thus, if we can do the count through the function call, that would be fine with me for now. Most important. I thin that functionally this is very close to merge and merging it is more important that more functionality right now. That way I can work with it while you are gone.
NOTE: I have tested most of the functionality using OpenPegasus as indication generator. But this is only with http. Have not tested https at all but I can do that after this commit. We do have an issue between the OpenPegasus test indication and listener when I send significant groups of indications, ex. 100 at a time. Works a few times and then slows down and/or stops. I do not know which side is the issue. Note that the first group passes VERY fast (within a couple of seconds). I suspect OpenPegasus but it is going to take more detailed testing to sort that out. |
We agreed in the meeting to merge this PR with the changes as documented. |
Details: * Added a new 'pywbemlistener' command that manages WBEM indication listeners. (see issue #430) * Removed Python 3.4 on Windows from GitHub Actions tests, because this environment does not have the Microsoft Visual C++ 10.0 compiler needed for building the 'psutils' package. Signed-off-by: Andreas Maier <[email protected]>
257e0f9
to
3850827
Compare
At this point, the new 'pywbemlistener' command is ready for review and merge.
For details, see commit message.
DEFERRED to separate issues:
DROPPED: