Skip to content →

Category: Yolanda’s Posts

Deploying and upgrading TripleO with local mirrors

Continued from http://teknoarticles.blogspot.com.es/2017/08/automating-local-mirrors-creation-in.html In the previous blogpost, I explained how to automate the RHEL mirror creation using https://github.com/redhat-nfvpe/rhel-local-mirrors. Now we are going to learn how to deploy and upgrade TripleO using those. Deploying TripleO Undercloud To use local mirrors in the undercloud, you simply need to get the generated osp<version>.repo that you generated with the rhel-local-mirrors playbook, and copy it to /etc/yum.repos.d/ , in the undercloud host: sudo curl http://<local_mirror_ip>/osp<version>_repo/osp<version>.repo \-o /etc/yum.repos.d/osp.repo Then proceed with the standard instructions for deploy. Overcloud Each node from the overcloud (controllers, computes, etc…) needs to have a copy of the repository file from our…

Leave a Comment

Automating local mirrors creation in RHEL

Sometimes there is a need to consume RHEL mirrors locally, not using the Red Hat content delivery network. It may be needed to speed up some deployment, or due to network constraints. I create an ansible playbook, rhel-local-mirrors (https://github.com/redhat-nfvpe/rhel-local-mirrors), that can help with that. What does rhel-local-mirrors do? It is basically a tool that connects to the Red Hat CDN, and syncs the repositories locally, allowing to populate the desired mirrors, that can be accessed by other systems via HTTP. The playbook is performing several tasks, that can be run together or independently: register a system on the Red Hat…

Leave a Comment

Build and use security hardened images with TripleO

Starting to apply since Pike Concept of security hardened images Normally the images used for overcloud deployment in TripleO are not security hardened. It means, the images lack all the extra security measures needed to accomplish with ANSSI requirements. These extra measures are needed to deploy TripleO in environments where security is an important feature.The following recommendations are given to accomplish with security guidelines: ensure that /tmp is mounted on a separate volume or partition, and that it is mounted with rw,nosuid,nodev,noexec,relatime flags ensure that /var, /var/log and /var/log/audit are mounted on separates volumes or partitions, and that are mounted…

Comments closed

TripleO Quickstart deployments on baremetal using TOAD

This article is going to cover how to deploy TripleO Quickstart on baremetal. The undercloud will still be virtualized, but controller and compute will be deployed on baremetal.This post belongs to a serie. In order to get more knowledge about TOAD and tripleo-quickstart, please read http://teknoarticles.blogspot.com/2017/02/automated-osp-deployments-with-tripleo.html and http://teknoarticles.blogspot.com/2017/02/describing-cira-continuous-integration.html Requirements Hardware A baremetal server is needed to act as Jenkins slave + contain virtualized undercloud. A multi-core CPU, 16GB of RAM and 60GB of disk is the recommended setup. One server for each controller/compute that needs to be deployed. They need to have at least 8GB of RAM. Network IPMI access…

Comments closed

Automated OSP deployments with Tripleo Quickstart

In this article I’m going to show a method for automating OSP (RedHat OpenStack platform) deployments. These automated deployments can be very useful for CI, or simply to experiment and test with the system. Components involved ansible-cira: set of playbooks to deploy Jenkins, jenkins-job-builder and an optional ELK stack. This will install a ready to use system with all the preconfigured jobs (including OSP10 deployments and image building). ansible-cira jenkins-jobs: A set of job templates and macros, using jenkins-job-builder syntax, that get converted into Jenkins jobs for building the OSP base images and for deploying the system. ansible-cira job-configs: A…

Comments closed

Describing TOAD – TripleO automated deployer

An overview of the TOAD framework and the advantages What is TOAD? Fully automated deployment using Ansible (single command spin up) Main goal: to automate OSP deployments for continuous integration (CI) and development purposes TOAD is a CI framework using off-the-shelf components that many partners are familiar with: Jenkins Jenkins Job Builder (JJB): http://docs.openstack.org/infra/jenkins-job-builder/  TripleO Quickstart (oooq): https://www.rdoproject.org/tripleo/  Optional ELK Stack (ElasticSearch, Logstash, Kibana)  Its core component is TripleO Quickstart, used for TripleO upstream testing Fully customizable with oooq settings; can be extended Deploy environments with one click; trash after finished  Of course itโ€™s open source! ๐Ÿ™‚ https://github.com/redhat-nfvpe/toad https://github.com/redhat-nfvpe/jenkins-jobs  https://github.com/redhat-nfvpe/job-configs…

Comments closed

Describing CIRA – Continuous Integration Rapid Automation

An overview of the CIRA framework and the advantages What is CIRA? Fully automated deployment using Ansible (single command spin up) Main goal: to automate OSP deployments for continuous integration (CI) and development purposes CIRA is a CI framework using off-the-shelf components that many partners are familiar with: Jenkins Jenkins Job Builder (JJB): http://docs.openstack.org/infra/jenkins-job-builder/  TripleO Quickstart (oooq): https://www.rdoproject.org/tripleo/  Optional ELK Stack (ElasticSearch, Logstash, Kibana)  Its core component is TripleO Quickstart, used for TripleO upstream testing Fully customizable with oooq settings; can be extended Deploy environments with one click; trash after finished  Of course itโ€™s open source! ๐Ÿ™‚ https://github.com/redhat-nfvpe/ansible-cira  https://github.com/redhat-nfvpe/jenkins-jobs  https://github.com/redhat-nfvpe/job-configs…

Comments closed

Describing TOAD – Continuous Integration Rapid Automation

An overview of the TOAD framework and the advantages What is TOAD? Fully automated deployment using Ansible (single command spin up) Main goal: to automate OSP deployments for continuous integration (CI) and development purposes TOAD is a CI framework using off-the-shelf components that many partners are familiar with: Jenkins Jenkins Job Builder (JJB): http://docs.openstack.org/infra/jenkins-job-builder/  TripleO Quickstart (oooq): https://www.rdoproject.org/tripleo/  Optional ELK Stack (ElasticSearch, Logstash, Kibana)  Its core component is TripleO Quickstart, used for TripleO upstream testing Fully customizable with oooq settings; can be extended Deploy environments with one click; trash after finished  Of course itโ€™s open source! ๐Ÿ™‚ https://github.com/redhat-nfvpe/toad https://github.com/redhat-nfvpe/jenkins-jobs  https://github.com/redhat-nfvpe/job-configs…

Comments closed

How to encrypt your home with guestfs

Continued from http://teknoarticles.blogspot.com.es/2016/12/start-using-whole-disk-images-with.html For security reasons, there may be the need of encrypting several partitions of volumes on your images.And you can have a pre-created image with that encryption on place, instead of having to do manually after boot. This can be done with guestfs and luks. The following script will show how to perform that encryption and mount it automatically: #!/usr/bin/env pythonimport binasciiimport guestfsimport os # remove old generated drivetry:    os.unlink(“/tmp/overcloud-full-partitioned.qcow2”)except:    pass g = guestfs.GuestFS(python_return_dict=True) # import old and new imagesprint(“Creating new repartitioned image”)g.add_drive_opts(“/tmp/overcloud-full.qcow2″, format=”qcow2”, readonly=1)g.disk_create(“/tmp/overcloud-full-partitioned.qcow2”, “qcow2”, 10 * 1024 * 1024 * 1024) #10Gg.add_drive_opts(“/tmp/overcloud-full-partitioned.qcow2″, format=”qcow2”, readonly=0)g.launch() # create…

Comments closed

Start using whole disk images with TripleO

What are the differences between flat partition image and whole disk image? In order to understand this article, you first need to know what a flat partition image and a whole disk image are, and the differences between each other. flat partition image: disk image that just contains all the desired content in a filesystem, but does not carry any information about partitions on it, and it does not include a bootloader. In order to boot from a whole disk image, the kernel and ramdisk images need to be passed independently when booting, relying on an external system to mount.…

Comments closed