• Kubernetes Submit Queue's avatar
    Merge pull request #49318 from dims/bail-on-block-storage-api-detection · c9842a21
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 49081, 49318, 49219, 48989, 48486)
    
    Better message if we dont find appropriate BlockStorage API
    
    **What this PR does / why we need it**:
    
    With latest devstack, v1 and v2 are DEPRECATED and v3 is marked
    as CURRENT. So we fail to attach the disk, the error message is
    shown when one does "kubectl describe pod" but the operator has
    to dig into find the problem.
    
    So log a better message if we can't find the appropriate version
    of the API that we support with an explicit error message that
    the operator can see how to fix the situation.
    
    Note support for v3 block storage API is being added to gophercloud
    and will take a bit of time before we can support it.
    
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    c9842a21
openstack.go 17.7 KB