When trying to run the tripleoclient unit tests locally I get a failure trying to access a local file. Since this is a unit test we shouldn't be trying to actually access /etc/pki/instakc-certs/undercloud.pm
======================================================================
FAIL: tripleoclient.tests.v1.undercloud.test_undercloud.TestUndercloudInstall.test_undercloud_install_with_swift_encryption
tags: worker-1
----------------------------------------------------------------------
pythonlogging:'': {{{
Deprecated: Option "undercloud_public_vip" from group "DEFAULT" is deprecated. Use option "undercloud_public_host" from group "DEFAULT".
Deprecated: Option "inspection_iprange" from group "DEFAULT" is deprecated. Use option "inspection_iprange" from group "ctlplane-subnet".
Deprecated: Option "network_cidr" from group "DEFAULT" is deprecated. Use option "cidr" from group "ctlplane-subnet".
Deprecated: Option "network_gateway" from group "DEFAULT" is deprecated. Use option "gateway" from group "ctlplane-subnet".
Deprecated: Option "dhcp_start" from group "DEFAULT" is deprecated. Use option "dhcp_start" from group "ctlplane-subnet".
Deprecated: Option "dhcp_end" from group "DEFAULT" is deprecated. Use option "dhcp_end" from group "ctlplane-subnet".
Deprecated: Option "undercloud_admin_vip" from group "DEFAULT" is deprecated. Use option "undercloud_admin_host" from group "DEFAULT".
}}}
Traceback (most recent call last):
File "/home/aschultz/Documents/workspace/tripleo/python-tripleoclient/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "tripleoclient/tests/v1/undercloud/test_undercloud.py", line 475, in test_undercloud_install_with_swift_encryption
self.cmd.take_action(parsed_args)
File "tripleoclient/v1/undercloud.py", line 128, in take_action
dry_run=parsed_args.dry_run)
File "tripleoclient/v1/undercloud_config.py", line 447, in prepare_undercloud_deploy
CONF.get('undercloud_service_certificate')))
File "tripleoclient/v1/undercloud_config.py", line 619, in _get_public_tls_parameters
with open(service_certificate_path, "rb") as pem_file:
IOError: [Errno 2] No such file or directory: '/etc/pki/instack-certs/undercloud.pem'
When trying to run the tripleoclient unit tests locally I get a failure trying to access a local file. Since this is a unit test we shouldn't be trying to actually access /etc/pki/ instakc- certs/underclou d.pm
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.v1. undercloud. test_undercloud .TestUndercloud Install. test_undercloud _install_ with_swift_ encryption ------- ------- ------- ------- ------- ------- ------- ------- ------- public_ vip" from group "DEFAULT" is deprecated. Use option "undercloud_ public_ host" from group "DEFAULT". iprange" from group "DEFAULT" is deprecated. Use option "inspection_ iprange" from group "ctlplane-subnet". admin_vip" from group "DEFAULT" is deprecated. Use option "undercloud_ admin_host" from group "DEFAULT".
FAIL: tripleoclient.
tags: worker-1
-------
pythonlogging:'': {{{
Deprecated: Option "undercloud_
Deprecated: Option "inspection_
Deprecated: Option "network_cidr" from group "DEFAULT" is deprecated. Use option "cidr" from group "ctlplane-subnet".
Deprecated: Option "network_gateway" from group "DEFAULT" is deprecated. Use option "gateway" from group "ctlplane-subnet".
Deprecated: Option "dhcp_start" from group "DEFAULT" is deprecated. Use option "dhcp_start" from group "ctlplane-subnet".
Deprecated: Option "dhcp_end" from group "DEFAULT" is deprecated. Use option "dhcp_end" from group "ctlplane-subnet".
Deprecated: Option "undercloud_
}}}
Traceback (most recent call last): aschultz/ Documents/ workspace/ tripleo/ python- tripleoclient/ .tox/py27/ lib/python2. 7/site- packages/ mock/mock. py", line 1305, in patched tests/v1/ undercloud/ test_undercloud .py", line 475, in test_undercloud _install_ with_swift_ encryption cmd.take_ action( parsed_ args) v1/undercloud. py", line 128, in take_action run=parsed_ args.dry_ run) v1/undercloud_ config. py", line 447, in prepare_ undercloud_ deploy get('undercloud _service_ certificate' ))) v1/undercloud_ config. py", line 619, in _get_public_ tls_parameters certificate_ path, "rb") as pem_file: instack- certs/underclou d.pem'
File "/home/
return func(*args, **keywargs)
File "tripleoclient/
self.
File "tripleoclient/
dry_
File "tripleoclient/
CONF.
File "tripleoclient/
with open(service_
IOError: [Errno 2] No such file or directory: '/etc/pki/