Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While admitting a target to an rcg group, if the target volume name value is incorrect in 'local_remote_volume_pair_list' list an incorrect error msg is displayed #31

Open
leenaj0hn opened this issue Nov 23, 2018 · 4 comments
Labels
bug Something isn't working Low

Comments

@leenaj0hn
Copy link

While admitting a target to an rcg group, if the secondary volume name value is incorrect in 'local_remote_volume_pair_list' list an incorrect error msg is displayed

Playbook:
storage_system_ip: "192.168.67.7"
storage_system_username: "3paradm"
storage_system_password: "3pardata"
remote_copy_group_name: "ansible_CreateRCG-002"
state: admit_target
target_mode: "sync"
target_name: "CSSOS-SSA06"
local_remote_volume_pair_list:

  • sourceVolumeName: "Ansible_volume_01"
    targetVolumeName: "invalid_sec_vol"

Error msg:

fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"admit_volume_targets": null,
"different_secondary_wwn": false,
"discard_new_data": false,
"domain": null,
"full_sync": false,
"keep_snap": false,
"local_groups_direction": false,
"local_remote_volume_pair_list": [
{
"sourceVolumeName": "Ansible_volume_01",
"targetVolumeName": "invalid_sec_vol"
}
],
"local_snap_cpg": null,
"local_user_cpg": null,
"modify_targets": null,
"no_resync_snapshot": false,
"no_snapshot": false,
"recovery_action": null,
"remote_copy_group_name": "ansible_CreateRCG-002",
"remote_copy_targets": null,
"remove_secondary_volume": false,
"skip_initial_sync": false,
"skip_promote": false,
"skip_start": false,
"skip_sync": false,
"snapshot_name": null,
"source_port": null,
"starting_snapshots": null,
"state": "admit_target",
"stop_groups": false,
"storage_system_ip": "192.168.67.7",
"storage_system_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"storage_system_username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"target_mode": "sync",
"target_name": "CSSOS-SSA06",
"target_port_wwn_or_ip": null,
"unset_snap_cpg": false,
"unset_user_cpg": false,
"volume_auto_creation": false,
"volume_name": null
}
},
"msg": "Admit remote copy target failed| Admit remote copy target failed Error is 'e_volume_01:invalid_sec_vol\r' "
}

@ansarars
Copy link
Contributor

Steps to reproduce the issue:-

  1. Created volume "Ansible_volume_01" on source 192.168.67.7
  2. Created volume "Ansible_volume_01" on first target CSSOS-SSA05
  3. Created volume "Ansible_volume_01" on second target CSSOS-SSA06
  4. Created RCG "ansible_CreateRCG-002" with target CSSOS-SSA05, with periodic mode.
  5. Added volume "Ansible_volume_01" to RCG "ansible_CreateRCG-002"
  6. Admit second target CSSOS-SSA06 with invalid targetVolumeName value.

Observation:

It is observed that issue is not reproduced, but found the another issue.
The new issue: After providing invalid targetVolumeName , admit target was successful and printed message as given below. But on 192.168.67.7, new target CSSOS-SSA06 was not added :-
"msg": "Admit remote copy target CSSOS-SSA06 successful in remote copy group ansible_CreateRCG-002."

Playbook used for reproducing the issue:-

  • name: Create volume on source
    hpe3par_volume:
    storage_system_ip: 192.168.67.7
    storage_system_password: 3pardata
    storage_system_username: 3paradm
    state: present
    volume_name: Ansible_volume_01
    size: 1024
    size_unit: MiB
    cpg: FC_r1
    snap_cpg: FC_r1

    • name: Create volume on target1
      hpe3par_volume:
      storage_system_ip: 192.168.67.5
      storage_system_password: 3pardata
      storage_system_username: 3paradm
      state: present
      volume_name: Ansible_volume_01
      size: 1024
      size_unit: MiB
      cpg: FC_r1
      snap_cpg: FC_r1

    • name: Create volume on target2
      hpe3par_volume:
      storage_system_ip: 192.168.67.6
      storage_system_password: 3pardata
      storage_system_username: 3paradm
      state: present
      volume_name: Ansible_volume_01
      size: 1024
      size_unit: MiB
      cpg: FC_r1
      snap_cpg: FC_r1

    • name: Create Remote Copy Group ansible_CreateRCG-002
      hpe3par_remote_copy:
      storage_system_ip: 192.168.67.7
      storage_system_password: 3pardata
      storage_system_username: 3paradm
      state: present
      remote_copy_group_name: ansible_CreateRCG-002
      remote_copy_targets:

      • target_name: CSSOS-SSA05
        target_mode: periodic
    • name: Add volume to remote copy group
      hpe3par_remote_copy:
      storage_system_ip: 192.168.67.7
      storage_system_password: 3pardata
      storage_system_username: 3paradm
      state: add_volume
      remote_copy_group_name: ansible_CreateRCG-002
      volume_name: Ansible_volume_01
      admit_volume_targets:

      • target_name: CSSOS-SSA05
        sec_volume_name: Ansible_volume_01
    • name: admit Remote Copy target
      hpe3par_remote_copy:
      storage_system_ip: 192.168.67.7
      storage_system_password: 3pardata
      storage_system_username: 3paradm
      state: admit_target
      remote_copy_group_name: ansible_CreateRCG-002
      target_name: CSSOS-SSA06
      local_remote_volume_pair_list:

      • sourceVolumeName: Ansible_volume_01
        targetVolumeName: demo_volume
        target_mode: sync

Ansible message:-

changed: [localhost] => {
"changed": true,
"invocation": {
"module_args": {
"admit_volume_targets": null,
"different_secondary_wwn": false,
"discard_new_data": false,
"domain": null,
"full_sync": false,
"keep_snap": false,
"local_groups_direction": false,
"local_remote_volume_pair_list": [
{
"sourceVolumeName": "Ansible_volume_01",
"targetVolumeName": "demo_volume"
}
],
"local_snap_cpg": null,
"local_user_cpg": null,
"modify_targets": null,
"no_resync_snapshot": false,
"no_snapshot": false,
"recovery_action": null,
"remote_copy_group_name": "ansible_CreateRCG-002",
"remote_copy_targets": null,
"remove_secondary_volume": false,
"skip_initial_sync": false,
"skip_promote": false,
"skip_start": false,
"skip_sync": false,
"snapshot_name": null,
"source_port": null,
"starting_snapshots": null,
"state": "admit_target",
"stop_groups": false,
"storage_system_ip": "192.168.67.7",
"storage_system_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"storage_system_username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"target_mode": "sync",
"target_name": "CSSOS-SSA06",
"target_port_wwn_or_ip": null,
"unset_snap_cpg": false,
"unset_user_cpg": false,
"volume_auto_creation": false,
"volume_name": null
}
},
"msg": "Admit remote copy target CSSOS-SSA06 successful in remote copy group ansible_CreateRCG-002."
}

remote copy group verification on source 192.168.67.7:-

CSSOS-SSA04 cli% showrcopy groups ansible_CreateRCG-002

Remote Copy System Information
Status: Started, Normal

Group Information

Name Target Status Role Mode Options
ansible_CreateRCG-002 CSSOS-SSA05 New Primary Periodic over_per_alert
LocalVV ID RemoteVV ID SyncStatus LastSyncTime
Ansible_volume_01 55199 Ansible_volume_01 46405 New NA

CSSOS-SSA04 cli%

@prablr79 prablr79 added bug Something isn't working help wanted Extra attention is needed labels Nov 28, 2018
@ansarars
Copy link
Contributor

It is not reproduced, test team please reproduce it.

@leenaj0hn
Copy link
Author

getting the same error

fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"admit_volume_targets": null,
"different_secondary_wwn": false,
"discard_new_data": false,
"domain": null,
"full_sync": false,
"keep_snap": false,
"local_groups_direction": false,
"local_remote_volume_pair_list": [
{
"sourceVolumeName": "Ansible_volume_01",
"targetVolumeName": "invalid_sec_vol"
}
],
"local_snap_cpg": null,
"local_user_cpg": null,
"modify_targets": null,
"no_resync_snapshot": false,
"no_snapshot": false,
"recovery_action": null,
"remote_copy_group_name": "ansible_CreateRCG-002",
"remote_copy_targets": null,
"remove_secondary_volume": false,
"skip_initial_sync": false,
"skip_promote": false,
"skip_start": false,
"skip_sync": false,
"snapshot_name": null,
"source_port": null,
"starting_snapshots": null,
"state": "admit_target",
"stop_groups": false,
"storage_system_ip": "192.168.67.7",
"storage_system_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"storage_system_username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"target_mode": "sync",
"target_name": "CSSOS-SSA06",
"target_port_wwn_or_ip": null,
"unset_snap_cpg": false,
"unset_user_cpg": false,
"volume_auto_creation": false,
"volume_name": null
}
},
"msg": "Admit remote copy target failed| Admit remote copy target failed Error is 'e_volume_01:invalid_sec_vol\r' "

@prablr79 prablr79 added Low and removed help wanted Extra attention is needed labels Dec 4, 2018
@ansarars
Copy link
Contributor

ansarars commented Dec 4, 2018

Worked with Leena for reproducing this issue on my system but unable to reproduce it.
Getting below message if invalid target volume is given:-
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"admit_volume_targets": null,
"different_secondary_wwn": false,
"discard_new_data": false,
"domain": null,
"full_sync": false,
"keep_snap": false,
"local_groups_direction": false,
"local_remote_volume_pair_list": [
{
"sourceVolumeName": "demo_volume_1",
"targetVolumeName": "invalid_vol"
}
],
"local_snap_cpg": null,
"local_user_cpg": null,
"modify_targets": null,
"no_resync_snapshot": false,
"no_snapshot": false,
"recovery_action": null,
"remote_copy_group_name": "farhan_rcg",
"remote_copy_targets": null,
"remove_secondary_volume": false,
"skip_initial_sync": false,
"skip_promote": false,
"skip_start": false,
"skip_sync": false,
"snapshot_name": null,
"source_port": null,
"starting_snapshots": null,
"state": "admit_target",
"stop_groups": false,
"storage_system_ip": "192.168.67.7",
"storage_system_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"storage_system_username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"target_mode": "sync",
"target_name": "CSSOS-SSA06",
"target_port_wwn_or_ip": null,
"unset_snap_cpg": false,
"unset_user_cpg": false,
"volume_auto_creation": false,
"volume_name": null
}
},
"msg": "Admit remote copy target failed| Admit remote copy target failed Error is 'Target system CSSOS-SSA06 replied indicating it could not locate an indicated volume.\r' "
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Low
Projects
None yet
Development

No branches or pull requests

3 participants