Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2019.2.1: Breaks salt-cloud openstack --query #54760

Closed
vdloo opened this issue Sep 26, 2019 · 4 comments
Closed

2019.2.1: Breaks salt-cloud openstack --query #54760

vdloo opened this issue Sep 26, 2019 · 4 comments
Assignees
Labels
Confirmed Salt engineer has confirmed bug/feature - often including a MCVE fixed-pls-verify fix is linked, bug author to confirm fix
Milestone

Comments

@vdloo
Copy link
Contributor

vdloo commented Sep 26, 2019

previous behavior:

$ salt --version
saltsalt 2019.2.0 (Fluorine)

$ salt-cloud -Q
aws:
    ----------
    ec2:
        ----------
        testing-...-DEL...:
            ----------
            id:
                i-...
            image:
                ami-...
            name:
                testing-...
            private_ips:
            public_ips:
            size:
                t2.medium
            state:
                terminated
cos:
    ----------
    openstack:
        ----------
        some-node:
            ----------
            fixed_ips:
                - ...
            floating_ips:
            id:
                ...
            image:
                debian-buster-amd64
            name:
                some-node
            private_ips:
            public_ips:
                - ...
            size:
                m1.medium
            state:
                ACTIVE

behavior after upgrading to 2019.2.1:

$ salt --version
salt 2019.2.1 (Fluorine)

$ salt-cloud -Q
[ERROR   ] Exception raised when processing __virtual__ function for salt.loaded.int.clouds.openstack. Module will not be loaded: 'module' object is not subscriptable
[WARNING ] salt.loaded.int.clouds.openstack.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'openstack', please fix this.
[WARNING ] The cloud driver, 'openstack', configured under the 'cos' cloud provider alias, could not be loaded. Please check your provider configuration files and ensure all required dependencies are installed for the 'openstack' driver.
In rare cases, this could indicate the 'openstack.get_configured_provider()' function could not be found.
Removing 'openstack' from the available providers list
aws:
    ----------
    ec2:
        ----------
        testing-...-DEL...:
            ----------
            id:
                i-...
            image:
                ami-...
            name:
                testing-...
            private_ips:
            public_ips:
            size:
                t2.medium
            state:
                terminated

Running on:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.3 LTS
Release:	16.04
Codename:	xenial

$ python --version
Python 3.5.2

with debug:

[INFO    ] salt-cloud starting
[ERROR   ] Exception raised when processing __virtual__ function for salt.loaded.int.clouds.openstack. Module will not be loaded: 'module' object is not subscriptable
Traceback (most recent call last):
  File "/usr/local/venv/saltyparrot1/lib/python3.5/site-packages/salt/loader.py", line 1843, in _process_virtual
    virtual = getattr(mod, virtual_func)()
  File "/usr/local/venv/saltyparrot1/lib/python3.5/site-packages/salt/cloud/clouds/openstack.py", line 254, in __virtual__
    if get_dependencies() is False:
  File "/usr/local/venv/saltyparrot1/lib/python3.5/site-packages/salt/cloud/clouds/openstack.py", line 283, in get_dependencies
    'shade': shade[0],
TypeError: 'module' object is not subscriptable
[WARNING ] salt.loaded.int.clouds.openstack.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'openstack', please fix this.

tested with both shade==1.31.0 and the currently latest shade==1.32.0

sounds related to #53734 and #53012

vdloo added a commit to vdloo/salt that referenced this issue Sep 26, 2019
@Akm0d Akm0d self-assigned this Sep 26, 2019
Akm0d pushed a commit to Akm0d/salt that referenced this issue Sep 26, 2019
Akm0d pushed a commit to Akm0d/salt that referenced this issue Sep 26, 2019
@cmcmarrow cmcmarrow added this to the Approved milestone Sep 26, 2019
@cmcmarrow
Copy link
Contributor

thanks for telling us

@Akm0d Akm0d added the fixed-pls-verify fix is linked, bug author to confirm fix label Oct 4, 2019
@stale
Copy link

stale bot commented Jan 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

@stale stale bot added the stale label Jan 7, 2020
@sagetherage sagetherage added the Confirmed Salt engineer has confirmed bug/feature - often including a MCVE label Jan 9, 2020
@stale
Copy link

stale bot commented Jan 9, 2020

Thank you for updating this issue. It is no longer marked as stale.

@stale stale bot removed the stale label Jan 9, 2020
@sagetherage
Copy link
Contributor

closing as fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed Salt engineer has confirmed bug/feature - often including a MCVE fixed-pls-verify fix is linked, bug author to confirm fix
Projects
None yet
Development

No branches or pull requests

4 participants