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

Current v1alpha2 failing to pivot cluster secrets over to newly created management cluster #576

Closed
voor opened this issue Sep 18, 2019 · 4 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@voor
Copy link
Member

voor commented Sep 18, 2019

/kind bug

What steps did you take and what happened:
Follow current getting started guide for clusterctl exactly as described on a non-NSX-t vsphere single host no-DRS or HA features turned on. (vSphere 6.7U3)
https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/blob/8aa048b1353a07a6ca296e3aba1e227fdd37707b/docs/getting_started.md#using-clusterctl

Everything works okay (there's a separate issue regarding CA not being valid yet)

However, when pivoting the secrets for the cluster from kind to the new management cluster I get the following error:

F0915 20:23:46.032891   32463 create_cluster.go:59] unable to pivot cluster api stack to target cluster: unable to pivot cluster API objects: Failed to move cluster: default/management-cluster: failed to move Secrets for Cluster default/management-cluster to target cluster: failed to move Secret default/management-cluster-ca: error copying Secret default/management-cluster-ca to target cluster: error creating Secret default/management-cluster-ca: Secret "management-cluster-ca" is invalid: metadata.ownerReferences.uid: Invalid value: "": uid must not be empty

This wouldn't be that bad, except the error message comes after the kind cluster is destroyed, so the secrets are completely lost.

Related logs and thread on slack: https://kubernetes.slack.com/archives/CKFGK3SSD/p1568335767001600
What did you expect to happen:

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Cluster-api-provider-vsphere version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 18, 2019
@andrewsykim
Copy link
Member

/assign

@andrewsykim
Copy link
Member

Should be fixed with kubernetes-sigs/cluster-api#1435

@andrewsykim
Copy link
Member

/close

Thanks for reporting @voor

@k8s-ci-robot
Copy link
Contributor

@andrewsykim: Closing this issue.

In response to this:

/close

Thanks for reporting @voor

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

jayunit100 pushed a commit to jayunit100/cluster-api-provider-vsphere that referenced this issue Feb 26, 2020
* Rev versions of containerd and Kubernetes

* Fix incorrect packer-goss instructions

Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
Signed-off-by: Naadir Jeewa <naadir@randomvariable.co.uk>

* packer: Simplify goss, add containerd tests

Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
Signed-off-by: Naadir Jeewa <naadir@randomvariable.co.uk>

* Packer: Update sample base AMIs

Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
Signed-off-by: Naadir Jeewa <naadir@randomvariable.co.uk>

* ansible: Enable pipelining

Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
Signed-off-by: Naadir Jeewa <naadir@randomvariable.co.uk>

* packer: Run goss with sudo

Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
Signed-off-by: Naadir Jeewa <naadir@randomvariable.co.uk>

* temp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants