Active service should not be allowed to be deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
we should not enable service to be deleted when it's up
see following example, the service itself is still working but we lost the information of the services
we'd better give some flexibility to operators (e.g unless --force flag, we can't delete active services)
[root@compute1 ~]# nova service-list
+----+-
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+-
| 4 | nova-scheduler | compute1 | internal | enabled | up | 2014-12-
| 5 | nova-compute | compute1 | nova | enabled | up | 2014-12-
| 6 | nova-consoleauth | compute1 | internal | enabled | down | 2014-12-
| 7 | nova-compute | compute2 | nova | enabled | down | 2014-12-
| 8 | nova-conductor | compute1 | internal | enabled | up | - | - |
+----+-
[root@compute1 ~]# nova service-delete 8
[root@compute1 ~]# nova service-list
+----+-
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+-
| 4 | nova-scheduler | compute1 | internal | enabled | up | 2014-12-
| 5 | nova-compute | compute1 | nova | enabled | up | 2014-12-
| 6 | nova-consoleauth | compute1 | internal | enabled | down | 2014-12-
| 7 | nova-compute | compute2 | nova | enabled | down | 2014-12-
+----+-
[root@compute1 ~]#
error logs in conductor, though it won't affect operations
2014-12-11 05:07:43.149 ERROR nova.servicegro
2014-12-11 05:07:43.149 TRACE nova.servicegro
2014-12-11 05:07:43.149 TRACE nova.servicegro
2014-12-11 05:07:43.149 TRACE nova.servicegro
2014-12-11 05:07:43.149 TRACE nova.servicegro
2014-12-11 05:07:43.149 TRACE nova.servicegro
2014-12-11 05:07:43.149 TRACE nova.servicegro
2014-12-11 05:07:43.149 TRACE nova.servicegro
2014-12-11 05:07:43.149 TRACE nova.servicegro
2014-12-11 05:07:43.149 TRACE nova.servicegro
2014-12-11 05:07:43.143 ERROR nova.servicegro
2014-12-11 05:07:43.143 TRACE nova.servicegro
2014-12-11 05:07:43.143 TRACE nova.servicegro
2014-12-11 05:07:43.143 TRACE nova.servicegro
2014-12-11 05:07:43.143 TRACE nova.servicegro
2014-12-11 05:07:43.143 TRACE nova.servicegro
2014-12-11 05:07:43.143 TRACE nova.servicegro
2014-12-11 05:07:43.143 TRACE nova.servicegro
2014-12-11 05:07:43.143 TRACE nova.servicegro
2014-12-11 05:07:43.143 TRACE nova.servicegro
Changed in nova: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
good looking version of above log:
http:// paste.openstack .org/show/ 196822/