This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python test_conn.py | |
/tmp/test | |
REQ: curl -i https://test.swiftstack.org/auth/v1.0 -X GET | |
RESP STATUS: 200 OK | |
RESP HEADERS: {u'Content-Length': u'0', u'Set-Cookie': u'X-Auth-Token=AUT...', u'X-Trans-Id': u'tx2243b14f9d3141b08a9cc-005b5260dd', u'X-Auth-Token': u'AUTH_tk5f01bb73e...', u'X-Storage-Token': u'AUTH_tk5f01bb73e...', u'Date': u'Fri, 20 Jul 2018 22:23:25 GMT', u'X-Storage-Url': u'https://test.swiftstack.org/v1/AUTH_test', u'Content-Type': u'text/plain; charset=UTF-8', u'X-Openstack-Request-Id': u'tx2243b14f9d3141b08a9cc-005b5260dd'} | |
REQ: curl -i https://test.swiftstack.org/v1/AUTH_test/conn_test/test1.txt -X PUT -H "if-none-match: *" -H "X-Auth-Token: AUTH_tk5f01bb73e..." | |
RESP STATUS: 201 Created | |
RESP HEADERS: {u'Content-Length': u'0', u'Last-Modified': u'Fri, 20 Jul 2018 22:23:26 GMT', u'Etag': u'ed3dd25f7a5c84bf2a5adab19b982627', u'X-Trans-Id': u'tx4a1495b95ba045929ffe6-005b5260dd', u'Date': u'Fri, 20 Jul 2018 22:23:28 GMT', u'Content-Type': u'text/html; charset=UTF-8', u'X-Openstack-Request-Id': u' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import os | |
import sys | |
def parse_args(): | |
parser = argparse.ArgumentParser( | |
description='Given a list of migrations, add/edit/delete them.') | |
parser.add_argument('-a', '--action', required=True, | |
choices=['create', 'edit', 'delete'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== create swift-paco-gowf === | |
# create swift-paco-gowf docker container | |
$ docker run -i -t -d --net=host --hostname="swift-paco-gowf-test" --name="swift-paco-gowf-test" -v /srv/node/sdb1:/srv/node/sdb1:rw registry.swiftstack.com/swift-paco-gowf:queens-ss | |
# double check swift | |
$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test -K test stat -v | |
$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test -K test list | |
=== create c7_systemd_gowf === |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2010-2012 OpenStack Foundation | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Stop ssnoded | |
service: name=ssnoded state=stopped | |
- name: Stop swift services (Ubuntu or CentOS 6.x) | |
service: name=ssstop state=started | |
when: (ansible_distribution == 'CentOS' and ansible_distribution_major_version == '6') | |
or ansible_distribution == 'Ubuntu' | |
- name: Stop swift services (RHEL/CentOS 7.x) |
OlderNewer