openshift / cluster-baremetal-operator Goto Github PK
View Code? Open in Web Editor NEWThis repository is for a new second level operator for baremetal installs. See https://github.com/openshift/enhancements/pull/212.
License: Apache License 2.0
This repository is for a new second level operator for baremetal installs. See https://github.com/openshift/enhancements/pull/212.
License: Apache License 2.0
The following branches are being fast-forwarded from the current development branch (master) as placeholders for future releases. No merging is allowed into these release branches until they are unfrozen for production release.
release-4.18
release-4.19
For more information, see the branching documentation.
The following branches are being fast-forwarded from the current development branch (master) as placeholders for future releases. No merging is allowed into these release branches until they are unfrozen for production release.
release-4.10
release-4.9
Contact the Test Platform or Automated Release teams for more information.
When using OCP version 4.8.0-0.nightly-2021-03-19-184028 to deploy bare metal by IPI, The master can be deployed successfully, but the worker is always in the inspecting state when deploying the worker. Check the inspector log to get the following error message.
1294 Traceback (most recent call last):
1295 File "/usr/lib/python3.6/site-packages/eventlet/hubs/hub.py", line 461, in fire_timers
1296 timer()
1297 File "/usr/lib/python3.6/site-packages/eventlet/hubs/timer.py", line 59, in __call__
1298 cb(*args, **kw)
1299 File "/usr/lib/python3.6/site-packages/eventlet/greenthread.py", line 221, in main
1300 result = function(*args, **kwargs)
1301 File "/usr/lib/python3.6/site-packages/eventlet/wsgi.py", line 818, in process_request
1302 proto.__init__(conn_state, self)
1303 File "/usr/lib/python3.6/site-packages/eventlet/wsgi.py", line 357, in __init__
1304 self.handle()
1305 File "/usr/lib/python3.6/site-packages/eventlet/wsgi.py", line 390, in handle
1306 self.handle_one_request()
1307 File "/usr/lib/python3.6/site-packages/eventlet/wsgi.py", line 419, in handle_one_request
1308 self.raw_requestline = self._read_request_line()
1309 File "/usr/lib/python3.6/site-packages/eventlet/wsgi.py", line 402, in _read_request_line
1310 return self.rfile.readline(self.server.url_length_limit)
1311 File "/usr/lib64/python3.6/socket.py", line 586, in readinto
1312 return self._sock.recv_into(b)
1313 File "/usr/lib/python3.6/site-packages/eventlet/green/ssl.py", line 241, in recv_into
1314 return self._base_recv(nbytes, flags, into=True, buffer_=buffer)
1315 File "/usr/lib/python3.6/site-packages/eventlet/green/ssl.py", line 256, in _base_recv
1316 read = self.read(nbytes, buffer_)
1317 File "/usr/lib/python3.6/site-packages/eventlet/green/ssl.py", line 176, in read
1318 super(GreenSSLSocket, self).read, *args, **kwargs)
1319 File "/usr/lib/python3.6/site-packages/eventlet/green/ssl.py", line 150, in _call_trampolining
1320 return func(*a, **kw)
1321 File "/usr/lib64/python3.6/ssl.py", line 833, in read
1322 return self._sslobj.read(len, buffer)
1323 File "/usr/lib64/python3.6/ssl.py", line 590, in read
1324 v = self._sslobj.read(len, buffer)
1325 ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:2354)
After investigation, it is found that when deploying the worker, the IPA on the worker uses the http protocol, but the ipa-api-url used by the ironic in the cluster is the https protocol, which should be the cause of this error.
ipa-api-url=https://192.168.20.3:6385
Because the protocols on both sides are the same when deploying the Master (both are http), the Master can be deployed successfully.
btw, this issue appeared after this commit was merged.
This project can't execute "make generate" or "make manifests"
Starting with ocp4.11.5 (cluster-baremetal-operator #282 ), IPI deployment fails.
The failure phenomenon is that the metal3 deployment node cannot be successfully deployed in the master, the specific error is that its init container metal3-static-ip-set
will have some errors:
» oc logs metal3-586fd74b5d-7mr4j -n openshift-machine-api -c metal3-static-ip-set
+ '[' -z 192.168.20.3/24 ']'
+ '[' -z '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ echo 'ERROR: Could not find suitable interface for "192.168.20.3/24"'
ERROR: Could not find suitable interface for "192.168.20.3/24"
+ exit 1
After verification, it is found that the value of PROVISIONING_MACS
in deploy is empty, and this value should be obtained and assigned by cluster-baremetal-operator.
initContainers:
- command:
- /set-static-ip
env:
- name: PROVISIONING_IP
value: 192.168.20.3/24
- name: PROVISIONING_INTERFACE
- name: PROVISIONING_MACS
- name: HTTP_PROXY
Starting from #282, bmhNames
will be obtained through ProviderID
instead of directly using the "master", but I found from the log that the ProviderID
of the node is Unschedulable:false
when the error occurs, so the return value of getHostByProviderId
is empty, which causes ProvisioningMacAddresses
not to be assigned.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.