summaryrefslogtreecommitdiffstats
path: root/apex/virtual
AgeCommit message (Collapse)AuthorFilesLines
2018-11-18Bring in aarch64 support in apexCharalampos Kominos1-4/+5
RDO builds packages which are aarch64 compatible but some configuration is needed to succesfully deploy. This change: - Prepares the aarch64 docker.io repo as the source for Kolla Containers - Configures VM sizing for aarch64 undercloud. - Configures VM sizing for aarch64 virtual deploy targets. Vms need to be larger on aarch64 compared to x86 to avoid starvation of resources. (MYSQL) - Configures vda2 as the location of the Linux Kernel in aarch64 in an UEFI system - Configures the vNICs to be on the pci-bus instead of the virtio-mmio bus.This will enalbe the Nics to come up in the same order as the x86 ones, so the extra configuration in ansible is not needed - Configures apex to use a stable version of the ceph:daemon container - Configure apex for containerized undercloud in Rocky - Add extra ansible.cfg file for aarch64 which increases waiting times in ansible for aarch64 - Provide helper scripts for DIB to create aarch64 UEFI images Known limitations: - Selinux is interfering with DHCP requests in ironic and ssh so it must be disabled before the deploy command is ran. - The aarch64 containers are frozen for in this commit: https://trunk.rdoproject.org/centos7-rocky/f3/18/f3180de6439333a2813119ad4b00ef897fcd596f_70883030 - The 600s timeout defined in : https://bugs.launchpad.net/tripleo/+bug/1789680 is not enough for aarch64. A value of 1200s is recommended JIRA: APEX-619 Change-Id: Ia3f067821e12bba44939bbf8c0e4676f2da70239 Signed-off-by: Charalampos Kominos <Charalampos.Kominos@enea.com> Signed-off-by: ting wu <ting.wu@enea.com>
2018-02-16Fixes ensuring VBMCs are actually runningTim Rozet2-3/+45
We currently start VBMCs using CLI due to issues with the VBMC python lib. However when we start them, there is no check to make sure they are actually changed to 'running' status. This patch adds logic to check (up to 5 times) to ensure each VBMC is running or raises an error. Note this is for virtual deployments only. JIRA: APEX-527 Change-Id: Iab7ee3b76292d6fc547f18c83f23c04205e9bb2e Signed-off-by: Tim Rozet <trozet@redhat.com>
2018-01-31wrapping up deploy items for aarchDan Radez1-2/+2
Change-Id: Ib5f4715d851dc91be6a57fcb5d18a0557a7b0c7f Signed-off-by: Dan Radez <dradez@redhat.com>
2017-09-28Adding python unittests for apex/virtual/*Dan Radez1-4/+4
Change-Id: I13dd395cd6270cbf0a02855b1d29794ecca06d76 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-09-22Adds detection for virsh default network IPTim Rozet1-2/+25
In case a user already has a default virsh network and the default IP is not 192.168.122.1, this patch will allow detecting and using the found value. Change-Id: Id5d46a820d89e86c9b5897f5d29b83ed32f9d6f9 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-08Restarts libvirtd after stopping firewalldTim Rozet1-2/+5
When stopping firewalld, libvirtd needs to be restarted in order for libvirt to use/populate iptables with the NAT rules for the default virsh network. JIRA: APEX-510 Change-Id: Ia5b4515fd961baa70de58814e9eae4b397db28a7 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-06Enabling the aarch check for deploymentDan Radez1-1/+2
Change-Id: Ic5f1fc8a61f74f7aa6b2fabf67169c601a603367 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-08-28Updates to create_vm for aarch64Dan Radez1-12/+15
- serial console was being duplicated in libvirt xml template - force undercloud VM arch to jumphost arch - assign diskbus to scsi for aarch64 Change-Id: I5208883c2001497fc7e958f9ffcdf14f0be5f600 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-08-23Migrates Apex to PythonTim Rozet3-0/+346
Removes all bash libraries and converts almost all of the code to a mixture of Python and Ansible. utils.sh and clean.sh still exist. clean.sh will be migrated fully to clean.py in another patch. The Apex Python package is now built into the opnfv-apex-common RPM. To install locally do 'pip3 install .'. To deploy: opnfv-deploy -d <file> -n <file> --image-dir /root/apex/.build -v --debug Non-python files (THT yaml, settings files, ansible playbooks) are all installed into /usr/share/opnfv-apex/. The RPM will copy settings files into /etc/opnfv-apex/. JIRA: APEX-317 Change-Id: I3232f0329bcd13bce5a28da6a8c9c84d0b048024 Signed-off-by: Tim Rozet <trozet@redhat.com>