-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick changes to release-1.5 branch. (#570)
* Update support matrix for Vanilla, WCP and GC. (#559) Signed-off-by: Liping Xue <[email protected]> * Document change to update known issue. (#560) * Document change. Signed-off-by: Liping Xue <[email protected]> * Address comment from Xing. Signed-off-by: Liping Xue <[email protected]> * Remove files that are not needed for this change. Signed-off-by: Liping Xue <[email protected]> --------- Signed-off-by: Liping Xue <[email protected]> * Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#562) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0. - [Commits](golang/crypto@v0.14.0...v0.17.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Liping Xue <[email protected]> * Update document. (#566) Signed-off-by: Liping Xue <[email protected]> * Modify parsing behavior of login credentials to handle Go escape characters (#564) * Signed-off-by: Varun Srinivasan <[email protected]> Create common config and new function to parse config data * Always populate "port" key of parameters map after setting default VC port if config port value is empty Signed-off-by: Varun Srinivasan <[email protected]> * Clean up test logging and unit tests Signed-off-by: Varun Srinivasan <[email protected]> * Keep only necessary config values Signed-off-by: Varun Srinivasan <[email protected]> * Refactor ParseConfig to return error for sanitized error handling Signed-off-by: Varun Srinivasan <[email protected]> --------- Signed-off-by: Varun Srinivasan <[email protected]> Signed-off-by: Liping Xue <[email protected]> * Only skip PVC creation if --namespace-mapping flag is not used (#565) * Only skip PVC creation if --namespace-mapping flag is not used Signed-off-by: Varun Srinivasan <[email protected]> * Refactor SkipPVCCreation function signature to add target namespace as a parameter Signed-off-by: Varun Srinivasan <[email protected]> --------- Signed-off-by: Varun Srinivasan <[email protected]> Signed-off-by: Liping Xue <[email protected]> * Add doc that wffc is not supported (#567) Signed-off-by: xing-yang <[email protected]> Signed-off-by: Liping Xue <[email protected]> * Fail the Restore if the StorageClass is associated with WaitForFirstConsumer volumeBindingMode (#568) Signed-off-by: Deepak Kinni <[email protected]> Co-authored-by: Deepak Kinni <[email protected]> Signed-off-by: Liping Xue <[email protected]> --------- Signed-off-by: Liping Xue <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Varun Srinivasan <[email protected]> Signed-off-by: xing-yang <[email protected]> Signed-off-by: Deepak Kinni <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Varun Srinivasan <[email protected]> Co-authored-by: Xing Yang <[email protected]> Co-authored-by: Deepak Kinni <[email protected]> Co-authored-by: Deepak Kinni <[email protected]>
- Loading branch information
1 parent
e956a53
commit 0b9a8de
Showing
13 changed files
with
212 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,3 +64,24 @@ Users might require ways to provide registry credentials when deploying velero a | |
## Volume Expansion Not Supported when there are Snapshots | ||
|
||
If upload fails during a backup, the local snapshot will not be deleted. Velero vSphere Plugin will keep retrying the upload. If the user wants to expand volume, it will fail because volume expansion is not supported when there are snapshots on the volume. | ||
|
||
## Backup and Restore with vSphere with IPV6 | ||
|
||
Users may hit the following error `too many colons in address` if they specify VC IP in IPV6 format in `csi-vsphere.conf` file and create `velero-vsphere-config-secret` from this file when deploying Velero Plugin for vSphere. | ||
|
||
``` | ||
time="2023-11-06T10:53:21Z" level=error msg="Failed at copying to remote repository" Local PEID="ivd:fdc85e45-7c61-453f-9487-b7e47d020cd9:a6183167-d52d-4a83-932f-77104fac93e3" error="dial tcp: address 2620:124:6020:c304:0:a:0:763:443: too many colons in address" logSource="/go/src/github.com/vmware-tanzu/velero-plugin-for-vsphere/pkg/dataMover/data_mover.go:120" | ||
``` | ||
The workaround to this problem is to use VC FQDN instead of IPV6 format in `csi-vsphere.conf` file. See the following example. | ||
|
||
``` | ||
[Global] | ||
cluster-id = "cluster0" | ||
[VirtualCenter "vCenter-FQDN"] | ||
insecure-flag = "true" | ||
user = "[email protected]" | ||
password = "password" | ||
port = "443" | ||
datacenters = "dc0" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package config | ||
|
||
type Config struct { | ||
Global struct { | ||
VCenterIP string `gcfg:"ip"` | ||
ClusterID string `gcfg:"cluster-id"` | ||
ClusterDistribution string `gcfg:"cluster-distribution"` | ||
CAFile string `gcfg:"ca-file"` | ||
} | ||
// Virtual Center configurations | ||
VirtualCenter map[string]*VirtualCenterConfig | ||
} | ||
|
||
type VirtualCenterConfig struct { | ||
User string `gcfg:"user"` | ||
Password string `gcfg:"password"` | ||
VCenterPort string `gcfg:"port"` | ||
InsecureFlag bool `gcfg:"insecure-flag"` | ||
Datacenters string `gcfg:"datacenters"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.