Uploaded image for project: 'odltools'
  1. odltools
  2. ODLTOOLS-19

odltools 'netvirt' command options are getting failed due to exception.

    XMLWordPrintable

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Done
    • None

    Description

      With the latest odltools, the following exception is seen while executing the command ‘python -m odltools netvirt show neutron all’

      The RestClient is not getting initialized from method ‘get_models(self, args, models)’ in mdsal/models/models.py

      All netvirt command options are getting failed for the same reason. 

      stack@osc-pike-ubuntu16:~/odltools$ python -m odltools netvirt show neutron all
      Traceback (most recent call last):
      File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
       "_main_", fname, loader, pkg_name)
      File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
       exec code in run_globals
      File "/home/stack/odltools/odltools/_main_.py", line 17, in <module>
       main()
      File "/home/stack/odltools/odltools/_main_.py", line 13, in main
       cli.main()
      File "odltools/cli.py", line 46, in main
       args.func(args)
      File "odltools/netvirt/show.py", line 187, in show_neutron
       config.get_models(args, {"neutron_neutron"})
      File "odltools/netvirt/config.py", line 26, in get_models
       gmodels.get_models(args, models)
      File "odltools/mdsal/models/models.py", line 119, in get_models
       self.neutron_neutron = neutron.neutron(Model.CONFIG, args)
      File "odltools/mdsal/models/neutron.py", line 13, in neutron
       return Neutron(MODULE, store, args)
      File "odltools/mdsal/models/model.py", line 38, in _init_
       self.data = get_model_data(self.data, self.filename, self.url, args)
      File "odltools/mdsal/models/model.py", line 158, in get_model_data
       data = get_from_odl(url)
      File "odltools/mdsal/models/model.py", line 147, in get_from_odl
       return odl_client.get_json(url)
       AttributeError: 'NoneType' object has no attribute 'get_json'

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thapar Vishal Thapar
            balasaritha BALASARITHA R
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: