Failed to start openstack image service glance (openstack-glance-api.service).

Bug #1711123 reported by Ratan Kulshreshtha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned

Bug Description

Hi

I am unable to start openstack-glance-api.service on my machine, I have followed OpenStack documentation to the point. Systemctl status shows that OpenStack-glance-api.service has failed to start OpenStack image service but openstac-glance-registry.service is active(running).

journalctl -xe shows that

Aug 16 18:13:22 localhost.localdomain audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=op
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: Exception AttributeError: "'_SocketDuckForFd' object has no attribute '_closed'" in <bound me
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: Exception AttributeError: "'_SocketDuckForFd' object has no attribute '_closed'" in <bound me
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: Exception AttributeError: "'_SocketDuckForFd' object has no attribute '_closed'" in <bound me
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: Exception AttributeError: "'_SocketDuckForFd' object has no attribute '_closed'" in <bound me
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: Exception AttributeError: "'_SocketDuckForFd' object has no attribute '_closed'" in <bound me
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: Exception AttributeError: "'_SocketDuckForFd' object has no attribute '_closed'" in <bound me
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: Exception AttributeError: "'_SocketDuckForFd' object has no attribute '_closed'" in <bound me
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: Exception AttributeError: "'_SocketDuckForFd' object has no attribute '_closed'" in <bound me
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: Exception AttributeError: "'_SocketDuckForFd' object has no attribute '_closed'" in <bound me
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: Traceback (most recent call last):
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: File "/usr/bin/glance-api", line 6, in <module>
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: from glance.cmd.api import main
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: File "/usr/lib/python2.7/site-packages/glance/cmd/api.py", line 45, in <module>
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: from oslo_log import log as logging
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: File "/usr/lib/python2.7/site-packages/oslo_log/log.py", line 49, in <module>
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: from oslo_log import formatters
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: File "/usr/lib/python2.7/site-packages/oslo_log/formatters.py", line 28, in <module>
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: from oslo_serialization import jsonutils
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: File "/usr/lib/python2.7/site-packages/oslo_serialization/jsonutils.py", line 42, in <modul
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: from oslo_utils import timeutils
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: File "/usr/lib/python2.7/site-packages/oslo_utils/timeutils.py", line 27, in <module>
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: from monotonic import monotonic as now # noqa
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: File "/usr/lib/python2.7/site-packages/monotonic.py", line 169, in <module>
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: raise RuntimeError('no suitable implementation for this system')
Aug 16 18:13:23 localhost.localdomain glance-api[11143]: RuntimeError: no suitable implementation for this system

openstack-glance-api.service starts running but it fails after running command:

```
$ openstack image create "cirros" \
  --file cirros-0.3.5-x86_64-disk.img \
  --disk-format qcow2 --container-format bare \
  --public
```

Tags: glance
description: updated
Revision history for this message
Matt Riedemann (mriedem) wrote :

What version of the "monotonic" library do you have installed?

What version of glance are you trying to install? Ocata? Pike? You'd want to follow the appropriate upper-constraints file here:

Ocata: https://github.com/openstack/requirements/blob/stable/ocata/upper-constraints.txt#L195

Pike: https://github.com/openstack/requirements/blob/stable/pike/upper-constraints.txt#L463

I'm marking this as incomplete for Glance and removing Nova since this isn't a Nova bug.

Changed in glance:
status: New → Incomplete
no longer affects: nova
Revision history for this message
Ratan Kulshreshtha (ratan-shreshtha) wrote :

I am using Ocata release, and monotonic version is 1.3.

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

This appears to have been an issue with version 0.21.0 of eventlet.

https://github.com/openstack/requirements/commit/e3c286a2f22011ae129e13892455a4a25bddeb1b

See linked eventlet bug in that commit message for more details.

Ocata was capped at eventlet 0.19.0, so it would appear upper constraints were not enforced in this deployment.

If eventlet was in fact 0.19.0 or less, we will need to look at changing the upper constraints to a version that did not have this issue.

Changed in glance:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.