Skip to content

Instantly share code, notes, and snippets.


Yorgos Saslis gsaslis

View GitHub Profile
View 3scale-operator-75bfd8447f-4bz4q-3scale-operator.log
{"level":"info","ts":1593446313.444076,"logger":"cmd","msg":"Operator Version: 0.6.0"}
{"level":"info","ts":1593446313.4441144,"logger":"cmd","msg":"Go Version: go1.13.4"}
{"level":"info","ts":1593446313.444122,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":1593446313.4441288,"logger":"cmd","msg":"Version of operator-sdk: v0.15.2"}
{"level":"info","ts":1593446313.444699,"logger":"leader","msg":"Trying to become the leader."}
{"level":"info","ts":1593446316.1480718,"logger":"leader","msg":"No pre-existing lock was found."}
{"level":"info","ts":1593446316.154836,"logger":"leader","msg":"Became the leader."}
{"level":"info","ts":1593446318.8108034,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":""}
{"level":"info","ts":1593446318.81121,"logger":"cmd","msg":"Registering Components."}
{"level":"info","ts":1593446342.765852,"logger":"metrics","msg":"Metrics Service object created","Service.Name":"threescale-operator-metrics","Service.Namesp
gsaslis / DistGitCreateSpec.groovy
Last active May 8, 2019
Invalid mocked method
View DistGitCreateSpec.groovy
package com.redhat.threescale.productization
import com.homeaway.devtools.jenkins.testing.JenkinsPipelineSpecification
class DistGitCreateSpec extends JenkinsPipelineSpecification {
def distGit = null
Map <String, ?> config = null
def mockValidatingUtils = null
def mockDistGitUtils = null
gsaslis /
Last active Jan 11, 2019

Even though I am following Red Hat's instructions about how to install Docker on RHEL, I am facing the below problem:

Here's what I'm using to install Docker:

subscription-manager repos --enable=rhel-7-server-rpms
subscription-manager repos --enable rhel-7-server-extras-rpms
subscription-manager repos --enable=rhel-7-server-optional-rpms

yum install docker device-mapper-libs device-mapper-event-libs
gsaslis / 3scale_Install.asciidoc
Last active Oct 8, 2020
Deploy 3scale API Management on Minishift
View 3scale_Install.asciidoc

Installing 3scale on your Laptop


.or your desktop. Or a VM in the cloud. Or wherever it is you want to deploy 3scale to start exploring!
  • ❏ Minishift: 3scale is currently targeted for deployment on openshift, and minishift is the recommended development environment for that.

  • oc command-line tool [optional. you can also use the web-based interface.]


gsaslis / elasticsearch_openshift.asciidoc
Last active Oct 22, 2019
Notes on how to deploy Elasticsearch on OpenShift
View elasticsearch_openshift.asciidoc

Deploying Elasticsearch on Openshift

Notes to self. Or if anyone can help with this.

1. Helm charts ⇒ Openshift

Use Elastic’s helm charts as basis (couldn’t find anything more suitable - e.g. operator or Openshift Templates ):

I couldn’t use Helm itself due to permissions issues related to:

View Docker_CE-Centos.asciidoc

Install Docker-CE (for Centos)

sudo yum install -y yum-utils \
  device-mapper-persistent-data \

sudo yum-config-manager \
    --add-repo \

Invdividual Contributor License Agreement

This agreement is between "You" and TeleStax, Inc. (“TeleStax”).

In this agreement, “You” shall mean the owner of the Contribution, as defined below, including any individual or any corporation or entity which has authorized the signatory of this agreement to act on its behalf.

The purpose of this license is to set forth the terms and conditions under which we may use software that you wish to contribute to us for the purpose of use within one or more of our software development projects. Nothing in this license changes your ongoing right to use your contributions as you wish for any purpose. By clicking the Sign button below, I hereby agree to the following terms and conditions:

  1. As used in this agreement, the term “Contribution” shall mean any software, including source code and/or object code, documentation, or modifications to the foregoing, which You make available or submit to TeleStax in any form. Contributions shall not include any software or docum
View _opt_Restcomm-JBoss-AS7_standalone_configuration_standalone-sip.xml
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:1.4">
<extension module=""/>
<extension module=""/>
<extension module=""/>
<extension module=""/>
<extension module=""/>
<extension module=""/>
gsaslis /
Created May 31, 2017
Bash script to cleanup Virtualbox VMs you might have lying around.
#!/usr/bin/env bash
SAVEIFS=$IFS # save old IFS value
IFS=$'\n' # make newlines the only separator
echo "Powering off all running VMs"
for vm in $(VBoxManage list runningvms | awk '{print substr($2, 2, length($2) - 2)}') # you might want to limit your search by `| grep 'some vm name here' ` *before* the pipe to awk
echo "Powering off VM ${vm}"
VBoxManage controlvm ${vm} poweroff
echo "VM ${vm} powered off"
gsaslis /
Created Dec 8, 2016
terraform aws_cloudfront_distribution.s3_distribution bug

Error applying plan:

1 error(s) occurred:

  • aws_cloudfront_distribution.s3_distribution: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue.

Please include the following information in your report:

Terraform Version: 0.7.13
Resource ID: aws_cloudfront_distribution.s3_distribution
You can’t perform that action at this time.