Skip to content

Instantly share code, notes, and snippets.

View jtaleric's full-sized avatar
💀

Joe Talerico (rook) jtaleric

💀
View GitHub Profile
# Parse results
result = StringIO.StringIO('\n'.join(stdout.split('\n')[1:]))
creader = csv.reader(result)
report = []
for row in creader:
if len(row) >= 1 :
report.append(["single-{}".format(row[1]),row[2]])
report.append(["aggregate-{}".format(row[1]),row[3]])
print report
{
"scenarios": {
"/root/shaker-venv/lib/python2.7/site-packages/shaker/scenarios/networking/dense_l2.yaml": {
"file_name": "/root/shaker-venv/lib/python2.7/site-packages/shaker/scenarios/networking/dense_l2.yaml",
"title": "/root/shaker-venv/lib/python2.7/site-packages/shaker/scenarios/networking/dense_l2.yaml",
"execution": {
"tests": [
{
"interval": 1,
"title": "Iperf TCP",
#!/bin/bash
sudo echo "nameserver 10.11.5.19" > /etc/resolv.conf
sudo cat << EOF >> /etc/yum.repos.d/pbench.repo
# Template file to be used with ansible playbook "pbench-repo.yml"
###########################################################################
# pbench "official" repos
# Internal repo
[pbench]
name=Pbench 7Server - x86_64
------------------------------------------------------------------------------------------------------------------+
[stack@r710-undercloud ~]$ heat resource-list -n5 overcloud | grep -i fail
| ComputeNodesPostDeployment | 3ffeec84-3a25-46b8-b219-4f2bfce141fe | OS::TripleO::ComputePostDeployment | UPDATE_FAILED | 2016-05-06T09:10:08 | overcloud |
| ComputeArtifactsDeploy | 189eb75d-ef4e-4efb-89d1-2c3fa94e55f7 | OS::Heat::StructuredDeployments | UPDATE_FAILED | 2016-05-06T09:17:06 | overcloud-ComputeNodesPostDeployment-ws3b7l4bgvh5
-- Logs begin at Sun 2016-05-01 00:41:23 UTC, end at Wed 2016-05-04 19:54:35 UTC. --
May 02 18:23:10 overcloud-compute-108.localdomain os-collect-config[8834]: 2016-05-02 18:23:10.021 8834 WARNING os-collect-config [-] Source [request] Unavailable.
May 02 18:23:10 overcloud-compute-108.localdomain os-collect-config[8834]: 2016-05-02 18:23:10.021 8834 WARNING os_collect_config.local [-] /var/lib/os-collect-config/local-data not found. Skipping
May 02 18:23:10 overcloud-compute-108.localdomain os-collect-config[8834]: 2016-05-02 18:23:10.022 8834 WARNING os_collect_config.local [-] No local metadata found (['/var/lib/os-collect-config/local-data'])
May 02 18:23:10 overcloud-compute-108.localdomain os-collect-config[8834]: 2016-05-02 18:23:10.022 8834 WARNING os_collect_config.zaqar [-] No auth_url configured.
May 02 18:23:10 overcloud-compute-108.localdomain os-collect-config[8834]: [2016-05-02 18:23:10,048] (os-refresh-config) [INFO] Starting phase pre-configure
May 02 18:23:10 overcloud-compute-108.localdomai
abrt-2.1.11-35.el7.x86_64
abrt-addon-ccpp-2.1.11-35.el7.x86_64
abrt-addon-kerneloops-2.1.11-35.el7.x86_64
abrt-addon-pstoreoops-2.1.11-35.el7.x86_64
abrt-addon-python-2.1.11-35.el7.x86_64
abrt-addon-vmcore-2.1.11-35.el7.x86_64
abrt-addon-xorg-2.1.11-35.el7.x86_64
abrt-cli-2.1.11-35.el7.x86_64
abrt-console-notification-2.1.11-35.el7.x86_64
abrt-dbus-2.1.11-35.el7.x86_64
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
Logging to /root/.instack/install-undercloud.log
Checking for a FQDN hostname...
Static hostname detected as dhcp159-133.sbu.lab.eng.bos.redhat.com
Transient hostname detected as dhcp159-133.sbu.lab.eng.bos.redhat.com
Running instack
INFO: 2015-11-26 10:14:20,667 -- Starting run of instack
INFO: 2015-11-26 10:14:20,673 -- Using json file: /usr/share/instack-undercloud/json-files/rhel-7-undercloud-packages.json
INFO: 2015-11-26 10:14:20,674 -- Running Installation
INFO: 2015-11-26 10:14:20,674 -- Initialized with elements path: /usr/share/tripleo-puppet-elements /usr/share/instack-undercloud /usr/share/tripleo-image-elements /usr/share/diskimage-builder/elements
INFO: 2015-11-26 10:14:20,703 -- List of all elements and dependencies: common-venv undercloud-install puppet-modules pip-manifest selinux openstack-clients os-svc-install rdomanager-oscplugin puppet tripleo-heat-templates ironic source-repositories package-installs os-refresh-config os-apply-config undercloud-stack-config os-net-config hiera dib-init-
[2015/11/24 01:34:58 PM] [INFO] Using config file at: /etc/os-net-config/config.json
[2015/11/24 01:34:58 PM] [INFO] Using mapping file at: /etc/os-net-config/mapping.yaml
[2015/11/24 01:34:58 PM] [INFO] Ifcfg net config provider created.
[2015/11/24 01:34:58 PM] [INFO] nic1 mapped to: eno1
[2015/11/24 01:34:58 PM] [INFO] nic2 mapped to: eno2
[2015/11/24 01:34:58 PM] [INFO] adding bridge: br-ctlplane
[2015/11/24 01:34:58 PM] [ERROR] Unable to read mac address: eth1
Traceback (most recent call last):
File "/bin/os-net-config", line 10, in <module>
sys.exit(main())
Running instack
INFO: 2015-11-24 13:30:17,564 -- Starting run of instack
INFO: 2015-11-24 13:30:17,569 -- Using json file: /home/stack/package-only.json
ERROR: 2015-11-24 13:30:17,570 -- No JSON object could be decoded
File "/usr/lib/python2.7/site-packages/instack/main.py", line 152, in main
json_list = json.loads(open(args.json_file).read())
File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())