Giter Club home page Giter Club logo

cluster-baremetal-operator's People

Contributors

andfasano avatar andreaskaris avatar ardaguclu avatar asalkeld avatar bfournie avatar carbonin avatar csrwng avatar deads2k avatar derekhiggins avatar dhellmann avatar dtantsur avatar elfosardo avatar guillaumerose avatar honza avatar hroyrh avatar imain avatar iurygregory avatar kirankt avatar lack avatar openshift-ci[bot] avatar openshift-merge-bot[bot] avatar openshift-merge-robot avatar rhjanders avatar robincernin avatar sadasu avatar squidboylan avatar stbenjam avatar wking avatar zaneb avatar zhouhao3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cluster-baremetal-operator's Issues

ProvisioningMacAddresses cannot be obtained correctly

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.

ssl.SSLError: [SSL: HTTP_REQUEST] http request

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.