-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
support AIX #605
Comments
Yes, AIX is not supported. Considering that this is a niche platform and that I don't have access to any AIX box it's very unlikely this is gonna get pushed forward, unless somebody steps in and decides to contribute a patch. |
I started working on this here: Infinidat@2d037eb |
will be interested on that too... :) |
@wiggin15 what's the status of that branch of yours? What APIs are not implemented? |
We're using it here at my company. I think it is mostly stable. There are 10 API functions not implemented (5 of them are methods of the Process class) but I added documentation and disabled them for AIX in the latest commit. See https://github.com/Infinidat/psutil/commits/aix (Please note that the AIX branch is also rebased on top of the branch in pull request #610 which is also not merged yet) |
I'm sorry but IMO 10 unsupported APIs means this is not acceptable/ready for inclusion yet. It would mean over complicating the existent code and tests with |
@wiggin15: looking back at this. I wonder if it's possible to install AIX on a laptop / virtualbox so that I can try to take a look at this myself. https://github.com/Infinidat/psutil/blob/aix/psutil/_psutil_aix.c looks similar to the Solaris implementation, which is encouraging. |
I'm afraid AIX runs only on PowerPC architecture, and virtualization technologies like VirtualBox/VMWare etc. can't run it (IBM have their own virtualization solution called VIOS, but it requires a PowerPC server). I don't know how I can help with that. |
I updated the branch and it's now down to only two missing methods. |
What are the 2 missing methods? Could you paste a test result? |
I committed this file with the missing methods and a list of failing tests: |
This is very good progress. Kudos to you!
This is weird as there shouldn't be any subprocess (parent of
Does ps show the full cmdline? If there's no way to obtain the full cmdline I would add a
If there's no way to implement
Same here: remove support, skip test and update doc.
Does ps show a name? If so you can enforce that name in pure python as in
You can simply skip this test. |
Thanks for the feedback.
|
So you may want to look at how you determine process creation time because that is what is used to identify a process uniquely over time. It may be that creation time has a C overflow / typing issue similarly to ppid.
Maybe it's PID 0? In that case I recommend to return the boot time (instead of 0) in pure python as in
I see. OK.
In this case skip the tests on both platforms. |
@wiggin15 wondering if there is any further work for support of AIX or has the work been dropped ? |
Hi @dmurphy18 . We're still using the AIX branch at our company and I'm rebasing it over master from time to time, but I stopped working on the tests. All the tests left to fix are due to quirky behavior on AIX so I don't know how to proceed with those. @giampaolo I don't think there's a fix to the tests that fail, they just won't work on AIX, so the options are:
|
@wiggin15 can you please re-base from latest master and paste the output failures? If somehow you could give me access to the AIX box via SSH I could attempt to fix them. |
I rebased the branch on top of latest master: https://github.com/infinidat/psutil/tree/aix Here is the latest test run output. Apparently there are some new tests that fail :( Regarding missing API: only two methods of the
This is documented in the README on the branch. I'm afraid it's not possible to grant ssh access to our AIX machines, as they are in the internal company network and not internet-facing. (It may be possible to arrange WebEx sessions with screen sharing for very limited time access, e.g. if there are specific issues to debug...) |
@giampaolo @wiggin15 FYI - There is an IBM Partner world access program whereby you can get access for a limited time (up to 2 weeks) to AIX machine's on IBM's infrastructure, see url https://www-356.ibm.com/partnerworld/wps/servlet/ContentHandler/stg_com_sys_power-development-platform SaltStack leverages this to develop on AIX currently, systems are pretty basic but you get full control of them. Also able to get PowerLinux variants too via that program. |
Hi, For some development done here, we're interested in having the AIX support merged in the psutil module. For starting we will use @wiggin15's repository, but that would be great to have it included in the official repo as this would ease deployment a lot: ie. we will benefit from the automatic installation from pip when psutil is a dependency. We will do some testing, and report any error we may find. |
I am also using @wiggin15's repo for AIX builds of psutil. Unfortunately users aren't working properly for me, I had to edit https://github.com/Infinidat/psutil/blob/bc5b3ad6fb28d7225cece9697a91d47056260e1d/psutil/_psaix.py#L167 in order to get it to work by adding the pid like most others have. If the very last value is missing it throws an error, at least on the AIX box I am using. |
If |
I rebased the branch and (finally) opened a PR. |
This is great work, thanks. Most connections-related failures are due to address not being a namedtuple. Just do this in order to fix it: |
Also, just to be clear, keep in mind that if in case AIX support in psutil becomes unstable due to lack of active maintaintance I will likely drop it at some point, the same way I dropped support for Windows XP. Including AIX support now that psutil is stable(5.3.0) would still be a win though, as we can point future AIX users to this psutil version (in the doc). |
First review is done. Overall, really great work. This really looks promising. |
@jomann09 I fixed the |
Awesome, that's what I did to fix it too @wiggin15 |
Great. Thank you. |
Wow. Thanks for the compliments @giampaolo 😊 |
@wiggin15 they were well deserved. =) |
I'm not aware of any AIX discussion forum or mailing list. Maybe it's one of the reasons why information about AIX is so scarce :) |
I can probably help a bit here. |
FYI - this is now available in Salt release 2017.7.2 for AIX, available for
Enterprise users of Salt.
Managed to slip it in at the last moment.
Thanks for the fine work.
David Murphy
Unix Engineer
SaltStack
3400 North Ashton Blvd., Suite 110 | Lehi, UT 84043, USA
office 801-207-7440 | mobile 385-333-1060
dmurphy@saltstack.com | www.saltstack.com
…On Thu, Oct 19, 2017 at 8:08 AM, bthery ***@***.***> wrote:
I can probably help a bit here.
I'll point this post to some people at IBM that may be interested.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#605 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJe4pFBSLJDi4PqihxrhA_rQ4_qe3UJdks5st1fdgaJpZM4DrS3A>
.
|
I see it's in the TODO file, filed under "lower priority", but I wanted a ticket to be open because we actually encountered this:
The text was updated successfully, but these errors were encountered: