Closed lentzi90 closed 6 years ago
@lentzi90 can you run docker images
so we can see the image id for the gluster/gluster-centos
? If this is a prob is an upstream one but let's see ...
I have encountered this exact same issue. I am using the latest gluster-centos.
docker.io/gluster/gluster-centos latest cdc02f14c0ae 2 months ago 372 MB
I can confirm that the gluster-block cli utility nor the gluster-blockd systemd unit is present.
sh-4.2# gluster-block
sh: gluster-block: command not found
sh-4.2# systemctl list-units | grep gluster
etc-glusterfs.mount loaded active mounted /etc/glusterfs
var-lib-glusterd.mount loaded active mounted /var/lib/glusterd
var-lib-misc-glusterfsd.mount loaded active mounted /var/lib/misc/glusterfsd
var-log-glusterfs.mount loaded active mounted /var/log/glusterfs
glusterd.service loaded active running GlusterFS, a clustered file-system server
sh-4.2#
Same image here:
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/openshift/origin-docker-registry v3.9.0 9b472363b07a 6 days ago 465 MB
docker.io/openshift/origin-deployer v3.9.0 e4de3cb64af9 6 days ago 1.26 GB
docker.io/openshift/origin-pod v3.9.0 b6d2be1df9c0 6 days ago 220 MB
docker.io/heketi/heketi latest 4fee7ad83005 2 months ago 362 MB
docker.io/gluster/gluster-centos latest cdc02f14c0ae 2 months ago 372 MB
so i just checked on my 3.7 cluster where i have the same gluster-centos
image and yes there is no gluster-block
however that is as expected since in my cluster i do have the openshift_storage_glusterfs_block_storageclass=True
and
oc get po
NAME READY STATUS RESTARTS AGE
glusterblock-storage-provisioner-dc-1-864g5 1/1 Running 0 5d
glusterfs-storage-544jr 1/1 Running 1 9d
glusterfs-storage-xlpzj 1/1 Running 1 9d
glusterfs-storage-zk8hl 1/1 Running 8 33d
heketi-storage-1-6btcw 1/1 Running 0 16h
Note that i'm not deploying a registry based on gluster so ...
maybe @jarrpa has any thoughts on it
My deploy isn't using the dedicated registry block storage (ie. glusterfs_registry) since I don't have enough devices.
I did a test with just glusterfs_registry storage to see if the installer would deploy a different version of the gluster container that included gluster-block and it still did not have the gluster-block command. The resources for glusterfs_registry deployed into the default project and the resources all had the glusterfsregistry* prefix but they were equivalent to the non registry resources.
If I had to guess I would pin this issue solely on the gluster container image as heketi and the gluster block provisioner seem to do the right thing.
For reference: there is a pull request for this in the gluster/gluster-containers repo here. As soon as it can be merged, this issue should be solved.
excellent, thank you for the info @lentzi90 !
Sorry for the delay, this fell off my radar.
I will start by saying that this issue was indeed valid: for the longest time, the upstream had no reasonable way to deploy gluster-block anywhere. @lentzi90 was right to look at the gluster-containers repo, but the particular PR linked is long-dead. Thankfully some recent changes allowed me to submit this PR which has since been merged.
This issue should now be resolved. :) Given how late I am to this party, if I hear no feedback otherwise within a week I'll close this issue.
nice one @jarrpa ! +1 on closing it
Description
The default (non-enterprise) docker image (gluster/gluster-centos) for glusterfs-storage does not include the gluster-block command needed for block storage. This results in failure to provision persistent volumes and a crash loop back off for the heketi pod when following this example.
Version
Steps To Reproduce
openshift_storage_glusterfs_storageclass_default=true
instead of the...block_storageclass_default=true
to allow ansible service broker to start with a PVC.prerequisites.yml
anddeploy_cluster.yml
.glusterfs-registry-block
:Expected Results
Metrics and logging should deploy successfully with dynamically provisioned storage.
Observed Results
Provisioning of block volumes fail due to missing gluster-block command (from
oc describe pvc <name-of-pvc>
):Additionally, the heketi-storage pod fails (from
oc logs <heketi-storage-pod>
):Additional Information
I have successfully included the gluster-block command in the container by adding the following to the dockerfile here:
Using this custom image results in a working deployment (image available here). Note #8398 if using separate images for
openshift_storage_glusterfs_registry_image
andopenshift_storage_glusterfs_image
.Should the gluster-block binary be included in the default container image or should there be a separate image for this?
Inventory file: