yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #71617
[Bug 1754767] [NEW] bad error message when /var/lib/glance/* have wrong rights
Public bug reported:
Because of an error in the packaging of Glance in Debian, I had:
# openstack image create --container-format bare --disk-format qcow2 --file debian-testing-openstack-amd64.qcow2 debian-buster-amd64
410 Gone: Error in store configuration. Adding images to store is disabled. (HTTP N/A)
It took me more than one hour to figure out that /var/lib/glance/images
and /var/lib/glance/image-cache was owned by root:root instead of
glance:glance. After fixing this and restarting the daemon, it just
worked, of course.
This was really my fault, because I attempted to fix the Debian postinst
to stop using chown -R, but still... While this is a normal behavior,
the "Adding images to store is disabled." error message is really
deceptive. It made me think that my glance-{api,registry}.conf files
were wrong.
So, of course, that's only a wishlist bug. Please fix the error message
and make it nicer and less deceptive, at least in the logs (no need to
have the user see that the admin is silly).
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1754767
Title:
bad error message when /var/lib/glance/* have wrong rights
Status in Glance:
New
Bug description:
Because of an error in the packaging of Glance in Debian, I had:
# openstack image create --container-format bare --disk-format qcow2 --file debian-testing-openstack-amd64.qcow2 debian-buster-amd64
410 Gone: Error in store configuration. Adding images to store is disabled. (HTTP N/A)
It took me more than one hour to figure out that
/var/lib/glance/images and /var/lib/glance/image-cache was owned by
root:root instead of glance:glance. After fixing this and restarting
the daemon, it just worked, of course.
This was really my fault, because I attempted to fix the Debian
postinst to stop using chown -R, but still... While this is a normal
behavior, the "Adding images to store is disabled." error message is
really deceptive. It made me think that my glance-{api,registry}.conf
files were wrong.
So, of course, that's only a wishlist bug. Please fix the error
message and make it nicer and less deceptive, at least in the logs (no
need to have the user see that the admin is silly).
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1754767/+subscriptions