[9.1] update from 9.0 to 9.1 is failed due to incorrect permissions for swift
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Ivan Berezovskiy | ||
Mitaka |
Fix Released
|
High
|
Ivan Berezovskiy | ||
Newton |
Fix Committed
|
High
|
Ivan Berezovskiy |
Bug Description
Update from 9.0GA to 9.1 has failed, the following errors are observed:
puppet-apply.log:
2016-08-
More info: https:/
swift-account-
2016-08-
It looks like swifts' folder has wrong permissions inside:
root@node-1:~# ll /var/lib/
total 0
drwxr-xr-x 7 swift swift 82 Aug 26 13:59 ./
drwxr-xr-x 4 swift swift 22 Aug 26 13:59 ../
drwxr-xr-x 3 glance glance 16 Aug 26 13:59 accounts/
drwxr-xr-x 2 glance glance 6 Aug 26 14:08 async_pending/
drwxr-xr-x 10 glance glance 85 Aug 26 14:08 containers/
drwxr-xr-x 6 glance glance 45 Aug 26 14:41 objects/
drwxr-xr-x 2 glance glance 6 Aug 26 14:08 tmp/
PS. Cannot generate a diagnostic snapshot due to: the "Timmy exit code: 127" issue.
Changed in fuel: | |
importance: | Undecided → High |
assignee: | nobody → Ivan Berezovskiy (iberezovskiy) |
milestone: | none → 9.1 |
status: | New → Confirmed |
Problem is next:
if we update glance-common package it update ownership of /var/lib/glance directory.
Before update it was:
root@node-3:~# ll /var/lib/glance/
total 4
drwxr-x--- 5 glance swift 48 Aug 29 12:59 ./
drwxr-xr-x. 68 root root 4096 Aug 29 13:01 ../
drwxr-xr-x 5 glance glance 64 Aug 29 13:00 image-cache/
drwxr-xr-x 2 glance glance 6 Aug 22 12:48 images/
drwxr-xr-x 4 swift swift 22 Aug 29 12:59 node/
After:
drwxr-x--- 5 glance glance 48 Aug 25 15:29 ./
drwxr-xr-x. 68 root root 4096 Aug 25 15:37 ../
drwxr-xr-x 5 glance glance 64 Aug 25 15:30 image-cache/
drwxr-xr-x 2 glance glance 6 Jun 6 08:07 images/
drwxr-xr-x 4 glance glance 22 Aug 25 15:29 node/
So, swift user is unable to write to /var/lib/ glance/ node directory. It's truly Fuel issue, because we use /var/lib/glance/ as glance and swift storage in the same time. That's why it should fixed on Fuel side: we should add swift user to glance group and set 0775 mode for /var/lib/glance/ recursively