Skip to content

Instantly share code, notes, and snippets.

#swift-object-notify is a execution under /opt/ss/lib/python2.7/site-packages/swift-metadata-sync.egg-link
#container-crawler is a middleware need to be installed and run under
Download to local for modification
Johnnys-MacBook-Pro:git jwang$ git clone https://github.com/swiftstack/swift-object-notify.git
Cloning into 'swift-object-notify'...
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (10/10), done.
jwang@ubuntu1604lxd:~/git/lxd/builds$ ./build-elk5-stack-ubuntu1604.sh
Creating elk5-u1604-1
Starting elk5-u1604-1
[i] Running in a VirtualBox environment.
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
user@ubuntu:~/Desktop/K8S$ kubectl describe jobs/demo2
Name: demo2
Namespace: default
Image(s): chianingwang/ffmpeg_swift,chianingwang/ffmpeg_swift
Selector: controller-uid=d2a1963d-bd11-11e6-8e20-08002713bc21
Parallelism: 1
Completions: 1
Start Time: Wed, 07 Dec 2016 22:44:52 -0800
Labels: <none>
Pods Statuses: 1 Running / 0 Succeeded / 0 Failed
name: ss-node
config:
raw.lxc: |-
lxc.cgroup.devices.allow = c 10:236 rwm
lxc.cgroup.devices.allow = b 252:* rwm
lxc.aa_profile = unconfined
security.privileged: "true"
description: ""
devices:
disk0:
# ./setup_and_run_ansible_on_guest.sh saio --debug
+ DEBUG=--debug
+ '[' '!' -d ./components/swift/.git ']'
+ tar cf - ./ansible
+ lxc exec saio -- tar xf - -C /root/
+ lxc exec saio -- tar xf - -C /root/
+ tar cf - -C ./components .
+ lxc exec saio -- /bin/bash /root/ansible/install_ansible.sh --debug
+ set +e
+ echo 'Waiting on networking...'
from __future__ import print_function
import sys
import os
from ctypes import *
import requests
import subprocess
from subprocess import call
import re
import glob
#import requests
from ctypes import *
import swiftclient
from swiftclient.service import SwiftService, SwiftUploadObject
#from swiftclient.client import put_object
import os
import glob
from sys import argv
_opts = {
[
{
"path": "/9f96/210f488c1594e003049809c0e9909f96",
"size_bytes": 695383,
"etag": "210f488c1594e003049809c0e9909f96"
},
{
"path": "/b6cf/4697dc1a297b63f56433d9d797f9b6cf",
"size_bytes": 1033323,
"etag": "4697dc1a297b63f56433d9d797f9b6cf"
C:\Users\Johnny\Documents\GitHub\swift-bulk-uploader>pyinstaller --onefile --windowed .\bulk_uploader\bulk_uploader.py
137 INFO: PyInstaller: 3.2.1
137 INFO: Python: 2.7.12
138 INFO: Platform: Windows-10-10.0.15031
144 INFO: wrote C:\Users\Johnny\Documents\GitHub\swift-bulk-uploader\bulk_uploader.spec
147 INFO: UPX is not available.
151 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Johnny\\Documents\\GitHub\\swift-bulk-uploader',
'C:\\Users\\Johnny\\Documents\\GitHub\\swift-bulk-uploader']
151 INFO: checking Analysis
johnny@ubuntu-VirtualBox:~/Desktop$ java -jar JBox.jar q f
run: q, username:jb, password:jb, level:f
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|File Directory & Name |File GUID |File Content Hash |Create Time |Update Time |Size(Byte) |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|/home/vagrant/Workspace/SyncFolder/ran_610K.0.0|dd091a049adf42deb86a406b3e6e60d5|a49ccd82312e779d86ef5f72c1097cb5|2017/02/21 01:06:56 |2017/02/21 01:06:56 |624640 |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
johnny@ubuntu-VirtualBox:~/D