← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1437432] [NEW] unkown environment variable TEMPEST_CONFIG_DIR

 

Public bug reported:

I've tried to run the tox but i've got an error:

18:32:16$ git clone git://github.com/openstack/neutron
Cloning into 'neutron'...
remote: Counting objects: 123543, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 123543 (delta 10), reused 0 (delta 0), pack-reused 123518
Receiving objects: 100% (123543/123543), 54.61 MiB | 1.58 MiB/s, done.
Resolving deltas: 100% (81881/81881), done.
Checking connectivity... done.
[svilgelm@vilgelm ~/workspace]
18:33:20$ cd neutron/
[svilgelm@vilgelm ~/workspace/neutron (master)]
18:33:25$ tox -epy27
Traceback (most recent call last):
  File "/usr/local/bin/tox", line 8, in <module>
    load_entry_point('tox==1.6.1', 'console_scripts', 'tox')()
  File "/Library/Python/2.7/site-packages/tox/_cmdline.py", line 25, in main
    config = parseconfig(args, 'tox')
  File "/Library/Python/2.7/site-packages/tox/_config.py", line 44, in parseconfig
    parseini(config, inipath)
  File "/Library/Python/2.7/site-packages/tox/_config.py", line 251, in __init__
    config)
  File "/Library/Python/2.7/site-packages/tox/_config.py", line 307, in _makeenvconfig
    vc.setenv = reader.getdict(section, 'setenv')
  File "/Library/Python/2.7/site-packages/tox/_config.py", line 432, in getdict
    s = self.getdefault(section, name, None)
  File "/Library/Python/2.7/site-packages/tox/_config.py", line 524, in getdefault
    x = self._replace(x)
  File "/Library/Python/2.7/site-packages/tox/_config.py", line 631, in _replace
    return rexpattern.sub(replace_func, x)
  File "/Library/Python/2.7/site-packages/tox/_config.py", line 622, in _replace_match_no_quote
    return self._replace_match(match, quote=False)
  File "/Library/Python/2.7/site-packages/tox/_config.py", line 617, in _replace_match
    return handler(match, quote)
  File "/Library/Python/2.7/site-packages/tox/_config.py", line 554, in _replace_env
    (envkey, envkey))
tox.ConfigError: ConfigError: substitution env:'TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc': unkown environment variable 'TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc'

This exception came from the tox.ini file:
[testenv:api]
setenv = OS_TEST_PATH=./neutron/tests/api
         TEMPEST_CONFIG_DIR={env:TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc}

** Affects: neutron
     Importance: Undecided
         Status: Invalid


** Tags: tox

** Description changed:

  I've tried to run the tox but i've got an error:
  
  18:32:16$ git clone git://github.com/openstack/neutron
  Cloning into 'neutron'...
  remote: Counting objects: 123543, done.
  remote: Compressing objects: 100% (25/25), done.
  remote: Total 123543 (delta 10), reused 0 (delta 0), pack-reused 123518
  Receiving objects: 100% (123543/123543), 54.61 MiB | 1.58 MiB/s, done.
  Resolving deltas: 100% (81881/81881), done.
  Checking connectivity... done.
  [svilgelm@vilgelm ~/workspace]
  18:33:20$ cd neutron/
  [svilgelm@vilgelm ~/workspace/neutron (master)]
  18:33:25$ tox -epy27
  Traceback (most recent call last):
-   File "/usr/local/bin/tox", line 8, in <module>
-     load_entry_point('tox==1.6.1', 'console_scripts', 'tox')()
-   File "/Library/Python/2.7/site-packages/tox/_cmdline.py", line 25, in main
-     config = parseconfig(args, 'tox')
-   File "/Library/Python/2.7/site-packages/tox/_config.py", line 44, in parseconfig
-     parseini(config, inipath)
-   File "/Library/Python/2.7/site-packages/tox/_config.py", line 251, in __init__
-     config)
-   File "/Library/Python/2.7/site-packages/tox/_config.py", line 307, in _makeenvconfig
-     vc.setenv = reader.getdict(section, 'setenv')
-   File "/Library/Python/2.7/site-packages/tox/_config.py", line 432, in getdict
-     s = self.getdefault(section, name, None)
-   File "/Library/Python/2.7/site-packages/tox/_config.py", line 524, in getdefault
-     x = self._replace(x)
-   File "/Library/Python/2.7/site-packages/tox/_config.py", line 631, in _replace
-     return rexpattern.sub(replace_func, x)
-   File "/Library/Python/2.7/site-packages/tox/_config.py", line 622, in _replace_match_no_quote
-     return self._replace_match(match, quote=False)
-   File "/Library/Python/2.7/site-packages/tox/_config.py", line 617, in _replace_match
-     return handler(match, quote)
-   File "/Library/Python/2.7/site-packages/tox/_config.py", line 554, in _replace_env
-     (envkey, envkey))
+   File "/usr/local/bin/tox", line 8, in <module>
+     load_entry_point('tox==1.6.1', 'console_scripts', 'tox')()
+   File "/Library/Python/2.7/site-packages/tox/_cmdline.py", line 25, in main
+     config = parseconfig(args, 'tox')
+   File "/Library/Python/2.7/site-packages/tox/_config.py", line 44, in parseconfig
+     parseini(config, inipath)
+   File "/Library/Python/2.7/site-packages/tox/_config.py", line 251, in __init__
+     config)
+   File "/Library/Python/2.7/site-packages/tox/_config.py", line 307, in _makeenvconfig
+     vc.setenv = reader.getdict(section, 'setenv')
+   File "/Library/Python/2.7/site-packages/tox/_config.py", line 432, in getdict
+     s = self.getdefault(section, name, None)
+   File "/Library/Python/2.7/site-packages/tox/_config.py", line 524, in getdefault
+     x = self._replace(x)
+   File "/Library/Python/2.7/site-packages/tox/_config.py", line 631, in _replace
+     return rexpattern.sub(replace_func, x)
+   File "/Library/Python/2.7/site-packages/tox/_config.py", line 622, in _replace_match_no_quote
+     return self._replace_match(match, quote=False)
+   File "/Library/Python/2.7/site-packages/tox/_config.py", line 617, in _replace_match
+     return handler(match, quote)
+   File "/Library/Python/2.7/site-packages/tox/_config.py", line 554, in _replace_env
+     (envkey, envkey))
  tox.ConfigError: ConfigError: substitution env:'TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc': unkown environment variable 'TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc'
+ 
+ This exception came from the toxin file:
+ [testenv:api]
+ setenv = OS_TEST_PATH=./neutron/tests/api
+          TEMPEST_CONFIG_DIR={env:TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc}

** Description changed:

  I've tried to run the tox but i've got an error:
  
  18:32:16$ git clone git://github.com/openstack/neutron
  Cloning into 'neutron'...
  remote: Counting objects: 123543, done.
  remote: Compressing objects: 100% (25/25), done.
  remote: Total 123543 (delta 10), reused 0 (delta 0), pack-reused 123518
  Receiving objects: 100% (123543/123543), 54.61 MiB | 1.58 MiB/s, done.
  Resolving deltas: 100% (81881/81881), done.
  Checking connectivity... done.
  [svilgelm@vilgelm ~/workspace]
  18:33:20$ cd neutron/
  [svilgelm@vilgelm ~/workspace/neutron (master)]
  18:33:25$ tox -epy27
  Traceback (most recent call last):
    File "/usr/local/bin/tox", line 8, in <module>
      load_entry_point('tox==1.6.1', 'console_scripts', 'tox')()
    File "/Library/Python/2.7/site-packages/tox/_cmdline.py", line 25, in main
      config = parseconfig(args, 'tox')
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 44, in parseconfig
      parseini(config, inipath)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 251, in __init__
      config)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 307, in _makeenvconfig
      vc.setenv = reader.getdict(section, 'setenv')
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 432, in getdict
      s = self.getdefault(section, name, None)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 524, in getdefault
      x = self._replace(x)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 631, in _replace
      return rexpattern.sub(replace_func, x)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 622, in _replace_match_no_quote
      return self._replace_match(match, quote=False)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 617, in _replace_match
      return handler(match, quote)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 554, in _replace_env
      (envkey, envkey))
  tox.ConfigError: ConfigError: substitution env:'TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc': unkown environment variable 'TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc'
  
- This exception came from the toxin file:
+ This exception came from the tox.ini file:
  [testenv:api]
  setenv = OS_TEST_PATH=./neutron/tests/api
-          TEMPEST_CONFIG_DIR={env:TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc}
+          TEMPEST_CONFIG_DIR={env:TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc}

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1437432

Title:
  unkown environment variable TEMPEST_CONFIG_DIR

Status in OpenStack Neutron (virtual network service):
  Invalid

Bug description:
  I've tried to run the tox but i've got an error:

  18:32:16$ git clone git://github.com/openstack/neutron
  Cloning into 'neutron'...
  remote: Counting objects: 123543, done.
  remote: Compressing objects: 100% (25/25), done.
  remote: Total 123543 (delta 10), reused 0 (delta 0), pack-reused 123518
  Receiving objects: 100% (123543/123543), 54.61 MiB | 1.58 MiB/s, done.
  Resolving deltas: 100% (81881/81881), done.
  Checking connectivity... done.
  [svilgelm@vilgelm ~/workspace]
  18:33:20$ cd neutron/
  [svilgelm@vilgelm ~/workspace/neutron (master)]
  18:33:25$ tox -epy27
  Traceback (most recent call last):
    File "/usr/local/bin/tox", line 8, in <module>
      load_entry_point('tox==1.6.1', 'console_scripts', 'tox')()
    File "/Library/Python/2.7/site-packages/tox/_cmdline.py", line 25, in main
      config = parseconfig(args, 'tox')
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 44, in parseconfig
      parseini(config, inipath)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 251, in __init__
      config)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 307, in _makeenvconfig
      vc.setenv = reader.getdict(section, 'setenv')
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 432, in getdict
      s = self.getdefault(section, name, None)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 524, in getdefault
      x = self._replace(x)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 631, in _replace
      return rexpattern.sub(replace_func, x)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 622, in _replace_match_no_quote
      return self._replace_match(match, quote=False)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 617, in _replace_match
      return handler(match, quote)
    File "/Library/Python/2.7/site-packages/tox/_config.py", line 554, in _replace_env
      (envkey, envkey))
  tox.ConfigError: ConfigError: substitution env:'TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc': unkown environment variable 'TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc'

  This exception came from the tox.ini file:
  [testenv:api]
  setenv = OS_TEST_PATH=./neutron/tests/api
           TEMPEST_CONFIG_DIR={env:TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc}

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1437432/+subscriptions


Follow ups

References