Skip to content

VM Replication informations #2639

Closed
Closed

Description

@DisasteR

Hi,

Is their a way to get replication state of a virtual machine ?

I can read ReplicationConfigSpec from VirtualMachine.Config.RepConfig

And i got an object like this :

&types.ReplicationConfigSpec{
    DynamicData:                 types.DynamicData{},
    Generation:                  1,
    VmReplicationId:             "GID-dbeff7c4-52e7-44b7-b29f-4cbdf9261281",
    Destination:                 "10.1.22.100",
    Port:                        31031,
    Rpo:                         1440,
    QuiesceGuestEnabled:         false,
    Paused:                      false,
    OppUpdatesEnabled:           false,
    NetCompressionEnabled:       &bool(false),
    NetEncryptionEnabled:        &bool(false),
    EncryptionDestination:       "",
    EncryptionPort:              -1,
    RemoteCertificateThumbprint: "",
    Disk:                        {
        {
            DynamicData:       types.DynamicData{},
            Key:               2000,
            DiskReplicationId: "RDID-471bb734-5a82-45ac-99c1-d20217312c26",
        },
        {
            DynamicData:       types.DynamicData{},
            Key:               2001,
            DiskReplicationId: "RDID-007db045-a3de-47c7-8f3b-4dd98bad7e93",
        },
        {
            DynamicData:       types.DynamicData{},
            Key:               2002,
            DiskReplicationId: "RDID-ff81aacf-decf-4369-a481-4d56206db734",
        },
        {
            DynamicData:       types.DynamicData{},
            Key:               2003,
            DiskReplicationId: "RDID-519e3ba6-1e35-4ce9-b205-8a8b0f66445c",
        },
        {
            DynamicData:       types.DynamicData{},
            Key:               2005,
            DiskReplicationId: "RDID-f5ddaf81-2db9-4788-b5dc-639e97c67095",
        },
        {
            DynamicData:       types.DynamicData{},
            Key:               2004,
            DiskReplicationId: "RDID-35ac40da-ef5c-4411-bab9-46db8fbeaa44",
        },
    },
}

But I dont have the replication state.

I have found that some replication errors can cause :

  • the Virtualmachine to have a nil Config.RepConfig
  • the Virtualmachine to have a Config.RepConfig but no informations about failure.
    • enabled replications with a failure causing a "Not Active" state in vsphere ui dont trigger the paused state in Config.RepConfig

Hope someone can help me to get the replication state.

best regards,

Activity

  1. github-actions commented on Oct 21, 2021

    @github-actions
    Contributor

    Howdy 🖐   DisasteR ! Thank you for your interest in this project. We value your feedback and will respond soon.

    If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION guidelines.

  2. github-actions commented on Jan 20, 2022

    @github-actions
    Contributor

    This issue is stale because it has been open for 90 days with no
    activity. It will automatically close after 30 more days of
    inactivity. Mark as fresh by adding the comment /remove-lifecycle stale.

  3. DisasteR commented on Feb 16, 2022

    @DisasteR
    Author

    /remove-lifecycle stale

  4. locked and limited conversation to collaborators on Feb 17, 2022
  5. converted this issue into a discussion #2760 on Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions