Comment 0 for bug 1803387

Revision history for this message
Alex Schultz (alex-schultz) wrote : tripleoclient unit tests reporting failure trying to access /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/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'