Created
January 20, 2016 19:03
-
-
Save fatherlinux/fa69f2163fb5855a15f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| oc logs -p metrics-deployer-8fzah | |
| Error from server: Internal error occurred: Pod "metrics-deployer-8fzah" in namespace "openshift-infra": previous terminated container "metrics-deployer" not found | |
| oc logs metrics-deployer-8fzah | |
| + image_prefix=aep3_beta/ | |
| + image_version=latest | |
| + master_url=https://aep-master.dc2.crunchtools.com:8443 | |
| + redeploy=false | |
| + cassandra_nodes=1 | |
| + use_persistent_storage=false | |
| + cassandra_pv_size=10Gi | |
| + metric_duration=7 | |
| + project=openshift-infra | |
| + master_ca=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt | |
| + token_file=/var/run/secrets/kubernetes.io/serviceaccount/token | |
| + dir=/etc/deploy/_output | |
| + hawkular_metrics_hostname=https://aep-master.dc2.crunchtools.com:8443/hawkular/metrics | |
| + hawkular_metrics_alias=hawkular-metrics | |
| + hawkular_cassandra_alias=hawkular-cassandra | |
| + rm -rf /etc/deploy/_output | |
| + mkdir -p /etc/deploy/_output | |
| + chmod 700 /etc/deploy/_output | |
| + '[' -s /secret/ca.key ']' | |
| ++ date +%s | |
| + openshift admin ca create-signer-cert --key=/etc/deploy/_output/ca.key --cert=/etc/deploy/_output/ca.crt --serial=/etc/deploy/_output/ca.serial.txt --name=metrics-signer@1453316142 | |
| + '[' -n '' ']' | |
| + '[' -s /secret/hawkular-metrics.pem ']' | |
| + openshift admin ca create-server-cert --key=/etc/deploy/_output/hawkular-metrics.key --cert=/etc/deploy/_output/hawkular-metrics.crt --hostnames=hawkular-metrics,https://aep-master.dc2.crunchtools.com:8443/hawkular/metrics --signer-cert=/etc/deploy/_output/ca.crt --signer-key=/etc/deploy/_output/ca.key --signer-serial=/etc/deploy/_output/ca.serial.txt | |
| + cat /etc/deploy/_output/hawkular-metrics.key /etc/deploy/_output/hawkular-metrics.crt | |
| + cp /etc/deploy/_output/ca.crt /etc/deploy/_output/hawkular-metrics-ca.cert | |
| + '[' -n '' ']' | |
| + '[' -s /secret/hawkular-cassandra.pem ']' | |
| + openshift admin ca create-server-cert --key=/etc/deploy/_output/hawkular-cassandra.key --cert=/etc/deploy/_output/hawkular-cassandra.crt --hostnames=hawkular-cassandra --signer-cert=/etc/deploy/_output/ca.crt --signer-key=/etc/deploy/_output/ca.key --signer-serial=/etc/deploy/_output/ca.serial.txt | |
| + cat /etc/deploy/_output/hawkular-cassandra.key /etc/deploy/_output/hawkular-cassandra.crt | |
| + cp /etc/deploy/_output/ca.crt /etc/deploy/_output/hawkular-cassandra-ca.cert | |
| + '[' -n '' ']' | |
| + '[' -s /secret/heapster.cert ']' | |
| + openshift admin ca create-server-cert --key=/etc/deploy/_output/heapster.key --cert=/etc/deploy/_output/heapster.cert --hostnames=heapster --signer-cert=/etc/deploy/_output/ca.crt --signer-key=/etc/deploy/_output/ca.key --signer-serial=/etc/deploy/_output/ca.serial.txt | |
| + '[' -n '' ']' | |
| + '[' -s /secret/heapster-allowed-users ']' | |
| + echo system:master-proxy | |
| + '[' -n '' ']' | |
| + '[' -s /secret/heapster-client-ca.cert ']' | |
| + cp /var/run/secrets/kubernetes.io/serviceaccount/ca.crt /etc/deploy/_output/heapster_client_ca.cert | |
| Generating randomized passwords for the Hawkular Metrics and Cassandra keystores and truststores | |
| + echo 03 | |
| + echo 'Generating randomized passwords for the Hawkular Metrics and Cassandra keystores and truststores' | |
| ++ cat /dev/urandom | |
| ++ tr -dc _A-Z-a-z-0-9 | |
| ++ head -c15 | |
| + hawkular_metrics_keystore_password=LARAK9j9e0JfFag | |
| ++ cat /dev/urandom | |
| ++ tr -dc _A-Z-a-z-0-9 | |
| ++ head -c15 | |
| + hawkular_metrics_truststore_password=6ZOQFOkRK7dVgdf | |
| ++ cat /dev/urandom | |
| ++ tr -dc _A-Z-a-z-0-9 | |
| ++ head -c15 | |
| + hawkular_cassandra_keystore_password=GvUAVrofQeR0rPY | |
| ++ cat /dev/urandom | |
| ++ tr -dc _A-Z-a-z-0-9 | |
| ++ head -c15 | |
| Creating the Hawkular Metrics keystore from the PEM file | |
| + hawkular_cassandra_truststore_password=HeefxT0CtPrGysw | |
| + echo 'Creating the Hawkular Metrics keystore from the PEM file' | |
| + openssl pkcs12 -export -in /etc/deploy/_output/hawkular-metrics.pem -out /etc/deploy/_output/hawkular-metrics.pkcs12 -name hawkular-metrics -noiter -nomaciter -password pass:LARAK9j9e0JfFag | |
| + keytool -v -importkeystore -srckeystore /etc/deploy/_output/hawkular-metrics.pkcs12 -srcstoretype PKCS12 -destkeystore /etc/deploy/_output/hawkular-metrics.keystore -deststoretype JKS -deststorepass LARAK9j9e0JfFag -srcstorepass LARAK9j9e0JfFag | |
| Entry for alias hawkular-metrics successfully imported. | |
| Import command completed: 1 entries successfully imported, 0 entries failed or cancelled | |
| [Storing /etc/deploy/_output/hawkular-metrics.keystore] | |
| Creating the Hawkular Cassandra keystore from the PEM file | |
| + echo 'Creating the Hawkular Cassandra keystore from the PEM file' | |
| + openssl pkcs12 -export -in /etc/deploy/_output/hawkular-cassandra.pem -out /etc/deploy/_output/hawkular-cassandra.pkcs12 -name hawkular-cassandra -noiter -nomaciter -password pass:GvUAVrofQeR0rPY | |
| + keytool -v -importkeystore -srckeystore /etc/deploy/_output/hawkular-cassandra.pkcs12 -srcstoretype PKCS12 -destkeystore /etc/deploy/_output/hawkular-cassandra.keystore -deststoretype JKS -deststorepass GvUAVrofQeR0rPY -srcstorepass GvUAVrofQeR0rPY | |
| Entry for alias hawkular-cassandra successfully imported. | |
| Import command completed: 1 entries successfully imported, 0 entries failed or cancelled | |
| [Storing /etc/deploy/_output/hawkular-cassandra.keystore] | |
| Creating the Hawkular Metrics Certificate | |
| + echo 'Creating the Hawkular Metrics Certificate' | |
| + keytool -noprompt -export -alias hawkular-metrics -file /etc/deploy/_output/hawkular-metrics.cert -keystore /etc/deploy/_output/hawkular-metrics.keystore -storepass LARAK9j9e0JfFag | |
| Certificate stored in file </etc/deploy/_output/hawkular-metrics.cert> | |
| Creating the Hawkular Cassandra Certificate | |
| + echo 'Creating the Hawkular Cassandra Certificate' | |
| + keytool -noprompt -export -alias hawkular-cassandra -file /etc/deploy/_output/hawkular-cassandra.cert -keystore /etc/deploy/_output/hawkular-cassandra.keystore -storepass GvUAVrofQeR0rPY | |
| Certificate stored in file </etc/deploy/_output/hawkular-cassandra.cert> | |
| Importing the Hawkular Metrics Certificate into the Cassandra Truststore | |
| + echo 'Importing the Hawkular Metrics Certificate into the Cassandra Truststore' | |
| + keytool -noprompt -import -v -trustcacerts -alias hawkular-metrics -file /etc/deploy/_output/hawkular-metrics.cert -keystore /etc/deploy/_output/hawkular-cassandra.truststore -trustcacerts -storepass HeefxT0CtPrGysw | |
| Certificate was added to keystore | |
| [Storing /etc/deploy/_output/hawkular-cassandra.truststore] | |
| Importing the Hawkular Cassandra Certificate into the Hawkular Metrics Truststore | |
| + echo 'Importing the Hawkular Cassandra Certificate into the Hawkular Metrics Truststore' | |
| + keytool -noprompt -import -v -trustcacerts -alias hawkular-cassandra -file /etc/deploy/_output/hawkular-cassandra.cert -keystore /etc/deploy/_output/hawkular-metrics.truststore -trustcacerts -storepass 6ZOQFOkRK7dVgdf | |
| Certificate was added to keystore | |
| [Storing /etc/deploy/_output/hawkular-metrics.truststore] | |
| Importing the Hawkular Cassandra Certificate into the Cassandra Truststore | |
| + echo 'Importing the Hawkular Cassandra Certificate into the Cassandra Truststore' | |
| + keytool -noprompt -import -v -trustcacerts -alias hawkular-cassandra -file /etc/deploy/_output/hawkular-cassandra.cert -keystore /etc/deploy/_output/hawkular-cassandra.truststore -trustcacerts -storepass HeefxT0CtPrGysw | |
| Certificate was added to keystore | |
| [Storing /etc/deploy/_output/hawkular-cassandra.truststore] | |
| Importing the CA Certificate into the Cassandra Truststore | |
| + echo 'Importing the CA Certificate into the Cassandra Truststore' | |
| + keytool -noprompt -import -v -trustcacerts -alias ca -file /etc/deploy/_output/ca.crt -keystore /etc/deploy/_output/hawkular-cassandra.truststore -trustcacerts -storepass HeefxT0CtPrGysw | |
| Certificate was added to keystore | |
| [Storing /etc/deploy/_output/hawkular-cassandra.truststore] | |
| + keytool -noprompt -import -v -trustcacerts -alias metricca -file /etc/deploy/_output/hawkular-metrics-ca.cert -keystore /etc/deploy/_output/hawkular-cassandra.truststore -trustcacerts -storepass HeefxT0CtPrGysw | |
| Certificate was added to keystore | |
| [Storing /etc/deploy/_output/hawkular-cassandra.truststore] | |
| + keytool -noprompt -import -v -trustcacerts -alias cassandraca -file /etc/deploy/_output/hawkular-cassandra-ca.cert -keystore /etc/deploy/_output/hawkular-cassandra.truststore -trustcacerts -storepass HeefxT0CtPrGysw | |
| Certificate was added to keystore | |
| [Storing /etc/deploy/_output/hawkular-cassandra.truststore] | |
| Importing the CA Certificate into the Hawkular Metrics Truststore | |
| + echo 'Importing the CA Certificate into the Hawkular Metrics Truststore' | |
| + keytool -noprompt -import -v -trustcacerts -alias ca -file /etc/deploy/_output/ca.crt -keystore /etc/deploy/_output/hawkular-metrics.truststore -trustcacerts -storepass 6ZOQFOkRK7dVgdf | |
| Certificate was added to keystore | |
| [Storing /etc/deploy/_output/hawkular-metrics.truststore] | |
| + keytool -noprompt -import -v -trustcacerts -alias metricsca -file /etc/deploy/_output/hawkular-metrics-ca.cert -keystore /etc/deploy/_output/hawkular-metrics.truststore -trustcacerts -storepass 6ZOQFOkRK7dVgdf | |
| Certificate was added to keystore | |
| [Storing /etc/deploy/_output/hawkular-metrics.truststore] | |
| + keytool -noprompt -import -v -trustcacerts -alias cassandraca -file /etc/deploy/_output/hawkular-cassandra-ca.cert -keystore /etc/deploy/_output/hawkular-metrics.truststore -trustcacerts -storepass 6ZOQFOkRK7dVgdf | |
| Certificate was added to keystore | |
| [Storing /etc/deploy/_output/hawkular-metrics.truststore] | |
| ++ cat /dev/urandom | |
| ++ tr -dc _A-Z-a-z-0-9 | |
| ++ head -c15 | |
| + hawkular_metrics_password=LdKragY7nB4VnWu | |
| + htpasswd -cb /etc/deploy/_output/hawkular-metrics.htpasswd hawkular LdKragY7nB4VnWu | |
| Adding password for user hawkular | |
| Creating the Hawkular Metrics Secrets configuration json file | |
| + echo | |
| + echo 'Creating the Hawkular Metrics Secrets configuration json file' | |
| + cat | |
| ++ base64 -w 0 /etc/deploy/_output/hawkular-metrics.keystore | |
| ++ base64 | |
| +++ echo LARAK9j9e0JfFag | |
| ++ base64 -w 0 /etc/deploy/_output/hawkular-metrics.truststore | |
| ++ base64 | |
| +++ echo 6ZOQFOkRK7dVgdf | |
| ++ base64 | |
| +++ echo hawkular-metrics | |
| ++ base64 -w 0 /etc/deploy/_output/hawkular-metrics.htpasswd | |
| Creating the Hawkular Metrics Certificate Secrets configuration json file | |
| + echo | |
| + echo 'Creating the Hawkular Metrics Certificate Secrets configuration json file' | |
| + cat | |
| ++ base64 -w 0 /etc/deploy/_output/hawkular-metrics.cert | |
| ++ base64 -w 0 /etc/deploy/_output/hawkular-metrics-ca.cert | |
| Creating the Hawkular Metrics User Account Secrets | |
| + echo | |
| + echo 'Creating the Hawkular Metrics User Account Secrets' | |
| + cat | |
| ++ base64 | |
| +++ echo hawkular | |
| ++ base64 | |
| +++ echo LdKragY7nB4VnWu | |
| Creating the Cassandra Secrets configuration file | |
| + echo | |
| + echo 'Creating the Cassandra Secrets configuration file' | |
| + cat | |
| ++ base64 -w 0 /etc/deploy/_output/hawkular-cassandra.keystore | |
| ++ base64 | |
| +++ echo GvUAVrofQeR0rPY | |
| ++ base64 | |
| +++ echo hawkular-cassandra | |
| ++ base64 -w 0 /etc/deploy/_output/hawkular-cassandra.truststore | |
| ++ base64 | |
| +++ echo HeefxT0CtPrGysw | |
| ++ base64 -w 0 /etc/deploy/_output/hawkular-cassandra.pem | |
| Creating the Cassandra Certificate Secrets configuration json file | |
| + echo | |
| + echo 'Creating the Cassandra Certificate Secrets configuration json file' | |
| + cat | |
| ++ base64 -w 0 /etc/deploy/_output/hawkular-cassandra.cert | |
| ++ base64 -w 0 /etc/deploy/_output/hawkular-cassandra-ca.cert | |
| Creating the Heapster Secrets configuration json file | |
| + echo | |
| + echo 'Creating the Heapster Secrets configuration json file' | |
| + cat | |
| ++ base64 -w 0 /etc/deploy/_output/heapster.cert | |
| ++ base64 -w 0 /etc/deploy/_output/heapster.key | |
| ++ base64 -w 0 /etc/deploy/_output/heapster_client_ca.cert | |
| ++ base64 -w 0 /etc/deploy/_output/heapster_allowed_users | |
| + '[' -n 1 ']' | |
| + oc config set-cluster master --api-version=v1 --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt --server=https://aep-master.dc2.crunchtools.com:8443 | |
| cluster "master" set. | |
| ++ cat /var/run/secrets/kubernetes.io/serviceaccount/token | |
| + oc config set-credentials account --token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJvcGVuc2hpZnQtaW5mcmEiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlY3JldC5uYW1lIjoibWV0cmljcy1kZXBsb3llci10b2tlbi1jYzFsYSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJtZXRyaWNzLWRlcGxveWVyIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQudWlkIjoiOWM4YzJmMDktYmY0ZC0xMWU1LTk3NDctNTI1NDAwYWViYmQyIiwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50Om9wZW5zaGlmdC1pbmZyYTptZXRyaWNzLWRlcGxveWVyIn0.QNrN0-wvFyGYzS0Y7QYZTw45DqjDlvh3lgVal9wsDgOk-oL8xXuxSKnO7IhNwJU0kaWxRZqIJWle_Q2STdMNBzeTCNlXVotQ4wgSZuU6uvk30hdQE0gUrxKcS1g1i0sabfdCE0IjMaqnd6pMrHMATP7aw6ha9vJucgECaf29Mkoh1JCrnHodb3wnYlspKwP5hf2HyP2OMQTVQha218WIyT-g0YASZVkXPi9XBYiXB1of3sj8kvpFWtf3-CpIKDhLLNAf-rlv9HuMrDYeUoc8DHVYxUwuj2yLqJJSLSndazScINUpU88adGzVGELMHbouHAIZnkxg-q_KiC5Qsj4fRg | |
| user "account" set. | |
| + oc config set-context current --cluster=master --user=account --namespace=openshift-infra | |
| context "current" set. | |
| + oc config use-context current | |
| switched to context "current". | |
| Creating secrets | |
| + '[' false = true ']' | |
| + echo 'Creating secrets' | |
| + oc create -f /etc/deploy/_output/hawkular-metrics-secrets.json | |
| Error from server: error when creating "/etc/deploy/_output/hawkular-metrics-secrets.json": secrets "hawkular-metrics-secrets" already exists |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there. I have the same error when trying to deploy metrics on a single node cluster openshift environment. The weird thing is that I got it working about a month ago, and now I'm getting this error.
Just wondering if you have found a solution to the problem ?
Apologies for the random post