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
in ensure_service_state() the lists _wanted_ai and _wanted_pi get initialized with one element of empty string
_wanted_ai = ['']
_wanted_pi = ['']
In non-RAC environments (where "preferred instances" and "available instances" are not possible) the function _get_service_config() returns empty lists _curr_config_inst_ai[] and _curr_config_inst_pi[] .
Due to this, the comparisons are always "false" in non-RAC:
if _wanted_pi != _curr_config_pi:
_inst_temp += ' -preferred %s' % (preferred_instances)
if _wanted_ai != _curr_config_ai and '' not in _wanted_ai:
_inst_temp += ' -available %s' % (available_instances)
So ensure_service_config() builds commands like "srvctl modify service -d MyDB1 -s MYDBSERVICE -modifyconfig -preferred None",
which is invalid in non-RAC environments and leads to
in ensure_service_state() the lists _wanted_ai and _wanted_pi get initialized with one element of empty string
In non-RAC environments (where "preferred instances" and "available instances" are not possible) the function _get_service_config() returns empty lists _curr_config_inst_ai[] and _curr_config_inst_pi[] .
Due to this, the comparisons are always "false" in non-RAC:
So ensure_service_config() builds commands like "srvctl modify service -d MyDB1 -s MYDBSERVICE -modifyconfig -preferred None",
which is invalid in non-RAC environments and leads to
I modified the python code in https://github.com/mapausch/opitz-ansible-oracle/blob/master/plugins/modules/oracle_services.py
In my Single Instance environment this works, but don't have a RAC environment for testing :-(
The text was updated successfully, but these errors were encountered: