Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
## Useful Commands
Get kubectl version
kubectl version
Get cluster info:
INFO[03-04|11:11:43] handling url="/1.0/operations/0692ca07-dc41-477b-b017-ddb702014b90/wait?status_code=200" ip=@ method=GET
DBUG[03-04|11:11:43] ContainerCreateFromImage driver=storage/dir isPrivileged=false imageFingerprint=88da00d4521ed9feea1e8ffce1d9c9469d4f2ff8c3fb4cdb74443e58200578a9 name=instance-00000045
DBUG[03-04|11:11:47] Shifting root filesystem container=instance-00000045 rootfs=/var/lib/lxd/containers/instance-00000045/rootfs
DBUG[03-04|11:11:48] ContainerSetQuota driver=storage/dir container=instance-00000045 size=65498251264
DBUG[03-04|11:11:48] containerDeleteSnapshots container=instance-00000045
DBUG[03-04|11:11:48] ContainerDelete driver=storage/dir container=instance-00000045
DBUG[03-04|11:11:48] Failure for task operation: 0692ca07-dc41-477b-b017-ddb702014b90: The directory container backend doesn't support quotas.
DBUG[03-04|11:11:48]
{
2016-03-03 17:31:28.487 29438 ERROR nova.compute.manager [req-c88edfef-9aad-4342-af11-919402449641 766e0c96f37a4ec3a7ecd4b385801277 51c07ad00bd2488fb0bd1a7fe0c771ab - - -] [instance: 52940044-91b1-468e-9664-252f
200ede67] Instance failed to spawn
2016-03-03 17:31:28.487 29438 ERROR nova.compute.manager [instance: 52940044-91b1-468e-9664-252f200ede67] Traceback (most recent call last):
2016-03-03 17:31:28.487 29438 ERROR nova.compute.manager [instance: 52940044-91b1-468e-9664-252f200ede67] File "/home/stacker/nova/nova/compute/manager.py", line 2155, in _build_resources
2016-03-03 17:31:28.487 29438 ERROR nova.compute.manager [instance: 52940044-91b1-468e-9664-252f200ede67] yield resources
2016-03-03 17:31:28.487 29438 ERROR nova.compute.manager [instance: 52940044-91b1-468e-9664-252f200ede67] File "/home/stacker/nova/nova/compute/manager.py", line 2009, in _build_and_run_instance
2016-03-03 17:31:28.487 29438 ERROR nova.compute.manager [instance: 52940044-91b1-468e-9664-252f200ede67] block_device_
stacker@atl-controller:~$ cat cloud-init.yaml
#cloud-config
# vim:syntax=yaml
debug: True
ssh_pwauth: True
disable_root: False
chpasswd:
list: |
root:ramnode
ubuntu:ramnode
@john5223
john5223 / gist:e9a9ab921352ffffcadf
Created October 19, 2015 19:30
Glance image stores
[glance_store]
default_store = file
filesystem_store_datadir = /var/lib/glance/images/
# List of which store classes and store class locations are
# currently known to glance at startup.
# Deprecated group/name - [DEFAULT]/known_stores
# Existing but disabled stores:
# glance.store.rbd.Store,
# glance.store.s3.Store,
# glance.store.swift.Store,
@john5223
john5223 / gist:5cf071648dedf30c93ba
Created October 9, 2015 14:33
Keystone request for Password + OTP
{ "auth": {
"identity": {
"methods": ["password", "otp"],
"password": {
"user": {
"name": "USERNAME",
"domain": { "id": "default" },
"password": "PASSWORD"
}