Openstack CenOS 7
systemctl start network
systemctl enable network
systemctl disable NetworkManager
systemctl stop NetworkManager
sudo yum install epel-release
sudo yum update -y
sudo yum install -y https://www.rdoproject.org/repos/rdo-release.rpm
sudo yum install -y openstack-packstack
packstack --gen-answer-file answerfile.txt
packstack --answer-file answerfile.txt
*** Chack Service Openstack
#openstack-status
LAB 1 Run Script LAB 1
*** Heat Orchestration Template
http://docs.openstack.org/developer/heat/template_guide/hot_guide.html
###########################################
heat_template_version: 2015-04-30
description: Simple template to deploy a single compute instance
resources:
my_instance:
type: OS::Nova::Server
properties:
key_name: my_key
image: F18-x86_64-cfntools
flavor: m1.small
###########################################
heat_template_version: 2015-04-30
description: Simple template to deploy a single compute instance
parameters:
key_name:
type: string
label: Key Name
description: Name of key-pair to be used for compute instance
image_id:
type: string
label: Image ID
description: Image to be used for compute instance
instance_type:
type: string
label: Instance Type
description: Type of instance (flavor) to be used
resources:
my_instance:
type: OS::Nova::Server
properties:
key_name: { get_param: key_name }
image: { get_param: image_id }
flavor: { get_param: instance_type }
#################################################
parameters:
instance_type:
type: string
label: Instance Type
description: Type of instance (flavor) to be used
constraints:
- allowed_values: [ m1.medium, m1.large, m1.xlarge ]
description: Value must be one of m1.medium, m1.large or m1.xlarge.
#################################################
parameters:
database_password:
type: string
label: Database Password
description: Password to be used for database
hidden: true
constraints:
- length: { min: 6, max: 8 }
description: Password length must be between 6 and 8 characters.
- allowed_pattern: "[a-zA-Z0-9]+"
description: Password must consist of characters and numbers only.
- allowed_pattern: "[A-Z]+[a-zA-Z0-9]*"
description: Password must start with an uppercase character.
##################################################
*** Create Network 192.168.10.0/24
*** Show network name space
#ip netns
*** Test Ping Router
#ip netns exec qrouter<ID> ping 192.168.10.1
*** Uplaod Image
*** Create Heat Template
*** Access Console
#source ./keystonerc_demo
#heat stack-list
*** Chack Log
#tail -f /var/log/heat/heat-engine.log
*** Chack Instane
#heat stack-list
# heat stack-show <ID>
*** SSH to Host
# ip netns exec qrouter<ID> ssh -i <KEY> centos@<IP Address>
-----------------------------------------------------------------------------------------
LAB 2 Run Script LAB 2
LAB 3 Run Script LAB 3
Openstack CenOS 7
By Chadchai Praphasanobol
Openstack CenOS 7
- 544