IBM / ansible-for-i

the tool is to provide several customized modules for Ansible to manage IBM i systems.
GNU General Public License v3.0
54 stars 52 forks source link

ibmi_download_fix_status issue #154

Open cmh716 opened 1 year ago

cmh716 commented 1 year ago

Does ibmi_download_fix_status work?

I successfully ordered and downloaded a PTF via Ansible, but this module does not work for me (the status of the order remains unknown). I see that the module is doing this:

sql_query_message_info = "SELECT MESSAGE_TIMESTAMP, MESSAGE_SECOND_LEVEL_TEXT FROM QSYS2.MESSAGE_QUEUE_INFO" \
    " WHERE MESSAGE_QUEUE_LIBRARY='QSYS' AND MESSAGE_QUEUE_NAME='QSERVICE' AND MESSAGE_ID='CPZ8C15' AND" \
    " MESSAGE_TYPE='COMPLETION' AND MESSAGE_SECOND_LEVEL_TEXT LIKE '%{order_id}%'"

The problem on my side is that the order_id does not exist in the message. For example, the second level text for my order is this:

image

The Group PTFs I ordered were SF99667 and SF99665. Our Primary language is 2924.

cmh716 commented 1 year ago

I could probably query QUSRSYS/QASXPROB fields WSXPPTFID, WSXPPTFST and WSXPID, but of course the proper ansible module would be better.

robgjertsen1 commented 1 year ago

I agree that this looks problematic if the second level text does not have an order id. I'll have to investigate further.