This repository was archived by the owner on Nov 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 353
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Postinstall unit tests fail: Incorrect key file #7508
Copy link
Copy link
Closed
Labels
Traffic Opsrelated to Traffic Opsrelated to Traffic Opsinstallrelated to the installation processrelated to the installation processregression buga bug in existing functionality introduced by a new versiona bug in existing functionality introduced by a new versiontestsrelated to tests and/or testing infrastructurerelated to tests and/or testing infrastructure
Description
This Bug Report affects these Traffic Control components:
- Traffic Ops - Postinstall unit tests
Current behavior:
Postinstall unit tests fail with this as the last line (with a different tmp path each time):
Incorrect key file, expected PEM RSA private key, got: /tmp/tmp.gmrAp41qSf/etc/pki/tls/private/localhost.key: ASCII textExpected behavior:
Postinstall unit tests should pass
Steps to reproduce:
[user@computer trafficcontrol] traffic_ops/install/bin/postinstall.test.sh
INFO:root:Starting postinstall
INFO:root:Debug is on
INFO:root:Running in automatic mode
INFO:root:Using input file /tmp/tmp.FfaQttvgIR/defaults.json
INFO:root:File sanity check complete - found 0 differences
INFO:root:===========/opt/traffic_ops/app/conf/production/database.conf===========
INFO:root:Database configuration has been saved
INFO:root:===========/opt/traffic_ops/app/conf/production/tv.conf===========
INFO:root:Database configuration has been saved
INFO:root:===========/opt/traffic_ops/app/conf/ldap.conf===========
INFO:root:===========/opt/traffic_ops/install/data/json/users.json===========
INFO:root:===========/opt/traffic_ops/install/data/json/openssl_configuration.json===========
INFO:root:===========/opt/traffic_ops/install/data/json/profiles.json===========
INFO:root:Installing SSL Certificates
INFO:root:
We're now running a script to generate a self signed X509 SSL certificate
INFO:root:Postinstall SSL Certificate Creation
INFO:root:The server key has been generated
INFO:root:Generating an RSA Private Server Key
INFO:root:Creating a Certificate Signing Request (CSR)
INFO:root:The Certificate Signing Request has been generated
INFO:root:Removing the pass phrase from the server key
INFO:root:The pass phrase has been removed from the server key
INFO:root:Generating a Self-signed certificate
INFO:root:A server key and self signed certificate has been generated
INFO:root:Installing a server key and certificate
INFO:root:The private key has been installed
INFO:root:Installing self signed certificate
INFO:root:Saving the self signed csr
INFO:root:
The self signed certificate has now been installed.
You may obtain a certificate signed by a Certificate Authority using the
server.csr file saved in the current directory. Once you have obtained
a signed certificate, copy it to /tmp/tmp.FfaQttvgIR/etc/pki/tls/certs/localhost.crt and
restart Traffic Ops.
INFO:root:===========/opt/traffic_ops/app/conf/cdn.conf===========
DEBUG:root:No secrets found in cdn.conf file
INFO:root:CDN configuration has been saved
WARNING:root:no traffic vault backend configured, using default postgres
WARNING:root:no traffic vault aes encryption key location specified, using default /opt/traffic_ops/app/conf/aes.key
INFO:root:Generating an AES encryption key to /tmp/tmp.FfaQttvgIR/opt/traffic_ops/app/conf/aes.key
INFO:root:Skipping Traffic Ops restart
INFO:root:Success! Postinstall complete.
Incorrect key file, expected PEM RSA private key, got: /tmp/tmp.FfaQttvgIR/etc/pki/tls/private/localhost.key: ASCII textMetadata
Metadata
Assignees
Labels
Traffic Opsrelated to Traffic Opsrelated to Traffic Opsinstallrelated to the installation processrelated to the installation processregression buga bug in existing functionality introduced by a new versiona bug in existing functionality introduced by a new versiontestsrelated to tests and/or testing infrastructurerelated to tests and/or testing infrastructure