How to start contributing to mayactl

What is mayactl?

  • mayactl is the command line tool used for interacting with OpenEBS volumes. mayactl is not required while provisioning or managing the OpenEBS volumes, but it is currently used during debugging and troubleshooting.
  • mayactl is the client, like kubectl, that submits requests to the maya-apiserver to obtain specific information, whereas kubectl submits requests to the Kubernetes apiserver to get specific information.
  • mayactl helps retrieve storage-related information for debugging/troubleshooting storage-related issues. It provides various commands to create volume, view volume details, and create, list, and revert snapshots and much more.

How to start contributing to mayactl

To learn more about mayactl, visit mayactl·

Edit description:

OpenEBS Architecture

OpenEBS Architecture

To learn more about OpenEBS visit:

These items must be installed in your system (with Ubuntu host) to run mayactl:

1. Docker: To install docker, run the commands shown below. You can also visit the official docker website to complete the installation.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] \
$(lsb_release -cs) \
sudo apt-get update
sudo apt-get install

2. open-iscsi package: To install the open-iscsi package, run these commands:

sudo apt-get update
sudo apt-get install open-iscsi
sudo service open-iscsi restart

3. Golang: To install golang, visit the official golang website:

4. Minikube: To install minikube, run these commands:

# minikube requires virtualbox to be installed as a dependency
sudo apt-get install virtualbox virtualbox-ext-pack
sudo apt-get update
# minikube version 0.24.0
curl -Lo minikube && chmod +x minikube && sudo mv minikube /usr/local/bin/

5. Kubectl: Run these commands to install Kubectl:

curl -LO
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

How do I run mayactl in a local machine for development purposes?

1. Open the openebs repo ( and star the openebs repo.. 😄 (Not Mandatory)

2. Fork the openebs/openebs and openebs/maya repositories into your GitHub account.

3. Clone the openebs and maya repositories inside your gopath. Then run these commands to clone:

# if directories not present create the directories in same hierarchy
cd $GOPATH/src/
git clone<your-github-username>/openebs.git
git clone<your-github-username>/maya.git

4. Run the single node cluster using the minikube command.

minikube start --vm-driver=none
# To check whether minikube is configured and running
minikube status

5. Install OpenEBS by executing these commands:

cd $GOPATH/src/
kubectl apply -f openebs-operator.yaml
kubectl apply -f openebs-storageclasses.yaml

6. Now we have the openebs-provisioner and maya-apiserver running as a pod in the Kubernetes (minikube) cluster.

  • To get the pods, run this command:
kubectl get pods
maya-apiserver-7b8d5496cc-kgmnn 1/1 Running 0 3m
openebs-provisioner-6797d44769-phnnc 1/1 Running 2 3m

7. To run/access mayactl, you will need to login/execute into the maya-apiserver pod on Kubernetes.

  • Find out the name of the maya api-server pod by running the following commands:
kubectl get pods
# It will access the bash shell inside the pod
kubectl exec -it <maya-apiserver-podname> /bin/bash

8. Now you can run all mayactl commands as you are inside the maya-apiserver pod.

  • Try running these commands after exececute/login into the pod.
mayactl -help

Go through the issues ( and start modifying the mayactl code, located in $GOPATH/src/, and start contributing to OpenEBS. Also, you can start contributing by writing a small unit test code in mayactl. For every PR you raise, you will also receive goodies from the OpenEBS team. 😃

How do I test the changes made in mayactl?

1. After modifying the mayactl code, go into the maya directory, i.e $GOPATH/src/, and run these commands:
# run this if not currently in maya directory
cd $GOPATH/src/
# this will create the mayactl binary into the bin folder inside maya directory
make mayactl

2. After the build has been completed, copy the mayactl binary from the bin folder to the maya-apiserver pod using the command:

kubectl cp $GOPATH/src/ <maya-apiserver-podname>:/tmp/

3. Login/execute into the maya-apiserver pod to run the mayactl binary.

kubectl exec -it <maya-apiserver-podname> /bin/bash
cd /tmp/

4. Here the mayactl binary you copied is shown.

  • To run that binary, use the following command:
./mayactl -help

Now you can easily see the changes you made in the mayactl command line tool. You are also now ready to raise the PR’s. 😃


This article was first published on Aug 15, 2018 on OpenEBS's Medium Account

Don Williams
Don is the CEO of MayaData and leading the company for last one year. He has an exceptional record of accomplishments leading technology teams for organizations ranging from private equity-backed start-ups to large, global corporations. He has deep experience in engineering, operations, and product development in highly technical and competitive marketplaces. His extensive professional network in several industries, large corporations and government agencies is a significant asset to early stage businesses, often essential to achieve product placement, growth and position for potential exit strategies.
Kiran Mova
Kiran evangelizes open culture and open-source execution models and is a lead maintainer and contributor to the OpenEBS project. Passionate about Kubernetes and Storage Orchestration. Contributor and Maintainer OpenEBS projects. Co-founder and Chief Architect at MayaData Inc.
Murat Karslioglu
VP @OpenEBS & @MayaData_Inc. Murat Karslioglu is a serial entrepreneur, technologist, and startup advisor with over 15 years of experience in storage, distributed systems, and enterprise hardware development. Prior to joining MayaData, Murat worked at Hewlett Packard Enterprise / 3PAR Storage in various advanced development projects including storage file stack performance optimization and the storage management stack for HPE’s Hyper-converged solution. Before joining HPE, Murat led virtualization and OpenStack integration projects within the Nexenta CTO Office. Murat holds a Bachelor’s Degree in Industrial Engineering from the Sakarya University, Turkey, as well as a number of IT certifications. When he is not in his lab, he loves to travel, advise startups, and spend time with his family. Lives to innovate! Opinions my own!