Uploaded image for project: 'OpenShift Hive'
  1. OpenShift Hive
  2. HIVE-1372

The machinepool can’t work on openstack platform both in normal or self sighed openstack env

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • None
    • None
    • None
    • None
    • None
    • Hive Sprint 197
    • None
    • None
    • Undefined

      Description of problem:
      When installing cluster on openstack platform using hive, the cluster can be isntalled successfully, but the machinepool can’t work.

      Version:
      Hive master branch (commit: 51f4cd584475)

      logs from hive-controller is :

      time="2021-02-05T06:28:51.127Z" level=info msg="found 1 remote machine sets" controller=remotemachineset machinePool=lwan-test/lwanospca-worker reconcileID=hshcqkpp
      time="2021-02-05T06:28:51.127Z" level=debug msg="resolved image to use for new machinesets" controller=remotemachineset image=lwanospca-g5c74-rhcos machinePool=lwan-test/lwanospca-worker reconcileID=hshcqkpp
      time="2021-02-05T06:28:51.128Z" level=error msg="could not generateMachineSets" controller=remotemachineset error="could not generate machinesets: failed to generate machinesets: unable to load clouds.yaml: no clouds.yaml file found" machinePool=lwan-test/lwanospca-worker reconcileID=hshcqkpp
      time="2021-02-05T06:28:51.128Z" level=info msg="reconcile complete" controller=remotemachineset elapsedMillis=745 elapsedMillisGT=0 machinePool=lwan-test/lwanospca-worker outcome=unspecified reconcileID=hshcqkpp
      time="2021-02-05T06:28:51.128Z" level=error msg="Reconciler error" _name=controller controller=remotemachineset-controller error="could not generate machinesets: failed to generate machinesets: unable to load clouds.yaml: no clouds.yaml file found" name=lwanospca-worker namespace=lwan-test
      

      Actual results:
      the machinepool config didn’t take effect on remote machinesets and machines

      Expected results:
      the change on machinepool CR should take effect on remote machinesets and machines

      Additional information:
      The issue did come from vender dir, It shows can't find clouds.yaml file in env. the secret/lwanospca-openstack-creds exists and the content is correct. whether we can get clouds.yaml content from cred-secrets or create clouds.yaml file in env? or for some other reason.

      https://github.com/openshift/hive/blob/master/pkg/controller/remotemachineset/openstackactuator.go#L128-L137
      https://github.com/openshift/hive/blob/master/vendor/github.com/openshift/installer/pkg/asset/machines/openstack/machines.go#L44
      https://github.com/openshift/hive/blob/master/vendor/github.com/openshift/installer/pkg/asset/machines/openstack/machines.go#L179-L180
      https://github.com/openshift/hive/blob/master/vendor/github.com/gophercloud/utils/openstack/clientconfig/requests.go

              adahiyaredhat Abhinav Dahiya (Inactive)
              lwan-wanglin Lin Wang
              Lin Wang Lin Wang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: