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
| getting useful testr exception output | |
| tox -epy27 nova.tests.integrated | |
| # ctrl-c after it has made it through the dependencies | |
| source .tox/py27/bin/activate | |
| pip install --allow-external bzr --allow-unverified bzr bzr | |
| pip install -e bzr+lp:testrepository#egg=testrepository |
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
| Serves 1: | |
| - spend one hour attempting every common way of enabling debug or verbose logging in the cli or config | |
| - run_tests.sh? deprecated? use tox? install tox? --debug? | |
| - downgrade one dependency | |
| - try `pip install tox==1.6.1` | |
| - spend another hour attempting every common way of manually hardcoding the log level to be debug | |
| - acquire blob of text: https://gist.githubusercontent.com/termie/9358089/raw/80df96f5d1f0886f672253612972849ef5196886/gistfile1.txt | |
| - hack your venv to install another dependency from trunk source | |
| - like so: https://gist.github.com/termie/9358833 |
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
| addFixedIp_servers: | |
| path: /%(project_id)s/servers/%(id)s/action | |
| post: | |
| - - project_id | |
| - string | |
| - - id | |
| - string | |
| - - networkId | |
| - string | |
| request: |
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
| [('Could not match route', | |
| {u'body': u'', | |
| u'content_type': u'text', | |
| u'method': u'GET', | |
| u'path': u'/v2/openstack//foxnsocks', | |
| u'version': u'v2'})] | |
| {u'addFixedIp_servers': [{'action': u'action', | |
| 'body': {u'addFixedIp': {u'networkId': 1}}, | |
| 'class_name': 'servers', | |
| 'content_type': 'json', |
This file has been truncated, but you can view the full file.
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
| {u'calls': {u'addFixedIp_servers': [{u'action': u'action', | |
| u'body': {u'addFixedIp': {u'networkId': 1}}, | |
| u'class_name': u'Controller', | |
| u'content_type': u'json', | |
| u'method': u'POST', | |
| u'module_name': u'servers', | |
| u'name': u'addFixedIp_servers', | |
| u'path': u'/openstack/servers/e72c5cd4-2bb6-43e3-a763-53be50811fed/action', | |
| u'qs': u'', | |
| u'raw_module': u'nova.api.openstack.compute.servers', |
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
| All | |
| [u'OS-DCF:diskConfig', | |
| u'availability_zone', | |
| u'block_device_mapping_v2', | |
| u'flavorRef', | |
| u'imageRef', | |
| u'max_count', | |
| u'metadata', | |
| u'min_count', | |
| u'name', |
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
| Dear internet, I have a stupid data structure transformation problem | |
| (and probably an "i don't understand go interfaces" problem) | |
| data = {'build': {'steps': [{'some_name': {'data1': 'foo', 'data2': 'bar'}}, | |
| {'another_name': {'data3': 'baz', 'data4': 'qux'}} | |
| ] | |
| } | |
| } | |
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: fleet.socket | |
| command: start | |
| content: | | |
| [Socket] | |
| ListenStream=6000 | |
| Service=fleet.service | |
| [Install] | |
| WantedBy=sockets.target |
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
| # Ensure that etcd is starting fresh | |
| config.vm.provision :shell, :inline => "systemctl stop etcd" | |
| config.vm.provision :shell, :inline => "rm -rf /var/lib/etcd/*", :privileged => true | |
| $script = <<SCRIPT | |
| for x in $(cat /etc/environment); do | |
| export $x | |
| done | |
| coreos-cloudinit --from-file /var/lib/coreos-vagrant/vagrantfile-user-data | |
| SCRIPT |
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
| // Also probably need a background page with tab permissions: https://developer.chrome.com/extensions/tabs | |
| // listening for onCreated, onUpdated and do a | |
| chrome.tabs.onCreated.addListener(tabCreated); | |
| function tabCreated(tab) { | |
| chrome.tabs.query({"windowId": tab.windowId}, function (tabList) { | |
| tablist.forEach(function (aTab) { | |
| aTab.sendMessage({"numTabs": tabList.size()}); | |
| }) | |
| }) |