SlideShare une entreprise Scribd logo
1  sur  14
#vBrownBag
Couch to OpenStack Phase 2 Kick-off
Some Logistics
• These episodes are all available on iTunes / RSS
here: http://bit.ly/BrownbagiTunes
• You can find all of our labs here:
http://openstack.prov12n.com/about-couch-toopenstack/
• To join the conversation, raise your hand, or drop
a line on the #vBrownBag hash tag
• We also have a G+ support community here:
https://plus.google.com/communities/1016630525
88382171429
The Book!
• This book, here: http://amzn.to/1hVoiWo
What is Couch to OpenStack?
• Designed to work like a Couch to 5k program
• Builds you from no knowledge of OpenStack
to a build / operational readiness
• Phase 1: “What is OpenStack” and “Building
an OpenStack” here:
http://openstack.prov12n.com/openstack_ph
ase_1/
Phase 2
•
•
•
•
•
•
•
•
•
•
•
•
•

12/3/2013 – What’s new in Havana
12/10/2013 – C2OS Havana Update / Kick-off << We’re here!
12/17/2013 – Upgrade Grizzly to Havana
1/14/2014 – A Second Compute Node
1/21/2014 – Image Management
1/28/2014 – Your First Instance(s) – Instance Management
2/4/2014 – Connecting with LDAP
2/11/2014 – Permissions Management
2/18/2014 – Tenant Management
2/25/2014 – Networking with Neutron
3/4/2014 – Application Deployments
3/11/2014 – HA Your OpenStack Services
3/18/2014 – PaaS Your OpenStack Cloud
The Environment From Phase 1
Controller:
Dashboard
Identity
Nova API
Glance

Compute:
- Qemu
- Novacompute

Cider:
- Linux iSCSI
- Extra
Volume
- Cinder API

172.16.80.x – Management
10.10.80.x – something
192.168.80.x – Public Network

Network:
- Neutron API
- Open
vSwitch
- etc
Getting Started in Phase 2
• While not required, it will really help if you’ve
been through Phase 1, or have some
familiarity.
• Download and Install VirtualBox, Vagrant, and
Git:
– https://www.virtualbox.org/
– http://vagrantup.com
– http://github.com
Getting Started in Phase 2
• Once you have those tools, open a terminal
and do the following:
git clone https://github.com/bunchc/Couch_to_OpenStack.git
cd Couch_to_OpenStack
vagrant up
vagrant ssh client

Note: On average this takes 20 or so minutes
Some Review
Let’s review some things from last time:
• Source environment file
• List services & images
• Create a router & network
• Create an instance
• Find log files
• c
Source the environment file
vagrant ssh client
source /vagrant/.stackrc
keystone endpoint-list
List Services / Images
• keystone service-list
• glance image-list
Create Network / Router / Boot VM
source /vagrant/.stackrc
export OS_NO_CACHE=1
TENANT_ID=$(keystone tenant-list 
| awk '/ cookbook / {print $2}')
quantum net-create 
--tenant-id ${TENANT_ID} 
cookbook_network_1
quantum subnet-create 
--tenant-id ${TENANT_ID} 
--name cookbook_subnet_1 
cookbook_network_1 
10.200.0.0/24
quantum router-create 
--tenant-id ${TENANT_ID} 
cookbook_router_1
ROUTER_ID=$(quantum router-list 
| awk '/ cookbook_router_1 / {print $2}')
SUBNET_ID=$(quantum subnet-list 
| awk '/ cookbook_subnet_1 / {print $2}')
quantum router-interface-add 
${ROUTER_ID} 
${SUBNET_ID}
nova secgroup-add-rule default tcp 22 22 0.0.0.0/0
nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
Con’t…
ssh-keygen -t rsa -f demokey -N ""
nova keypair-add --pub-key demokey.pub demokey
rm -f /vagrant/demokey
cp demokey /vagrant
UBUNTU=$(nova image-list 
| awk '/ Ubuntu / {print $2}')

nova boot --flavor 1 --image ${UBUNTU} --key_name demokey test1

quantum net-create --tenant-id ${TENANT_ID} ext_net --router:external=True
quantum subnet-create --tenant-id ${TENANT_ID} --name cookbook_float_subnet_1 --allocation-pool
start=192.168.100.10,end=192.168.100.20 --gateway 192.168.100.1 ext_net 192.168.100.0/24 --enable_dhcp=False
Con’t…
ROUTER_ID=$(quantum router-list 
| awk '/ cookbook_router_1 / {print $2}')
EXT_NET_ID=$(quantum net-list 
| awk '/ ext_net / {print $2}')
quantum router-gateway-set 
${ROUTER_ID} 
${EXT_NET_ID}
quantum floatingip-create --tenant-id ${TENANT_ID} ext_net
VM_PORT=$(quantum port-list | awk '/10.200.0.2/ {print $2}')
FLOAT_ID=$(quantum floatingip-list | awk '/192.168.100.11/ {print $2}')
quantum floatingip-associate ${FLOAT_ID} ${VM_PORT}

Contenu connexe

Tendances

VCCW - Vagrant based WordPress development environment
VCCW - Vagrant based WordPress development environmentVCCW - Vagrant based WordPress development environment
VCCW - Vagrant based WordPress development environment
Takayuki Miyauchi
 

Tendances (20)

Learnings from govuk
Learnings from govukLearnings from govuk
Learnings from govuk
 
Deploying E.L.K stack w Puppet
Deploying E.L.K stack w PuppetDeploying E.L.K stack w Puppet
Deploying E.L.K stack w Puppet
 
Helpful pre commit hooks for Python and Django
Helpful pre commit hooks for Python and DjangoHelpful pre commit hooks for Python and Django
Helpful pre commit hooks for Python and Django
 
RunDeck
RunDeckRunDeck
RunDeck
 
Where is my scalable api?
Where is my scalable api?Where is my scalable api?
Where is my scalable api?
 
Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Ansible 2.0 - How to use Ansible to automate your applications in AWS.Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Ansible 2.0 - How to use Ansible to automate your applications in AWS.
 
Making Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch FixMaking Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch Fix
 
Intelligent infrastructure with SaltStack
Intelligent infrastructure with SaltStackIntelligent infrastructure with SaltStack
Intelligent infrastructure with SaltStack
 
Testing Ansible with Jenkins and Docker
Testing Ansible with Jenkins and DockerTesting Ansible with Jenkins and Docker
Testing Ansible with Jenkins and Docker
 
Vagrant
VagrantVagrant
Vagrant
 
Vagrant for Virtualized Development
Vagrant for Virtualized DevelopmentVagrant for Virtualized Development
Vagrant for Virtualized Development
 
How Ansible Makes Automation Easy
How Ansible Makes Automation EasyHow Ansible Makes Automation Easy
How Ansible Makes Automation Easy
 
HTTPS and Ansible
HTTPS and AnsibleHTTPS and Ansible
HTTPS and Ansible
 
Automating web site deployment
Automating web site deploymentAutomating web site deployment
Automating web site deployment
 
VCCW - Vagrant based WordPress development environment
VCCW - Vagrant based WordPress development environmentVCCW - Vagrant based WordPress development environment
VCCW - Vagrant based WordPress development environment
 
Introduction to Vagrant
Introduction to VagrantIntroduction to Vagrant
Introduction to Vagrant
 
Steamlining your puppet development workflow
Steamlining your puppet development workflowSteamlining your puppet development workflow
Steamlining your puppet development workflow
 
Infrastructure development on windows ldn cd meetup
Infrastructure development on windows   ldn cd meetup Infrastructure development on windows   ldn cd meetup
Infrastructure development on windows ldn cd meetup
 
Wocker @WordBench Osaka No.41
Wocker @WordBench Osaka No.41Wocker @WordBench Osaka No.41
Wocker @WordBench Osaka No.41
 
Continuous delivery of Windows micro services in the cloud
Continuous delivery of Windows micro services in the cloud Continuous delivery of Windows micro services in the cloud
Continuous delivery of Windows micro services in the cloud
 

Similaire à #vBrownBag OpenStack - Review & Kickoff for Phase 2

Setting up Notifications, Alerts & Webhooks with Flux v2 by Alison Dowdney
Setting up Notifications, Alerts & Webhooks with Flux v2 by Alison DowdneySetting up Notifications, Alerts & Webhooks with Flux v2 by Alison Dowdney
Setting up Notifications, Alerts & Webhooks with Flux v2 by Alison Dowdney
Weaveworks
 
How to stay sane during your Vagrant journey
How to stay sane during your Vagrant journeyHow to stay sane during your Vagrant journey
How to stay sane during your Vagrant journey
Jakub Wadolowski
 
Getting Started with OpenStack Development
Getting Started with OpenStack Development Getting Started with OpenStack Development
Getting Started with OpenStack Development
Rackspace
 

Similaire à #vBrownBag OpenStack - Review & Kickoff for Phase 2 (20)

Server(less) Swift at SwiftCloudWorkshop 3
Server(less) Swift at SwiftCloudWorkshop 3Server(less) Swift at SwiftCloudWorkshop 3
Server(less) Swift at SwiftCloudWorkshop 3
 
Setting up Notifications, Alerts & Webhooks with Flux v2 by Alison Dowdney
Setting up Notifications, Alerts & Webhooks with Flux v2 by Alison DowdneySetting up Notifications, Alerts & Webhooks with Flux v2 by Alison Dowdney
Setting up Notifications, Alerts & Webhooks with Flux v2 by Alison Dowdney
 
Docker for Java Developers
Docker for Java DevelopersDocker for Java Developers
Docker for Java Developers
 
Chef & OpenStack: OSCON 2014
Chef & OpenStack: OSCON 2014Chef & OpenStack: OSCON 2014
Chef & OpenStack: OSCON 2014
 
Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013
 
How to stay sane during your Vagrant journey
How to stay sane during your Vagrant journeyHow to stay sane during your Vagrant journey
How to stay sane during your Vagrant journey
 
Openstack Magnum: Container-as-a-Service
Openstack Magnum: Container-as-a-ServiceOpenstack Magnum: Container-as-a-Service
Openstack Magnum: Container-as-a-Service
 
Dockerizing the Hard Services: Neutron and Nova
Dockerizing the Hard Services: Neutron and NovaDockerizing the Hard Services: Neutron and Nova
Dockerizing the Hard Services: Neutron and Nova
 
Toplog candy elves - HOCM Talk
Toplog candy elves - HOCM TalkToplog candy elves - HOCM Talk
Toplog candy elves - HOCM Talk
 
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
 
Containers and CloudStack
Containers and CloudStackContainers and CloudStack
Containers and CloudStack
 
Getting Started with OpenStack Development
Getting Started with OpenStack Development Getting Started with OpenStack Development
Getting Started with OpenStack Development
 
Vagrant crash course
Vagrant crash courseVagrant crash course
Vagrant crash course
 
Making your first OpenStack contribution (EuroPython)
Making your first OpenStack contribution (EuroPython)Making your first OpenStack contribution (EuroPython)
Making your first OpenStack contribution (EuroPython)
 
Linux containers and docker
Linux containers and dockerLinux containers and docker
Linux containers and docker
 
How to master OpenStack in 2 hours
How to master OpenStack in 2 hoursHow to master OpenStack in 2 hours
How to master OpenStack in 2 hours
 
Osrs
OsrsOsrs
Osrs
 
Rolling upgrade OpenStack
Rolling upgrade OpenStackRolling upgrade OpenStack
Rolling upgrade OpenStack
 
Scala, docker and testing, oh my! mario camou
Scala, docker and testing, oh my! mario camouScala, docker and testing, oh my! mario camou
Scala, docker and testing, oh my! mario camou
 
OpenStack Documentation Projects and Processes
OpenStack Documentation Projects and ProcessesOpenStack Documentation Projects and Processes
OpenStack Documentation Projects and Processes
 

Plus de ProfessionalVMware

ProfessionalVMware VCAP BrownBag Section 2
ProfessionalVMware VCAP BrownBag Section 2ProfessionalVMware VCAP BrownBag Section 2
ProfessionalVMware VCAP BrownBag Section 2
ProfessionalVMware
 

Plus de ProfessionalVMware (13)

Portland VMware User Conference 2013 - Afternoon Keynote
Portland VMware User Conference 2013 - Afternoon KeynotePortland VMware User Conference 2013 - Afternoon Keynote
Portland VMware User Conference 2013 - Afternoon Keynote
 
Couch to open_stack_keystone
Couch to open_stack_keystoneCouch to open_stack_keystone
Couch to open_stack_keystone
 
ProfessionalVMware BrownBag VCP5 Section3: Storage
ProfessionalVMware BrownBag VCP5 Section3: StorageProfessionalVMware BrownBag VCP5 Section3: Storage
ProfessionalVMware BrownBag VCP5 Section3: Storage
 
vCloud Architecture BrownBag
vCloud Architecture BrownBagvCloud Architecture BrownBag
vCloud Architecture BrownBag
 
BrownBag - vCloud Networking
BrownBag - vCloud NetworkingBrownBag - vCloud Networking
BrownBag - vCloud Networking
 
ProfessionalVMware BrownBag - SMB Design
ProfessionalVMware BrownBag - SMB DesignProfessionalVMware BrownBag - SMB Design
ProfessionalVMware BrownBag - SMB Design
 
Wade Holmes vCloud Architecture Toolkit
Wade Holmes vCloud Architecture ToolkitWade Holmes vCloud Architecture Toolkit
Wade Holmes vCloud Architecture Toolkit
 
ProfessionalVMware BrownBag (Jason Boche) - VCAP-DCD Objective 1
ProfessionalVMware BrownBag (Jason Boche) - VCAP-DCD Objective 1ProfessionalVMware BrownBag (Jason Boche) - VCAP-DCD Objective 1
ProfessionalVMware BrownBag (Jason Boche) - VCAP-DCD Objective 1
 
VMworld 2011 - PowerCLI 101
VMworld 2011 - PowerCLI 101VMworld 2011 - PowerCLI 101
VMworld 2011 - PowerCLI 101
 
ProfessionalVMware VCAP BrownBag Section 2
ProfessionalVMware VCAP BrownBag Section 2ProfessionalVMware VCAP BrownBag Section 2
ProfessionalVMware VCAP BrownBag Section 2
 
vSphere vStorage: Troubleshooting Performance
vSphere vStorage: Troubleshooting PerformancevSphere vStorage: Troubleshooting Performance
vSphere vStorage: Troubleshooting Performance
 
VCAP-DCA Lightning Round Q&A
VCAP-DCA Lightning Round Q&AVCAP-DCA Lightning Round Q&A
VCAP-DCA Lightning Round Q&A
 
Vcap dca section 1
Vcap dca section 1Vcap dca section 1
Vcap dca section 1
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 

#vBrownBag OpenStack - Review & Kickoff for Phase 2

  • 1. #vBrownBag Couch to OpenStack Phase 2 Kick-off
  • 2. Some Logistics • These episodes are all available on iTunes / RSS here: http://bit.ly/BrownbagiTunes • You can find all of our labs here: http://openstack.prov12n.com/about-couch-toopenstack/ • To join the conversation, raise your hand, or drop a line on the #vBrownBag hash tag • We also have a G+ support community here: https://plus.google.com/communities/1016630525 88382171429
  • 3. The Book! • This book, here: http://amzn.to/1hVoiWo
  • 4. What is Couch to OpenStack? • Designed to work like a Couch to 5k program • Builds you from no knowledge of OpenStack to a build / operational readiness • Phase 1: “What is OpenStack” and “Building an OpenStack” here: http://openstack.prov12n.com/openstack_ph ase_1/
  • 5. Phase 2 • • • • • • • • • • • • • 12/3/2013 – What’s new in Havana 12/10/2013 – C2OS Havana Update / Kick-off << We’re here! 12/17/2013 – Upgrade Grizzly to Havana 1/14/2014 – A Second Compute Node 1/21/2014 – Image Management 1/28/2014 – Your First Instance(s) – Instance Management 2/4/2014 – Connecting with LDAP 2/11/2014 – Permissions Management 2/18/2014 – Tenant Management 2/25/2014 – Networking with Neutron 3/4/2014 – Application Deployments 3/11/2014 – HA Your OpenStack Services 3/18/2014 – PaaS Your OpenStack Cloud
  • 6. The Environment From Phase 1 Controller: Dashboard Identity Nova API Glance Compute: - Qemu - Novacompute Cider: - Linux iSCSI - Extra Volume - Cinder API 172.16.80.x – Management 10.10.80.x – something 192.168.80.x – Public Network Network: - Neutron API - Open vSwitch - etc
  • 7. Getting Started in Phase 2 • While not required, it will really help if you’ve been through Phase 1, or have some familiarity. • Download and Install VirtualBox, Vagrant, and Git: – https://www.virtualbox.org/ – http://vagrantup.com – http://github.com
  • 8. Getting Started in Phase 2 • Once you have those tools, open a terminal and do the following: git clone https://github.com/bunchc/Couch_to_OpenStack.git cd Couch_to_OpenStack vagrant up vagrant ssh client Note: On average this takes 20 or so minutes
  • 9. Some Review Let’s review some things from last time: • Source environment file • List services & images • Create a router & network • Create an instance • Find log files • c
  • 10. Source the environment file vagrant ssh client source /vagrant/.stackrc keystone endpoint-list
  • 11. List Services / Images • keystone service-list • glance image-list
  • 12. Create Network / Router / Boot VM source /vagrant/.stackrc export OS_NO_CACHE=1 TENANT_ID=$(keystone tenant-list | awk '/ cookbook / {print $2}') quantum net-create --tenant-id ${TENANT_ID} cookbook_network_1 quantum subnet-create --tenant-id ${TENANT_ID} --name cookbook_subnet_1 cookbook_network_1 10.200.0.0/24 quantum router-create --tenant-id ${TENANT_ID} cookbook_router_1 ROUTER_ID=$(quantum router-list | awk '/ cookbook_router_1 / {print $2}') SUBNET_ID=$(quantum subnet-list | awk '/ cookbook_subnet_1 / {print $2}') quantum router-interface-add ${ROUTER_ID} ${SUBNET_ID} nova secgroup-add-rule default tcp 22 22 0.0.0.0/0 nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
  • 13. Con’t… ssh-keygen -t rsa -f demokey -N "" nova keypair-add --pub-key demokey.pub demokey rm -f /vagrant/demokey cp demokey /vagrant UBUNTU=$(nova image-list | awk '/ Ubuntu / {print $2}') nova boot --flavor 1 --image ${UBUNTU} --key_name demokey test1 quantum net-create --tenant-id ${TENANT_ID} ext_net --router:external=True quantum subnet-create --tenant-id ${TENANT_ID} --name cookbook_float_subnet_1 --allocation-pool start=192.168.100.10,end=192.168.100.20 --gateway 192.168.100.1 ext_net 192.168.100.0/24 --enable_dhcp=False
  • 14. Con’t… ROUTER_ID=$(quantum router-list | awk '/ cookbook_router_1 / {print $2}') EXT_NET_ID=$(quantum net-list | awk '/ ext_net / {print $2}') quantum router-gateway-set ${ROUTER_ID} ${EXT_NET_ID} quantum floatingip-create --tenant-id ${TENANT_ID} ext_net VM_PORT=$(quantum port-list | awk '/10.200.0.2/ {print $2}') FLOAT_ID=$(quantum floatingip-list | awk '/192.168.100.11/ {print $2}') quantum floatingip-associate ${FLOAT_ID} ${VM_PORT}