CF42 docker : commit image + deploy container : can't start container


#1

What has to be done to get a CF42 configured docker container copy to start well?

I have committed an image from a configured CF 4.2 container and tried to create a new container with it: but it does’nt start , the “evm start” is in an infinite loop.

Is there a way to have this to work?


#2

What does systemctl status evmserverd ? Do you have to start it with systemctl start evmserverd ?

What errors or warnings do you see in log/evm.log? Perhaps the database wasn’t migrated properly during the container image build.


#3

@jrafanie

no errors:

[----] I, [2017-02-09T15:22:59.452410 #130:ca713c] INFO – : MIQ(Vmdb::Loggers.apply_config) Log level for vim.log has been changed to [WARN]
[----] I, [2017-02-09T15:22:59.452691 #130:ca713c] INFO – : MIQ(Vmdb::Loggers.apply_config) Log level for azure.log has been changed to [WARN]
[----] I, [2017-02-09T15:23:01.208053 #130:ca713c] INFO – : MIQ(SessionStore) Using session_store: ActionDispatch::Session::MemCacheStore
[----] I, [2017-02-09T15:23:01.400611 #130:ca713c] INFO – : MIQ(Vmdb::Initializer.init) - Program Name: /opt/rh/cfme-gemset/bin/rake, PID: 130, ENV[‘MIQ_GUID’]: , ENV[‘EVMSERVER’]:
[----] I, [2017-02-09T15:23:07.075581 #130:ca713c] INFO – : MIQ(EvmApplication.start) EVM Startup initiated
[----] I, [2017-02-09T15:23:12.129089 #253:cdb130] INFO – : MIQ(Vmdb::Loggers.apply_config) Log level for vim.log has been changed to [WARN]
[----] I, [2017-02-09T15:23:12.129361 #253:cdb130] INFO – : MIQ(Vmdb::Loggers.apply_config) Log level for azure.log has been changed to [WARN]
[----] I, [2017-02-09T15:23:13.755066 #253:cdb130] INFO – : MIQ(SessionStore) Using session_store: ActionDispatch::Session::MemCacheStore
[----] I, [2017-02-09T15:23:13.913926 #253:cdb130] INFO – : MIQ(Vmdb::Initializer.init) - Program Name: /opt/rh/cfme-gemset/bin/rake, PID: 253, ENV[‘MIQ_GUID’]: , ENV[‘EVMSERVER’]:
[----] I, [2017-02-09T15:23:19.334269 #253:cdb130] INFO – : MIQ(EvmApplication.start) EVM Startup initiated

top show this:

496 root 20 0 142464 53908 7452 R 21.3 0.5 0:00.64 ruby /opt/rh/cfme-gemset/bin/rake evm:start
18 root 20 0 37180 6488 6168 S 0.3 0.1 0:00.21 /usr/lib/systemd/systemd-journald
1 root 20 0 42688 4728 4012 S 0.0 0.0 0:00.06 /usr/sbin/init
24 memcach+ 20 0 325564 2424 1992 S 0.0 0.0 0:00.00 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024 -l 127.0.0.1 -I 1
64 root 20 0 53372 4044 3580 S 0.0 0.0 0:00.00 top -b -d 60
65 root 20 0 46300 3380 3068 S 0.0 0.0 0:00.00 vmstat -a -n 60
207 root 20 0 13376 3436 3004 S 0.0 0.0 0:00.01 bash
230 root 20 0 13236 2952 2708 S 0.0 0.0 0:00.00 /bin/bash /bin/evm_watchdog
237 root 20 0 108528 41464 6068 S 0.0 0.4 0:00.18 ruby /bin/evm_watchdog.rb
461 root 20 0 53552 4300 3656 R 0.0 0.0 0:00.01 top -c
488 root 20 0 13236 3128 2880 S 0.0 0.0 0:00.00 /bin/bash /bin/evmserver.sh start

and systemctl status:

[root@21464c72d35b ~]# systemctl status evmserverd
● evmserverd.service - EVM server daemon
Loaded: loaded (/usr/lib/systemd/system/evmserverd.service; enabled; vendor preset: disabled)
Active: activating (start) since Thu 2017-02-09 15:27:24 CET; 5ms ago
Control: 528 (evmserver.sh)
CGroup: /docker/21464c72d35bbf6f1b53854480feef4c63edc4f29dcc5b34f459cf34c4822810/system.slice/evmserverd.service
└─528 /bin/bash /bin/evmserver.sh start
‣ 528 /bin/bash /bin/evmserver.sh start

Feb 09 15:27:24 21464c72d35b systemd[1]: Starting EVM server daemon…


#4

/var/opt/rh/rh-postgresql95/lib/pgsql/data is empty …

ok i have seen the point : the database is not inside the container.

So i have to make a copy of database volume and to remount it to the new container