Skip to content

Instantly share code, notes, and snippets.

pick 4c2ff85 reduce Dagger complexity by flattening credential providers and decoupling DNS Provider classes from the
ir Modules
pick 75d819b credential args are more naturally specified by a user as Supplier vs Provider
pick 57498e8 remove circular dependency between denominator.Provider and its Module
pick c3f38e0 use MockProvider.Module to compress tests
pick e140cc0 remove extraneous dependencies from clouddns
pick ad4977a issue #150: expose Provider.getUrl and support dynamic url updates
pick ce669a5 issue #150: change mock tests to override Provider.getUrl
pick eed99ec issue #150: added -u --url flag to the cli
pick 663c0bd issue #150: added PROVIDER.url test property
@thesurlydev
thesurlydev / gist:5496221
Created May 1, 2013 16:06
boot options for autoinstall.iso
file=/cdrom/preseed/ubuntu-server.seed initrd=/install/initrd.gz ks=cdrom:/ks.cfg preseed/file=/cdrom/ks.preseed interface=eth3 netcfg/disable_dhcp=true netcfg/disable_autoconfig=true netcfg/get_ipaddress=172.16.8.33 netcfg/get_netmask=255.255.255.0 netcfg/get_nameservers=8.8.8.8 netcfg/get_gateway=172.16.8.1 netcfg/get_hostname=devstack2 netcfg/get_domain=cloudsoftcorp.com --
@thesurlydev
thesurlydev / gist:5119663
Last active December 14, 2015 17:08
/etc/nova/nova.conf
[shane@localhost heat]$ sudo cat /etc/nova/nova.conf
[DEFAULT]
logdir = /var/log/nova
state_path = /var/lib/nova
lock_path = /var/lib/nova/tmp
volumes_dir = /etc/nova/volumes
dhcpbridge = /usr/bin/nova-dhcpbridge
dhcpbridge_flagfile = /etc/nova/nova.conf
force_dhcp_release = True
injected_network_template = /usr/share/nova/interfaces.template
[shane@localhost heat]$ sudo -E bash -c 'heat-api-cfn & heat-engine &'
[shane@localhost heat]$ Traceback (most recent call last):
File "/bin/heat-engine", line 4, in <module>
import pkg_resources
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2815, in <module>
working_set.require(__requires__)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 690, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 588, in resolve
raise DistributionNotFound(req)
[shane@localhost heat]$ nova delete bad148d7-9c39-4efe-9f2f-01f089cb1a90
[shane@localhost heat]$ nova list
+--------------------------------------+------------------------+--------+------------------+
| ID | Name | Status | Networks |
+--------------------------------------+------------------------+--------+------------------+
| bad148d7-9c39-4efe-9f2f-01f089cb1a90 | wordpress.WikiDatabase | ERROR | demonet=10.0.0.2 |
+--------------------------------------+------------------------+--------+------------------+
[shane@localhost heat]$ heat-cfn create wordpress3 --template-file=templates/WordPress_Single_Instance.template --parameters="InstanceType=m1.xlarge;DBUsername=${USER};DBPassword=password;KeyName=${USER}_key"
2013-03-08 14:53:01.492 3103 DEBUG heat.api.middleware.version_negotiation [-] Processing request: POST /v1/ Accept: process_request /usr/lib/python2.7/site-packages/heat-2013.1.a323.g180430f-py2.7.egg/heat/api/middleware/version_negotiation.py:51
DEBUG:heat.api.middleware.version_negotiation:Processing request: POST /v1/ Accept:
2013-03-08 14:53:01.493 3103 DEBUG heat.api.middleware.version_negotiation [-] Matched versioned URI. Version: 1.0 process_request /usr/lib/python2.7/site-packages/heat-2013.1.a323.g180430f-py2.7.egg/heat/api/middleware/version_negotiation.py:63
DEBUG:heat.api.middleware.version_negotiation:Matched versioned URI. Version: 1.0
2013-03-08 14:53:01.494 3103 INFO heat.api.aws.ec2token [-] Checking AWS credentials..
INFO:heat.api.aws.ec2token:Checking AWS credentials..
2013-03-08 1
[shane@localhost heat]$ heat-cfn list
Failed to load keyring modules.
2013-03-08 13:39:17.305 3103 DEBUG heat.api.middleware.version_negotiation [-] Processing request: GET /v1/ Accept: process_request /usr/lib/python2.7/site-packages/heat-2013.1.a323.g180430f-py2.7.egg/heat/api/middleware/version_negotiation.py:51
DEBUG:heat.api.middleware.version_negotiation:Processing request: GET /v1/ Accept:
2013-03-08 13:39:17.306 3103 DEBUG heat.api.middleware.version_negotiation [-] Matched versioned URI. Version: 1.0 process_request /usr/lib/python2.7/site-packages/heat-2013.1.a323.g180430f-py2.7.egg/heat/api/middleware/version_negotiation.py:63
DEBUG:heat.api.middleware.version_negotiation:Matched versioned URI. Version: 1.0
2013-03-08 13:39:17.307 3103 INFO heat.api.aws.ec2token [-] Checking AWS credentials..
INFO:heat.api.aws.ec2token:Checking AWS credentials..
2013-03-08 13:39:17.307 3103 INFO heat.api.aws.ec2token [-] No AWS Signature found.
INFO:heat.api.aws.ec2token:No AWS Signature found.
@thesurlydev
thesurlydev / gist:5110689
Created March 7, 2013 18:53
getting this running 'nova network-show' and 'nova network-list'. following: https://github.com/openstack/heat/blob/master/docs/GettingStarted.rst#readme
REQ: curl -i http://localhost:8774/v1.1/90b1f0954ba641b6b8b3e41094da6fc4/os-networks -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 6a7e6a5794fc43bc8a379b75d151f54d"
connect: (localhost, 8774) ************
send: u'GET /v1.1/90b1f0954ba641b6b8b3e41094da6fc4/os-networks HTTP/1.1\r\nHost: localhost:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 6a7e6a5794fc43bc8a379b75d151f54d\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-6ca271a9-5326-43af-894f-ffcb4e734599
header: Content-Type: application/json
header: Content-Length: 653
header: Date: Thu, 07 Mar 2013 18:50:38 GMT
RESP:{'status': '200', 'content-length': '653', 'content-location': u'http://localhost:8774/v1.1/90b1f0954ba641b6b8b3e41094da6fc4/os-networks', 'x-compute-request-id': 'req-6ca271a9-5326-43af-894f-ffcb4e734599', 'date': 'Thu, 07 Mar 2013 18:50:38 GMT', 'c
@thesurlydev
thesurlydev / gist:5084417
Created March 4, 2013 18:42
NPE while deleting network in Cloudstack 4.1-snapshot
2013-03-04 13:35:01,357 DEBUG [cloud.async.AsyncJobManagerImpl] (81985602@qtp-2071623777-63:null) submit async job-55, details: AsyncJobVO {id:55, userId: 2, accountId: 2, sessionKey: null, instanceType: null, instanceId: null, cmd: org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd, cmdOriginator: null, cmdInfo: {"id":"4c26ce31-3da6-4e5d-aa69-3f96637b7b35","response":"json","sessionkey":"d8ssFp1RD3e9GIxd1aiF1Vc/s4o\u003d","ctxUserId":"2","_":"1362422101211","ctxAccountId":"2","ctxStartEventId":"70"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 165276484900497, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-03-04 13:35:01,361 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-34:job-55) Executing org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd for job-55
2013-03-04 13:35:01,362 DEBUG [cloud.api.ApiServlet] (81985602@qtp-2071623777-63:null) ===END=== 208.96.179.187 -- GE
@thesurlydev
thesurlydev / gist:5058738
Created February 28, 2013 17:59
cloudstack 4.1, xenserver 6.1, ubuntu 12.04.1. below occurs when zone is enabled. seems pool.getPoolType().isShared() is evaluating to false at line ~127 in com.cloud.storage.allocator.AbstractStoragePoolAllocator
2013-02-28 12:36:05,208 DEBUG [cloud.api.ApiServlet] (1273455260@qtp-2143632343-8:null) ===START=== 208.96.179.187 -- GET command=listZones&response=json&sessionkey=p%2BTXa9uiKk23EJHJtcsb4AHCuOk%3D&id=5ffb2e9d-e059-45a5-86a8-d25488851f3d&_=1362072964150
2013-02-28 12:36:05,214 DEBUG [cloud.api.ApiServlet] (1273455260@qtp-2143632343-8:null) ===END=== 208.96.179.187 -- GET command=listZones&response=json&sessionkey=p%2BTXa9uiKk23EJHJtcsb4AHCuOk%3D&id=5ffb2e9d-e059-45a5-86a8-d25488851f3d&_=1362072964150
2013-02-28 12:36:05,453 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1 is ready to launch secondary storage VM
2013-02-28 12:36:05,454 INFO [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:null) No running secondary storage vms found in datacenter id=1, starting one
2013-02-28 12:36:05,456 INFO [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Found a stopped secondary storage vm, bring it up to running pool. secStorageVm vm id : 11
2013