Red Hat Bugzilla – Bug 1291681
Pool creation fails if calamari is up and un-used for quite sometime
Last modified: 2016-08-23 15:29:06 EDT
Description of problem:
Pool creation api "POST /api/v2/cluster/<fsid>/pool" fails after trying for a long time. Here calamari_on_mon is running for quite sometime and un-unsed.
The command "supervisorctl status" shows calamari_running though-
[Node ~]# supervisorctl status
calamari-lite RUNNING pid 28024, uptime 0:02:59
But the REST call from skyring, fails after waiting for a minute or so...
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start calamri_on_mon using the command "supervisorctl restart all" on mon node
2. Keep it running for say 1 hour
3. From skyring submit a pool creation request
After waiting for a minute or so request fails
Pool creation should be successful even if calamari is un-used for a long time.
Observed that sometimes if calamari is not used for quite sometime, it goes down..
The issue happens very randomly. Once failed, if we try again sometimes it works. But its very random as mentioned..
Created attachment 1106273 [details]
Created attachment 1106274 [details]
While pool creation, we use a dummy URL /api/v2/auth/login to retrieve the XSRF token which we pass in POST request for pool creation.
In case of failures I can see below error in calamri.log
2015-12-15 04:14:43,981 - ERROR - django.request Internal Server Error: /api/v2/auth/login
Traceback (most recent call last):
File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 103, in get_response
resolver_match = resolver.resolve(request.path_info)
File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/urlresolvers.py", line 319, in resolve
for pattern in self.url_patterns:
File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/urlresolvers.py", line 351, in url_patterns
raise ImproperlyConfigured("The included urlconf %s doesn't have any patterns in it" % self.urlconf_name)
ImproperlyConfigured: The included urlconf calamari_web.urls doesn't have any patterns in it
Attached the log files for reference.
I believe this is fixed in https://chacra.ceph.com/r/calamari/on_monitor/rhel/7/x86_64/calamari-server-1.4-rc1_97_geb9d42d.el7.centos.x86_64.rpm
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see firstname.lastname@example.org with any questions
I haven't seen this issue with recent builds..
Moving this defect to verified state for now based on comment 11.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.