Thursday, August 29, 2019

Upgrade oVirt host node from 4.0 to 4.1 or 4.2 dependency error Error: Package: vdsm-gluster-4.20.23-1.el7


Upgrade oVirt host node from 4.0 to 4.1 or 4.2 dependency error Error: Package: vdsm-gluster-
4.20.23-1.el7 from Centos install. This is not a imgbase install.


yum remove ovirt-release40
yum install https://resources.ovirt.org/pub/yum-repo/ovirt-release42.rpm
yum clean all ; yum makecache ; yum install ovirt-host
yum remove vdsm-gluster.noarch
yum install ovirt-host #Or Execute Upgrade from Engine

Detailed Instructions

Error


yum install ovirt-host

--> Running transaction check
---> Package centos-release.x86_64 0:7-2.1511.el7.centos.2.10 will be updated
---> Package centos-release.x86_64 0:7-6.1810.2.el7.centos will be an update
---> Package vdsm-gluster.noarch 0:4.20.23-1.el7.centos will be an update
--> Processing Dependency: vdsm = 4.20.23-1.el7.centos for package: vdsm-gluster-4.20.23-1.el7.centos.noarch
--> Finished Dependency Resolution
Error: Package: vdsm-gluster-4.20.23-1.el7.centos.noarch (ovirt-4.2)
           Requires: vdsm = 4.20.23-1.el7.centos
           Removing: vdsm-4.18.11-1.el7.centos.x86_64 (installed)
               vdsm = 4.18.11-1.el7.centos
           Updated By: vdsm-4.20.46-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.46-1.el7
           Available: vdsm-4.20.9.3-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.9.3-1.el7.centos
           Available: vdsm-4.20.13-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.13-1.el7.centos
           Available: vdsm-4.20.14-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.14-1.el7.centos
           Available: vdsm-4.20.17-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.17-1.el7.centos
           Available: vdsm-4.20.18-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.18-1.el7.centos
           Available: vdsm-4.20.19-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.19-1.el7.centos
           Available: vdsm-4.20.20-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.20-1.el7.centos
           Available: vdsm-4.20.22-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.22-1.el7.centos
           Available: vdsm-4.20.23-1.el7.x86_64 (ovirt-4.2-centos-ovirt42)
               vdsm = 4.20.23-1.el7
           Available: vdsm-4.20.23-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.23-1.el7.centos
           Available: vdsm-4.20.27.1-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.27.1-1.el7.centos
           Available: vdsm-4.20.32-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.32-1.el7
           Available: vdsm-4.20.33-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.33-1.el7
           Available: vdsm-4.20.34-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.34-1.el7
           Available: vdsm-4.20.35-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.35-1.el7
           Available: vdsm-4.20.39-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.39-1.el7
           Available: vdsm-4.20.39.1-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.39.1-1.el7
           Available: vdsm-4.20.43-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.43-1.el7
                                     

Solution 


yum remove vdsm-gluster.noarch
             
======================================================================================================================================================================================================= Package                                                                   Arch                                                     Version                                                                  Repository                                                   Size
=======================================================================================================================================================================================================Removing:
 vdsm-gluster                                                              noarch                                                   4.18.11-1.el7.centos                                                     installed                                                   234 k
Removing for dependencies:
 ovirt-release-host-node                                                   noarch                                                   4.0.3-1.el7                                                              installed                                                   315 k

Transaction Summary
=======================================================================================================================================================================================================Remove  1 Package (+1 Dependent package)

Installed size: 549 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : ovirt-release-host-node-4.0.3-1.el7.noarch                                                                                                                                                                                                                  1/2
  Erasing    : vdsm-gluster-4.18.11-1.el7.centos.noarch                                                                                                                                                                                                                    2/2
  Verifying  : ovirt-release-host-node-4.0.3-1.el7.noarch                                                                                                                                                                                                                  1/2
  Verifying  : vdsm-gluster-4.18.11-1.el7.centos.noarch                                                                                                                                                                                                                    2/2

Removed:
  vdsm-gluster.noarch 0:4.18.11-1.el7.centos                                                                                                                                                                                                                                 
and than upgrade from Engine which executes "yum install ovirt-host"


Thursday, May 23, 2019

Systemd disable STD I/O from service


sudo systemctl edit service@.service

[Service]
StandardOutput=null
StandardError=null

or

sudo systemctl edit service.service

[Service]
StandardOutput=null 
StandardError=null

Clear journalctl

sudo journalctl --rotate
sudo journalctl --vacuum-time=1s

or

sudo journalctl --rotate
sudo journalctl --vacuum-size=50M