openshift / installer

Install an OpenShift 4.x cluster
https://try.openshift.com
Apache License 2.0
1.44k stars 1.39k forks source link

[openstack]: ERROR Error: Unassigned variable #3558

Closed droslean closed 3 years ago

droslean commented 4 years ago

Version

built from branch release-4.4

$ openshift-install version
./openshift-install unreleased-master-2633-gfb65b95076665c794e7c1cc148f56722761d0d31
built from commit fb65b95076665c794e7c1cc148f56722761d0d31
release image registry.svc.ci.openshift.org/origin/release:4.3

Platform:

What happened?

INFO Creating infrastructure resources...         
ERROR                                              
ERROR Error: Unassigned variable                   
ERROR                                              
ERROR The input variable "openstack_node_dns_ip" has not been assigned a value. This 
ERROR is a bug in Terraform; please report it in a GitHub issue. 
ERROR                                              
ERROR                                              
ERROR Error: Unassigned variable                   
ERROR                                              
ERROR The input variable "openstack_octavia_support" has not been assigned a value. 
ERROR This is a bug in Terraform; please report it in a GitHub issue. 
ERROR                                              
ERROR                                              
ERROR Error: Unassigned variable                   
ERROR                                              
ERROR The input variable "openstack_base_image_name" has not been assigned a value. 
ERROR This is a bug in Terraform; please report it in a GitHub issue. 
ERROR                                              
ERROR                                              
ERROR Error: Unassigned variable                   
ERROR                                              
ERROR The input variable "openstack_trunk_support" has not been assigned a value. 
ERROR This is a bug in Terraform; please report it in a GitHub issue. 
ERROR                                              
ERROR                                              
ERROR Error: Unassigned variable                   
ERROR                                              
ERROR The input variable "openstack_ingress_ip" has not been assigned a value. This 
ERROR is a bug in Terraform; please report it in a GitHub issue. 
ERROR                                              
ERROR                                              
ERROR Error: Unassigned variable                   
ERROR                                              
ERROR The input variable "openstack_master_flavor_name" has not been assigned a 
ERROR value. This is a bug in Terraform; please report it in a GitHub issue. 
ERROR                                              
ERROR                                              
ERROR Error: Unassigned variable                   
ERROR                                              
ERROR The input variable "openstack_api_int_ip" has not been assigned a value. This 
ERROR is a bug in Terraform; please report it in a GitHub issue. 
ERROR                                              
ERROR Failed to read tfstate: open /tmp/openshift-install-105403696/terraform.tfstate: no such file or directory 
FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply using Terraform 
mandre commented 4 years ago

All those variables are normally validated via the installer, it's surprising that you were able to skip the validation.

Could you describe how you ran the installer? Can you reproduce this consistently?

droslean commented 4 years ago

Could you describe how you ran the installer? Can you reproduce this consistently?

I run the normal create cluster command. I can reproduce that consistently. I think that this should be a permission error related. I noticed that my user doesn't have permissions to add an image in that OpenStack project. However, those errors are misleading.

mandre commented 4 years ago

I run the normal create cluster command. I can reproduce that consistently.

Great, this will be easier to debug.

I think that this should be a permission error related. I noticed that my user doesn't have permissions to add an image in that OpenStack project. However, those errors are misleading.

Agreed - it's poor UI experience. Let's find out what causes this error and catch it in the validations.

Is the installer logging anything useful before spitting this terraform error? We'll try to reproduce on our side.

mandre commented 4 years ago

We'll be tracking at https://bugzilla.redhat.com/show_bug.cgi?id=1835838

openshift-bot commented 4 years ago

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-bot commented 4 years ago

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

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

/lifecycle rotten /remove-lifecycle stale

openshift-bot commented 3 years ago

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-ci-robot commented 3 years ago

@openshift-bot: Closing this issue.

In response to [this](https://github.com/openshift/installer/issues/3558#issuecomment-743102950): >Rotten issues close after 30d of inactivity. > >Reopen the issue by commenting `/reopen`. >Mark the issue as fresh by commenting `/remove-lifecycle rotten`. >Exclude this issue from closing again by commenting `/lifecycle frozen`. > >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
zerodayz commented 3 years ago

Hi @droslean

Could you describe how you ran the installer? Can you reproduce this consistently?

I run the normal create cluster command. I can reproduce that consistently. I think that this should be a permission error related. I noticed that my user doesn't have permissions to add an image in that OpenStack project. However, those errors are misleading.

it's definitely not a permission issue to add_image. You would see something like:

DEBUG Creating a Glance image for your bootstrap ignition config... 
FATAL failed to fetch Terraform Variables: failed to generate asset "Terraform Variables": failed to get openstack Terraform variables: Request forbidden: [POST http://x.y.z.z:9292/v2/images], error message: {"message": "You are not authorized to complete add_image action.<br /><br />\n\n\n", "code": "403 Forbidden", "title": "Forbidden"} 

I built the installer from the same commit you have used:

./openshift-install unreleased-master-2633-gfb65b95076665c794e7c1cc148f56722761d0d31-dirty
built from commit fb65b95076665c794e7c1cc148f56722761d0d31
release image registry.svc.ci.openshift.org/origin/release:4.3

If you would like to help me figure this out and still have the environment, please can you share output of:

./openshift-install create cluster --dir=<install-dir> --log-level=debug