[Update] Glance crashes swift permissions to '/var/lib/glance/node' folder

Bug #1404146 reported by slava valyavskiy
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Medium
Fuel Library (Deprecated)
5.1.x
Won't Fix
Medium
Fuel Library (Deprecated)
6.0.x
Won't Fix
Medium
Fuel Library (Deprecated)
6.1.x
Won't Fix
Medium
Fuel Library (Deprecated)

Bug Description

Steps to reproduce:
1. create fuel environment [5.1] - ubuntu release, ha mode (swift as object store by default), neutron/gre
2. deploy fuel environment [5.1]
3. update fuel master node from 5.1 to 5.1.1 version
4. update deployed environment from 5.1 to 5.1.1

Result:

Image cannot be uploaded to the swift due to permissions reason. Piece of trace from account container.

<43>Dec 18 12:10:51 node-46 swift-container-server: ERROR reading db /var/lib/glance/node/1/containers/1120/47c/8c0a85fad73bd06afebdb3cc719e447c/8c0a85fad73bd06afebdb3cc719e447c.db: #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/dist-packages/swift/common/db_replicator.py", line 417, in _replicate_object#012 now - (self.reclaim_age * 2))#012 File "/usr/lib/python2.7/dist-packages/swift/common/db.py", line 695, in reclaim#012 self._commit_puts()#012 File "/usr/lib/python2.7/dist-packages/swift/common/db.py", line 545, in _commit_puts#012 self.merge_items(item_list)#012 File "/usr/lib/python2.7/dist-packages/swift/container/backend.py", line 488, in merge_items#012 rec['content_type'], rec['etag'], rec['deleted']]))#012 File "/usr/lib/python2.7/dist-packages/swift/common/db.py", line 126, in execute#012 self.timeout, self.db_file, lambda: sqlite3.Cursor.execute(#012 File "/usr/lib/python2.7/dist-packages/swift/common/db.py", line 64, in _db_timeout#012 return call()#012 File "/usr/lib/python2.7/dist-packages/swift/common/db.py", line 127, in <lambda>#012 self, *args, **kwargs))#012OperationalError: unable to open database file

Comment:
As you know glance package change owner/group permissions of the /var/lib/glance to the glance/glance recursively . It was considered in puppet manifests during the classic deployment - https://github.com/stackforge/fuel-library/blob/5.1.1/deployment/puppet/osnailyfacter/manifests/cluster_ha.pp#L420-L425 , but it's not operational for updating.

Changed in fuel:
importance: Undecided → Medium
Revision history for this message
Stanislaw Bogatkin (sbogatkin) wrote :

Slava, can you attach diagnostic snapshot?

Changed in fuel:
status: New → Incomplete
Revision history for this message
slava valyavskiy (slava-val-al) wrote :

We perfomed a lot deployments on this fuel node, so fuel snapshot generation takes a lot of time. I collect logs of nodes what beloned to invalid environment manually. Also, I attached nailgun, astute, rabbitmq and mcollective logs.

Changed in fuel:
status: Incomplete → New
Changed in fuel:
assignee: nobody → Fuel Library Team (fuel-library)
milestone: none → 6.1
Changed in fuel:
milestone: 6.1 → 5.1.2
Changed in fuel:
milestone: 6.0 → 6.0.1
Stanislav Makar (smakar)
Changed in fuel:
status: New → Triaged
Revision history for this message
Stanislaw Bogatkin (sbogatkin) wrote :

We will not support such type of patching for 6.1.

Revision history for this message
Ryan Moe (rmoe) wrote :

Medium priority bugs are not backported to stable releases.

Changed in fuel:
status: Triaged → Won't Fix
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.