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

Unable to generate install-config.yml for Openstack #418

Closed
baba-tunde opened this issue Dec 8, 2020 · 16 comments
Closed

Unable to generate install-config.yml for Openstack #418

baba-tunde opened this issue Dec 8, 2020 · 16 comments
Assignees
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. platform/openstack

Comments

@baba-tunde
Copy link

Describe the bug
Unable to generate install-config.yml for Openstack
openshift-install create install-config --log-level=debug --dir=./ always ends up with the error message FATAL failed to fetch Install Config: failed to generate asset "Install Config": failed to generate OpenStack cloud info: failed to fetch machine subnet info: Resource not found

Version
4.6.0-0.okd-2020-11-27-200126

How reproducible
100%

Log bundle

openshift-install create install-config --log-level=debug --dir=./
DEBUG OpenShift Installer 4.6.0-0.okd-2020-11-27-200126 
DEBUG Built from commit 7b5bd8be9e5f18cc9b8af5f95d629ddd64c015cc 
DEBUG Fetching Install Config...                   
DEBUG Loading Install Config...                    
DEBUG   Loading SSH Key...                         
DEBUG   Loading Base Domain...                     
DEBUG     Loading Platform...                      
DEBUG   Loading Cluster Name...                    
DEBUG     Loading Base Domain...                   
DEBUG     Loading Platform...                      
DEBUG   Loading Pull Secret...                     
DEBUG   Loading Platform...                        
DEBUG   Fetching SSH Key...                        
DEBUG   Generating SSH Key...                      
? SSH Public Key /home/ubuntu/.ssh/rsa.pub
DEBUG   Fetching Base Domain...                    
DEBUG     Fetching Platform...                     
DEBUG     Generating Platform...                   
? Platform openstack
? Cloud shiftstack
? ExternalNetwork ext_net
? APIFloatingIPAddress *.*.*.*
? FlavorName c4.m16
DEBUG   Generating Base Domain...                  
? Base Domain example.org
DEBUG   Fetching Cluster Name...                   
DEBUG     Fetching Base Domain...                  
DEBUG     Reusing previously-fetched Base Domain   
DEBUG     Fetching Platform...                     
DEBUG     Reusing previously-fetched Platform      
DEBUG   Generating Cluster Name...                 
? Cluster Name okd-cluster
DEBUG   Fetching Pull Secret...                    
DEBUG   Generating Pull Secret...                  
? Pull Secret [? for help] ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
DEBUG   Fetching Platform...                       
DEBUG   Reusing previously-fetched Platform        
DEBUG Generating Install Config...                 
FATAL failed to fetch Install Config: failed to generate asset "Install Config": failed to generate OpenStack cloud info: failed to fetch machine subnet info: Resource not found

openshift_install.log

@vrutkovs
Copy link
Member

vrutkovs commented Dec 9, 2020

@mandre hey, do you know why would installer reject a network config with this error message?

@mandre
Copy link

mandre commented Dec 9, 2020

Hi @baba-tunde, it looks like you're setting the platform.openstack.machinesSubnet property in your install-config.yaml and this points to a resource that does not exist in your cloud.
This needs to be the UUID of an existing subnet. Check the Custom Subnets documentation for more info on how to use the feature.

/assign

@baba-tunde
Copy link
Author

Hi @mandre,
Is this something new ? On 4.5 it was working fine.
In fact I am following this doc https://docs.okd.io/latest/installing/installing_openstack/installing-openstack-user.html
With 4.6 should I need to define the Machines Subnet before starting the process ?

@mandre
Copy link

mandre commented Dec 9, 2020

Could your perhaps share the platform.openstack section of your install-config.yaml file? Do you confirm that the value you pass to platform.openstack.machinesSubnet is the UUID of an existing subnet?

The validation was a bit re-worked on 4.6 and might get a slightly different error message, but I do not see how this would have worked previously if you tried passing an non-existing machine subnet.

@baba-tunde
Copy link
Author

@mandre,
I don't have any install-config.yaml file. The first command that produce this file failed with the error I described above.
openshift-install create install-config --log-level=debug --dir=./

@baba-tunde
Copy link
Author

on 4.5 I used to create all the network afterward with the ansible playbooks.

@mandre
Copy link

mandre commented Dec 10, 2020

Oh I see you're running the openshift-install create install-config command, sorry I got confused.

It looks like your cloud returns a generic ErrDefault404 error rather than the ErrResourceNotFound error we expected.

Do you know what version of OpenStack you're deploying on?

@mandre
Copy link

mandre commented Dec 10, 2020

openshift/installer#4474 should fix it for 4.7, we'll then backport to 4.6.

@baba-tunde
Copy link
Author

Version 15

@baba-tunde
Copy link
Author

Hi @mandre Is there a way to work around this ?

@mandre
Copy link

mandre commented Dec 11, 2020

Hi @mandre Is there a way to work around this ?

Unfortunately, no. I'm afraid that your options are to to either wait for the fix to be included in the 4.6 branch of the installer, or apply the patch fixing the issue to the release-4.6 branch yourself and rebuild the installer.

One last option would be to install 4.5 and upgrade to 4.6.

@ghost
Copy link

ghost commented Dec 28, 2020

@baba-tunde hi, is openshift/installer#4474 work well for you?

@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 Mar 28, 2021
@openshift-bot
Copy link

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-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 27, 2021
@openshift-bot
Copy link

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
Copy link

openshift-ci bot commented May 27, 2021

@openshift-bot: Closing this issue.

In response to this:

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. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot closed this as completed May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. platform/openstack
Projects
None yet
Development

No branches or pull requests

5 participants