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

[bug] Azure deployment fails with ResourceGroupNotFound #1041

Closed
viniciusdc opened this issue Feb 10, 2022 · 1 comment · Fixed by #1071
Closed

[bug] Azure deployment fails with ResourceGroupNotFound #1041

viniciusdc opened this issue Feb 10, 2022 · 1 comment · Fixed by #1071
Assignees
Labels
provider: Azure type: bug 🐛 Something isn't working

Comments

@viniciusdc
Copy link
Contributor

Describe the bug

I might be doing something wrong here, but it seems that the Azure deployment is currently failing for new fresh installs of Qhub (I saw that happening before #1003).

  • As a workaround for that, just created the target resource group <project_name-<namespace> beforehand

Expected behavior

  • IMO Qhub should create a resource group during deployment.

Actual behavior

[terraform]: module.registry.azurerm_container_registry.container_registry: Creating...
[terraform]: module.kubernetes.azurerm_kubernetes_cluster.main: Creating...
[terraform]: ╷
[terraform]: │ Error: creating Managed Kubernetes Cluster "qhubstages-dev" (Resource Group "qhubstages-dev"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=404 -- Original Error: Code="ResourceGroupNotFound" Message="Resource group 'qhubstages-dev' could not be found."
[terraform]: │ 
[terraform]: │   with module.kubernetes.azurerm_kubernetes_cluster.main,
[terraform]: │   on modules/kubernetes/main.tf line 2, in resource "azurerm_kubernetes_cluster" "main":
[terraform]: │    2: resource "azurerm_kubernetes_cluster" "main" {
[terraform]: │ 
[terraform]: ╵
[terraform]: ╷
[terraform]: │ Error: Error creating Container Registry "qhubstagesdev" (Resource Group "qhubstages-dev"): containerregistry.RegistriesClient#Create: Failure sending request: StatusCode=404 -- Original Error: Code="ResourceGroupNotFound" Message="Resource group 'qhubstages-dev' could not be found."
[terraform]: │ 
[terraform]: │   with module.registry.azurerm_container_registry.container_registry,
[terraform]: │   on modules/registry/main.tf line 1, in resource "azurerm_container_registry" "container_registry":
[terraform]: │    1: resource "azurerm_container_registry" "container_registry" {
[terraform]: │ 
[terraform]: ╵

How to reproduce

  1. Initialize qhub for Azure
  2. qhub deploy
@viniciusdc
Copy link
Contributor Author

c.c @costrouc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider: Azure type: bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants