OpenStack Cheat Sheets

A living document in which I post things that I find useful.

##Keystone token gen v2
curl -i \
-H "Content-Type: application/json" \
-d '
{
"auth": {
"tenantName": "admin",
"passwordCredentials": {
"username": "admin",
"password": "SuperSecretePassword"
}
}
}' \
http://10.100.100.197:5000/v2.0/tokens ; echo

.

##Keystone token gen v3
curl -i \
-H "Content-Type: application/json" \
-d '
{ "auth": {
"identity": {
"methods": ["password"],
"password": {
"user": {
"name": "admin",
"domain": { "id": "default" },
"password": "SuperSecretePassword"
}
}
}
}
}' \
http://10.100.100.197:5000/v3/auth/tokens ; echo

Openstack CLI

nova boot --flavor $FLAVOR --block-device source=image,dest=volume,id=$IMGID,size=$DISKSIZE,shutdown=preserve,bootindex=0 --key-name $KEYNAME --security-groups $SECGROUPS --nic net-id=$NETID $INSTANCENAME

.

glance --os-tenant-name $OS_TENANT_NAME image-create --name $IMAGENAME --disk-format qcow2 --container-format bare --file $IMGPATH
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.