Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
keystone tenant-list|grep -v -- "-----"|egrep -v "id.*\|.*name"|awk '{ print $2 }'|while read TENANT; do
echo $TENANT
keystone user-list --tenant $TENANT|grep -v -- "-----"|egrep -v "id.*\|.*name"|awk '{ print $2 }'|while read USER;do
echo " @ $USER"
keystone user-role-list --user $USER --tenant_id $TENANT|grep -v -- "-----"|egrep -v "id.*\|.*name"|awk '{ print $2 }'|while read ROLE; do
echo " > $ROLE"
done
done
We couldn’t find that file to show.
[vagrant@localhost swift]$ ./.functests
SKIPPING FUNCTIONAL TESTS SPECIFIC TO AUTH VERSION 3
SKIPPING FUNCTIONAL TESTS SPECIFIC TO SERVICE TOKENS
SKIPPING FUNCTIONAL TESTS DUE TO NO CONFIG FOR RESELLER ADMIN
running=SWIFT_TEST_DEBUG_LOGS=${SWIFT_TEST_DEBUG_LOGS} ${PYTHON:-python} -m subunit.run discover -t ./ ${TESTS_DIR:-./test/functional/}
{0} test.functional.test_access_control.TestRBAC.test_rbac ... SKIPPED:
{0} test.functional.test_access_control.TestRBAC.test_rbac_with_service_prefix ... SKIPPED:
SKIPPING FUNCTIONAL TESTS SPECIFIC TO AUTH VERSION 3
SKIPPING FUNCTIONAL TESTS SPECIFIC TO SERVICE TOKENS
SKIPPING FUNCTIONAL TESTS DUE TO NO CONFIG FOR RESELLER ADMIN
JOHNNYWA-M-X2YG:tmp johnnywa$ git clone https://github.com/chianingwang/saio-ansible.git
Cloning into 'saio-ansible'...
remote: Counting objects: 144, done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 144 (delta 43), reused 99 (delta 12), pack-reused 0
Receiving objects: 100% (144/144), 21.70 KiB | 0 bytes/s, done.
Resolving deltas: 100% (43/43), done.
Checking connectivity... done.
JOHNNYWA-M-X2YG:tmp johnnywa$ cd saio-ansible/
JOHNNYWA-M-X2YG:saio-ansible johnnywa$ ls
JOHNNYWA-M-X2YG:saio-ansible johnnywa$ ansible-playbook site.yml -i "130.211.203.240,"
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default).
This feature will be removed in a
future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [all] *********************************************************************
TASK [setup] *******************************************************************
The authenticity of host '130.211.203.240 (130.211.203.240)' can't be established.
ECDSA key fingerprint is SHA256:mYYI2OrpxJXRRysGnO+wTPgs9Mrz6sc61HkZ7k1VZAQ.
./fly -t lite execute -c run-ansible-task.yml -i staas-ci=../.. -i staas-saio=/Users/johnnywa/gitlab/saio-ansible/
....
TASK [post_config : start swift] ***********************************************
changed: [104.155.156.199] => {"changed": true, "cmd": ["/home/johnnywa/bin/startmain"], "delta": "0:00:08.709919", "end": "2016-10-06 21:57:58.693799", "rc": 0, "start": "2016-10-06 21:57:49.983880", "stderr": "", "stdout": "Starting proxy-server...(/etc/swift/proxy-server.conf)\nStarting container-server...(/etc/swift/container-server/1.conf)\nStarting container-server...(/etc/swift/container-server/2.conf)\nStarting container-server...(/etc/swift/container-server/3.conf)\nStarting container-server...(/etc/swift/container-server/4.conf)\nStarting account-server...(/etc/swift/account-server/1.conf)\nStarting account-server...(/etc/swift/account-server/2.conf)\nStarting account-server...(/etc/swift/account-server/3.conf)\nStarting account-server...(/etc/swift/account-server/4.conf)\nStarting object-server...(/
1. Enable Receiver ( rsyslog-server ) setup at elk5 container
a. Update elk5 ( receiver ) rsyslog.conf
# sudo vi /etc/rsyslog.conf
Change
from
# provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514
# provides TCP syslog reception
##Docker Installation
$ wget -qO- https://get.docker.com/ | sh
###user to the “docker” group execute the following command:
$ sudo usermod -aG docker user
$ sudo reboot
###Verify Docker Installation
This file has been truncated, but you can view the full file.
===ffmpeg covert mp4===
ffmpeg version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --en
***Use Local as Docker Image Repository***
===docker run registry container===
$ docker run -d -p 5000:5000 --restart=always --name registry registry:2
Unable to find image 'registry:2' locally
2: Pulling from library/registry
Digest: sha256:1152291c7f93a4ea2ddc95e46d142c31e743b6dd70e194af9e6ebe530f782c17
Status: Downloaded newer image for registry:2
Ed13754c8994680f9efd12d58ea3d36632c4be7a4a825f65c9cf5793e1949e5a
===Or point the docker registry at special "host" directory for running registry container===