yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #77779
[Bug 1822615] [NEW] cloud-tests tree_run/bddeb fail to build deb
Public bug reported:
While looking to verify an apt_pipelining test-case fix I ran this:
% tox -e citest -- tree_run --verbose --os-name bionic --test
modules/apt_pipelining_disable --test modules/apt_pipelining_os --result
/tmp/result.yaml
During which, it would fail like this:
2019-03-31 16:13:11,743 - tests.cloud_tests - ERROR - stage part: build deb on system encountered error: Unexpected error while running command.
Command: /root/packages/bddeb -d
Exit code: 1
Reason: -
....
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_dumps_all_instance_data
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 153, in test_handle_args_dumps_all_instance_data
self.assertEqual(0, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_list_keys_errors_when_varname_is_not_a_dict
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 255, in test_handle_args_list_keys_errors_when_varname_is_not_a_dict
self.assertEqual(1, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_list_keys_sorts_nested_keys_when_varname
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 239, in test_handle_args_list_keys_sorts_nested_keys_when_varname
self.assertEqual(0, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_list_keys_sorts_top_level_keys_when_no_varname
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 224, in test_handle_args_list_keys_sorts_top_level_keys_when_no_varname
self.assertEqual(0, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_returns_nested_varname
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 180, in test_handle_args_returns_nested_varname
self.assertEqual(0, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_returns_standardized_vars_to_top_level_aliases
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 209, in test_handle_args_returns_standardized_vars_to_top_level_aliases
self.assertEqual(0, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_returns_top_level_varname
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 168, in test_handle_args_returns_top_level_varname
self.assertEqual(0, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
----------------------------------------------------------------------
Ran 1945 tests in 16.445s
FAILED (SKIP=12, errors=7)
Makefile:54: recipe for target 'unittest3' failed
make[2]: *** [unittest3] Error 1
make[2]: Leaving directory '/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412'
debian/rules:21: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 2
make[1]: Leaving directory '/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412'
debian/rules:8: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Stderr: debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -d -us -uc failed
** Affects: cloud-init
Importance: Undecided
Status: New
** Description changed:
While looking to verify an apt_pipelining test-case fix I ran this:
% tox -e citest -- tree_run --verbose --os-name bionic --test
modules/apt_pipelining_disable --test modules/apt_pipelining_os --result
/tmp/result.yaml
During which, it would fail like this:
2019-03-31 16:13:11,743 - tests.cloud_tests - ERROR - stage part: build deb on system encountered error: Unexpected error while running command.
Command: /root/packages/bddeb -d
Exit code: 1
Reason: -
....
- ======================================================================
- ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_dumps_all_instance_data
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 153, in test_handle_args_dumps_all_instance_data
- self.assertEqual(0, query.handle_args('anyname', args))
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
- instance_data['userdata'] = util.load_file(user_data_fn)
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
- with open(fname, 'rb') as ifh:
- FileNotFoundError: [Errno 2] No such file or directory: 'ud'
-
- ======================================================================
- ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_list_keys_errors_when_varname_is_not_a_dict
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 255, in test_handle_args_list_keys_errors_when_varname_is_not_a_dict
- self.assertEqual(1, query.handle_args('anyname', args))
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
- instance_data['userdata'] = util.load_file(user_data_fn)
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
- with open(fname, 'rb') as ifh:
- FileNotFoundError: [Errno 2] No such file or directory: 'ud'
-
- ======================================================================
- ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_list_keys_sorts_nested_keys_when_varname
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 239, in test_handle_args_list_keys_sorts_nested_keys_when_varname
- self.assertEqual(0, query.handle_args('anyname', args))
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
- instance_data['userdata'] = util.load_file(user_data_fn)
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
- with open(fname, 'rb') as ifh:
- FileNotFoundError: [Errno 2] No such file or directory: 'ud'
-
- ======================================================================
- ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_list_keys_sorts_top_level_keys_when_no_varname
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 224, in test_handle_args_list_keys_sorts_top_level_keys_when_no_varname
- self.assertEqual(0, query.handle_args('anyname', args))
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
- instance_data['userdata'] = util.load_file(user_data_fn)
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
- with open(fname, 'rb') as ifh:
- FileNotFoundError: [Errno 2] No such file or directory: 'ud'
-
- ======================================================================
- ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_returns_nested_varname
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 180, in test_handle_args_returns_nested_varname
- self.assertEqual(0, query.handle_args('anyname', args))
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
- instance_data['userdata'] = util.load_file(user_data_fn)
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
- with open(fname, 'rb') as ifh:
- FileNotFoundError: [Errno 2] No such file or directory: 'ud'
-
- ======================================================================
- ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_returns_standardized_vars_to_top_level_aliases
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 209, in test_handle_args_returns_standardized_vars_to_top_level_aliases
- self.assertEqual(0, query.handle_args('anyname', args))
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
- instance_data['userdata'] = util.load_file(user_data_fn)
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
- with open(fname, 'rb') as ifh:
- FileNotFoundError: [Errno 2] No such file or directory: 'ud'
-
- ======================================================================
- ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_returns_top_level_varname
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 168, in test_handle_args_returns_top_level_varname
- self.assertEqual(0, query.handle_args('anyname', args))
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
- instance_data['userdata'] = util.load_file(user_data_fn)
- File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
- with open(fname, 'rb') as ifh:
- FileNotFoundError: [Errno 2] No such file or directory: 'ud'
-
- ----------------------------------------------------------------------
- Ran 1945 tests in 16.445s
-
- FAILED (SKIP=12, errors=7)
- Makefile:54: recipe for target 'unittest3' failed
- make[2]: *** [unittest3] Error 1
- make[2]: Leaving directory '/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412'
- debian/rules:21: recipe for target 'override_dh_auto_test' failed
- make[1]: *** [override_dh_auto_test] Error 2
- make[1]: Leaving directory '/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412'
- debian/rules:8: recipe for target 'build' failed
- make: *** [build] Error 2
- dpkg-buildpackage: error: debian/rules build gave error exit status 2
- Stderr: debuild: fatal error at line 1376:
+ ======================================================================
+ ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_dumps_all_instance_data
+ ----------------------------------------------------------------------
+ Traceback (most recent call last):
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 153, in test_handle_args_dumps_all_instance_data
+ self.assertEqual(0, query.handle_args('anyname', args))
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
+ instance_data['userdata'] = util.load_file(user_data_fn)
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
+ with open(fname, 'rb') as ifh:
+ FileNotFoundError: [Errno 2] No such file or directory: 'ud'
+
+ ======================================================================
+ ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_list_keys_errors_when_varname_is_not_a_dict
+ ----------------------------------------------------------------------
+ Traceback (most recent call last):
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 255, in test_handle_args_list_keys_errors_when_varname_is_not_a_dict
+ self.assertEqual(1, query.handle_args('anyname', args))
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
+ instance_data['userdata'] = util.load_file(user_data_fn)
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
+ with open(fname, 'rb') as ifh:
+ FileNotFoundError: [Errno 2] No such file or directory: 'ud'
+
+ ======================================================================
+ ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_list_keys_sorts_nested_keys_when_varname
+ ----------------------------------------------------------------------
+ Traceback (most recent call last):
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 239, in test_handle_args_list_keys_sorts_nested_keys_when_varname
+ self.assertEqual(0, query.handle_args('anyname', args))
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
+ instance_data['userdata'] = util.load_file(user_data_fn)
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
+ with open(fname, 'rb') as ifh:
+ FileNotFoundError: [Errno 2] No such file or directory: 'ud'
+
+ ======================================================================
+ ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_list_keys_sorts_top_level_keys_when_no_varname
+ ----------------------------------------------------------------------
+ Traceback (most recent call last):
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 224, in test_handle_args_list_keys_sorts_top_level_keys_when_no_varname
+ self.assertEqual(0, query.handle_args('anyname', args))
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
+ instance_data['userdata'] = util.load_file(user_data_fn)
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
+ with open(fname, 'rb') as ifh:
+ FileNotFoundError: [Errno 2] No such file or directory: 'ud'
+
+ ======================================================================
+ ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_returns_nested_varname
+ ----------------------------------------------------------------------
+ Traceback (most recent call last):
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 180, in test_handle_args_returns_nested_varname
+ self.assertEqual(0, query.handle_args('anyname', args))
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
+ instance_data['userdata'] = util.load_file(user_data_fn)
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
+ with open(fname, 'rb') as ifh:
+ FileNotFoundError: [Errno 2] No such file or directory: 'ud'
+
+ ======================================================================
+ ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_returns_standardized_vars_to_top_level_aliases
+ ----------------------------------------------------------------------
+ Traceback (most recent call last):
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 209, in test_handle_args_returns_standardized_vars_to_top_level_aliases
+ self.assertEqual(0, query.handle_args('anyname', args))
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
+ instance_data['userdata'] = util.load_file(user_data_fn)
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
+ with open(fname, 'rb') as ifh:
+ FileNotFoundError: [Errno 2] No such file or directory: 'ud'
+
+ ======================================================================
+ ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_returns_top_level_varname
+ ----------------------------------------------------------------------
+ Traceback (most recent call last):
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 168, in test_handle_args_returns_top_level_varname
+ self.assertEqual(0, query.handle_args('anyname', args))
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
+ instance_data['userdata'] = util.load_file(user_data_fn)
+ File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
+ with open(fname, 'rb') as ifh:
+ FileNotFoundError: [Errno 2] No such file or directory: 'ud'
+
+ ----------------------------------------------------------------------
+ Ran 1945 tests in 16.445s
+
+ FAILED (SKIP=12, errors=7)
+ Makefile:54: recipe for target 'unittest3' failed
+ make[2]: *** [unittest3] Error 1
+ make[2]: Leaving directory '/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412'
+ debian/rules:21: recipe for target 'override_dh_auto_test' failed
+ make[1]: *** [override_dh_auto_test] Error 2
+ make[1]: Leaving directory '/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412'
+ debian/rules:8: recipe for target 'build' failed
+ make: *** [build] Error 2
+ dpkg-buildpackage: error: debian/rules build gave error exit status 2
+ Stderr: debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -d -us -uc failed
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1822615
Title:
cloud-tests tree_run/bddeb fail to build deb
Status in cloud-init:
New
Bug description:
While looking to verify an apt_pipelining test-case fix I ran this:
% tox -e citest -- tree_run --verbose --os-name bionic --test
modules/apt_pipelining_disable --test modules/apt_pipelining_os
--result /tmp/result.yaml
During which, it would fail like this:
2019-03-31 16:13:11,743 - tests.cloud_tests - ERROR - stage part: build deb on system encountered error: Unexpected error while running command.
Command: /root/packages/bddeb -d
Exit code: 1
Reason: -
....
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_dumps_all_instance_data
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 153, in test_handle_args_dumps_all_instance_data
self.assertEqual(0, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_list_keys_errors_when_varname_is_not_a_dict
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 255, in test_handle_args_list_keys_errors_when_varname_is_not_a_dict
self.assertEqual(1, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_list_keys_sorts_nested_keys_when_varname
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 239, in test_handle_args_list_keys_sorts_nested_keys_when_varname
self.assertEqual(0, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_list_keys_sorts_top_level_keys_when_no_varname
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 224, in test_handle_args_list_keys_sorts_top_level_keys_when_no_varname
self.assertEqual(0, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_returns_nested_varname
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 180, in test_handle_args_returns_nested_varname
self.assertEqual(0, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_returns_standardized_vars_to_top_level_aliases
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 209, in test_handle_args_returns_standardized_vars_to_top_level_aliases
self.assertEqual(0, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
======================================================================
ERROR: cloudinit.cmd.tests.test_query.TestQuery.test_handle_args_returns_top_level_varname
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/tests/test_query.py", line 168, in test_handle_args_returns_top_level_varname
self.assertEqual(0, query.handle_args('anyname', args))
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/cmd/query.py", line 124, in handle_args
instance_data['userdata'] = util.load_file(user_data_fn)
File "/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412/cloudinit/util.py", line 1359, in load_file
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: 'ud'
----------------------------------------------------------------------
Ran 1945 tests in 16.445s
FAILED (SKIP=12, errors=7)
Makefile:54: recipe for target 'unittest3' failed
make[2]: *** [unittest3] Error 1
make[2]: Leaving directory '/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412'
debian/rules:21: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 2
make[1]: Leaving directory '/run/cloud-init/tmp/tmp2v5cncbz/cloud-init-18.5-57-g6c258412'
debian/rules:8: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Stderr: debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -d -us -uc failed
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1822615/+subscriptions
Follow ups