Cannot upload images into Glance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Glance Charm |
Expired
|
Undecided
|
Unassigned |
Bug Description
From the Command line or from Horizon dashboard. Every time I try to create any image, LXD of KVM, I get an error. In Horizon it just stays locked in a queing state and never completes the upload.
$ openstack image create bionic_lxd --file bionic.squashfs --disk-format=raw --container-
500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
In the glance-registry.log I see:
2019-05-14 17:36:31.604 43590 CRITICAL glance [-] Unhandled error: TypeError: 'OSError' object is not subscriptable
2019-05-14 17:36:31.604 43590 ERROR glance Traceback (most recent call last):
2019-05-14 17:36:31.604 43590 ERROR glance File "/usr/lib/
2019-05-14 17:36:31.604 43590 ERROR glance socket_
2019-05-14 17:36:31.604 43590 ERROR glance File "/usr/lib/
2019-05-14 17:36:31.604 43590 ERROR glance client_socket = sock.accept()
2019-05-14 17:36:31.604 43590 ERROR glance File "/usr/lib/
2019-05-14 17:36:31.604 43590 ERROR glance res = socket_accept(fd)
2019-05-14 17:36:31.604 43590 ERROR glance File "/usr/lib/
2019-05-14 17:36:31.604 43590 ERROR glance return descriptor.accept()
2019-05-14 17:36:31.604 43590 ERROR glance File "/usr/lib/
2019-05-14 17:36:31.604 43590 ERROR glance fd, addr = self._accept()
2019-05-14 17:36:31.604 43590 ERROR glance OSError: [Errno 22] Invalid argument
2019-05-14 17:36:31.604 43590 ERROR glance
2019-05-14 17:36:31.604 43590 ERROR glance During handling of the above exception, another exception occurred:
2019-05-14 17:36:31.604 43590 ERROR glance
2019-05-14 17:36:31.604 43590 ERROR glance Traceback (most recent call last):
2019-05-14 17:36:31.604 43590 ERROR glance File "/usr/bin/
2019-05-14 17:36:31.604 43590 ERROR glance sys.exit(main())
2019-05-14 17:36:31.604 43590 ERROR glance File "/usr/lib/
2019-05-14 17:36:31.604 43590 ERROR glance server.wait()
2019-05-14 17:36:31.604 43590 ERROR glance File "/usr/lib/
2019-05-14 17:36:31.604 43590 ERROR glance self.wait_
2019-05-14 17:36:31.604 43590 ERROR glance File "/usr/lib/
2019-05-14 17:36:31.604 43590 ERROR glance self._verify_
2019-05-14 17:36:31.604 43590 ERROR glance File "/usr/lib/
2019-05-14 17:36:31.604 43590 ERROR glance self.run_child()
2019-05-14 17:36:31.604 43590 ERROR glance File "/usr/lib/
2019-05-14 17:36:31.604 43590 ERROR glance self.run_server()
2019-05-14 17:36:31.604 43590 ERROR glance File "/usr/lib/
2019-05-14 17:36:31.604 43590 ERROR glance if err[0] != errno.EINVAL:
2019-05-14 17:36:31.604 43590 ERROR glance TypeError: 'OSError' object is not subscriptable
2019-05-14 17:36:31.604 43590 ERROR glance
In the glance-api.log I see:
2019-05-15 13:39:37.089 473 ERROR glance.
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi [req-8399154e-
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi Traceback (most recent call last):
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi request, **action_args)
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi return method(*args, **kwargs)
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi return func(self, req, *args, **kwargs)
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi self._restore(
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi self.force_
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi six.reraise(
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi raise value
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi image.set_
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi self.base.
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi _send_notificat
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi self.force_
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi six.reraise(
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi raise value
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi self.force_
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi six.reraise(
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi raise value
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi self.repo.
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi return self.image.
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi self.image.
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi verifier=verifier)
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi image_id, data, size, hashing_algo, store, context, verifier)
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi image_id, data, size, hashing_algo, context=context, verifier=verifier)
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi metadata_dict) = store_add_
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi return store_op_fun(store, *args, **kwargs)
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "/usr/lib/
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi with conn.open_
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "rados.pyx", line 517, in rados.requires.
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi File "rados.pyx", line 1212, in rados.Rados.
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi rados.ObjectNot
2019-05-15 13:39:37.112 473 ERROR glance.common.wsgi
Greg,
It seems there is a problem with ceph. The "glance" pool has not been created yet.
"Failed to upload image data due to internal error: rados.ObjectNot Found: [errno 2] error opening pool 'b'glance''"
The problem is not likely to be glance itself.
Can you provide a sanitized bundle you used to deploy? As well as the "juju status --format yaml --relations" output?