REC images

REC images

All aarch64 images are differentiated from the x86_64 artifacts by being suffixed with .aarch64.

The main ISO image is install.aarch64.iso.

The bootcd.aarch64.iso image is used only when deploying via the Akraino Regional Controller using the Telco Appliance Remote Installer, also, can be ignored when following the manual procedure.

REC deployer copies the install.iso to the first controller and reads user_config.yaml to deploy base OS.

 

1. install.aarch64.iso contains

  • EFI images  isolinux  rpms  TBL

  • guest-image.img is a QEMU QCOW Image which is built using build_images.sh

2. guest-image.img is a Centos 7 image which contains

  • installed RPMs with dib (disk image build)

  • tar files:



    File

    Available on aarch64



    File

    Available on aarch64

    1

    ./var/lib/caas/images/flannel:0.11.0-4.tar

    yes

    2

    ./var/lib/caas/images/chartrepo:1.0.0-6.tar

    yes

    3

    ./var/lib/caas/images/chartrepo:1.0.0-6.tar

    yes

    4

    ./var/lib/caas/images/cpupooler:0.3.0-1.tar

    yes

    5

    ./var/lib/caas/images/sriovdp:2.0.0-4.tar

    yes

    6

    ./var/lib/caas/images/kubernetespause:1.15.1-0.tar

    yes

    7

    ./var/lib/caas/images/hyperkube:1.15.1-0.tar

    yes

    8

    ./var/lib/caas/images/netwatcher:3.3.0-3.tar

    yes

    9

    ./var/lib/caas/images/swift:2.21.0-5.tar

    yes

    10

    ./var/lib/caas/images/kubedns:1.15.4-2.tar

    yes

    11

    ./var/lib/caas/images/custom_metrics:0.5.0-1.tar

    yes

    12

    ./var/lib/caas/images/svcwatcher:3.3.0-3.tar

    yes

    13

    ./var/lib/caas/images/metrics_server:0.3.3-1.tar

    yes

    14

    ./var/lib/caas/images/prometheus:2.10.0-0.tar

    yes

    15

    ./var/lib/caas/images/elasticsearch:7.2.0-0.tar

    yes

    16

    ./var/lib/caas/images/registry:2.7.1-4.tar

    yes

    17

    ./var/lib/caas/images/tiller:2.14.1-1.tar

    yes

    18

    ./var/lib/caas/images/etcd:3.3.13-4.tar

    yes

    19

    ./var/lib/caas/images/fluentd:1.6.0-0.tar

    yes

  • anisble installation, in /etc/ansible/roles there are

    • docker

    • flannel

    • and more

3. Packages identified so far when running commands in build_images.sh :

3.1. yum install --nogpgcheck -y diskimage-builder         git         python         wget         which         findutils         systemd-udev         PyYAML         parted         e2fsprogs         xfsprogs

Installed:

 

Package

Available on aarch64

 

Package

Available on aarch64

1

PyYAML.x86_64 0:3.10-11.el7

yes

2

diskimage-builder.noarch 0:2.16.0-1.el7

yes, installed via pip since we need a newer version that properly supports aarch64

3

e2fsprogs.x86_64 0:1.42.9-13.el7

yes

4

git.x86_64 0:1.8.3.1-20.el7

yes

5

parted.x86_64 0:3.1-29.el7

yes

6

sudo.x86_64 0:1.8.23-3.el7

yes

7

wget.x86_64 0:1.14-18.el7_6.1

yes

8

which.x86_64 0:2.20-7.el7

yes

9

xfsprogs.x86_64 0:4.5.0-19.el7_

yes

 

3.2. docker build -f /w/workspace/ta-ci-build/ta/build-tools/docker-context/Dockerfile-dib -t dib /w/workspace/ta-ci-build/ta/build-tools/docker-context    --> Create dib docker image

docker build -f /w/workspace/ta-ci-build/ta/build-tools/docker-context/Dockerfile-buildtools -t buildtools /w/workspace/ta-ci-build/ta/build-tools/docker-context  --> Create buildtools docker image

3.3. /w/workspace/ta-ci-build/ta/build-tools/create_manifest_rpm.sh

rpm_macros=/w/workspace/ta-ci-build/work/tmp/manifest-work/rpmmacros

/w/workspace/ta-ci-build/ta/build-tools/mock2rpmbuild_config.py --mock-config /w/workspace/ta-ci-build/work/tmp/manifest-work/mock_config/mock.cfg --output-file-path /w/workspace/ta-ci-build/work/tmp/manifest-work/rpmmacros

docker run --rm -v /w/workspace/ta-ci-build/work/tmp/manifest-work/rpmmacros:/root/.rpmmacros -v /w/workspace/ta-ci-build/work/tmp/manifest-work:/work alpine:3.9.4 sh -c '\

apk add rpm && \

rpmbuild --build-in-place --rmspec -ba /work/*.spec && \

find /root/rpmbuild -name "*.rpm" | xargs -I "{}" mv {} /work'

3.4. docker run --rm --privileged -v /dev:/dev -v /w/workspace/ta-ci-build/work:/work -e WORK=/work -v /w/workspace/ta-ci-build/ta/manifest:/manifest -e MANIFEST_PATH=/manifest -v /w/workspace/ta-ci-build/ta/build-tools:/tools dib /tools/create_golden_image.sh    ---> dib image is used to create the image

3.5.

dib-run-parts Sourcing environment file /tmp/in_target.d/install.d/../environment.d/10-bootloader-default-cmdline

+ source /tmp/in_target.d/install.d/../environment.d/10-bootloader-default-cmdline

Installed packages with dependencies:

 

Package

Available on aarch64

 

Package

Available on aarch64

1

python-libs-2.7.5-80.el7_6.x86_64                          

yes

2

 python-2.7.5-80.el7_6.x86_64                 

yes

3

 python2-setuptools-22.0.5-1.el7.noarch                     

yes

4

 libcom_err-1.42.9-13.el7.x86_64                            

yes

5

 glusterfs-libs-3.12.2-18.el7.x86_64                        

yes

6

 fipscheck-1.4.1-6.el7.x86_64     

yes

7

 fipscheck-lib-1.4.1-6.el7.x86_64                           

yes

8

 libquadmath-4.8.5-36.el7_6.2.x86_64                        

yes

9

 libgfortran-4.8.5-36.el7_6.2.x86_64                        

yes

10

 boost-system-1.53.0-27.el7.x86_64                         

yes

11

 boost-thread-1.53.0-27.el7.x86_64                         

yes

12

 atlas-3.10.1-12.el7.x86_64                                

yes

13

 python2-pbr-3.1.1-8.el7.noarch                            

yes

14

 python2-six-1.10.0-9.el7.noarch                           

yes

15

 boost-random-1.53.0-27.el7.x86_64                         

yes