Bug 1805023 - [OSP] Machine status doesn't become "Failed" when creating a machine with invalid image
Summary: [OSP] Machine status doesn't become "Failed" when creating a machine with inv...
Keywords:
Status: CLOSED DUPLICATE of bug 1805025
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Compute
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Alberto
QA Contact: Jianwei Hou
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-20 06:15 UTC by sunzhaohua
Modified: 2020-02-20 14:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-20 14:59:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description sunzhaohua 2020-02-20 06:15:36 UTC
Description of problem:
UPI on OSP, machine status doesn't become "Failed" when creating a machine with invalid image

Version-Release number of selected component (if applicable):
4.4.0-0.nightly-2020-02-17-211020

How reproducible:
Always

Steps to Reproduce:
1.Create a machine, setting its providerSpec with an invalid image
2.Check machine status
3.Check logs 

Actual results:
Machine stuck in Provisioning status, doesn't become "Failed"

$ oc get machine
NAME                          PHASE          TYPE           REGION      ZONE   AGE
zhsun9-wxcfz-worker-aaaaa     Provisioning   ci.m1.xlarge   regionOne   nova   42m
zhsun9-wxcfz-worker-b-llxd8   Running        ci.m1.xlarge   regionOne   nova   16m
zhsun9-wxcfz-worker-bfwjk     Running        ci.m1.xlarge   regionOne   nova   19h
zhsun9-wxcfz-worker-c-6tjtg   Running        ci.m1.xlarge   regionOne   nova   18h

I0220 03:35:35.617474       1 controller.go:164] Reconciling Machine "zhsun9-wxcfz-worker-aaaaa"
I0220 03:35:35.617633       1 controller.go:376] Machine "zhsun9-wxcfz-worker-aaaaa" in namespace "openshift-machine-api" doesn't specify "cluster.k8s.io/cluster-name" label, assuming nil cluster
I0220 03:35:35.627688       1 machineservice.go:229] Cloud provider CA cert not provided, using system trust bundle
I0220 03:35:37.209780       1 controller.go:319] Reconciling machine object zhsun9-wxcfz-worker-aaaaa triggers idempotent create.
I0220 03:35:37.222271       1 machineservice.go:229] Cloud provider CA cert not provided, using system trust bundle
I0220 03:35:37.296965       1 machineservice.go:229] Cloud provider CA cert not provided, using system trust bundle
E0220 03:35:44.641047       1 actuator.go:474] Machine error zhsun9-wxcfz-worker-aaaaa: error creating Openstack instance: Create new server err: no image with the name rhcos-44.81.202002071430-0000 could be found
W0220 03:35:44.641072       1 controller.go:321] Failed to create machine "zhsun9-wxcfz-worker-aaaaa": error creating Openstack instance: Create new server err: no image with the name rhcos-44.81.202002071430-0000 could be found
I0220 03:38:28.481553       1 controller.go:164] Reconciling Machine "zhsun9-wxcfz-worker-aaaaa"

Expected results:
Machine status  become "Failed"


Additional info:

Comment 1 Martin André 2020-02-20 14:59:39 UTC

*** This bug has been marked as a duplicate of bug 1805025 ***


Note You need to log in before you can comment on or make changes to this bug.