You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a reverse proxy instance that is being created with two junctions. This is failing with a "The format of the request was not valid. The operation cannot be completed" error message when using ibmsecurity v2020.2.13.0.
We have it working correctly for a single junction.
The entrypoint of the playbook has this:
- name: Setup instances {{ inst_name }} for {{ app_name }} application in {{ env }} environment
hosts: "{{app_name}}_ws_{{env}}"
connection: local
#no_log: true
tags: ["create-instance"]
tasks:
- name: Retrieve instances list from the appliance
include_role:
name: get_reverseproxies
- name: Set Fact for current appliance instances
set_fact: instance_item="{{ item.id }}"
with_items: "{{ reverseproxy_ret_obj.data }}"
register: instances_result
- name: Make a current instances list
set_fact: current_instances_list="{{ instances_result.results | map(attribute='ansible_facts.instance_item') | list }}"
- name:
include_tasks: lib/set_instance.yml inst="{{ inst_name }}" inst_config={{ item }}
when: inst_name | string not in current_instances_list and item.id == 0
with_items: "{{ instances_list }}"
- name:
include_tasks: lib/set_instance.yml inst="{{ inst_name }}_{{ item.id }}" inst_config={{ item }}
when: inst_name+"_"+item.id | string not in current_instances_list and item.id > 0
with_items: "{{ instances_list }}"
Which then calls 'lib/set_instance.yml':
- name: Search junctions files for "{{ inst_name }}" instance
find:
paths: "{{ config_path }}/application/{{ app_name }}/junction"
patterns: "*_{{ inst_name }}.yml"
register: junctions_path
- name: Set Fact for junction
set_fact: junction_item="{{ jctfilesvar.path | basename | regex_replace('_'+inst_name+'.yml') }}"
with_items: "{{junctions_path.files}}"
loop_control:
loop_var: jctfilesvar
register: junctions_result
- name: Make a junctions list
set_fact: inventory_junctions_list="{{ junctions_result.results | map(attribute='ansible_facts.junction_item') | list }}"
- name: Set set_junctions_list to current
set_fact: set_junctions_list="{{inventory_junctions_list}}"
- name: Configure junctions on {{ inst_id }}
include_tasks: lib/set_junction.yml jct_name={{jctinputvar}}
with_items: "{{ set_junctions_list }}"
loop_control:
loop_var: jctinputvar
I see the first call to ibmsecurity.isam.web.reverse_proxy.junctions.set() succee (interesting that force=True?). The second call to ibmsecurity.isam.web.reverse_proxy.junctions.set() has a number of values being passed as empty strings - default values are not kicking in? Why is that please?
We have a reverse proxy instance that is being created with two junctions. This is failing with a "The format of the request was not valid. The operation cannot be completed" error message when using ibmsecurity v2020.2.13.0.
We have it working correctly for a single junction.
The entrypoint of the playbook has this:
Which then calls 'lib/set_instance.yml':
Which then calls 'lib/set_junction.yml':
The working junction create:
The failing creation:
Versions are as follows:
The text was updated successfully, but these errors were encountered: