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

Installing on Azure fails : Error creating Blob "rhcoswmem8.vhd" ... #302

Closed
erkkikeranen opened this issue Aug 14, 2020 · 5 comments
Closed

Comments

@erkkikeranen
Copy link

erkkikeranen commented Aug 14, 2020

Describe the bug

I am unable to install cluster on Azure (using region westeurope) with openshift-install create cluster --dir=configuration.

I am using Installer Provided Infrastructure.

I have tried to run the installer multiple times on MacOs, Azure CLI, virtual machine on Azure (Ubuntu) in same region where I want to set up my cluster.

The installer ends and exists with because of multiple terraform reported errors:

  • Error creating Blob "rhcoswmem8.vhd"
  • Error copy/waiting: Error copying: blobs.Client
  • Error: Error creating Blob "bootstrap.ign"
  • Error PutPageBlob: blobs.Client#PutPageBlob: Invalid input: input.BlobContentLengthBytes must be aligned to a 512-byte boundary
  • error(Timeout) from Infrastructure Provider: Copying the VHD to user environment was too slow, and timeout was reached for the success

Version

4.5.0-0.okd-2020-08-12-020541

I have downloaded the version from the /releases of this repository

openshift-install 4.5.0-0.okd-2020-08-12-020541
built from commit 699277bb61706731d687b9e40700ebf4630b0851
release image quay.io/openshift/okd@sha256:6974c414be62aee4fde24fe47ccfff97c2854ddc37eb196f3f3bcda2fdec17b4

I have also tried multiple versions and no success.

How reproducible

100%

Log bundle

Because no cluster is set up during installation, I only have the output from the installer (Seems like Terraform reported errors):

### (everything ok until this point, some ids replaced with asterisks)

DEBUG module.dns.azureprivatedns_zone_virtual_network_link.network: Still creating... [20s elapsed]
DEBUG module.dns.azureprivatedns_zone_virtual_network_link.network: Still creating... [30s elapsed]
DEBUG module.dns.azureprivatedns_zone_virtual_network_link.network: Creation complete after 32s [id=/subscriptions/***********/resourceGroups/*********-rg/providers/Microsoft.Network/privateDnsZones/*****.****.com/virtualNetworkLinks/********-network-link]
ERROR
ERROR Error: Error creating Blob "rhcoswmem8.vhd" (Container "vhd" / Account "clusterwmem8"): Error copy/waiting: Error copying: blobs.Client#Copy: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidHeaderValue" Message="The value for one of the HTTP headers is not in the correct format.\nRequestId:80792b95-b01e-011e-0d31-72cda2000000\nTime:2020-08-14T11:55:59.4934835Z"
ERROR
ERROR   on ../../tmp/openshift-install-847423647/main.tf line 168, in resource "azurerm_storage_blob" "rhcos_image":
ERROR  168: resource "azurerm_storage_blob" "rhcos_image" {
ERROR
ERROR
ERROR
ERROR Error: Error creating Blob "bootstrap.ign" (Container "ignition" / Account "clusterwmem8"): Error PutPageBlob: blobs.Client#PutPageBlob: Invalid input: `input.BlobContentLengthBytes` must be aligned to a 512-byte boundary.
ERROR
ERROR   on ../../tmp/openshift-install-847423647/bootstrap/main.tf line 49, in resource "azurerm_storage_blob" "ignition":
ERROR   49: resource "azurerm_storage_blob" "ignition" {
ERROR
ERROR
FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply Terraform: error(Timeout) from Infrastructure Provider: Copying the VHD to user environment was too slow, and timeout was reached for the success.

Is there a documented workaround available?

edit: might be related to openshift/installer issue openshift/installer#4034

@jomeier
Copy link
Contributor

jomeier commented Aug 14, 2020

This one should fix it:

openshift/installer#4054

walidshaari added a commit to walidshaari/installer that referenced this issue Aug 14, 2020
@erkkikeranen
Copy link
Author

I tried to compile @jomeier installer from the mentioned commit and it worked for me. Thanks!

@vrutkovs
Copy link
Member

@ChedlyMejri
Copy link

When i tried to compile @jomeier installer i get this error message after almost 30 minutes:

ERROR Error: Error creating Blob "rhcossqk72.vhd" (Container "vhd" / Account "clustersqk72"): Error creating storage blob on Azure: Error while uploading source file "/home/chedly/.cache/openshift-installer/image_cache/17fc72fc3c94492707e2104b8dd50d22": Error writing page at offset 61865984 for file "/home/chedly/.cache/openshift-installer/image_cache/17fc72fc3c94492707e2104b8dd50d22": blobs.Client#PutPageUpdate: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthenticationFailed" Message="Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:17035133-101e-001e-01e5-7562fe000000\nTime:2021-07-10T23:46:46.3726828Z"
ERROR
ERROR on ../../../../../tmp/openshift-install-724436399/main.tf line 181, in resource "azurerm_storage_blob" "rhcos_image":
ERROR 181: resource "azurerm_storage_blob" "rhcos_image" {
ERROR
ERROR
FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply Terraform: failed to complete the change

@arunvel1988
Copy link

arunvel1988 commented Dec 29, 2021

When i tried to compile installer i get this error message
Error: Error creating Blob "rhcoswii3l.vhd" (Container "vhd" / Account "clusterwii3l"): Error opening source file for upload
https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/34.20210529.3.0/x86_64/fedora-coreos-34.20210529.3.0-azure.x86_64.vhd.xz%22:

Documentation sucks.
No proper pre-requisites mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants