[VAL-87] Bluval Containerization Created: 07/Nov/19  Updated: 19/Dec/19  Resolved: 19/Dec/19

Status: Done
Project: Validation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Medium
Reporter: Naga Sugguna Assignee: Naga Sugguna
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

"bluval" supposed to run on any basic Unix system with Docker and user is a "docker" group member.

Prerequisites

  1. following should list all containers to confirm that docker is installed and user is part of docker group
    $ docker ps -a

Installation

  1. go to any directory let us say $HOME
    git clone "https://gerrit.akraino.org/r/validation"

Configuration

Connectivity between Unix system and System Under Testing(cluster under testing) should be established.
Blue print owners has to update $AKRAINO_HOME/validation/bluval/config/variables.yaml

Running

sh validation/blucon.sh [-l <LAYER>] [-o] [-n host] <Bluprint Name>

Next steps but not in the scope of this feature are
1. Upload logs to Nexus
2. Invoke bluval from Jenkins Jobs

Complete user guide available at https://wiki.akraino.org/display/AK/Bluval+User+Guide



 Comments   
Comment by Naga Sugguna [ 19/Dec/19 ]

https://wiki.akraino.org/display/AK/Bluval+User+Guide is updated with following issue and solution.

  • invalid argument "akraino/validation:blucon-(HEAD" for "-t, --tag" flag: invalid reference format

Please make sure you are not on "detached HEAD". You can use git checkout -b <new-branch-name> to name that branch

Comment by Naga Sugguna [ 19/Dec/19 ]

Not sure what is your clone commands We discuss this issue as part of https://gerrit.akraino.org/r/c/validation/+/2089 review process after 14th patch.

Here is the synopsis 

If your checkout commit is something like this, and closing this as resolved.

git fetch "https://gerrit.akraino.org/r/validation" refs/changes/02/1602/6 && git checkout FETCH_HEAD

Please change that to ( -b 1602.6  or any name your like)

git fetch "https://gerrit.akraino.org/r/validation" refs/changes/02/1602/6 && git checkout -b p1602.6 FETCH_HEAD

 

 

Comment by Valentin Radulescu [ 19/Dec/19 ]

Hi,

I am working on a patch in ci-management.
I get the following error when running new scrip:
Warning: Permanently added '172.16.10.36' (ECDSA) to the list of known hosts.
Cloning into 'validation'...
AKRAINO_HOME not available. Setting...
AKRAINO_HOME=/home/jenkins/akraino/slave_root/workspace/bluval-daily-master
Building docker image
invalid argument "akraino/validation:blucon-(HEAD" for "-t, --tag" flag: invalid reference format
See 'docker build --help'.
+ docker run -rm -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker -v /home/jenkins/akraino/slave_root/workspace/bluval-daily-master/results:/opt/akraino/results -v /home/jenkins/akraino/slave_root/workspace/bluval-daily-master/validation:/opt/akraino/validation akraino/validation:blucon(HEAD -lk8s iec

Comment by Naga Sugguna [ 04/Dec/19 ]

https://wiki.akraino.org/display/AK/Bluval+User+Guide updated as per this Issue.

Comment by Naga Sugguna [ 04/Dec/19 ]

Description updated as per blucon.sh

Comment by Naga Sugguna [ 04/Dec/19 ]

https://gerrit.akraino.org/r/c/validation/+/2089

Comment by Juha Kosonen [ 08/Nov/19 ]

Is the idea that blucon.py will be obsoleted and user just need to execute that one 'docker run' command?

Comment by Michael Hunter [ 07/Nov/19 ]

I need this code reviewed and approved to move forward with testing...

Generated at Sat Feb 10 06:07:12 UTC 2024 using Jira 9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1.