Bug 1746021
Summary: | [osp] Create a machine with invalid subnet, logs should output subnet is invalid | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | sunzhaohua <zhsun> |
Component: | Cloud Compute | Assignee: | Pierre Prinetti <pprinett> |
Status: | CLOSED ERRATA | QA Contact: | sunzhaohua <zhsun> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.2.0 | CC: | agarcial, calfonso, eduen, egarcia, jchaloup |
Target Milestone: | --- | ||
Target Release: | 4.2.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | osp | ||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-10-16 06:37:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
sunzhaohua
2019-08-27 13:32:30 UTC
The log output is really ugly, but doesn't it say that the subnet was invalid right here: controller.go:249] Failed to create machine "shared-jiazha-8ck2c-worker-invalidsubnet": error creating Openstack instance: Create new server err: Bad request with: [POST https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13774/v2.1/servers], error message: {"badRequest": {"message": "Invalid input for field/attribute server. Value: {u'name': u'shared-jiazha-8ck2c-worker-invalidsubnet', u'imageRef': u'8fe77b79-2a62-4b90-9f95-67c7bcc88070', u'tags': [u'cluster-api-provider-openstack', u'openshift-machine-api-shared-jiazha-8ck2c', u'openshiftClusterID=shared-jiazha-8ck2c'], u'flavorRef': u'a9acc2de-39d7-4148-8d16-413c3b696e9d', u'user_data': .... The error message from OpenStack mentions that the 'networks' property is missing from the Instance definition. And indeed, CAPO's machine-service compiles the Instance definition by inserting any real NetworkID found after querying OpenStack with the Machine's Network property filters. If no valid NetworkID is found, the Instance's Network section is left empty. Verifed. clusterversion: 4.2.0-0.nightly-2019-09-15-052022 I0916 06:11:04.704983 1 controller.go:129] Reconciling Machine "share-0916c-8vp8z-worker-aaa" I0916 06:11:04.705022 1 controller.go:298] Machine "share-0916c-8vp8z-worker-aaa" in namespace "openshift-machine-api" doesn't specify "cluster.k8s.io/cluster-name" label, assuming nil cluster I0916 06:11:04.711614 1 controller.go:129] Reconciling Machine "share-0916c-8vp8z-worker-aaa" I0916 06:11:04.711640 1 controller.go:298] Machine "share-0916c-8vp8z-worker-aaa" in namespace "openshift-machine-api" doesn't specify "cluster.k8s.io/cluster-name" label, assuming nil cluster I0916 06:11:05.005775 1 controller.go:247] Reconciling machine object share-0916c-8vp8z-worker-aaa triggers idempotent create. E0916 06:11:11.340611 1 actuator.go:470] Machine error share-0916c-8vp8z-worker-aaa: error creating Openstack instance: No network was found or provided. Please check your machine configuration and try again W0916 06:11:11.340640 1 controller.go:249] Failed to create machine "share-0916c-8vp8z-worker-aaa": error creating Openstack instance: No network was found or provided. Please check your machine configuration and try again Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:2922 |