| Summary: | ovirt-provider-ovn.rpm should reload provider service post installation | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-provider-ovn | Reporter: | Mor <mkalfon> |
| Component: | provider | Assignee: | Marcin Mirecki <mmirecki> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mor <mkalfon> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | danken, mkalfon, mmirecki, myakove, ylavi |
| Target Milestone: | ovirt-4.1.0-beta | Flags: | rule-engine:
ovirt-4.1+
|
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-02-15 15:03:31 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Network | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Mor
2016-11-28 07:20:24 UTC
Hi Marcin,
It's not specificity mentioned on the "Steps to reproduce". But I did mention that it could also be relevant to the yum "reinstall" RPM action.
I tested it with "reinstall", and it doesn't handle the reload properly.
See the shell log:
[root@network-ge-3 ~]# systemctl status ovirt-provider-ovn
● ovirt-provider-ovn.service - oVirt OVN provider
Loaded: loaded (/usr/lib/systemd/system/ovirt-provider-ovn.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2016-12-28 11:39:57 IST; 17min ago
Main PID: 31335 (python)
CGroup: /system.slice/ovirt-provider-ovn.service
└─31335 /usr/bin/python /usr/share/ovirt-provider-ovn/ovirt_provider_ovn.py
Dec 28 11:39:57 network-ge-3.scl.lab.tlv.redhat.com systemd[1]: Started oVirt OVN provider.
Dec 28 11:39:57 network-ge-3.scl.lab.tlv.redhat.com systemd[1]: Starting oVirt OVN provider...
[root@network-ge-3 ~]# date
Wed Dec 28 11:57:18 IST 2016
[root@network-ge-3 ~]# yum -v -y reinstall ovirt-provider-ovn-1.0-1.20161228093622.git3b3d6e1.fc24.noarch.rpm
Not loading "rhnplugin" plugin, as it is disabled
Loading "langpacks" plugin
Loading "product-id" plugin
Loading "search-disabled-repos" plugin
Loading "subscription-manager" plugin
Loading "versionlock" plugin
Adding en_US.UTF-8 to language list
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Config time: 0.191
Yum version: 3.4.3
rpmdb time: 0.000
Examining ovirt-provider-ovn-1.0-1.20161228093622.git3b3d6e1.fc24.noarch.rpm: ovirt-provider-ovn-1.0-1.20161228093622.git3b3d6e1.fc24.noarch
Resolving Dependencies
--> Running transaction check
---> Package ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24 will be reinstalled
Checking deps for ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24 - u
looking for ('config(ovirt-provider-ovn)', 'EQ', ('0', '1.0', '1.20161228093622.git3b3d6e1.fc24')) as a requirement of ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24 - u
looking for ('kernel', 'GE', ('0', '3.10.0', '512')) as a requirement of ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24 - u
looking for ('openvswitch-ovn-central', 'GE', ('0', '2.6', None)) as a requirement of ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24 - u
looking for ('python-openvswitch', 'GE', ('0', '2.6', None)) as a requirement of ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24 - u
looking for ('/bin/sh', None, (None, None, None)) as a requirement of ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24 - u
looking for ('/bin/sh', None, (None, None, None)) as a requirement of ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24 - u
looking for ('/bin/sh', None, (None, None, None)) as a requirement of ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24 - u
looking for ('firewalld-filesystem', None, (None, None, None)) as a requirement of ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24 - u
--> Finished Dependency Resolution
Dependency Process ending
Depsolve time: 1.776
Dependencies Resolved
===================================================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================================================
Reinstalling:
ovirt-provider-ovn noarch 1.0-1.20161228093622.git3b3d6e1.fc24 /ovirt-provider-ovn-1.0-1.20161228093622.git3b3d6e1.fc24.noarch 115 k
Transaction Summary
===================================================================================================================================================================================================================
Reinstall 1 Package
Total size: 115 k
Installed size: 115 k
Downloading packages:
Member: ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24 - u
Adding Package ovirt-provider-ovn-1.0-1.20161228093622.git3b3d6e1.fc24.noarch in mode u
Running transaction check
Transaction check time: 0.115
Running transaction test
Transaction test succeeded
Transaction test time: 0.021
Member: ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24 - u
Adding Package ovirt-provider-ovn-1.0-1.20161228093622.git3b3d6e1.fc24.noarch in mode u
Running transaction
Installing : ovirt-provider-ovn-1.0-1.20161228093622.git3b3d6e1.fc24.noarch 1/1
Setting up Package Sacks
Reading version lock configuration
pkgsack time: 0.046
Installed products updated.
Verifying : ovirt-provider-ovn-1.0-1.20161228093622.git3b3d6e1.fc24.noarch 1/1
VerifyTransaction time: 0.299
Transaction time: 6.597
Installed:
ovirt-provider-ovn.noarch 0:1.0-1.20161228093622.git3b3d6e1.fc24
Complete!
[root@network-ge-3 ~]# systemctl status ovirt-provider-ovn
● ovirt-provider-ovn.service - oVirt OVN provider
Loaded: loaded (/usr/lib/systemd/system/ovirt-provider-ovn.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2016-12-28 11:39:57 IST; 17min ago
Main PID: 31335 (python)
CGroup: /system.slice/ovirt-provider-ovn.service
└─31335 /usr/bin/python /usr/share/ovirt-provider-ovn/ovirt_provider_ovn.py
Dec 28 11:39:57 network-ge-3.scl.lab.tlv.redhat.com systemd[1]: Started oVirt OVN provider.
Dec 28 11:39:57 network-ge-3.scl.lab.tlv.redhat.com systemd[1]: Starting oVirt OVN provider...
[root@network-ge-3 ~]# ps -o etime 31335
ELAPSED
17:39
Would you retest this on el7, and make sure that the version before `yum reinstall` is different than the one before. If anything fails, please include yum.log. If the bug is seen only with `yum reinstall` but never with `yum upgrade`, we should not care. We need to restart the service only if the code changes. (In reply to Dan Kenigsberg from comment #3) > Would you retest this on el7, and make sure that the version before `yum > reinstall` is different than the one before. If anything fails, please > include yum.log. I'm using the "reinstall" action for package that is already installed in the system. "reinstall" works only with the same package name (version) that is already installed. I never use "reinstall" myself (nor do I know why it is useful). But if the old version is the same as the new version, there is no need to restart the service. If "upgrade" works, we're good. (In reply to Dan Kenigsberg from comment #6) > I never use "reinstall" myself (nor do I know why it is useful). But if the > old version is the same as the new version, there is no need to restart the > service. > > If "upgrade" works, we're good. For what I know, reinstall is useful in cases were you want to repair the current installation, for example, in cases of damage to files, databases and/or any installed objects. Update is verified on version: ovirt-provider-ovn.noarch 0:1.0-2.20170108083010.git799f87f.el7.centos |