Repository navigation
Closed
Description
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.RepConfigbut 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
- enabled replications with a failure causing a "Not Active" state in vsphere ui dont trigger the paused state in
Hope someone can help me to get the replication state.
best regards,
Reacted by Lepetit Paul
Metadata
Metadata
Assignees
Labels
No labels
Activity
github-actions commentedon Oct 21, 2021
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
CONTRIBUTIONguidelines.github-actions commentedon Jan 20, 2022
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.DisasteR commentedon Feb 16, 2022
/remove-lifecycle stale