The global image id is needed to crosslink images when an image is
replicated between multiple clusters.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
We already have a count function from RGWUserBuckets class which gives
the total size of the map, use that instead of getting the map and doing
a count.
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
Though is_omap don't make sure object has omap header or k/v now, if
object isn't has FLAG_OMAP, it must don't have omap header or k/v.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
For set omap heaader or k/v, it set FLAG_OMAP. When remove header
or k/v, it don't remove FLAG_OMAP because it don't know object whether
have omap header or other k/vs.
Though object has FLAG_OMAP dont mean now it has omap header or k/v, it
better check FLAG_OMAP than pool whether support omap operations for omap reads.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
There are newly added branches for proc_master_log() method will
potentially dirty info but without setting dirty_info flag.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Default mon_num=3, if we change this and using -k to create a new
cluster. It don't work. So we must record the old mon_num.
The same for osd_num/mds_num/rgw_num.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
We need to shorten the virtualenv path for non-Jenkins builds
too; gitbuilders were also overflowing the interpreter path limit
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Debian Jessie (at least) now has the virtualenv command in
package 'virtualenv', which depends on python3-virtualenv, and
that's how you get the virtualenv command there. Earlier
Debian-based releases still use python-virtualenv. Jessie's
virtualenv command still creates a python2 venv by default.
This will require a followup fix for install-deps.sh
to handle the | correctly, because currently it sends
the string to apt-get, which treats it as a regular expression
alternation of the two package names, so will try to install both.
The problem occurs when packages are installed without Recommended
packages (because jessie's virtualenv package currently Recommends
python-virtualenv); this is the case under pbuilder, and also using
'mk-build-deps --install', and I suspect under other automated
package-building tools.
Note that Build-Requires processing is not specified to
perform the searches in left-to-right order, so even this is
a tenuous workaround. We probably need distro-specific
debian/ directories.
Signed-off-by: Dan Mick <dan.mick@redhat.com>
doc: rgw_region_root_pool option should be in [global]
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
The python scripts are not yet compatible with python3, yet it is the
default on jessie. Force the creation of the virtualenv to use python2.7
instead. The wheelhouse is already explicitly populated for both python3
and python2.7 by install-deps.sh, regardless of the default interpreter.
Signed-off-by: Loic Dachary <loic@dachary.org>
We need to update the high marker even if we skip entries, and eventually
flush it. This is needed so that our position in the bucket index log that
we follow is reflected correctly.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Need to update the data log anyway, so that it reflects that there were
changes in the bucket index log.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Do not use C struct initilization style to avoid eclipse errors.
We also don't use c++ struct initalize as members are not specified
and it just happens that in latest accelio version one of the fields
has changed in the middle of the struct.
Signed-off-by: Roi Dayan <roid@mellanox.com>