shaifali

importi18n error

Sep 24th, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.33 KB | None | 0 0
  1. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  2. from oslo import i18n
  3. ImportError: cannot import name i18n
  4. ======================================================================
  5. FAIL: tests.test_shell.ShellTest.test_help_on_subcommand_error
  6. tags: worker-0
  7. ----------------------------------------------------------------------
  8. Traceback (most recent call last):
  9. File "tests/test_shell.py", line 94, in test_help_on_subcommand_error
  10. self.assertRaises(exc.CommandError, shell, 'help bad')
  11. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
  12. self.assertThat(our_callable, matcher)
  13. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
  14. mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  15. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
  16. mismatch = matcher.match(matchee)
  17. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
  18. mismatch = self.exception_matcher.match(exc_info)
  19. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
  20. mismatch = matcher.match(matchee)
  21. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
  22. reraise(*matchee)
  23. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
  24. result = matchee()
  25. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 965, in __call__
  26. return self._callable_object(*self._args, **self._kwargs)
  27. File "tests/test_shell.py", line 75, in <lambda>
  28. shell = lambda cmd: _shell.main(cmd.split())
  29. File "glanceclient/shell.py", line 561, in main
  30. subcommand_parser = self.get_subcommand_parser(api_version)
  31. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  32. submodule = utils.import_versioned_module(version, 'shell')
  33. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  34. return importutils.import_module(module)
  35. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  36. __import__(import_str)
  37. File "glanceclient/v1/__init__.py", line 16, in <module>
  38. from glanceclient.v1.client import Client # noqa
  39. File "glanceclient/v1/client.py", line 18, in <module>
  40. from glanceclient.v1.image_members import ImageMemberManager
  41. File "glanceclient/v1/image_members.py", line 16, in <module>
  42. from glanceclient.openstack.common.apiclient import base
  43. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  44. from glanceclient.openstack.common.apiclient import exceptions
  45. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  46. from oslo import i18n
  47. ImportError: cannot import name i18n
  48. ======================================================================
  49. FAIL: tests.test_shell.ShellTest.test_help_unknown_command
  50. tags: worker-0
  51. ----------------------------------------------------------------------
  52. Traceback (most recent call last):
  53. File "tests/test_shell.py", line 85, in test_help_unknown_command
  54. self.assertRaises(exc.CommandError, shell.main, argstr.split())
  55. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
  56. self.assertThat(our_callable, matcher)
  57. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
  58. mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  59. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
  60. mismatch = matcher.match(matchee)
  61. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
  62. mismatch = self.exception_matcher.match(exc_info)
  63. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
  64. mismatch = matcher.match(matchee)
  65. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
  66. reraise(*matchee)
  67. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
  68. result = matchee()
  69. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 965, in __call__
  70. return self._callable_object(*self._args, **self._kwargs)
  71. File "glanceclient/shell.py", line 561, in main
  72. subcommand_parser = self.get_subcommand_parser(api_version)
  73. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  74. submodule = utils.import_versioned_module(version, 'shell')
  75. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  76. return importutils.import_module(module)
  77. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  78. __import__(import_str)
  79. File "glanceclient/v1/__init__.py", line 16, in <module>
  80. from glanceclient.v1.client import Client # noqa
  81. File "glanceclient/v1/client.py", line 18, in <module>
  82. from glanceclient.v1.image_members import ImageMemberManager
  83. File "glanceclient/v1/image_members.py", line 16, in <module>
  84. from glanceclient.openstack.common.apiclient import base
  85. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  86. from glanceclient.openstack.common.apiclient import exceptions
  87. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  88. from oslo import i18n
  89. ImportError: cannot import name i18n
  90. ======================================================================
  91. FAIL: tests.test_shell.ShellTest.test_no_auth_with_token_and_image_url_with_v1
  92. tags: worker-0
  93. ----------------------------------------------------------------------
  94. Traceback (most recent call last):
  95. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1193, in patched
  96. arg = patching.__enter__()
  97. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1252, in __enter__
  98. self.target = self.getter()
  99. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1414, in <lambda>
  100. getter = lambda: _importer(target)
  101. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1102, in _importer
  102. thing = _dot_lookup(thing, comp, import_path)
  103. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1091, in _dot_lookup
  104. __import__(import_path)
  105. File "glanceclient/v1/__init__.py", line 16, in <module>
  106. from glanceclient.v1.client import Client # noqa
  107. File "glanceclient/v1/client.py", line 18, in <module>
  108. from glanceclient.v1.image_members import ImageMemberManager
  109. File "glanceclient/v1/image_members.py", line 16, in <module>
  110. from glanceclient.openstack.common.apiclient import base
  111. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  112. from glanceclient.openstack.common.apiclient import exceptions
  113. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  114. from oslo import i18n
  115. ImportError: cannot import name i18n
  116. ======================================================================
  117. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_api_discovery_failed_with_unversioned_auth_url
  118. tags: worker-0
  119. ----------------------------------------------------------------------
  120. Traceback (most recent call last):
  121. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
  122. return func(*args, **keywargs)
  123. File "tests/test_shell.py", line 286, in test_api_discovery_failed_with_unversioned_auth_url
  124. self.assertRaises(exc.CommandError, glance_shell.main, args.split())
  125. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
  126. self.assertThat(our_callable, matcher)
  127. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
  128. mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  129. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
  130. mismatch = matcher.match(matchee)
  131. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
  132. mismatch = self.exception_matcher.match(exc_info)
  133. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
  134. mismatch = matcher.match(matchee)
  135. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
  136. reraise(*matchee)
  137. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
  138. result = matchee()
  139. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 965, in __call__
  140. return self._callable_object(*self._args, **self._kwargs)
  141. File "glanceclient/shell.py", line 561, in main
  142. subcommand_parser = self.get_subcommand_parser(api_version)
  143. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  144. submodule = utils.import_versioned_module(version, 'shell')
  145. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  146. return importutils.import_module(module)
  147. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  148. __import__(import_str)
  149. File "glanceclient/v1/__init__.py", line 16, in <module>
  150. from glanceclient.v1.client import Client # noqa
  151. File "glanceclient/v1/client.py", line 18, in <module>
  152. from glanceclient.v1.image_members import ImageMemberManager
  153. File "glanceclient/v1/image_members.py", line 16, in <module>
  154. from glanceclient.openstack.common.apiclient import base
  155. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  156. from glanceclient.openstack.common.apiclient import exceptions
  157. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  158. from oslo import i18n
  159. ImportError: cannot import name i18n
  160. ======================================================================
  161. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_auth_plugin_invocation_with_unversioned_auth_url_with_v1
  162. tags: worker-0
  163. ----------------------------------------------------------------------
  164. Traceback (most recent call last):
  165. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1193, in patched
  166. arg = patching.__enter__()
  167. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1252, in __enter__
  168. self.target = self.getter()
  169. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1414, in <lambda>
  170. getter = lambda: _importer(target)
  171. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1102, in _importer
  172. thing = _dot_lookup(thing, comp, import_path)
  173. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1091, in _dot_lookup
  174. __import__(import_path)
  175. File "glanceclient/v1/__init__.py", line 16, in <module>
  176. from glanceclient.v1.client import Client # noqa
  177. File "glanceclient/v1/client.py", line 18, in <module>
  178. from glanceclient.v1.image_members import ImageMemberManager
  179. File "glanceclient/v1/image_members.py", line 16, in <module>
  180. from glanceclient.openstack.common.apiclient import base
  181. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  182. from glanceclient.openstack.common.apiclient import exceptions
  183. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  184. from oslo import i18n
  185. ImportError: cannot import name i18n
  186. ======================================================================
  187. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_auth_plugin_invocation_with_v1
  188. tags: worker-0
  189. ----------------------------------------------------------------------
  190. Traceback (most recent call last):
  191. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1193, in patched
  192. arg = patching.__enter__()
  193. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1252, in __enter__
  194. self.target = self.getter()
  195. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1414, in <lambda>
  196. getter = lambda: _importer(target)
  197. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1102, in _importer
  198. thing = _dot_lookup(thing, comp, import_path)
  199. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1091, in _dot_lookup
  200. __import__(import_path)
  201. File "glanceclient/v1/__init__.py", line 16, in <module>
  202. from glanceclient.v1.client import Client # noqa
  203. File "glanceclient/v1/client.py", line 18, in <module>
  204. from glanceclient.v1.image_members import ImageMemberManager
  205. File "glanceclient/v1/image_members.py", line 16, in <module>
  206. from glanceclient.openstack.common.apiclient import base
  207. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  208. from glanceclient.openstack.common.apiclient import exceptions
  209. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  210. from oslo import i18n
  211. ImportError: cannot import name i18n
  212. ======================================================================
  213. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_cert_and_key_args_interchangeable
  214. tags: worker-0
  215. ----------------------------------------------------------------------
  216. Traceback (most recent call last):
  217. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
  218. return func(*args, **keywargs)
  219. File "tests/test_shell.py", line 116, in test_cert_and_key_args_interchangeable
  220. shell(args)
  221. File "tests/test_shell.py", line 75, in <lambda>
  222. shell = lambda cmd: _shell.main(cmd.split())
  223. File "glanceclient/shell.py", line 561, in main
  224. subcommand_parser = self.get_subcommand_parser(api_version)
  225. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  226. submodule = utils.import_versioned_module(version, 'shell')
  227. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  228. return importutils.import_module(module)
  229. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  230. __import__(import_str)
  231. File "glanceclient/v1/__init__.py", line 16, in <module>
  232. from glanceclient.v1.client import Client # noqa
  233. File "glanceclient/v1/client.py", line 18, in <module>
  234. from glanceclient.v1.image_members import ImageMemberManager
  235. File "glanceclient/v1/image_members.py", line 16, in <module>
  236. from glanceclient.openstack.common.apiclient import base
  237. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  238. from glanceclient.openstack.common.apiclient import exceptions
  239. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  240. from oslo import i18n
  241. ImportError: cannot import name i18n
  242. ======================================================================
  243. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_help
  244. tags: worker-0
  245. ----------------------------------------------------------------------
  246. Traceback (most recent call last):
  247. File "tests/test_shell.py", line 90, in test_help
  248. actual = shell.main(argstr.split())
  249. File "glanceclient/shell.py", line 561, in main
  250. subcommand_parser = self.get_subcommand_parser(api_version)
  251. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  252. submodule = utils.import_versioned_module(version, 'shell')
  253. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  254. return importutils.import_module(module)
  255. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  256. __import__(import_str)
  257. File "glanceclient/v1/__init__.py", line 16, in <module>
  258. from glanceclient.v1.client import Client # noqa
  259. File "glanceclient/v1/client.py", line 18, in <module>
  260. from glanceclient.v1.image_members import ImageMemberManager
  261. File "glanceclient/v1/image_members.py", line 16, in <module>
  262. from glanceclient.openstack.common.apiclient import base
  263. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  264. from glanceclient.openstack.common.apiclient import exceptions
  265. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  266. from oslo import i18n
  267. ImportError: cannot import name i18n
  268. ======================================================================
  269. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_help_on_subcommand_error
  270. tags: worker-0
  271. ----------------------------------------------------------------------
  272. Traceback (most recent call last):
  273. File "tests/test_shell.py", line 94, in test_help_on_subcommand_error
  274. self.assertRaises(exc.CommandError, shell, 'help bad')
  275. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
  276. self.assertThat(our_callable, matcher)
  277. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
  278. mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  279. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
  280. mismatch = matcher.match(matchee)
  281. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
  282. mismatch = self.exception_matcher.match(exc_info)
  283. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
  284. mismatch = matcher.match(matchee)
  285. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
  286. reraise(*matchee)
  287. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
  288. result = matchee()
  289. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 965, in __call__
  290. return self._callable_object(*self._args, **self._kwargs)
  291. File "tests/test_shell.py", line 75, in <lambda>
  292. shell = lambda cmd: _shell.main(cmd.split())
  293. File "glanceclient/shell.py", line 561, in main
  294. subcommand_parser = self.get_subcommand_parser(api_version)
  295. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  296. submodule = utils.import_versioned_module(version, 'shell')
  297. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  298. return importutils.import_module(module)
  299. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  300. __import__(import_str)
  301. File "glanceclient/v1/__init__.py", line 16, in <module>
  302. from glanceclient.v1.client import Client # noqa
  303. File "glanceclient/v1/client.py", line 18, in <module>
  304. from glanceclient.v1.image_members import ImageMemberManager
  305. File "glanceclient/v1/image_members.py", line 16, in <module>
  306. from glanceclient.openstack.common.apiclient import base
  307. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  308. from glanceclient.openstack.common.apiclient import exceptions
  309. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  310. from oslo import i18n
  311. ImportError: cannot import name i18n
  312. ======================================================================
  313. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_help_unknown_command
  314. tags: worker-0
  315. ----------------------------------------------------------------------
  316. Traceback (most recent call last):
  317. File "tests/test_shell.py", line 85, in test_help_unknown_command
  318. self.assertRaises(exc.CommandError, shell.main, argstr.split())
  319. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
  320. self.assertThat(our_callable, matcher)
  321. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
  322. mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  323. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
  324. mismatch = matcher.match(matchee)
  325. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
  326. mismatch = self.exception_matcher.match(exc_info)
  327. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
  328. mismatch = matcher.match(matchee)
  329. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
  330. reSchema is not a valid JSON object.
  331. No metadata definition namespace passed via stdin or --file argument.
  332. Schema is not a valid JSON object.
  333. Property MyProperty not found in object MyObject.
  334. Schema is not a valid JSON object.
  335. Schema is not a valid JSON object.
  336. Schema is not a valid JSON object.
  337. raise(*matchee)
  338. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
  339. result = matchee()
  340. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 965, in __call__
  341. return self._callable_object(*self._args, **self._kwargs)
  342. File "glanceclient/shell.py", line 561, in main
  343. subcommand_parser = self.get_subcommand_parser(api_version)
  344. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  345. submodule = utils.import_versioned_module(version, 'shell')
  346. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  347. return importutils.import_module(module)
  348. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  349. __import__(import_str)
  350. File "glanceclient/v1/__init__.py", line 16, in <module>
  351. from glanceclient.v1.client import Client # noqa
  352. File "glanceclient/v1/client.py", line 18, in <module>
  353. from glanceclient.v1.image_members import ImageMemberManager
  354. File "glanceclient/v1/image_members.py", line 16, in <module>
  355. from glanceclient.openstack.common.apiclient import base
  356. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  357. from glanceclient.openstack.common.apiclient import exceptions
  358. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  359. from oslo import i18n
  360. ImportError: cannot import name i18n
  361. ======================================================================
  362. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_no_auth_with_token_and_image_url_with_v1
  363. tags: worker-0
  364. ----------------------------------------------------------------------
  365. Traceback (most recent call last):
  366. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1193, in patched
  367. arg = patching.__enter__()
  368. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1252, in __enter__
  369. self.target = self.getter()
  370. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1414, in <lambda>
  371. getter = lambda: _importer(target)
  372. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1102, in _importer
  373. thing = _dot_lookup(thing, comp, import_path)
  374. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1091, in _dot_lookup
  375. __import__(import_path)
  376. File "glanceclient/v1/__init__.py", line 16, in <module>
  377. from glanceclient.v1.client import Client # noqa
  378. File "glanceclient/v1/client.py", line 18, in <module>
  379. from glanceclient.v1.image_members import ImageMemberManager
  380. File "glanceclient/v1/image_members.py", line 16, in <module>
  381. from glanceclient.openstack.common.apiclient import base
  382. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  383. from glanceclient.openstack.common.apiclient import exceptions
  384. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  385. from oslo import i18n
  386. ImportError: cannot import name i18n
  387. ======================================================================
  388. FAIL: unittest.loader.ModuleImportFailure.tests.test_base
  389. tags: worker-0
  390. ----------------------------------------------------------------------
  391. Traceback (most recent call last):
  392. ImportError: Failed to import test module: tests.test_base
  393. Traceback (most recent call last):
  394. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  395. module = self._get_module_from_name(name)
  396. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  397. __import__(name)
  398. File "tests/test_base.py", line 19, in <module>
  399. from glanceclient.openstack.common.apiclient import base
  400. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  401. from glanceclient.openstack.common.apiclient import exceptions
  402. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  403. from oslo import i18n
  404. ImportError: cannot import name i18n
  405. ======================================================================
  406. FAIL: unittest.loader.ModuleImportFailure.tests.v1.test_client
  407. tags: worker-0
  408. ----------------------------------------------------------------------
  409. Traceback (most recent call last):
  410. ImportError: Failed to import test module: tests.v1.test_client
  411. Traceback (most recent call last):
  412. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  413. module = self._get_module_from_name(name)
  414. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  415. __import__(name)
  416. File "tests/v1/test_client.py", line 18, in <module>
  417. from glanceclient.v1 import client
  418. File "glanceclient/v1/__init__.py", line 16, in <module>
  419. from glanceclient.v1.client import Client # noqa
  420. File "glanceclient/v1/client.py", line 18, in <module>
  421. from glanceclient.v1.image_members import ImageMemberManager
  422. File "glanceclient/v1/image_members.py", line 16, in <module>
  423. from glanceclient.openstack.common.apiclient import base
  424. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  425. from glanceclient.openstack.common.apiclient import exceptions
  426. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  427. from oslo import i18n
  428. ImportError: cannot import name i18n
  429. ======================================================================
  430. FAIL: unittest.loader.ModuleImportFailure.tests.v1.test_image_members
  431. tags: worker-0
  432. ----------------------------------------------------------------------
  433. Traceback (most recent call last):
  434. ImportError: Failed to import test module: tests.v1.test_image_members
  435. Traceback (most recent call last):
  436. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  437. module = self._get_module_from_name(name)
  438. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  439. __import__(name)
  440. File "tests/v1/test_image_members.py", line 18, in <module>
  441. import glanceclient.v1.image_members
  442. File "glanceclient/v1/__init__.py", line 16, in <module>
  443. from glanceclient.v1.client import Client # noqa
  444. File "glanceclient/v1/client.py", line 18, in <module>
  445. from glanceclient.v1.image_members import ImageMemberManager
  446. File "glanceclient/v1/image_members.py", line 16, in <module>
  447. from glanceclient.openstack.common.apiclient import base
  448. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  449. from glanceclient.openstack.common.apiclient import exceptions
  450. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  451. from oslo import i18n
  452. ImportError: cannot import name i18n
  453. ======================================================================
  454. FAIL: unittest.loader.ModuleImportFailure.tests.v1.test_images
  455. tags: worker-0
  456. ----------------------------------------------------------------------
  457. Traceback (most recent call last):
  458. ImportError: Failed to import test module: tests.v1.test_images
  459. Traceback (most recent call last):
  460. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  461. module = self._get_module_from_name(name)
  462. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  463. __import__(name)
  464. File "tests/v1/test_images.py", line 23, in <module>
  465. from glanceclient.v1 import client
  466. File "glanceclient/v1/__init__.py", line 16, in <module>
  467. from glanceclient.v1.client import Client # noqa
  468. File "glanceclient/v1/client.py", line 18, in <module>
  469. from glanceclient.v1.image_members import ImageMemberManager
  470. File "glanceclient/v1/image_members.py", line 16, in <module>
  471. from glanceclient.openstack.common.apiclient import base
  472. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  473. from glanceclient.openstack.common.apiclient import exceptions
  474. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  475. from oslo import i18n
  476. ImportError: cannot import name i18n
  477. ======================================================================
  478. FAIL: unittest.loader.ModuleImportFailure.tests.v1.test_shell
  479. tags: worker-0
  480. ----------------------------------------------------------------------
  481. Traceback (most recent call last):
  482. ImportError: Failed to import test module: tests.v1.test_shell
  483. Traceback (most recent call last):
  484. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  485. module = self._get_module_from_name(name)
  486. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  487. __import__(name)
  488. File "tests/v1/test_shell.py", line 30, in <module>
  489. import glanceclient.v1.client as client
  490. File "glanceclient/v1/__init__.py", line 16, in <module>
  491. from glanceclient.v1.client import Client # noqa
  492. File "glanceclient/v1/client.py", line 18, in <module>
  493. from glanceclient.v1.image_members import ImageMemberManager
  494. File "glanceclient/v1/image_members.py", line 16, in <module>
  495. from glanceclient.openstack.common.apiclient import base
  496. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  497. from glanceclient.openstack.common.apiclient import exceptions
  498. File "glanceclient/openstack/common/apiclient/exceptions.py", line 29, in <module>
  499. from oslo import i18n
  500. ImportError: cannot import name i18n
  501. Ran 222 tests in 1.506s (+0.092s)
  502. FAILED (id=14, failures=20)
  503. error: testr failed (1)
  504. ERROR: InvocationError: '/opt/stack/python-glanceclient/.tox/py27/bin/python setup.py testr --testr-args='
  505. ___________________________________ summary ____________________________________
  506. ERROR: py27: commands failed
  507. openstack@ubuntu:/opt/stack/python-glanceclient$
Advertisement
Add Comment
Please, Sign In to add comment