Code Monkey home page Code Monkey logo

vg's Introduction

vg

Vagrant based deployment of Gluster and Glusto, via Ansible

What is it

Simplify the deployment of Gluster + Glusto, its testing suite and framework, to enable easier testing of Gluster in an isolated (VM) environment. The deployment uses Gluster-Ansible to deploy Gluster in a standard manner.

Requirements

  • Linux OS (developed and tested on Fedora 29/30)
  • Git to clone the repo
  • Vagrant, libvirt (+KVM), libvirt-provider for vagrant, Ansible.

Basic usage

  1. Clone the repo to your computer.
  2. Assuming you have the basic requirements on the host (Ansible, libvirt, Vagrant, libvirt-provider for vagrant) then vagrant up should bring the environment up in ~4-5m (might take longer in the initial run, as it downloads the CentOS box).
  3. To run tests, SSH to node-0 via vgrant ssh node-0 , then switch to root su - (password is 'foobar'). You can now cd /root/glusto-tests and run the tests, as you would normally with Glusto. For example: glusto -c /root/gluster_tests_config.yml --pytest='-v -x tests/functional/bvt/test_cvt.py --junitxml=/tmp/cvt-junit.xml'

vg's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vg's Issues

Unable to start the glusterd while trying the upgrade test

While trying to write an upgrade test, I was unable to start the glusterd

[root@node-1 ~]# systemctl status glusterd
โ— glusterd.service - GlusterFS, a clustered file-system server
   Loaded: loaded (/usr/lib/systemd/system/glusterd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2021-03-10 09:28:05 UTC; 3h 12min ago
     Docs: man:glusterd(8)
  Process: 24046 ExecStart=/usr/sbin/glusterd -p /var/run/glusterd.pid --log-level $LOG_LEVEL $GLUSTERD_OPTIONS (code=exited, status=1/FAILURE)

Mar 10 09:28:05 node-1 systemd[1]: Starting GlusterFS, a clustered file-system server...
Mar 10 09:28:05 node-1 systemd[1]: glusterd.service: control process exited, code=exited status=1
Mar 10 09:28:05 node-1 systemd[1]: Failed to start GlusterFS, a clustered file-system server.
Mar 10 09:28:05 node-1 systemd[1]: Unit glusterd.service entered failed state.
Mar 10 09:28:05 node-1 systemd[1]: glusterd.service failed.
[root@node-1 ~]# 

I was seeing the following error in the glusterd logs :

[2021-03-10 09:28:04.821340 +0000] W [mgmt-pmap.c:132:rpc_clnt_mgmt_pmap_signout] 0-glusterfs: failed to create XDR payload
[2021-03-10 09:28:05.020540 +0000] I [MSGID: 100030] [glusterfsd.c:2699:main] 0-/usr/sbin/glusterd: Started running version [{arg=/usr/sbin/glusterd}, {version=20210309.dc9bab7}, {cmdlinestr=/usr/sbin/glusterd -p /var/run/glusterd.pid --log-level INFO}] 
[2021-03-10 09:28:05.021667 +0000] I [glusterfsd.c:2434:daemonize] 0-glusterfs: Pid of current running process is 24047
[2021-03-10 09:28:05.024569 +0000] I [MSGID: 106478] [glusterd.c:1472:init] 0-management: Maximum allowed open file descriptors set to 65536 
[2021-03-10 09:28:05.024672 +0000] I [MSGID: 106479] [glusterd.c:1548:init] 0-management: Using /var/lib/glusterd as working directory 
[2021-03-10 09:28:05.024690 +0000] I [MSGID: 106479] [glusterd.c:1554:init] 0-management: Using /var/run/gluster as pid file working directory 
[2021-03-10 09:28:05.041592 +0000] I [socket.c:983:__socket_server_bind] 0-socket.management: process started listening on port (24007)
[2021-03-10 09:28:05.043605 +0000] I [socket.c:929:__socket_server_bind] 0-socket.management: closing (AF_UNIX) reuse check socket 12
[2021-03-10 09:28:05.044143 +0000] I [MSGID: 106059] [glusterd.c:1939:init] 0-management: max-port override: 60999 
[2021-03-10 09:28:05.045781 +0000] E [MSGID: 106229] [glusterd.c:513:glusterd_check_gsync_present] 0-glusterd: geo-replication module not working as desired 
[2021-03-10 09:28:05.045947 +0000] E [MSGID: 101019] [xlator.c:641:xlator_init] 0-management: Initialization of volume failed. review your volfile again. [{name=management}] 
[2021-03-10 09:28:05.045965 +0000] E [MSGID: 101066] [graph.c:425:glusterfs_graph_init] 0-management: initializing translator failed 
[2021-03-10 09:28:05.045986 +0000] E [MSGID: 101176] [graph.c:777:glusterfs_graph_activate] 0-graph: init failed 
[2021-03-10 09:28:05.046302 +0000] W [glusterfsd.c:1445:cleanup_and_exit] (-->/usr/sbin/glusterd(glusterfs_volumes_init+0xaa) [0x560bfc8e17ca] -->/usr/sbin/glusterd(glusterfs_process_volfp+0x236) [0x560bfc8e1706] -->/usr/sbin/glusterd(cleanup_and_exit+0x6b) [0x560bfc8e0a5b] ) 0-: received signum (-1), shutting down 
[2021-03-10 09:28:05.046381 +0000] W [mgmt-pmap.c:132:rpc_clnt_mgmt_pmap_signout] 0-glusterfs: failed to create XDR payload
Teardownclass: TestDfBeforeAndAfterUpgrade_cplex_distributed-dispersed_glusterfs : 09_24_10_03_2021

But Once I installed glusterfs-geo-replication and then tried to restart it did not give any problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.