Activity log for bug #1803387

Date Who What changed Old value New value Message
2018-11-14 15:27:29 Alex Schultz bug added bug
2018-11-14 15:44:26 Alex Schultz summary tripleoclient unit tests reporting failure trying to access /etc/pki/instack-certs/undercloud.pem tripleoclient unit tests read config from ~/undercloud.conf if exists
2018-11-14 15:45:22 Alex Schultz description 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' If you have an undercloud.conf in your home directory when you run the unit tests it may be used to run the tests. This can lead to failures for example if you specify "undercloud_service_certificate = /etc/pki/instack-certs/undercloud.pem" in an ~/undercloud.conf the tests will fail with: ====================================================================== 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'
2018-11-18 00:34:09 OpenStack Infra tripleo: status In Progress Fix Released