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

OKD support for Azure provider #13

Closed
DanyC97 opened this issue Nov 29, 2019 · 14 comments
Closed

OKD support for Azure provider #13

DanyC97 opened this issue Nov 29, 2019 · 14 comments
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. platform/azure

Comments

@DanyC97
Copy link
Contributor

DanyC97 commented Nov 29, 2019

We would like to keep this master issue to link new issues which are related to Azure deployment so we can keep track as well as letting community know if a specific provider deployment is supported or has known issues etc

@LorbusChris
Copy link
Contributor

Azure images are now being built by the FCOS pipeline. They're not uploaded to Azure automatically, yet, though and users would still have to do that manually at the moment.

refs coreos/fedora-coreos-tracker#148 (comment)

@jomeier
Copy link
Contributor

jomeier commented Dec 15, 2019

It's here: https://builds.coreos.fedoraproject.org/prod/streams/testing-devel/builds/31.20191213.dev.0/x86_64/fedora-coreos-31.20191213.dev.0-azure.x86_64.vhd.xz

Currently I'm uploading the decompressed VHD file to my Storage Account in Azure

  • Upload to storage account with "Microsoft Azure Storage Explorer"
    -> Doesn't work. The VHD file has dynamic size. Azure VMs require fixed VHD size.
  • TODO: Resize VHD to 50 GByte so OKD4 has enough space for images, ...
  • Upload VHD file with azure-vhd-utils (https://github.com/microsoft/azure-vhd-utils)
    mkdir -p ~/go/src/github.com/microsoft
    cd ~/go/src/github.com/microsoft
    git clone https://github.com/microsoft/azure-vhd-utils.git
    cd azure-vhd-utils
    go get github.com/Microsoft/azure-vhd-utils
    go build -o azure-vhd-utils
    
    ./azure-vhd-utils upload --localvhdpath fedora-coreos-31.20191213.dev.0-azure.x86_64.vhd --stgaccountname <YOUR OWN STORAGE ACCOUNT NAME> --stgaccountkey <SECRET> --blobname fcos-azure --parallelism 32
    
  • Create Linux Disk Image from the VHD uploaded to my storage account
  • Create a simple install-config.yaml with platform: none, put your public ssh key into it so you can ssh into the VMs
  • Create ignition files with openshift-installer
  • Upload bootstrap.ign to storage account, make it public (don't know how to provide credentials for it to ignition files)
  • Create append_bootstrap.ign file and point its source to the blob container with bootstrap.ign
  • Create VM from this disk image:
    az vm create --name node-1 --resource-group group-1 --admin-username core --custom-data "$(cat append_bootstrap.ign)" --image fcos-azure
    
  • Open Serial console to watch the VM booting -> It appends the bootstrap.ign and tries to setup the cluster

It seems that it works. I'll setup DNS and load balancers and try to get the installation running.

Because Azure support is stripped out in the openshift-installer for the moment (hopefully only affecting the automated creation of infrastructure components through Terraform) I hope that I can configure the Azure cloud provider in OKD nevertheless after the installation :-)

@jomeier
Copy link
Contributor

jomeier commented Dec 15, 2019

It seems as if the bootstrap VM requires a reboot before it gets the DNS servers provided in the Azure VNET and is able to pull the initial okd image from quay.io.

@jomeier
Copy link
Contributor

jomeier commented Dec 15, 2019

If Azure support comes back to the openshift-installer (maybe in preview 2 ?) I'm eager to test Azure disk and Azure file support.

@vrutkovs
Copy link
Member

vrutkovs commented Jul 3, 2020

Official FCOS on Azure is still not progressing. We have a workaround for that, so we won't be blocking GA on this

@vrutkovs vrutkovs removed this from the GA milestone Jul 3, 2020
@edisonpaul4bp
Copy link

Any news regarding this? Many problems trying to install this on Azure, at least with the last Nightly build I was able to install everything BUT only the Bootstrap node is online, master nodes are always offline.

Always getting ERROR Attempted to gather ClusterOperator status after installation failure: listing ClusterOperator objects timeout

@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 30, 2020
@vrutkovs
Copy link
Member

vrutkovs commented Nov 1, 2020

/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 1, 2020
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 30, 2021
@vrutkovs
Copy link
Member

vrutkovs commented Feb 1, 2021

/lifecycle frozen

@jryberg
Copy link

jryberg commented Apr 14, 2023

If Azure support comes back to the openshift-installer (maybe in preview 2 ?) I'm eager to test Azure disk and Azure file support.

It's supported in OpenShift openshift-installer, running it right now and my infrastructure is built using OpenShift instead of OKD

@1Kasla
Copy link

1Kasla commented Mar 21, 2024

Hello, I have encountered this issue while trying to install OKD on version v4.12 and above... on Azure IPI. Could you tell me if this error has already been fixed?

FATAL failed to fetch Metadata: failed to fetch dependency of "Metadata": failed to fetch dependency of "Bootstrap Ignition Config": failed to fetch dependency of "Worker Machines": failed to generate asset "Release": stable/x86_64: No azure build found

@bishoy-payco
Copy link

I'm facing the same error with OKD 4.15 installation.

I uploaded fcos image to my storage account as per the documentation (https://docs.fedoraproject.org/en-US/fedora-coreos/provisioning-azure/). But I can't find a way to tell the installer to use this image, and the only options I found to tell the installer to use a specific image is relying on providing the publisher, offer, sku, and version information, in which these information is only available to the marketplace images.

And generating the ignition files fails as well, giving the same error:
FATAL failed to fetch Bootstrap Ignition Config: failed to fetch dependency of "Bootstrap Ignition Config": failed to fetch dependency of "CVO Ignore": failed to fetch dependency of "Openshift Manifests": failed to generate asset "Image": stable/x86_64: No azure build found

@JaimeMagiera
Copy link
Contributor

Hi,

We are not working on FCOS builds of OKD any more. Please see these documents...

https://okd.io/blog/2024/06/01/okd-future-statement
https://okd.io/blog/2024/07/30/okd-pre-release-testing

Please test with the OKD SCOS nightlies and file a new issue as needed.

Many thanks,

Jaime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. platform/azure
Projects
None yet
Development

No branches or pull requests