Bug 985181 - openstack-nova-novncproxy package provides no pre/post scripts.
openstack-nova-novncproxy package provides no pre/post scripts.
Status: CLOSED CURRENTRELEASE
Product: RDO
Classification: Community
Component: openstack-nova (Show other bugs)
unspecified
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: RHOS Maint
Toure Dunnon
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-16 23:57 EDT by Etsuji Nakai
Modified: 2016-03-30 19:02 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-03-30 19:02:13 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Etsuji Nakai 2013-07-16 23:57:32 EDT
Description of problem:

Although openstack-nova-novncproxy provides "openstack-nova-novncproxy.service", its preuninstall scriptlet is empty. It should stop the running service before uninstall the package.

# rpm -ql openstack-nova-novncproxy-0.4-6.fc19.noarch
/etc/sysconfig/openstack-nova-novncproxy
/usr/bin/nova-novncproxy
/usr/lib/systemd/system/openstack-nova-novncproxy.service

# rpm -q --scripts openstack-nova-novncproxy-0.4-6.fc19.noarch
postinstall program: /bin/sh
preuninstall program: /bin/sh
Comment 2 Toure Dunnon 2014-06-05 16:01:02 EDT
#> rpm -qp --scripts openstack-nova-novncproxy-2013.1.2-4.fc19.noarch.rpm
 preuninstall scriptlet (using /bin/sh):
if [ $1 -eq 0 ] ; then
    for svc in novncproxy; do
        /bin/systemctl --no-reload disable openstack-nova-${svc}.service > /dev/null 2>&1 || :
        /bin/systemctl stop openstack-nova-${svc}.service > /dev/null 2>&1 || :
    done
fi
postuninstall scriptlet (using /bin/sh):
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
    # Package upgrade, not uninstall
    for svc in novncproxy; do
        /bin/systemctl try-restart openstack-nova-${svc}.service >/dev/null 2>&1 || :
    done
fi

Note You need to log in before you can comment on or make changes to this bug.