openstack domain create domain1 --description "domain 1"
openstack domain list
openstack project create domain1_project1 --domain domain1
openstack project list
openstack user create domain1_admin --email "admin@domain1.com" --domain domain1 --password-prompt
openstack user list --domain domain1
openstack role add --user domain1_admin --domain domain1 admin
openstack user create domain1_user1 --email "user1@domain1.com" --domain domain1 --password-prompt
openstack user list --domain domain1
nova keypair-add key1 key1.pem
chmod 600 key1.pem
nova keypair-list
. admin_rc.sh
nova flavor-lis
nova flavor-create m1.extra_tiny auto 64 0 1 --rxtx-factor 1.0
openstack project list
nova flavor-access-add m1.extra_tiny
Additional commands:
nova flavor-list
nova flavor-delete {flavorid}
nova secgroup-list
nova secgroup-list-rules default
nova secgroup-add-rule default tcp 22 22 0.0.0.0/0
nova secgroup-add-rule default tcp 80 80 0.0.0.0/0
nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
nova boot instance2 --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --key-name key1 --security-group default
Get the instance IP address from nova list command:
ssh -i key1.pem ubuntu@{ip}
nova image-create {instance2} {instance2-snapshot}
nova delete {instance2}
https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img
Make sure, you have a key and the appropriate ICMP and SSH rules in place:
nova keypair-add key1 > key1.pem
chmod 600 key1.pem
nova keypair-list
nova secgroup-list
nova secgroup-list-rules new_secgroup
nova secgroup-add-rule new_secgroup tcp 22 22 0.0.0.0/0
nova secgroup-add-rule new_secgroup icmp -1 -1 0.0.0.0/0
nova boot --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --key_name
key1 instance1
ssh -i key1.pem cirros@{ip}
touch testfile.txt
Make sure, you have a key and the appropriate ICMP and SSH rules in place:
nova keypair-add key1 > key1.pem
chmod 600 key1.pem
nova keypair-list
nova secgroup-list
nova secgroup-list-rules new_secgroup
nova secgroup-add-rule new_secgroup tcp 22 22 0.0.0.0/0
nova secgroup-add-rule new_secgroup icmp -1 -1 0.0.0.0/0
nova boot --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --key_name key1 --security-groups new-secgroup instance1
nova volume-attach <instance-id> <vol-id> /dev/vdb`
ssh -i key1.pem cirros@10.0.0.3
sudo fdisk /dev/vdb
sudo mount /dev/vdb /mnt
touch /mnt/vdb/testfile.txt
sync && sleep 2
cinder snapshot-create --name {snapshot-name} {vol-id}
cinder list
cinder snapshot-list
cinder create --snapshot-id {snapshot-id} --name {new-vol}
cinder list
cinder create --display-name {demo-volume1} {1}
cinder list
nova boot --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --key_name
key1 instance3
nova list --security-groups default
cinder backup-show
cinder backup-list
cinder backup-create {vol-id}
Define a HOT template "basic1.yml" with only the following parameters
https://github.com/AJNOURI/COA/blob/master/heat-stuff/basic-stack1.md