Commit Graph

3 Commits (b07dd1d2f8f7adbf91392694534b333893b8d508)

Author SHA1 Message Date
whoami-rajat f5d4699613 Add lock per share for cinder nfs mount/umount
With cinder configured as glance store and nfs as cinder backend,
if we create multiple images concurrently into the same share,
there might be race conditions.
This patch ensures a lock per export to avoid the race conditions.

This patch also introduces a reference counting mechamism for unmounting
which will unmount the share if no active thread/process is using it.

Closes-Bug: #1870289

Change-Id: I9197f64e29a0ae2e0a58186f1a70aa134f7f1db6
2020-05-01 11:35:01 +00:00
Tomoki Sekiyama c369ba013f cinder: Support os-brick privsep filters
Currently os-brick that glance_store depends on uses oslo-privsep
to execute commands with root privileges, so we do not need to
maintain each command for os-brick in the rootwrap filters, but
only need to add the privsep-helper command.

This replaces the filters for os-brick with the privsep helper.

Related changes in Nova:
  # nova: Add os-brick rootwrap filter for privsep
  # nova: Initialise oslo.privsep early in main
Related changes in Cinder:
  # cinder: Add os-brick rootwrap filter for privsep
  # cinder: Initialise oslo.privsep early in main

Change-Id: Idbebaf796eaf89189f64f64167371b81e56b366e
2018-07-22 10:10:49 -04:00
Tomoki Sekiyama b1eb395cb4 Move rootwrap config files from etc/* into etc/glance/*
To cleanly utilize devstack's configure_rootwrap function to
install rootwrap config files, these should be placed in
etc/glance/ directory as nova and cinder do.

Change-Id: I6d4ee6929f3c3536424bb6790c958aa464860300
2016-11-04 11:52:04 +00:00