Skip to content

Instantly share code, notes, and snippets.

# probably a good idea to stop h-eng
delete from event;
delete from stack_tag;
delete from resource_data;
delete from watch_rule;
delete from watch_data;
delete from software_config;
delete from software_deployment;
delete from snapshot;
delete from stack_lock;
Extra debug output with https://github.com/cwolferh/heat-scratch/tree/debug_eager_load_raw_template
See line numbers 665 and 533 below -- unclear why raw_template is not eager loaded in 2nd case
======================================================================
FAIL: heat.tests.convergence.test_converge.ScenarioTest.test_scenario(basic_update_delete)
tags: worker-4
----------------------------------------------------------------------
Empty attachments:
pythonlogging:'alembic'
pythonlogging:'barbicanclient'
# Sample ``local.conf`` for user-configurable variables in ``stack.sh``
# NOTE: Copy this file to the root DevStack directory for it to work properly.
# ``local.conf`` is a user-maintained settings file that is sourced from ``stackrc``.
# This gives it the ability to override any variables set in ``stackrc``.
# Also, most of the settings in ``stack.sh`` are written to only be set if no
# value has already been set; this lets ``local.conf`` effectively override the
# default values.
Using test_template_resource.py::TemplateResourceUpdateTest to show
how resource_properties_data are referenced from events by both
deleted and non-deleted stacks. See commentary at the end.
main_template = '''
HeatTemplateFormatVersion: '2012-12-12'
Resources:
the_nested:
Type: the.yaml
Properties:
@cwolferh
cwolferh / ooo-f19-dev.bash
Last active December 20, 2015 13:09
attempting a tripleo dev env on fedora 19
#!/bin/bash
setenforce 0
service firewalld stop
yum -y install busybox
TRIPLEO_ROOT=${TRIPLE_ROOT:=~/tripleo-fedora-`date +%Y-%m-%d`}
export PATH=$PATH:$TRIPLEO_ROOT/incubator/scripts
export ELEMENTS_PATH=$TRIPLEO_ROOT/tripleo-image-elements/elements
#!/bin/bash
# PUPPETMASTER is the fqdn that needs to be resolvable by clients.
# Change if needed
if [ "x$PUPPETMASTER" = "x" ]; then
# Set PuppetServer
#export PUPPETMASTER=puppet.example.com
export PUPPETMASTER=$(hostname)
fi
# Install mysql using scl ruby+puppet on rhel6
cat >/tmp/mysql-db.pp <<EOF
class { 'mysql::server':
config_hash => {
'root_password' => 'mysql'
}
}
# on fedora 18, install libguestfs from source instead of yum.
# otherwise, guestconv calls to the libguestfs would fail like so:
#
# Exception AttributeError: "'GuestFS' object has no attribute '_o'" in <bound method GuestFS.__del__ of <guestfs.GuestFS object at 0x2595250>> ignored
# Traceback (most recent call last):
# File "examples/example.py", line 27, in <module>
# g = guestconv.Converter('rhev', ['conf/guestconv.db']);
# File "../guestconv/guestconv/converter.py", line 89, in __init__
# self._h = guestfs.GuestFS(python_return_dict=True)
# quickly bring up a Fedora 18 image. root on host OS should be able
# to ssh into the guest without a password.
# assumption: libvirtd already running
sudo sh -c "cd /var/lib/libvirt/images/
if [ ! -f Fedora18-Cloud-x86_64-20130115.qcow2 ]; then
wget http://mattdm.fedorapeople.org/cloud-images/Fedora18-Cloud-x86_64-20130115.qcow2
else
echo Fedora18-Cloud-x86_64-20130115.qcow2 already present.
fi
# On Fedora 18, install libvirt dependencies (and a few more) and
# start libvirtd. turn off selinux, enable ip forwarding, turn off
# firewall.
sudo sysctl -w net.ipv4.ip_forward=1
sudo sed -i 's/net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/g' /usr/lib/sysctl.d/00-system.conf
sudo setenforce 0
sudo systemctl stop firewalld
depends="nfs-utils libguestfs-tools libvirt virt-manager git mysql-server tigervnc-server tigervnc-server-module tigervnc xorg-x11-twm xorg-x11-server-utils"