ansible-for-i icon indicating copy to clipboard operation
ansible-for-i copied to clipboard

ibmi_download_fix_status issue

Open cmh716 opened this issue 1 year ago • 2 comments

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 avatar Jun 07 '23 19:06 cmh716

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

cmh716 avatar Jun 07 '23 20:06 cmh716

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

robgjertsen1 avatar Jun 21 '23 18:06 robgjertsen1