Re-test this bug with openshift-origin-msg-node-mcollective-1.30.2.1-1.el6op.noarch using 2.2/2016-08-05.1 puddle, failed. Even if node's disk space for /var/lib/openshift is enough for moving gear, still failed. # oo-admin-move --gear_uuid jialiu-ruby18app-1 -i node1.ose22-auto.com.cn URL: http://ruby18app-jialiu.ose22-auto.com.cn Login: jialiu App UUID: 57a864f182611da20d0002b1 Gear UUID: 57a864f182611da20d0002b1 DEBUG: Source district uuid: 57a8243482611d52e5000001 DEBUG: Destination district uuid: 57a8243482611d52e5000001 DEBUG: Getting existing app 'ruby18app' status before moving DEBUG: Gear component 'ruby-1.8' was running DEBUG: Unpublishing routing information for gear 'jialiu-ruby18app-1' DEBUG: Stopping existing app cartridge 'ruby-1.8' before moving DEBUG: Force stopping existing app before moving DEBUG: Gear platform is 'linux' DEBUG: Moving failed. Rolling back gear 'jialiu-ruby18app-1' in 'ruby18app' with delete on 'node1.ose22-auto.com.cn' Gear 'jialiu-ruby18app-1' cannot be moved to 'node1.ose22-auto.com.cn'. Not enough disk space, node would be > 95% full after move. Seem like the following two lines of code is not added merged into rpm package. +Facter.add(:node_disk_free) { setcode { results['node_disk_free'] } } +Facter.add(:node_total_size) { setcode { results['node_total_size'] } }
Verified this bug with 2.2/2016-08-08.1, and PASS. node1: # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_dhcp128178-lv_root 18G 6.1G 11G 38% / tmpfs 1.9G 0 1.9G 0% /dev/shm /dev/vda1 477M 99M 353M 22% /boot /dev/loop0 7.8G 36M 7.4G 1% /var/lib/openshift node2: # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_dhcp128178-lv_root 18G 13G 3.4G 80% / tmpfs 1.9G 0 1.9G 0% /dev/shm /dev/vda1 477M 99M 353M 22% /boot /dev/loop0 7.8G 7.1G 320M 96% /var/lib/openshift move one gear from node1 to node2, that is not allowed. # oo-admin-move --gear_uuid jialiu-php54app-1 -i node2.ose22-auto.com.cn URL: http://php54app-jialiu.ose22-auto.com.cn Login: jialiu App UUID: 57a8643882611da20d00029b Gear UUID: 57a8643882611da20d00029b DEBUG: Source district uuid: 57a8243482611d52e5000001 DEBUG: Destination district uuid: 57a8243482611d52e5000001 DEBUG: Getting existing app 'php54app' status before moving DEBUG: Gear component 'php-5.4' was running DEBUG: Unpublishing routing information for gear 'jialiu-php54app-1' DEBUG: Stopping existing app cartridge 'php-5.4' before moving DEBUG: Force stopping existing app before moving DEBUG: Gear platform is 'linux' DEBUG: Moving failed. Rolling back gear 'jialiu-php54app-1' in 'php54app' with delete on 'node2.ose22-auto.com.cn' Gear 'jialiu-php54app-1' cannot be moved to 'node2.ose22-auto.com.cn'. Not enough disk space, node would be > 95% full after move. move one gear from node2 to node1, it succeeded. # oo-admin-move --gear_uuid jialiu-php53app-1 -i node1.ose22-auto.com.cn URL: http://php53app-jialiu.ose22-auto.com.cn Login: jialiu App UUID: 57a85a0482611da20d000134 Gear UUID: 57a85a0482611da20d000134 DEBUG: Source district uuid: 57a8243482611d52e5000001 DEBUG: Destination district uuid: 57a8243482611d52e5000001 DEBUG: Getting existing app 'php53app' status before moving DEBUG: Gear component 'php-5.3' was running DEBUG: Unpublishing routing information for gear 'jialiu-php53app-1' DEBUG: Stopping existing app cartridge 'php-5.3' before moving DEBUG: Force stopping existing app before moving DEBUG: Gear platform is 'linux' DEBUG: Creating new account for gear 'jialiu-php53app-1' on node1.ose22-auto.com.cn DEBUG: Moving content for app 'php53app', gear 'jialiu-php53app-1' to node1.ose22-auto.com.cn Agent pid 17734 unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 17734 killed; DEBUG: Moving system components for app 'php53app', gear 'jialiu-php53app-1' to node1.ose22-auto.com.cn Agent pid 17742 unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 17742 killed; DEBUG: Starting cartridge 'php-5.3' in 'php53app' after move on node1.ose22-auto.com.cn DEBUG: Fixing DNS and mongo for gear 'jialiu-php53app-1' after move DEBUG: Changing server identity of 'jialiu-php53app-1' from 'node2.ose22-auto.com.cn' to 'node1.ose22-auto.com.cn' DEBUG: Updating routing information for gear 'jialiu-php53app-1' after move DEBUG: Deconfiguring old app 'php53app' on node2.ose22-auto.com.cn after move Successfully moved gear with uuid 'jialiu-php53app-1' of app 'php53app' from 'node2.ose22-auto.com.cn' to 'node1.ose22-auto.com.cn'
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-1773.html