Bug 1161501

Summary: Can't enable OpenStack service after openstack-service disable
Product: [Community] RDO Reporter: Yaniv Kaul <mykaul>
Component: openstack-utilsAssignee: Lon Hohberger <lhh>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: srevivo
Target Milestone: ---   
Target Release: Juno   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 15:43:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yaniv Kaul 2014-11-07 09:16:01 UTC
Description of problem:
After disabling the openstack services via 'openstack-service disable' one  cannot enable them.

Version-Release number of selected component (if applicable):
openstack-utils-2014.1-3.el7.centos.1.noarch

How reproducible:
Always

Steps to Reproduce:
1. openstack-service list |xargs openstack-service disable
2.
3.

Actual results:
[root@lgdrm1499 ~]# openstack-service list
[root@lgdrm1499 ~]


Expected results:
- Can stop the running services.
- Can enable the services.

Additional info:
root@lgdrm1499 ~]# openstack-service list |xargs openstack-service disable rm '/etc/systemd/system/multi-user.target.wants/openstack-keystone.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-cinder-api.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-cinder-volume.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-cinder-scheduler.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-glance-registry.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-glance-api.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-nova-api.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-nova-novncproxy.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-nova-consoleauth.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-nova-scheduler.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-nova-conductor.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-nova-compute.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-nova-network.service'
rm '/etc/systemd/system/multi-user.target.wants/openstack-nova-cert.service'
rm '/etc/systemd/system/openstack-cinder-volume.service.requires/openstack-losetup.service'


This was fine and dandy, but now:
1. I can't stop the openstack services:
[root@lgdrm1499 ~]# openstack-service list |xargs openstack-service stop Too few arguments.
[root@lgdrm1499 ~]# openstack-service list
[root@lgdrm1499 ~]
[root@lgdrm1499 ~]# openstack-status
== Nova services ==
openstack-nova-api:                     active    (disabled on boot)
openstack-nova-cert:                    active    (disabled on boot)
openstack-nova-compute:                 active    (disabled on boot)
openstack-nova-network:                 active    (disabled on boot)
openstack-nova-scheduler:               active    (disabled on boot)
openstack-nova-volume:                  inactive  (disabled on boot)
openstack-nova-conductor:               active    (disabled on boot)
== Glance services ==
openstack-glance-api:                   active    (disabled on boot)
openstack-glance-registry:              active    (disabled on boot)
== Keystone service ==
openstack-keystone:                     active    (disabled on boot)
== Horizon service ==
openstack-dashboard:                    active
== Cinder services ==
openstack-cinder-api:                   active    (disabled on boot)
openstack-cinder-scheduler:             active    (disabled on boot)
openstack-cinder-volume:                active    (disabled on boot)
openstack-cinder-backup:                inactive  (disabled on boot)
== Support services ==
libvirtd:                               active
dbus:                                   active
rabbitmq-server:                        active
memcached:                              active
== Keystone users ==
Warning keystonerc not sourced

Comment 4 Chandan Kumar 2016-05-19 15:43:46 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.