MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.24k stars 21.41k forks source link

Unable to create data controller as per the steps #65640

Closed padmajauk closed 3 years ago

padmajauk commented 3 years ago

This command: kubectl create --namespace arc -f gives the following error error: unable to recognize "arc-data-services/data-controller.yaml": no matches for kind "datacontroller" in version "arcdata.microsoft.com/v1alpha1"


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

BharathNimmala-MSFT commented 3 years ago

@padmajauk Thank you for reaching out to us regarding the issue , we will look into it and get back to you at the earliest.

BharathNimmala-MSFT commented 3 years ago

@padmajauk My sincere apologies for delay in getting back to this thread. I have assigned this issue to our document author @twright-msft to once review your issue and share any pointers accordingly.

twright-msft commented 3 years ago

@padmajauk - It looks like maybe you have not done the initial steps in the documentation yet. These are the overall steps:

Create the custom resource definitions for the Arc data controller, Azure SQL managed instance, and PostgreSQL Hyperscale. [Requires Kubernetes Cluster Administrator Permissions] Create a namespace in which the data controller will be created. [Requires Kubernetes Cluster Administrator Permissions] Create the bootstrapper service including the replica set, service account, role, and role binding. Create a secret for the data controller administrator username and password. Create the data controller.

Specifically, this error you are getting would be thrown if the first step is not completed.

Could that be the case? Did you create the custom resource definitions?

padmajauk commented 3 years ago

Hi,

I have created custom resource definition as well. Please see the screenshot below. Let me know what else needs to be checked. Thanks! [image: image.png]

On Tue, Nov 17, 2020 at 6:56 AM Travis Wright notifications@github.com wrote:

@padmajauk https://github.com/padmajauk - It looks like maybe you have not done the initial steps in the documentation yet. These are the overall steps:

Create the custom resource definitions for the Arc data controller, Azure SQL managed instance, and PostgreSQL Hyperscale. [Requires Kubernetes Cluster Administrator Permissions] Create a namespace in which the data controller will be created. [Requires Kubernetes Cluster Administrator Permissions] Create the bootstrapper service including the replica set, service account, role, and role binding. Create a secret for the data controller administrator username and password. Create the data controller.

Specifically, this error you are getting would be thrown if the first step is not completed.

Could that be the case? Did you create the custom resource definitions?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/azure-docs/issues/65640#issuecomment-728620505, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACW7WOMP46OGOQ73NKSI6FTSQHGNLANCNFSM4TMPZEHA .

twright-msft commented 3 years ago

HI @padmajauk - Unfortunately your screen capture didnt come through. Could you please try to post again or paste in just the text output of the command 'kubectl get crd'?

padmajauk commented 3 years ago

Hi,

Here is the output of kubectl get crd:

padmajauk@cloudshell:~ (trusty-moment-293813)$ kubectl get crd NAME CREATED ATbackendconfigs.cloud.google.com 2020-11-06T08:19:35Zdatacontrollers.arcdata.microsoft.com 2020-11-24T12:47:45Zmanagedcertificates.networking.gke.io 2020-11-06T08:18:52Zpostgresql-11s.arcdata.microsoft.com 2020-11-24T12:47:45Zpostgresql-12s.arcdata.microsoft.com 2020-11-24T12:47:46Zscalingpolicies.scalingpolicy.kope.io 2020-11-06T08:18:52Zsqlmanagedinstances.sql.arcdata.microsoft.com 2020-11-24T12:47:47Zstoragestates.migration.k8s.io 2020-11-06T08:18:52Zstorageversionmigrations.migration.k8s.io 2020-11-06T08:18:52Zupdateinfos.nodemanagement.gke.io 2020-11-06T08:18:53Z

Also, pasting the other output from the screenshot:

padmajauk@cloudshell:~ (trusty-moment-293813)$ kubectl get pods --namespace arc NAME READY STATUS RESTARTS AGE bootstrapper-ccm64 1/1 Running 0 26d

padmajauk@cloudshell:~ (trusty-moment-293813)$ kubectl create -f https://raw.githubusercontent.com/microsoft/azure_arc/master/arc_data_services/deploy/yaml/custom-resource-definitions.yaml Error from server (AlreadyExists): error when creating "https://raw.githubusercontent.com/microsoft/azure_arc/master/arc_data_services/deploy/yaml/custom-resource-definitions.yaml": customresourcedefinitions.apiextensions.k8s.io "datacontrollers.arcdata.microsoft.com" already exists Error from server (AlreadyExists): error when creating "https://raw.githubusercontent.com/microsoft/azure_arc/master/arc_data_services/deploy/yaml/custom-resource-definitions.yaml": customresourcedefinitions.apiextensions.k8s.io "postgresql-11s.arcdata.microsoft.com" already exists Error from server (AlreadyExists): error when creating "https://raw.githubusercontent.com/microsoft/azure_arc/master/arc_data_services/deploy/yaml/custom-resource-definitions.yaml": customresourcedefinitions.apiextensions.k8s.io "postgresql-12s.arcdata.microsoft.com" already exists Error from server (AlreadyExists): error when creating "https://raw.githubusercontent.com/microsoft/azure_arc/master/arc_data_services/deploy/yaml/custom-resource-definitions.yaml": customresourcedefinitions.apiextensions.k8s.io "sqlmanagedinstances.sql.arcdata.microsoft.com" already exists

padmajauk@cloudshell:~ (trusty-moment-293813)$ cd arc-data-services/ padmajauk@cloudshell:~/arc-data-services (trusty-moment-293813)$ ls controller-login-secret.yaml data-controller.yaml padmajauk@cloudshell:~/arc-data-services (trusty-moment-293813)$ kubectl create --namespace arc -f data-controller.yaml error: unable to recognize "data-controller.yaml": no matches for kind "data-controller" in version "arcdata.microsoft.com/v1alpha1"

Thanks,

Padmaja

On Tue, Dec 1, 2020 at 10:16 PM Travis Wright notifications@github.com wrote:

HI @padmajauk https://github.com/padmajauk - Unfortunately your screen capture didnt come through. Could you please try to post again or paste in just the text output of the command 'kubectl get crd'?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/azure-docs/issues/65640#issuecomment-736674322, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACW7WOJVBLT7ALSHRYMDIXLSSUMVRANCNFSM4TMPZEHA .

twright-msft commented 3 years ago

OK, so that looks good, but there must be something wrong still here. Can you please run this command @padmajauk ?

kubectl describe crd/datacontrollers.arcdata.microsoft.com

Please @ mention me in your reply so I see it as soon as possible. Thanks!

padmajauk commented 3 years ago

Here is the output @TravisWright Kind: datacontroller List Kind: datacontrollerList Plural: datacontrollers Singular: datacontroller Preserve Unknown Fields: true Scope: Namespaced Versions: Additional Printer Columns: Json Path: .status.state Name: State Type: string Name: v1alpha1 Served: true Storage: true Subresources: Status: Status: Accepted Names: Kind: datacontroller List Kind: datacontrollerList Plural: datacontrollers Singular: datacontroller Conditions: Last Transition Time: 2020-11-24T12:47:45Z Message: no conflicts found Reason: NoConflicts Status: True Type: NamesAccepted Last Transition Time: 2020-11-24T12:47:45Z Message: the initial names have been accepted Reason: InitialNamesAccepted Status: True Type: Established Stored Versions: v1alpha1 Events:

On Mon, Dec 7, 2020 at 8:02 AM Travis Wright notifications@github.com wrote:

OK, so that looks good, but there must be something wrong still here. Can you please run this command @padmajauk https://github.com/padmajauk ?

kubectl describe crd/datacontrollers.arcdata.microsoft.com

Please @ mention me in your reply so I see it as soon as possible. Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/azure-docs/issues/65640#issuecomment-739626456, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACW7WONO5W3EU466O6BCVRLSTQ5E3ANCNFSM4TMPZEHA .

twright-msft commented 3 years ago

@padmajauk - Sorry I never noticed you replied since the @ mention was 'traviswright' instead of 'twright-msft'. If you are still having an issue, please open a new issue. #please-close