Skip to content

compatible.rdbms not set in ASM diskgroup attribute #491

@matthiaslink77

Description

@matthiaslink77

With previous version before re-factoring, compatible.rdbms was set correctly.

Now it's not set at all and seems to default to 10.1.0.0.0.

Before:
compatible.advm 19.0.0.0.0
compatible.asm 19.3.0.0.0
compatible.rdbms 19.0.0.0.0

diskgroups.yml
...
attributes:
- {name: compatible.asm, value: "{{ oracle_install_version_gi }}.0"}
- {name: compatible.rdbms, value: 19.0.0.0.0}

Now:

asm.yml:
...
attributes:
- {name: compatible.asm, value: 19.0.0.0.0}
- {name: compatible.rdbms, value: 19.0.0.0.0}

[grid@jeduatamodb01 ~]$ asmcmd lsattr -G DATA -l
...
compatible.advm 19.0.0.0.0
compatible.asm 19.0.0.0.0
compatible.rdbms 10.1.0.0.0

seems the roles have changed and the attributes are no longer taken into account.

roles/oraasm-manage-diskgroups/tasks/main.yml

before:

tasks file for asm-diskgroups

  • name: oraasm-manage-dgs | Manage diskgroups
    oracle_asmdg:
    un=sys
    pw={{ sysasmpassword }}
    sn=+ASM
    host={{ ansible_hostname }}
    oh={{ oracle_home_gi }}
    name={{ item.diskgroup }}
    disks={{ asmdevice_list }}
    redundancy={{ item.redundancy |default(omit)}}
    attribute_name={{ attr_name |default (omit)}}
    attribute_value={{ attr_value |default (omit)}}
    state={{ item.state }}
    environment: "{{ oracle_env }}"
    run_once: "{{configure_cluster}}"
    become_user: "{{ grid_install_user}}"
    with_items: "{{ asm_diskgroups }}"
    tags: diskgroup

after:

  • name: Manage diskgroups
    opitzconsulting.ansible_oracle.oracle_asmdg:
    un: sys
    pw: "{{ sysasmpassword }}"
    sn: +ASM
    host: "{{ oracle_hostname }}"
    oh: "{{ oracle_home_gi }}"
    name: "{{ ad_loop.diskgroup }}"
    disks: "{{ _oraasm_manage_diskgroups_asmdevice_list }}"
    redundancy: "{{ ad_loop.properties | map(attribute='redundancy') | first | default(omit) }}"
    attribute_name: "{{ _oraasm_manage_diskgroups_attr_name | default(omit) }}"
    attribute_value: "{{ _oraasm_manage_diskgroups_attr_value | default(omit) }}"
    state: "{{ ad_loop.state }}"
    environment: "{{ _grid_env }}"
    become: true
    become_user: "{{ _grid_install_user }}"
    with_items: "{{ asm_diskgroups }}"
    loop_control:
    loop_var: ad_loop
    label: >-
    diskgroup: {{ ad_loop.diskgroup | default('') }}
    redundancy: {{ ad_loop.properties | map(attribute='redundancy') | first | default('') }}
    state: {{ ad_loop.state | default('') }}
    when:
    • _orasw_meta_primary_node | bool
      tags: diskgroup

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions