Miq on OpenShift - Startup Issue

Hi there,

i try to deploy manage-iq on OpenShift (https://github.com/ManageIQ/manageiq-pods) but it seems the application does not start up.

  • running OSE 3.4 (PetSet instead of StatefulSet)
  • the PVs are in place and bound to the right claims
  • memcached and postgres are running fine

But the manageiq-0 pod refuses connections:
oc rsh manageiq-0 curl localhost:443 curl: (7) Failed connect to localhost:443; Connection refused

Output from systemctl status:
oc rsh manageiq-0 systemctl status ● manageiq-0 State: running Jobs: 0 queued Failed: 0 units Since: Thu 2017-04-27 10:55:09 UTC; 5min ago CGroup: /system.slice/docker-7b196f39a1d95e77f71c864eb7785c7268db4245d727612b ├─1 /usr/sbin/init └─system.slice ├─evmserverd.service │ └─control │ ├─701 /bin/bash /bin/evmserver.sh stop │ └─703 ruby /opt/rubies/ruby-2.3.1/bin/rake evm:stop ├─evm-watchdog.service │ ├─223 /bin/bash /bin/evm_watchdog │ └─224 ruby /bin/evm_watchdog.rb ├─dbus.service │ └─78 /bin/dbus-daemon --system --address=systemd: --nofork --nopi ├─miqvmstat.service │ └─45 vmstat -a -n 60 ├─miqtop.service │ └─44 top -b -d 60 ├─crond.service │ └─22 /usr/sbin/crond -n └─systemd-journald.service └─20 /usr/lib/systemd/systemd-journald

The readiness probe fails and so the pod is frequently restarted.
Here is the petset i am using: https://pastebin.com/UR3WJegN

I tried the Troubleshooting hints on the github but with no success.

I hope you can help me.

Best regards

you can rsh into the pod and look into log/evm.log for hints. My guess is it does not connect to the DB pdo.

Hi durandom,

the log in evm.log says following:

/var/www/miq/vmdb/lib/workers/evm_server.rb:86:in `database_application_name': undefined method `database_application_name' for nil:NilClass (NoMethodError)                                                                                                                                                                                          
        from /var/www/miq/vmdb/lib/workers/evm_server.rb:82:in `set_database_application_name'                                                                                                                                                                                                                                                        
        from /var/www/miq/vmdb/lib/workers/evm_server.rb:65:in `start'                                                                                                                                                                                                                                                                                
        from /var/www/miq/vmdb/lib/workers/evm_server.rb:100:in `start'                                                                                                                                                                                                                                                                               
        from /var/www/miq/vmdb/lib/workers/bin/evm_server.rb:4:in `<main>' 

Unfortunately I am not familiar with Ruby, can you provide any input?

I also made some connectivity tests from the manageiq-pod to the postgresql-pod and the memcached - no issues, connection is established. The postgresql has the correct database and tables.

can you give the exact version of the images you are using?

@fbladilo do you have an idea what could be wrong here?

I posted in the GitHub Repository, for further discussion: https://gist.github.com/balpert89/077385496ce95492e9cba13a19ac385a

@durandom @balpert tracking issue in https://github.com/ManageIQ/manageiq-pods/issues/131 , need to ensure latest images , we had some hiccups with master related to cert generation earlier this week.