https://github.com/gbevan/partout_openstack_poc
PoC using Partout to deploy OpenStack
https://github.com/gbevan/partout_openstack_poc
Last synced: 2 months ago
JSON representation
PoC using Partout to deploy OpenStack
- Host: GitHub
- URL: https://github.com/gbevan/partout_openstack_poc
- Owner: gbevan
- License: other
- Created: 2016-06-30T23:17:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-08-26T19:47:05.000Z (almost 8 years ago)
- Last Synced: 2025-12-29T23:00:37.958Z (6 months ago)
- Language: Shell
- Size: 232 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Create a Dev OpenStack Private Cloud using the Partout DevOps Tool
(See [Partout on GitHub](https://github.com/partoutx/partout) and sister project [gbevan/partout_baremetal_poc](https://github.com/gbevan/partout_baremetal_poc))

(these notes are pretty rough - this is a work in progress...)
## Kit
* 2 x Dell PowerEdge Blades
## Prereqs
* A deployed [Partout](https://github.com/partoutx/partout) master with this git project cloned as a site manifest, e.g.:
```
cd /opt/partout/etc/manifest
git clone git@github.com:gbevan/partout_openstack_poc.git openstack
```
in the openstack environment folder create file files/ssh_pub_key.rsa. Copy in your ssh public key to allow logins to the target nodes.
## Setup
* The two blades have Ubuntu Server 14.04 LTS installed
* As the controller node is a uvt-kvm virtual machine running on manager1, grub needed tweaking with:
GRUB_CMDLINE_LINUX_DEFAULT="iommu=memaper=3"
* Mount the partout_agent share from the partout master (or download it):
```
your_master_node:/opt/partout/agent /opt/partout/agent nfs _netdev,ro,nolock,intr,bg 0 0
```
* Review the site.p2 for your site setup - it makes some hardcoded assumptions on node naming and their roles.
* Run partout-agent on the manager1 node:
```
cd /opt/partout/agent
bin/partout-agent --once -y
```
* This will start the controller1 uvt-kvm virtual guest and start partout-agent to configure it. Monitor progress in controller1 by tailing file ```/var/log/cloud-init-output.log```.
* The agent's SSL Certificate Signing Request will need to be signed on the master.
You need to set this agent to be in the openstack environment, on the master.
* Repeat mounting the partout agent share and running ```partout-agent --once --env openstack``` on the compute1 node.
* Once complete login to ```http://controller1/horizon```.
## Booting
Ensure controller is up and neutron services are active prior to booting the compute node:
```bash
root@controller1:~# neutron agent-list
+--------------------------------------+--------------------+-------------+-------------------+-------+----------------+---------------------------+
| id | agent_type | host | availability_zone | alive | admin_state_up | binary |
+--------------------------------------+--------------------+-------------+-------------------+-------+----------------+---------------------------+
| 44253eb1-7899-4c71-96c2-ae3df4071a53 | Metadata agent | controller1 | | :-) | True | neutron-metadata-agent |
| 4acd5ecb-695e-4dd7-b190-ff452a56a251 | Linux bridge agent | compute1 | | :-) | True | neutron-linuxbridge-agent |
| a5902426-7c25-4feb-b7d7-9117a0cb4ec2 | DHCP agent | controller1 | nova | :-) | True | neutron-dhcp-agent |
| de75211d-78e6-4599-bddf-7103c863f4cb | Linux bridge agent | controller1 | | :-) | True | neutron-linuxbridge-agent |
| f3a06c37-0d9c-4a38-b2a7-ad7ead48f9c9 | L3 agent | controller1 | nova | :-) | True | neutron-l3-agent |
+--------------------------------------+--------------------+-------------+-------------------+-------+----------------+---------------------------+
```
If compute guests can't get their dhcp addresses (e.g. due to a timing issue with services starting up), try restarting neutron-linuxbridge-cleanup on the compute node:
```bash
root@compute1:~# service neutron-linuxbridge-cleanup restart
```
---
## Misc Notes
### Brackets Syntax highlighting
```js
{
"language": {
"javascript": {
"linting.prefer": ["JSHint"],
"linting.usePreferredOnly": true
}
},
"language.fileExtensions": {
"p2": "javascript"
}
}
```
COPYRIGHT
---------
```
Partout [Everywhere] - Policy-Based Configuration Management for the
Data-Driven-Infrastructure.
Copyright (C) 2015-2016 Graham Lee Bevan
This project is part of Partout - https://github.com/partoutx/partout.
Partout is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
```