Skip to content

Instantly share code, notes, and snippets.

@gregswift
Last active June 14, 2017 19:30
Show Gist options
  • Save gregswift/bd112f89ccdfe9c7f85fa64c0a875fc9 to your computer and use it in GitHub Desktop.
Save gregswift/bd112f89ccdfe9c7f85fa64c0a875fc9 to your computer and use it in GitHub Desktop.
APPLIANCE_ROOT=/opt/manageiq/manageiq-appliance
APPLICATION_INIT_DELAY=15
APP_ROOT_PERSISTENT=/persistent
APP_ROOT_PERSISTENT_REGION=/persistent-region
APP_ROOT=/var/www/miq/vmdb
container=docker
CONTAINER_SCRIPTS_ROOT=/opt/manageiq/container-scripts
DATABASE_REGION=0
DATABASE_SERVICE_NAME=postgresql
HOME=/root
HOSTNAME=manageiq-0
IMAGE_VERSION=fine
KUBERNETES_PORT_443_TCP_ADDR=172.16.0.1
KUBERNETES_PORT_443_TCP_PORT=443
KUBERNETES_PORT_443_TCP_PROTO=tcp
KUBERNETES_PORT_443_TCP=tcp://172.16.0.1:443
KUBERNETES_PORT_53_TCP_ADDR=172.16.0.1
KUBERNETES_PORT_53_TCP_PORT=53
KUBERNETES_PORT_53_TCP_PROTO=tcp
KUBERNETES_PORT_53_TCP=tcp://172.16.0.1:53
KUBERNETES_PORT_53_UDP_ADDR=172.16.0.1
KUBERNETES_PORT_53_UDP_PORT=53
KUBERNETES_PORT_53_UDP_PROTO=udp
KUBERNETES_PORT_53_UDP=udp://172.16.0.1:53
KUBERNETES_PORT=tcp://172.16.0.1:443
KUBERNETES_SERVICE_HOST=172.16.0.1
KUBERNETES_SERVICE_PORT=443
KUBERNETES_SERVICE_PORT_DNS=53
KUBERNETES_SERVICE_PORT_DNS_TCP=53
KUBERNETES_SERVICE_PORT_HTTPS=443
LANG=en_US.UTF-8
MEMCACHED_PORT_11211_TCP_ADDR=172.16.82.169
MEMCACHED_PORT_11211_TCP_PORT=11211
MEMCACHED_PORT_11211_TCP_PROTO=tcp
MEMCACHED_PORT_11211_TCP=tcp://172.16.82.169:11211
MEMCACHED_PORT=tcp://172.16.82.169:11211
MEMCACHED_SERVICE_HOST=172.16.82.169
MEMCACHED_SERVICE_NAME=memcached
MEMCACHED_SERVICE_PORT=11211
MEMCACHED_SERVICE_PORT_MEMCACHED=11211
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
POSTGRESQL_DATABASE=vmdb_production
POSTGRESQL_MAX_CONNECTIONS=100
POSTGRESQL_PASSWORD=
POSTGRESQL_PORT_5432_TCP_ADDR=172.16.194.237
POSTGRESQL_PORT_5432_TCP_PORT=5432
POSTGRESQL_PORT_5432_TCP_PROTO=tcp
POSTGRESQL_PORT_5432_TCP=tcp://172.16.194.237:5432
POSTGRESQL_PORT=tcp://172.16.194.237:5432
POSTGRESQL_SERVICE_HOST=172.16.194.237
POSTGRESQL_SERVICE_PORT=5432
POSTGRESQL_SERVICE_PORT_POSTGRESQL=5432
POSTGRESQL_SHARED_BUFFERS=256MB
POSTGRESQL_USER=root
PWD=/var/www/miq/vmdb
RUBY_GEMS_ROOT=/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0
SHLVL=1
SUI_ROOT=/opt/manageiq/manageiq-ui-service
TERM=xterm
_=/usr/bin/env
Jun 14 19:12:53 manageiq-0 systemd[1]: Starting EVM server daemon...
Jun 14 19:13:00 manageiq-0 sh[600]: Starting EVM...
Jun 14 19:13:00 manageiq-0 sh[600]: rake aborted!
Jun 14 19:13:00 manageiq-0 sh[600]: PG::ConnectionBad: could not connect to server: No such file or directory
Jun 14 19:13:00 manageiq-0 sh[600]: Is the server running locally and accepting
Jun 14 19:13:00 manageiq-0 sh[600]: connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Jun 14 19:13:00 manageiq-0 sh[600]: /var/www/miq/vmdb/lib/extensions/ar_virtual.rb:400:in `load_schema!'
Jun 14 19:13:00 manageiq-0 sh[600]: /var/www/miq/vmdb/app/models/miq_server.rb:531:in `block in <class:MiqServer>'
Jun 14 19:13:00 manageiq-0 sh[600]: /var/www/miq/vmdb/app/models/miq_server/worker_management.rb:14:in `kill_all_workers'
Jun 14 19:13:00 manageiq-0 sh[600]: /var/www/miq/vmdb/lib/tasks/evm_application.rb:21:in `start'
Jun 14 19:13:00 manageiq-0 sh[600]: /var/www/miq/vmdb/lib/tasks/evm.rake:8:in `block (2 levels) in <top (required)>'
Jun 14 19:13:00 manageiq-0 sh[600]: Tasks: TOP => evm:start
Jun 14 19:13:00 manageiq-0 sh[600]: (See full trace by running task with --trace)
Jun 14 19:13:00 manageiq-0 systemd[1]: evmserverd.service: control process exited, code=exited status=1
Jun 14 19:13:00 manageiq-0 systemd[1]: Failed to start EVM server daemon.
Jun 14 19:13:00 manageiq-0 systemd[1]: Unit evmserverd.service entered failed state.
Jun 14 19:13:00 manageiq-0 systemd[1]: evmserverd.service failed.
Jun 14 19:13:00 manageiq-0 systemd[1]: evmserverd.service holdoff time over, scheduling restart.
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
annotations:
description: Defines how to deploy the ManageIQ appliance
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp: null
generation: 3
labels:
app: manageiq
template: manageiq
name: manageiq
spec:
replicas: 1
selector:
matchLabels:
name: manageiq
serviceName: manageiq
template:
metadata:
creationTimestamp: null
labels:
name: manageiq
name: manageiq
spec:
containers:
- env:
- name: APPLICATION_INIT_DELAY
value: "15"
- name: DATABASE_SERVICE_NAME
value: postgresql
- name: DATABASE_REGION
value: "0"
- name: MEMCACHED_SERVICE_NAME
value: memcached
- name: POSTGRESQL_USER
value: root
- name: POSTGRESQL_PASSWORD
value: WHYISNTTHISASECRET???
- name: POSTGRESQL_DATABASE
value: vmdb_production
- name: POSTGRESQL_MAX_CONNECTIONS
value: "100"
- name: POSTGRESQL_SHARED_BUFFERS
value: 256MB
image: docker.io/manageiq/manageiq-pods:app-latest-fine
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
exec:
command:
- /opt/manageiq/container-scripts/sync-pv-data
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 480
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 443
timeoutSeconds: 3
name: manageiq
ports:
- containerPort: 80
protocol: TCP
- containerPort: 443
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: 443
scheme: HTTPS
initialDelaySeconds: 200
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 3
resources:
limits:
memory: 16Gi
requests:
cpu: "1"
memory: 6Gi
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /persistent
name: manageiq-server
- mountPath: /persistent-region
name: manageiq-region
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: manageiq-region
persistentVolumeClaim:
claimName: manageiq-region
volumeClaimTemplates:
- metadata:
creationTimestamp: null
name: manageiq-server
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
status:
phase: Pending
status:
replicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment