[Bug 1492748] Re: old entries are left as down
Jorge Niedbalski
1492748 at bugs.launchpad.net
Thu Feb 4 17:55:01 UTC 2016
OK, I am seeing this exact behavior on trusty-kilo.
The problem seems to be that because of the fix made for LP 1493931, the hostname
set on cinder.conf for the cinder Service is the service_name(), which on this case is cinder or cinder-ceph.
You can see this definition here:
https://github.com/openstack/cinder/blob/c1870433ae72cbfacbf0909921ca18401f84653d/cinder/service.py#L243
My understanding is that this is required for HA deployments using a stateless
backend, in order to keep performing operations on the volumes, regardless of the
service location.
This is my current setup, the service is never updated since deployed,
because the report_state method is using the newly created service instance (which points to the host cinder).
mysql> select updated_at, host, report_count, topic from services;
+---------------------+-------------------------------+--------------+------------------+
| updated_at | host | report_count | topic |
+---------------------+-------------------------------+--------------+------------------+
| 2016-02-04 16:43:50 | juju-niedbalski-sec-machine-6 | 5 | cinder-scheduler |
| 2016-02-04 16:43:54 | juju-niedbalski-sec-machine-5 | 3 | cinder-scheduler |
| 2016-02-04 16:43:30 | juju-niedbalski-sec-machine-6 | 9 | cinder-volume |
| 2016-02-04 16:43:13 | juju-niedbalski-sec-machine-7 | 7 | cinder-volume |
| 2016-02-04 16:43:13 | juju-niedbalski-sec-machine-7 | 1 | cinder-scheduler |
| 2016-02-04 16:43:34 | juju-niedbalski-sec-machine-5 | 7 | cinder-volume |
| 2016-02-04 17:31:11 | cinder at cinder-ceph | 845 | cinder-volume |
| 2016-02-04 17:31:10 | cinder | 834 | cinder-scheduler |
+---------------------+-------------------------------+--------------+------------------+
8 rows in set (0.00 sec)
mysql>
However I am not entirely sure if this is approach is completely correct since after
creating a volume I can't see the reference to the host.
mysql> select host, id, size, provider_location from volumes;
+------+--------------------------------------+------+-------------------+
| host | id | size | provider_location |
+------+--------------------------------------+------+-------------------+
| NULL | fb7870b5-f0cf-4913-ac98-697c65351c15 | 10 | NULL |
+------+--------------------------------------+------+-------------------+
1 row in set (0.00 sec)
So, what's the correct fix for this? Delete the older entries on the DB
after deployment?
Any suggestion?
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to cinder in Juju Charms Collection.
Matching subscriptions: charm-bugs
https://bugs.launchpad.net/bugs/1492748
Title:
old entries are left as down
Status in cinder package in Juju Charms Collection:
Triaged
Status in cinder-ceph package in Juju Charms Collection:
Triaged
Bug description:
When deployed with cinder, cinder-ceph and ceph charm, cinder service-
list shows "down" entries. Cinder volume service itself is working
with no problem, but remained entries break external service status
monitoring.
$ cinder service-list
+------------------+-----------------------------------+------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+-----------------------------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | juju-machine-14-lxc-1 | nova | enabled | up | 2015-09-06T11:39:45.000000 | None |
| cinder-scheduler | juju-machine-15-lxc-3 | nova | enabled | up | 2015-09-06T11:39:40.000000 | None |
| cinder-scheduler | juju-machine-16-lxc-2 | nova | enabled | up | 2015-09-06T11:39:35.000000 | None |
| cinder-volume | juju-machine-14-lxc-1 at cinder-ceph | nova | enabled | up | 2015-09-06T11:39:40.000000 | None |
| cinder-volume | juju-machine-15-lxc-3 | nova | enabled | down | 2015-09-06T07:12:15.000000 | None |
| cinder-volume | juju-machine-15-lxc-3 at cinder-ceph | nova | enabled | up | 2015-09-06T11:39:40.000000 | None |
| cinder-volume | juju-machine-16-lxc-2 | nova | enabled | down | 2015-09-06T07:12:46.000000 | None |
| cinder-volume | juju-machine-16-lxc-2 at cinder-ceph | nova | enabled | up | 2015-09-06T11:39:36.000000 | None |
+------------------+-----------------------------------+------+---------+-------+----------------------------+-----------------+
To manage notifications about this bug go to:
https://bugs.launchpad.net/charms/+source/cinder/+bug/1492748/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list