Closed amitbhatt818 closed 4 years ago
- name: Giving required variables for openebs installation
uri:
url: "{{ director_url }}/v3/groups/{{ group_id }}/clusters/{{ cluster_id }}/openebses"
method: POST
url_username: "{{ username.stdout }}"
url_password: "{{ password.stdout }}"
force_basic_auth: yes
return_content: yes
body_format: json
body: '{ "clusterId": "{{ cluster_id }}","creatorId": "{{ group_id }}","projectId": "{{ project_id }}","templateId": "{{ template_id }}","namespace": "{{ namespace }}","defaultDirectory": "{{ default_directory }}","dockerRegistry": "{{ docker_registry }}","includeDeviceFilters": "{{ include_device_filters }}","excludeDeviceFilters": "{{ exclude_device_filters }}","cpuResourceLimit": "{{ cpu_resource_limit }}","memoryResourceLimit": " {{ memory_resource_limit }}","installationMode": "{{ installation_mode }}" }'
status_code: 405
register: get_openebs
MoM with @sagarkrsd
1. We need to add one check before giving post request to reinstall openebs which will validate if openbes is installed or not.
2. The task should look for active openebes entry in the cluster.
What happened ?
405
error msg but sometimes it is giving409
error.Error message: