This looks like another failed attempt. Compare a failed attempt with a successful attempt using -v and look closely at the payload.
Sent from Gmail Mobile On Fri, 15 Sep 2023 at 16:15, Tony Wong <[email protected]> wrote: > TASK [create_pools : Create UUID Pool] > ************************************************************** > failed: [localhost] (item={'name_of_uuid_pool': 'UUID Pool 1', > 'uuid_prefix': '00000000-0000-0000', 'uuid_size': 100, 'uuid_from': > '0000-000000000001'}) => {"ansible_loop_var": "item", "changed": false, > "item": {"name_of_uuid_pool": "UUID Pool 1", "uuid_from": > "0000-000000000001", "uuid_prefix": "00000000-0000-0000", "uuid_size": > 100}, "msg": "API error: (400, 'HTTP Error 400: Bad Request', > b'{\"code\":\"InvalidRequest\",\"message\":\"Cannot execute the request. > The JSON document is > malformed.\",\"messageId\":\"barcelona_request_malformed_json\",\"traceId\":\"3W5INgQdjpSiG4-JcJ4GUxrlpnuU7Ksyjj2zDfhbucx5_enmAf2wHw==\",\"cause\":{\"code\":\"InternalServerError\",\"message\":\"Cannot > execute the request due to an error. Retry > later.\",\"messageId\":\"barcelona_request_internal_error\",\"traceId\":\"3W5INgQdjpSiG4-JcJ4GUxrlpnuU7Ksyjj2zDfhbucx5_enmAf2wHw==\"}}') > "} > failed: [localhost] (item={'name_of_uuid_pool': 'UUID Pool 2', > 'uuid_prefix': '11111111-1111-1111', 'uuid_size': 50, 'uuid_from': > '1111-111111111101'}) => {"ansible_loop_var": "item", "changed": false, > "item": {"name_of_uuid_pool": "UUID Pool 2", "uuid_from": > "1111-111111111101", "uuid_prefix": "11111111-1111-1111", "uuid_size": 50}, > "msg": "API error: (400, 'HTTP Error 400: Bad Request', > b'{\"code\":\"InvalidRequest\",\"message\":\"Cannot execute the request. > The JSON document is > malformed.\",\"messageId\":\"barcelona_request_malformed_json\",\"traceId\":\"VZYagTdrbBl92Gj4ePwQdT1-Ttwce57ZJYiCdkZ0bmz1CFpzsJ1h-A==\",\"cause\":{\"code\":\"InternalServerError\",\"message\":\"Cannot > execute the request due to an error. Retry > later.\",\"messageId\":\"barcelona_request_internal_error\",\"traceId\":\"VZYagTdrbBl92Gj4ePwQdT1-Ttwce57ZJYiCdkZ0bmz1CFpzsJ1h-A==\"}}') > "} > > PLAY RECAP > ****************************************************************************************** > localhost : ok=10 changed=0 unreachable=0 > failed=1 skipped=0 rescued=0 ignored=0 > > On Fri, Sep 15, 2023 at 12:38 AM Dick Visser <[email protected]> wrote: > >> >> >> On Fri, 15 Sept 2023 at 00:30, Tony Wong <[email protected]> wrote: >> >>> The dictionary loop is not working. But when I specify the parameters >>> not in a dictionary and not in a loop it works. >>> >> >> Run that with -v, and then compare the invocation dict with the one above >> that fails. >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Ansible Project" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/ansible-project/2IhA8gwVLuM/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CAF8BbLZ0DV%3DGG-JkM2_SB7ekww72H%2Bs2ebRXAc2kFv49BbEoAQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CAF8BbLZ0DV%3DGG-JkM2_SB7ekww72H%2Bs2ebRXAc2kFv49BbEoAQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CALmkhkq%2BFGygw136EbWgzVOWE4dJbcnkWqfLDqiP0mVUdvt%2BFA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CALmkhkq%2BFGygw136EbWgzVOWE4dJbcnkWqfLDqiP0mVUdvt%2BFA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLZLN4xnXyMdqj%2BZj8Kr2fm3mNx5NQDh-RALSFpoSvzFwQ%40mail.gmail.com.
