salt icon indicating copy to clipboard operation
salt copied to clipboard

salt.loaded.int.module.nova.__virtual__() is wrongly returning `None`.

Open shawnbutts opened this issue 10 years ago • 9 comments

Just upgrade to 2015.8.3 and this happens on every state call.

[ERROR   ] Exception raised when processing __virtual__ function for nova. Module will not be loaded global name 'novaclient' is not defined
[WARNING ] salt.loaded.int.module.nova.__virtual__() is wrongly returning 'None'. It should either return 'True', 'False' or a new name. If you're the developer of the module 'nova', please fix this.
Salt Version:
           Salt: 2015.8.3

Dependency Versions:
         Jinja2: 2.7.2
       M2Crypto: 0.21.1
           Mako: Not Installed
         PyYAML: 3.10
          PyZMQ: 14.5.0
         Python: 2.6.9 (unknown, Apr  1 2015, 18:16:00)
           RAET: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.5
           cffi: 1.2.1
       cherrypy: 3.7.0
       dateutil: 2.1
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
        libnacl: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: 1.2.3
      pycparser: 2.14
       pycrypto: 2.6.1
         pygit2: Not Installed
   python-gnupg: Not Installed
          smmap: Not Installed
        timelib: Not Installed

System Versions:
           dist:
        machine: x86_64
        release: 4.1.13-18.26.amzn1.x86_64

shawnbutts avatar Dec 04 '15 19:12 shawnbutts

@shawnbutts, thanks for the report.

jfindlay avatar Dec 04 '15 22:12 jfindlay

This one is really bad. You may should revoke the 2015.8.3 packages as long as this is not merged?! (We are getting the same issue in Ubuntu 14.04. LTS)

rmatulat avatar Dec 07 '15 06:12 rmatulat

FYI, this is now fixed in the 2015.8 branch.

s0undt3ch avatar Dec 07 '15 09:12 s0undt3ch

Will this be rolled out to repo.saltstack.com soon? It appears that the 2015.8.0 packages have been removed making downgrading difficult.

jmcook1 avatar Dec 07 '15 16:12 jmcook1

@jmcook1, this fix will come out in 2015.8.4. I am not sure why 2015.8.0 packages are not there. They should be there. I have talked with @dmurphy18, who is looking into it.

jfindlay avatar Dec 07 '15 20:12 jfindlay

@jmcook1 We started archiving packages with the new layout, which started archiving the packages before the recent release, namely 2015.5.6 and 2015.8.1. I shall try to see if I have old copies of previous 2015.8.0 around that I can place in the new layout.

dmurphy18 avatar Dec 07 '15 22:12 dmurphy18

@jmcook1 Please that a look in the archive for salt 2015.8.0, for example: yum/redhat/6/x86_64/archive/rhel6/salt-minion-2015.8.0-3.el6.noarch.rpm

I shall try to locate versions for Redhat 5 & 7, or is Redhat 6 sufficient ?

dmurphy18 avatar Dec 07 '15 22:12 dmurphy18

Unfortunately I need 5, 6, & 7, all x86_64.

I was previously bitten by issue #26129 and was able to simply run 'yum downgrade salt salt-minion' to rollback. This probably isn't the place to debate the archive policy so I'll take it to the mailing list.

Thank you for making the 2015.8.0 rpms available again.

jmcook1 avatar Dec 08 '15 13:12 jmcook1

Would not do this in production, but for vagrant tests gets past the annoyances with salt-minion=2015.8.3+ds-1 :

  file.blockreplace:
    - name: /usr/lib/python2.7/dist-packages/salt/utils/openstack/nova.py
    - marker_start: "def check_nova():"
    - marker_end: "    novaclient_ver = LooseVersion(novaclient.__version__)"
    - content: "    return False"
    - show_changes: True
    - append_if_not_found: False

kaidokert avatar Jan 25 '16 21:01 kaidokert