HOWTO: Preparing a VM to be used with CBTOOL on a real cloud - ibmcb/cbtool GitHub Wiki

1. Initial connection to a cloud

1.1 At this point, you have:

a) Already tested CBTOOL against a "Simulated Cloud", which creates simulated instances (VMs), _Virtual Application_s (VApps) and a _Virtual Application Submitter_s (VAppS)

b) Already modified your private configuration file according to the instructions

1.2 You can new exit the CBTOOL cli, and re-execute it forcing a re-read of the configuration file cb --soft_reset (--hard_reset could also be used). An example, using CBTOOL's OpenStack (osk) adapter follows:

 ...
 status: Removing all contents from Object Store (GLOBAL objects,VIEWS, etc.)
Disassociating default cloud: MYSIMCLOUD
Cloud MYSIMCLOUD was successfully detached from this experiment.
()exit
cbuser@klinux:~/cloudbench$ ~/cbtool/cb --soft_reset
Cbtool version is "55c720f"
Parsing "cloud definitions" file..... "/home/cbuser/cbtool/configs/cbuser_cloud_definitions.txt" opened and parsed successfully.

Checking "Object Store".....An Object Store of the kind "Redis" (shared) on node 172.17.1.2, TCP port 6379, database id "10" seems to be running.
Checking "Log Store".....A Log Store of the kind "rsyslog" (private) on node 172.17.1.2, UDP port 5114 seems to be running.
Checking "Metric Store".....A Metric Store of the kind "MongoDB" (shared) on node 172.17.1.2, TCP port 27017, database id "metrics" seems to be running.
Checking "File Store".....A File Store of the kind "rsync" (private) on node 172.17.1.2, TCP port 10000 seems to be running.

Executing "soft" reset: (killing all running toolkit processes and flushing Object store) before starting the experiment......
    Killing all processes... done
    Flushing Object Store... done

Checking for a running API service daemon.....API Service daemon was successfully started. The process id is ['17394'](http://172.17.1.2:7070).
Checking for a running GUI service daemon.....GUI Service daemon was successfully started. The process id is ['17478', '17479'], listening on port 8080. Full url is "http://172.17.1.2:8080".

 ############################# Executing command "cldattach osk TESTOPENSTACK" (specified on the configuration file)

 status: VPN configuration for this cloud already generated: /home/cbuser/cbtool/lib/auxiliary//../../configs/generated/TESTOPENSTACK_server-cb-openvpn.conf

 status: OpenStack Cloud connection parameters: username=admin, password=<omitted>, tenant=admin, cacert=None, insecure=False, region_name=RegionOne, access_url=http://172.17.1.2:5000/v2.0/, endpoint_type=publicURL
 status: Checking if the ssh key pair "cbuser_cbtool_rsa" is created on VMC RegionOne....
 status: Checking if the security group "default" is created on VMC RegionOne....
 status: Checking if the network "flat_net" can be found on VMC RegionOne...
 status: Checking if the imageids associated to each "VM role" are registered on VMC "RegionOne"....
 status: WARNING! None of the image ids used by any VM "role" were detected in this OpenStack Cloud !
 status: VMC "RegionOne" was successfully tested.


The OSK cloud named "TESTOPENSTACK" was successfully attached to this experiment.
The experiment identifier is EXP-02-11-2017-12-11-07-AM-UTC


 ############################# Executing command "vmcattach all" (specified on the configuration file)

 status: Removing all VMs previously created on VMC "RegionOne" (only VM names starting with "cb-cbuser-TESTOPENSTACK").....
 status: Removing all VVs previously created on VMC "RegionOne" (only VV names starting with "cb-cbuser-TESTOPENSTACK").....
 status: VMC RegionOne (56139B20-F736-533D-B4BE-4015F62B7131) was successfully registered on OpenStack Cloud "TESTOPENSTACK"
 status: Starting a new Host OS performance monitor daemon (gmetad.py)......
 status: Host OS performance monitor daemon (gmetad.py) started successfully. The process id is ['4389'](using ports 8651 and 8652).

All VMCs successfully attached to this experiment.

 ATTENTION! Given that none of the pre-configured images listed on CB's configuration file were detected on this cloud, we need to start by testing the ability to create instances using unconfigured images. Start by executing "vmattach check:<IMAGEID OF YOUR CHOICE>" on the CLI

(TESTOPENSTACK WALKTHROUGH)

2. Preparing the first image

2.1 At this point, CBTOOL detected that none of the pre-configured images listed on CB's configuration file is present on this cloud, which caused it to switch to the "WALKTHROUGH mode". We will know follow the prompts, using as <IMAGEID OF YOUR CHOICE> the image xenial0, which we now to be existing on this cloud (this image can be downloaded from https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img)

(TESTOPENSTACK WALKTHROUGH) vmattach check:xenial0
 status: Starting instance "cb-cbuser-TESTOPENSTACK-vm1-check" on OpenStack Cloud, using the image "xenial0" (1bb5487a-e819-11e6-bcc9-6cae8b2ac98e qemu) and size "m1.tiny" (40adaa80-06dc-477c-a748-d469ee0b5fd7), connected to network "flat_net", on VMC "RegionOne", under tenant "default", injecting the contents of the pub ssh key "cbuser_cbtool_rsa" (userdata is "None").
 status: Waiting for vm_1 (0238C9FB-958C-55F3-B5E1-04AC24D72343), to start...
 status: Trying to establish network connectivity to vm_1 (0238C9FB-958C-55F3-B5E1-04AC24D72343), on IP address 172.17.1.6 (using method "wait_for_0")...
VM object 0238C9FB-958C-55F3-B5E1-04AC24D72343 (named "vm_1") sucessfully attached to this experiment. It is ssh-accessible at the IP address 172.17.1.6 (cb-cbuser-TESTOPENSTACK-vm1-check).

 The ability to create instances using unconfigured images was successfully verified! We may now proceed to check the ability to connect (via ssh) to instances by executing "vmattach check:<IMAGEID OF YOUR CHOICE>:<USERNAME FOR LOGIN>" on the CLI.

2.2 We now know for a fact that the CBTOOL Orchestrator Node (ON) can properly establish a connection to the Cloud management system (in this case Keystone, Glance, Nova and Neutron Endpoints) and successfully create a new instance. We will direct the ON to create a second instance, attempting to login to as the user ubuntu. This will ensure that the newly created instances are reachable and that the (automatically genereated) ssh public key cbuser_cbtool_rsa are properly injected on the instance.

(TESTOPENSTACK WALKTHROUGH) vmattach check:xenial0:ubuntu
 status: Starting instance "cb-cbuser-TESTOPENSTACK-vm2-check" on OpenStack Cloud, using the image "xenial0" (1bb5487a-e819-11e6-bcc9-6cae8b2ac98e qemu) and size "m1.tiny" (40adaa80-06dc-477c-a748-d469ee0b5fd7), connected to network "flat_net", on VMC "RegionOne", under tenant "default", injecting the contents of the pub ssh key "cbuser_cbtool_rsa" (userdata is "None").
 status: Waiting for vm_3 (77D0F8A5-BF2E-5EB2-8527-6E3FFC91ADD8), to start...
 status: Trying to establish network connectivity to vm_3 (77D0F8A5-BF2E-5EB2-8527-6E3FFC91ADD8), on IP address 172.17.1.7 (using method "tcp_on_22")...
 status: Checking ssh accessibility on vm_3 (77D0F8A5-BF2E-5EB2-8527-6E3FFC91ADD8): ssh -p 22 -i /home/cbuser/cbtool/lib/auxiliary//../../credentials/cbtool_rsa [email protected] "/bin/true"...
 status: Checking ssh accessibility on vm_3 (77D0F8A5-BF2E-5EB2-8527-6E3FFC91ADD8): ssh -p 22 -i /home/cbuser/cbtool/lib/auxiliary//../../credentials/cbtool_rsa [email protected] "sudo /bin/true"...
VM object 77D0F8A5-BF2E-5EB2-8527-6E3FFC91ADD8 (named "vm_3") sucessfully attached to this experiment. It is ssh-accessible at the IP address 172.17.1.7 (cb-cbuser-TESTOPENSTACK-vm2-check).

 The ability to create (and connect via ssh to) instances using unconfigured images was successfully verified. At this point, we need to create a base image for the Virtual Application "nullworkload" by executing "vmattach check:<IMAGEID OF YOUR CHOICE>:<USERNAME FOR LOGIN>:nullworkload" on the CLI.

2.3 We can now proceed with the preparation of an image configured to run our first Virtual Application type (i.e., "nullworkload"):

(TESTOPENSTACK WALKTHROUGH) vmattach check:xenial0:ubuntu:nullworkload
 status: Starting instance "cb-cbuser-TESTOPENSTACK-vm4-check" on OpenStack Cloud, using the image "xenial0" (1bb5487a-e819-11e6-bcc9-6cae8b2ac98e qemu) and size "m1.tiny" (40adaa80-06dc-477c-a748-d469ee0b5fd7), connected to network "flat_net", on VMC "RegionOne", under tenant "default", injecting the contents of the pub ssh key "cbuser_cbtool_rsa" (userdata is "None").
 status: Waiting for vm_3 (1C8009A0-52F1-5D5F-8812-6609085C7EB3), to start...
 status: Trying to establish network connectivity to vm_3 (1C8009A0-52F1-5D5F-8812-6609085C7EB3), on IP address 172.17.1.8 (using method "tcp_on_22")...
 status: Checking ssh accessibility on vm_3 (1C8009A0-52F1-5D5F-8812-6609085C7EB3): ssh -p 22 -i /home/cbuser/cbtool/lib/auxiliary//../../credentials/cbtool_rsa [email protected] "/bin/true"...
 status: Checking ssh accessibility on vm_3 (1C8009A0-52F1-5D5F-8812-6609085C7EB3): ssh -p 22 -i /home/cbuser/cbtool/lib/auxiliary//../../credentials/cbtool_rsa [email protected] "sudo /bin/true"...
 status: Bootstrapping vm_3 (1C8009A0-52F1-5D5F-8812-6609085C7EB3): creating file cb_os_paramaters.txt in "ubuntu" user's home dir on IP address 172.17.1.8...
 status: Sending a copy of the code tree to vm_3 (1C8009A0-52F1-5D5F-8812-6609085C7EB3), on IP address 172.17.1.8...
VM object 1C8009A0-52F1-5D5F-8812-6609085C7EB3 (named "vm_3") sucessfully attached to this experiment. It is ssh-accessible at the IP address 172.17.1.8 (cb-cbuser-TESTOPENSTACK-vm4-check).

 A copy of the code was transferred to vm_3. On another terminal, execute "cd /home/cbuser/cbtool/lib/auxiliary//../..; ./cbssh vm_3" to login on the VM. Once there, execute "cd ~/cbtool; ./pre_install.sh; ./install -r workload --wks nullworkload" to automatically configure a new instance.
Once done, execute "vmcapture youngest cb_nullworkload" on the CLI

2.4 We will proceed with the installation of the dependencies for the Virtual Application type "nullworkload" on this running instance. To this end, we open a second terminal window on the CBTOOL Orchestrator Node, and use the helper script cbssh to connect to the instance.

cbuser@klinux:~$ ~/cbtool/cbssh vm_3
logging in: cloudbench ID: vm_3 => [email protected]
Warning: Permanently added '172.17.1.8' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-31-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

97 packages can be updated.
0 updates are security updates.


*** System restart required ***
ubuntu@cb-cbuser-testopenstack-vm3-check:~$ cd ~/cbtool/; ./pre_install.sh
Python 2.7.12
Python 2.7.12
ubuntu@cb-cbuser-testopenstack-vm3-check:~/cbtool$ ./install -r workload --wks nullworkload
[2017-02-13 16:03:53,888] [INFO] install/main  - Installing dependencies for Cloud Rapid Experimentation Analysis and Toolkit (cbtool) on this node.........


[2017-02-13 16:03:53,896] [INFO] dependencies.py/deps_file_parser  - ##### File "/home/ubuntu/cloudbench//configs/templates//PUBLIC_dependencies.txt" opened and loaded....
[2017-02-13 16:03:53,901] [INFO] dependencies.py/deps_file_parser  - ##### File "/home/ubuntu/cloudbench//scripts//nullworkload/dependencies.txt" opened and loaded....
[2017-02-13 16:03:53,907] [INFO] dependencies.py/deps_file_parser  - ##### File "/home/ubuntu/cloudbench//configs/templates//IBM_dependencies.txt" opened and loaded....
[2017-02-13 16:03:53,909] [INFO] dependencies.py/deps_file_parser  - ##### File "/home/ubuntu/cloudbench//configs/templates//SPEC_dependencies.txt" opened and loaded....



[2017-02-13 16:03:59,299] [INFO] dependencies.py/select_url  - Selecting package repository address....
[2017-02-13 16:04:05,311] [WARNING] dependencies.py/select_url  - ##### None of the indicated package repository was available. Will ignore any repository URL that has the keyword REPO_ADDR...


[2017-02-13 16:04:05,312] [INFO] dependencies.py/select_url  - Selecting python pip repository address....
[2017-02-13 16:04:08,337] [INFO] dependencies.py/select_url  - A python pip repository in "9.2.212.63/repo/pypi/web/simple" seems to be up


[2017-02-13 16:04:08,340] [INFO] dependencies.py/dependency_checker_installer  - ##### This node will be used to play a role in the Virtual Applications (AIs) "nullworkload". Only a subset of the depedencies will be installed. This node cannot be used as an Orchestrator Node


[2017-02-13 16:04:08,341] [INFO] dependencies.py/dependency_checker_installer  - ##### DETECTED OPERATING SYSTEM KIND: ubuntu
[2017-02-13 16:04:08,341] [INFO] dependencies.py/dependency_checker_installer  - ##### DETECTED OPERATING SYSTEM VERSION: 16.04 (16)
[2017-02-13 16:04:08,341] [INFO] dependencies.py/dependency_checker_installer  - ##### DETECTED OPERATING SYSTEM NAME: xenial
[2017-02-13 16:04:08,342] [INFO] dependencies.py/dependency_checker_installer  - ##### DETECTED ARCHITECTURE: x86_64


[2017-02-13 16:04:08,343] [INFO] dependencies.py/execute_command  - (0) Checking passwordless sudo for the user "ubuntu" by executing the command "sudo -S ls < /dev/null;" (sudo-configure)...
[2017-02-13 16:04:13,844] [INFO] dependencies.py/dependency_checker_installer  - (0) RESULT for command "sudo -S ls < /dev/null;" : ANY >= ANY OK.

[2017-02-13 16:04:24,793] [INFO] dependencies.py/execute_command  - (1) Checking "repo" version by executing the command "ls -la /tmp/repoupdated;" (repo-configure)...
[2017-02-13 16:04:35,746] [INFO] dependencies.py/execute_command  - (1) RESULT for command "ls -la /tmp/repoupdated;" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "repo" by issuing the following command: "sudo mv -f /tmp/*.list /etc/apt/sources.list.d/; sudo apt-get update;sudo update-rc.d
-f iptables remove;sudo update-rc.d -f ipfw remove; exit 0;"

[2017-02-13 16:04:35,747] [ERROR] dependencies.py/dependency_checker_installer  - (1) RESULT for command "ls -la /tmp/repoupdated;" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "repo" by issuing the following command: "sudo mv -f /tmp/*.list /etc/apt/sources.list.d/; sudo apt-get update;sud
o update-rc.d -f iptables remove;sudo update-rc.d -f ipfw remove; exit 0;"

[2017-02-13 16:04:46,751] [INFO] dependencies.py/execute_command  - (1) Installing "repo" by executing the command "sudo mv -f /tmp/*.list /etc/apt/sources.list.d/; sudo apt-get update;sudo update-rc.d -f iptables remove;sudo update-rc.d -f ipfw remove; exit 0;" (ubuntu-repo-install-man,)...
[2017-02-13 16:05:17,972] [INFO] dependencies.py/dependency_checker_installer  - (1) RESULT for command "sudo mv -f /tmp/*.list /etc/apt/sources.list.d/; sudo apt-get update;sudo update-rc.d -f iptables remove;sudo update-rc.d -f ipfw remove; exit 0;" : DONE OK.

[2017-02-13 16:05:17,973] [INFO] dependencies.py/execute_command  - (2) Checking "ifconfig" version by executing the command "ifconfig;" (ifconfig-configure)...
[2017-02-13 16:05:17,981] [INFO] dependencies.py/dependency_checker_installer  - (2) RESULT for command "ifconfig;" : ANY >= ANY OK.

[2017-02-13 16:05:17,981] [INFO] dependencies.py/execute_command  - (3) Checking "ip" version by executing the command "ip -V;" (ip-configure)...
[2017-02-13 16:05:17,992] [INFO] dependencies.py/dependency_checker_installer  - (3) RESULT for command "ip -V;" : ANY >= ANY OK.

[2017-02-13 16:05:17,993] [INFO] dependencies.py/execute_command  - (4) Checking "pkill" version by executing the command "pkill -V 2>&1 | cut -d ' ' -f 4;" (pkill-configure)...
[2017-02-13 16:05:18,012] [INFO] dependencies.py/dependency_checker_installer  - (4) RESULT for command "pkill -V 2>&1 | cut -d ' ' -f 4;" : ANY >= ANY OK.

[2017-02-13 16:05:18,012] [INFO] dependencies.py/execute_command  - (5) Checking "which" version by executing the command "which true;" (which-configure)...
[2017-02-13 16:05:18,015] [INFO] dependencies.py/dependency_checker_installer  - (5) RESULT for command "which true;" : ANY >= ANY OK.

[2017-02-13 16:05:18,015] [INFO] dependencies.py/execute_command  - (6) Checking "ntp" version by executing the command "sudo ntpd >/dev/null 2>&1 && sudo ntpd -V 2>&1 | grep Ver | cut -d ' ' -f 8;" (ntp-configure)...
[2017-02-13 16:05:23,325] [INFO] dependencies.py/execute_command  - (6) RESULT for command "sudo ntpd >/dev/null 2>&1 && sudo ntpd -V 2>&1 | grep Ver | cut -d ' ' -f 8;" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "ntp" by issuing the following command: "sudo apt-get -q -y --force-yes --al
low-unauthenticated -o Dpkg::Options::="--force-confnew" install  ntp;"

[2017-02-13 16:05:23,326] [ERROR] dependencies.py/dependency_checker_installer  - (6) RESULT for command "sudo ntpd >/dev/null 2>&1 && sudo ntpd -V 2>&1 | grep Ver | cut -d ' ' -f 8;" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "ntp" by issuing the following command: "sudo apt-get -q -y --
force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  ntp;"

[2017-02-13 16:05:23,327] [INFO] dependencies.py/execute_command  - (6) Installing "ntp" by executing the command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  ntp;" (xenial-ntp-install-pm,)...
[2017-02-13 16:05:44,746] [INFO] dependencies.py/dependency_checker_installer  - (6) RESULT for command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  ntp;" : DONE OK.

[2017-02-13 16:05:44,746] [INFO] dependencies.py/execute_command  - (7) Checking "git" version by executing the command "git --version | cut -d ' ' -f 3;" (git-configure)...
[2017-02-13 16:05:44,787] [INFO] dependencies.py/dependency_checker_installer  - (7) RESULT for command "git --version | cut -d ' ' -f 3;" : 2.7.4 >= 1.6.0 OK.

[2017-02-13 16:05:44,787] [INFO] dependencies.py/execute_command  - (8) Checking "wget" version by executing the command "wget -V | head -n 1 | cut -d ' ' -f 3;" (wget-configure)...
[2017-02-13 16:05:44,821] [INFO] dependencies.py/dependency_checker_installer  - (8) RESULT for command "wget -V | head -n 1 | cut -d ' ' -f 3;" : 1.17.1 >= 1.00 OK.

[2017-02-13 16:05:44,821] [INFO] dependencies.py/execute_command  - (9) Checking "pip" version by executing the command "pip --version | cut -d ' ' -f 2;" (pip-configure)...
[2017-02-13 16:05:44,835] [INFO] dependencies.py/execute_command  - (9) RESULT for command "pip --version | cut -d ' ' -f 2;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "pip" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" ins
tall  python-pip;"

[2017-02-13 16:05:44,835] [ERROR] dependencies.py/dependency_checker_installer  - (9) RESULT for command "pip --version | cut -d ' ' -f 2;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "pip" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--forc
e-confnew" install  python-pip;"

[2017-02-13 16:05:44,835] [INFO] dependencies.py/execute_command  - (9) Installing "pip" by executing the command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  python-pip;" (common-pip-install-pm,)...
[2017-02-13 16:07:44,411] [INFO] dependencies.py/dependency_checker_installer  - (9) RESULT for command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  python-pip;" : DONE OK.

[2017-02-13 16:07:44,412] [INFO] dependencies.py/execute_command  - (10) Checking "gcc" version by executing the command "gcc -v 2>&1 | grep -v Configured | grep version | cut -d ' ' -f 3;" (gcc-configure)...
[2017-02-13 16:07:44,433] [INFO] dependencies.py/dependency_checker_installer  - (10) RESULT for command "gcc -v 2>&1 | grep -v Configured | grep version | cut -d ' ' -f 3;" : 5.4.0 >= 4.0 OK.

[2017-02-13 16:07:44,433] [INFO] dependencies.py/execute_command  - (11) Checking "make" version by executing the command "make -v | head -n1 | cut -d ' ' -f 3;" (make-configure)...
[2017-02-13 16:07:44,442] [INFO] dependencies.py/dependency_checker_installer  - (11) RESULT for command "make -v | head -n1 | cut -d ' ' -f 3;" : 4.1 >= 3.5 OK.

[2017-02-13 16:07:44,443] [INFO] dependencies.py/execute_command  - (13) Checking "sshpass" version by executing the command "sshpass -V | grep sshpass | head -n 1 | cut -d ' ' -f 2;" (sshpass-configure)...
[2017-02-13 16:07:44,449] [INFO] dependencies.py/execute_command  - (13) RESULT for command "sshpass -V | grep sshpass | head -n 1 | cut -d ' ' -f 2;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "sshpass" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Op
tions::="--force-confnew" install  sshpass;"

[2017-02-13 16:07:44,449] [ERROR] dependencies.py/dependency_checker_installer  - (13) RESULT for command "sshpass -V | grep sshpass | head -n 1 | cut -d ' ' -f 2;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "sshpass" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticat
ed -o Dpkg::Options::="--force-confnew" install  sshpass;"

[2017-02-13 16:07:44,450] [INFO] dependencies.py/execute_command  - (13) Installing "sshpass" by executing the command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  sshpass;" (common-sshpass-install-pm,)...
[2017-02-13 16:07:59,715] [INFO] dependencies.py/dependency_checker_installer  - (13) RESULT for command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  sshpass;" : DONE OK.

[2017-02-13 16:07:59,716] [INFO] dependencies.py/execute_command  - (14) Checking "curl" version by executing the command "curl -V | head -n 1 | cut -d ' ' -f 2;" (curl-configure)...
[2017-02-13 16:08:00,050] [INFO] dependencies.py/dependency_checker_installer  - (14) RESULT for command "curl -V | head -n 1 | cut -d ' ' -f 2;" : 7.47.0 >= 7.0 OK.

[2017-02-13 16:08:00,051] [INFO] dependencies.py/execute_command  - (15) Checking "screen" version by executing the command "screen -v | grep version;" (screen-configure)...
[2017-02-13 16:08:00,069] [INFO] dependencies.py/dependency_checker_installer  - (15) RESULT for command "screen -v | grep version;" : 4.03.012815 >= 4.0 OK.

[2017-02-13 16:08:00,070] [INFO] dependencies.py/execute_command  - (16) Checking "rsync" version by executing the command "rsync --version | grep version;" (rsync-configure)...
[2017-02-13 16:08:00,091] [INFO] dependencies.py/dependency_checker_installer  - (16) RESULT for command "rsync --version | grep version;" : 3.1.131 >= 2.6 OK.

[2017-02-13 16:08:00,092] [INFO] dependencies.py/execute_command  - (17) Checking "ncftp" version by executing the command "ncftp -h 2>&1 | grep Program | cut -d ' ' -f 5 | sed -e 's/\//./g';" (ncftp-configure)...
[2017-02-13 16:08:00,098] [INFO] dependencies.py/execute_command  - (17) RESULT for command "ncftp -h 2>&1 | grep Program | cut -d ' ' -f 5 | sed -e 's/\//./g';" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "ncftp" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o
 Dpkg::Options::="--force-confnew" install  ncftp;"

[2017-02-13 16:08:00,098] [ERROR] dependencies.py/dependency_checker_installer  - (17) RESULT for command "ncftp -h 2>&1 | grep Program | cut -d ' ' -f 5 | sed -e 's/\//./g';" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "ncftp" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unau
thenticated -o Dpkg::Options::="--force-confnew" install  ncftp;"

[2017-02-13 16:08:00,098] [INFO] dependencies.py/execute_command  - (17) Installing "ncftp" by executing the command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  ncftp;" (common-ncftp-install-pm,)...
[2017-02-13 16:08:14,960] [INFO] dependencies.py/dependency_checker_installer  - (17) RESULT for command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  ncftp;" : DONE OK.

[2017-02-13 16:08:14,960] [INFO] dependencies.py/execute_command  - (18) Checking "lftp" version by executing the command "lftp --version | grep Version | cut -d " " -f 4;" (lftp-configure)...
[2017-02-13 16:08:14,964] [INFO] dependencies.py/execute_command  - (18) RESULT for command "lftp --version | grep Version | cut -d " " -f 4;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "lftp" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--
force-confnew" install  lftp;"

[2017-02-13 16:08:14,964] [ERROR] dependencies.py/dependency_checker_installer  - (18) RESULT for command "lftp --version | grep Version | cut -d " " -f 4;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "lftp" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg:
:Options::="--force-confnew" install  lftp;"

[2017-02-13 16:08:14,964] [INFO] dependencies.py/execute_command  - (18) Installing "lftp" by executing the command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  lftp;" (common-lftp-install-pm,)...
[2017-02-13 16:08:24,709] [INFO] dependencies.py/dependency_checker_installer  - (18) RESULT for command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  lftp;" : DONE OK.

[2017-02-13 16:08:24,709] [INFO] dependencies.py/execute_command  - (19) Checking "netcat" version by executing the command "if [[ $(sudo cat /proc/1/cgroup | grep -c docker) -eq 0 ]]; then netcat -v -w 1 localhost -z 22; else which netcat; fi;" (netcat-configure)...
[2017-02-13 16:08:30,199] [INFO] dependencies.py/dependency_checker_installer  - (19) RESULT for command "if [[ $(sudo cat /proc/1/cgroup | grep -c docker) -eq 0 ]]; then netcat -v -w 1 localhost -z 22; else which netcat; fi;" : ANY >= ANY OK.

[2017-02-13 16:08:30,200] [INFO] dependencies.py/execute_command  - (20) Checking "nmap" version by executing the command "nmap -V | grep version | cut -d ' ' -f 3;" (nmap-configure)...
[2017-02-13 16:08:30,203] [INFO] dependencies.py/execute_command  - (20) RESULT for command "nmap -V | grep version | cut -d ' ' -f 3;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "nmap" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-c
onfnew" install  nmap;"

[2017-02-13 16:08:30,204] [ERROR] dependencies.py/dependency_checker_installer  - (20) RESULT for command "nmap -V | grep version | cut -d ' ' -f 3;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "nmap" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Option
s::="--force-confnew" install  nmap;"

[2017-02-13 16:08:30,204] [INFO] dependencies.py/execute_command  - (20) Installing "nmap" by executing the command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  nmap;" (common-nmap-install-pm,)...
[2017-02-13 16:09:04,066] [INFO] dependencies.py/dependency_checker_installer  - (20) RESULT for command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  nmap;" : DONE OK.

[2017-02-13 16:09:04,067] [INFO] dependencies.py/execute_command  - (21) Checking "openvpn" version by executing the command "openvpn --version | grep built | cut -d ' ' -f 2;" (openvpn-configure)...
[2017-02-13 16:09:04,071] [INFO] dependencies.py/execute_command  - (21) RESULT for command "openvpn --version | grep built | cut -d ' ' -f 2;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "openvpn" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::
="--force-confnew" install  openvpn;sudo ln -s /usr/sbin/openvpn /usr/local/bin/openvpn;"

[2017-02-13 16:09:35,731] [INFO] dependencies.py/execute_command  - (22) Checking "gmond" version by executing the command "gmond --version | cut -d ' ' -f 2;" (gmond-configure)...
[2017-02-13 16:09:41,246] [INFO] dependencies.py/execute_command  - (22) RESULT for command "gmond --version | cut -d ' ' -f 2;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "gmond" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew
" install  ganglia-monitor;sudo ln -s /usr/sbin/gmond /usr/local/bin/gmond;sudo update-rc.d -f ganglia-monitor remove;"

[2017-02-13 16:09:41,247] [ERROR] dependencies.py/dependency_checker_installer  - (22) RESULT for command "gmond --version | cut -d ' ' -f 2;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "gmond" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="-
-force-confnew" install  ganglia-monitor;sudo ln -s /usr/sbin/gmond /usr/local/bin/gmond;sudo update-rc.d -f ganglia-monitor remove;"

[2017-02-13 16:09:46,753] [INFO] dependencies.py/execute_command  - (22) Installing "gmond" by executing the command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  ganglia-monitor;sudo ln -s /usr/sbin/gmond /usr/local/bin/gmond;sudo update-rc.d -f ganglia-monitor
 remove;" (ubuntu-gmond-install-pm,ubuntu-gmond-postinstall-pm)...
[2017-02-13 16:10:17,365] [INFO] dependencies.py/dependency_checker_installer  - (22) RESULT for command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  ganglia-monitor;sudo ln -s /usr/sbin/gmond /usr/local/bin/gmond;sudo update-rc.d -f ganglia-monitor remove;" :
DONE OK.

[2017-02-13 16:10:17,365] [INFO] dependencies.py/execute_command  - (24) Checking "rsyslog" version by executing the command "if [[ $(sudo cat cat /proc/1/cgroup | grep -c docker) -eq 0 ]]; then rsyslogd -v | grep compiled | cut -d ' ' -f 2 | sed 's/,//g'; else echo "1000"; fi;" (rsyslog-configure)...
[2017-02-13 16:10:22,858] [INFO] dependencies.py/dependency_checker_installer  - (24) RESULT for command "if [[ $(sudo cat cat /proc/1/cgroup | grep -c docker) -eq 0 ]]; then rsyslogd -v | grep compiled | cut -d ' ' -f 2 | sed 's/,//g'; else echo "1000"; fi;" : 1000 >= 4.6.0 OK.

[2017-02-13 16:10:22,859] [INFO] dependencies.py/execute_command  - (26) Checking "apache" version by executing the command "sudo apachectl -v | grep version | cut -d '/' -f 2 | cut -d ' ' -f 1;" (apache-configure)...
[2017-02-13 16:10:28,292] [INFO] dependencies.py/execute_command  - (26) RESULT for command "sudo apachectl -v | grep version | cut -d '/' -f 2 | cut -d ' ' -f 1;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "apache" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated
 -o Dpkg::Options::="--force-confnew" install  apache2;"

[2017-02-13 16:10:28,292] [ERROR] dependencies.py/dependency_checker_installer  - (26) RESULT for command "sudo apachectl -v | grep version | cut -d '/' -f 2 | cut -d ' ' -f 1;" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "apache" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-u
nauthenticated -o Dpkg::Options::="--force-confnew" install  apache2;"

[2017-02-13 16:10:28,293] [INFO] dependencies.py/execute_command  - (26) Installing "apache" by executing the command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  apache2;" (ubuntu-apache-install-pm,)...
[2017-02-13 16:11:26,351] [INFO] dependencies.py/dependency_checker_installer  - (26) RESULT for command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  apache2;" : DONE OK.

[2017-02-13 16:11:31,896] [INFO] dependencies.py/execute_command  - (27) Checking "redis" version by executing the command "redis-server -v | sed 's/[^0-9]*//g';" (redis-configure)...
[2017-02-13 16:11:32,160] [INFO] dependencies.py/execute_command  - (27) RESULT for command "redis-server -v | sed 's/[^0-9]*//g';" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "redis" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-conf
new" install  redis-server;sudo sed -i "s/.*bind 127.0.0.1/bind 0.0.0.0/" /etc/redis/redis.conf;sudo service redis-server restart;sudo update-rc.d -f redis-server defaults;"

[2017-02-13 16:11:32,161] [ERROR] dependencies.py/dependency_checker_installer  - (27) RESULT for command "redis-server -v | sed 's/[^0-9]*//g';" :  NOT OK. CORRECTIVE ACTION:  Please install/configure "redis" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::
="--force-confnew" install  redis-server;sudo sed -i "s/.*bind 127.0.0.1/bind 0.0.0.0/" /etc/redis/redis.conf;sudo service redis-server restart;sudo update-rc.d -f redis-server defaults;"

[2017-02-13 16:11:37,656] [INFO] dependencies.py/execute_command  - (27) Installing "redis" by executing the command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  redis-server;sudo sed -i "s/.*bind 127.0.0.1/bind 0.0.0.0/" /etc/redis/redis.conf;sudo service redi
s-server restart;sudo update-rc.d -f redis-server defaults;" (ubuntu-redis-install-man,ubuntu-redis-postinstall-man)...
[2017-02-13 16:12:08,049] [INFO] dependencies.py/dependency_checker_installer  - (27) RESULT for command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  redis-server;sudo sed -i "s/.*bind 127.0.0.1/bind 0.0.0.0/" /etc/redis/redis.conf;sudo service redis-server res
tart;sudo update-rc.d -f redis-server defaults;" : DONE OK.

[2017-02-13 16:12:08,050] [INFO] dependencies.py/execute_command  - (30) Checking "python-devel" version by executing the command "ls -la $(python -c "from distutils import sysconfig as s; print s.get_config_vars()['INCLUDEPY']")/Python.h;" (python-devel-configure)...
[2017-02-13 16:12:08,088] [INFO] dependencies.py/dependency_checker_installer  - (30) RESULT for command "ls -la $(python -c "from distutils import sysconfig as s; print s.get_config_vars()['INCLUDEPY']")/Python.h;" : ANY >= ANY OK.

[2017-02-13 16:12:08,088] [INFO] dependencies.py/execute_command  - (31) Checking "python-setuptools" version by executing the command "python -c "import setuptools; from setuptools import sandbox";" (python-setuptools-configure)...
[2017-02-13 16:12:08,522] [INFO] dependencies.py/dependency_checker_installer  - (31) RESULT for command "python -c "import setuptools; from setuptools import sandbox";" : ANY >= ANY OK.

[2017-02-13 16:12:08,523] [INFO] dependencies.py/execute_command  - (32) Checking "python-prettytable" version by executing the command "python -c "import prettytable; print str(prettytable.__version__).strip()";" (python-prettytable-configure)...
[2017-02-13 16:12:08,546] [INFO] dependencies.py/execute_command  - (32) RESULT for command "python -c "import prettytable; print str(prettytable.__version__).strip()";" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "python-prettytable" by issuing the following command: "sudo pip install --u
pgrade --index-url=http://9.2.212.63/repo/pypi/web/simple --trusted-host 9.2.212.63  prettytable;"

[2017-02-13 16:12:08,547] [ERROR] dependencies.py/dependency_checker_installer  - (32) RESULT for command "python -c "import prettytable; print str(prettytable.__version__).strip()";" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "python-prettytable" by issuing the following command: "sudo p
ip install --upgrade --index-url=http://9.2.212.63/repo/pypi/web/simple --trusted-host 9.2.212.63  prettytable;"

[2017-02-13 16:12:08,547] [INFO] dependencies.py/execute_command  - (32) Installing "python-prettytable" by executing the command "sudo pip install --upgrade --index-url=http://9.2.212.63/repo/pypi/web/simple --trusted-host 9.2.212.63  prettytable;" (common-python-prettytable-install-pip,)...
[2017-02-13 16:12:22,259] [INFO] dependencies.py/dependency_checker_installer  - (32) RESULT for command "sudo pip install --upgrade --index-url=http://9.2.212.63/repo/pypi/web/simple --trusted-host 9.2.212.63  prettytable;" : DONE OK.

[2017-02-13 16:12:22,260] [INFO] dependencies.py/execute_command  - (33) Checking "python-daemon" version by executing the command "python -c "import daemon;";" (python-daemon-configure)...
[2017-02-13 16:12:22,280] [INFO] dependencies.py/execute_command  - (33) RESULT for command "python -c "import daemon;";" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "python-daemon" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::
="--force-confnew" install  python-daemon;"

[2017-02-13 16:12:22,281] [ERROR] dependencies.py/dependency_checker_installer  - (33) RESULT for command "python -c "import daemon;";" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "python-daemon" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o D
pkg::Options::="--force-confnew" install  python-daemon;"

[2017-02-13 16:12:22,281] [INFO] dependencies.py/execute_command  - (33) Installing "python-daemon" by executing the command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  python-daemon;" (common-python-daemon-install-pm,)...
[2017-02-13 16:13:20,051] [INFO] dependencies.py/dependency_checker_installer  - (33) RESULT for command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  python-daemon;" : DONE OK.

[2017-02-13 16:13:20,052] [INFO] dependencies.py/execute_command  - (37) Checking "pyredis" version by executing the command "python -c "import redis; print str(redis.VERSION).replace('(','').replace(')','').replace(', ','.').strip()";" (pyredis-configure)...
[2017-02-13 16:13:20,067] [INFO] dependencies.py/execute_command  - (37) RESULT for command "python -c "import redis; print str(redis.VERSION).replace('(','').replace(')','').replace(', ','.').strip()";" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "pyredis" by issuing the following command
: "sudo pip install --upgrade --index-url=http://9.2.212.63/repo/pypi/web/simple --trusted-host 9.2.212.63  redis;"

[2017-02-13 16:13:20,067] [ERROR] dependencies.py/dependency_checker_installer  - (37) RESULT for command "python -c "import redis; print str(redis.VERSION).replace('(','').replace(')','').replace(', ','.').strip()";" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "pyredis" by issuing the fol
lowing command: "sudo pip install --upgrade --index-url=http://9.2.212.63/repo/pypi/web/simple --trusted-host 9.2.212.63  redis;"

[2017-02-13 16:13:20,068] [INFO] dependencies.py/execute_command  - (37) Installing "pyredis" by executing the command "sudo pip install --upgrade --index-url=http://9.2.212.63/repo/pypi/web/simple --trusted-host 9.2.212.63  redis;" (common-pyredis-install-pip,)...
[2017-02-13 16:13:27,757] [INFO] dependencies.py/dependency_checker_installer  - (37) RESULT for command "sudo pip install --upgrade --index-url=http://9.2.212.63/repo/pypi/web/simple --trusted-host 9.2.212.63  redis;" : DONE OK.

[2017-02-13 16:13:27,758] [INFO] dependencies.py/execute_command  - (38) Checking "pymongo" version by executing the command "python -c "import pymongo; print str(pymongo.version).strip().replace('+','')";" (pymongo-configure)...
[2017-02-13 16:13:27,777] [INFO] dependencies.py/execute_command  - (38) RESULT for command "python -c "import pymongo; print str(pymongo.version).strip().replace('+','')";" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "pymongo" by issuing the following command: "sudo pip install --upgrade
--index-url=http://9.2.212.63/repo/pypi/web/simple --trusted-host 9.2.212.63  pymongo;"

[2017-02-13 16:13:27,778] [ERROR] dependencies.py/dependency_checker_installer  - (38) RESULT for command "python -c "import pymongo; print str(pymongo.version).strip().replace('+','')";" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "pymongo" by issuing the following command: "sudo pip inst
all --upgrade --index-url=http://9.2.212.63/repo/pypi/web/simple --trusted-host 9.2.212.63  pymongo;"

[2017-02-13 16:13:27,778] [INFO] dependencies.py/execute_command  - (38) Installing "pymongo" by executing the command "sudo pip install --upgrade --index-url=http://9.2.212.63/repo/pypi/web/simple --trusted-host 9.2.212.63  pymongo;" (common-pymongo-install-pip,)...
[2017-02-13 16:13:41,258] [INFO] dependencies.py/dependency_checker_installer  - (38) RESULT for command "sudo pip install --upgrade --index-url=http://9.2.212.63/repo/pypi/web/simple --trusted-host 9.2.212.63  pymongo;" : DONE OK.

[2017-02-13 16:13:47,288] [INFO] dependencies.py/execute_command  - (42) Checking "gmetad-python" version by executing the command "ls -la /home/ubuntu/cloudbench/3rd_party/monitor-core/gmetad-python/gmetad.py;" (gmetad-python-configure)...
[2017-02-13 16:13:47,307] [INFO] dependencies.py/dependency_checker_installer  - (42) RESULT for command "ls -la /home/ubuntu/cloudbench/3rd_party/monitor-core/gmetad-python/gmetad.py;" : ANY >= ANY OK.

[2017-02-13 16:13:47,308] [INFO] dependencies.py/execute_command  - (51) Checking "sshconfig" version by executing the command "cat ~/.ssh/config | grep StrictHostKeyChecking && cat ~/.ssh/config | grep UserKnownHostsFile;" (sshconfig-configure)...
[2017-02-13 16:13:47,315] [INFO] dependencies.py/execute_command  - (51) RESULT for command "cat ~/.ssh/config | grep StrictHostKeyChecking && cat ~/.ssh/config | grep UserKnownHostsFile;" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "sshconfig" by issuing the following command: "mkdir -p ~
/.ssh; chmod 700 ~/.ssh;echo "StrictHostKeyChecking=no" >> ~/.ssh/config && echo "UserKnownHostsFile=/dev/null" >> ~/.ssh/config && chmod 600 ~/.ssh/config;"

[2017-02-13 16:13:47,315] [ERROR] dependencies.py/dependency_checker_installer  - (51) RESULT for command "cat ~/.ssh/config | grep StrictHostKeyChecking && cat ~/.ssh/config | grep UserKnownHostsFile;" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "sshconfig" by issuing the following comman
d: "mkdir -p ~/.ssh; chmod 700 ~/.ssh;echo "StrictHostKeyChecking=no" >> ~/.ssh/config && echo "UserKnownHostsFile=/dev/null" >> ~/.ssh/config && chmod 600 ~/.ssh/config;"

[2017-02-13 16:13:47,316] [INFO] dependencies.py/execute_command  - (51) Installing "sshconfig" by executing the command "mkdir -p ~/.ssh; chmod 700 ~/.ssh;echo "StrictHostKeyChecking=no" >> ~/.ssh/config && echo "UserKnownHostsFile=/dev/null" >> ~/.ssh/config && chmod 600 ~/.ssh/config;" (common-sshconfig-preinstall
-man,common-sshconfig-install-man,)...
[2017-02-13 16:13:47,322] [INFO] dependencies.py/dependency_checker_installer  - (51) RESULT for command "mkdir -p ~/.ssh; chmod 700 ~/.ssh;echo "StrictHostKeyChecking=no" >> ~/.ssh/config && echo "UserKnownHostsFile=/dev/null" >> ~/.ssh/config && chmod 600 ~/.ssh/config;" : DONE OK.

[2017-02-13 16:13:52,833] [INFO] dependencies.py/execute_command  - (50) Checking "haproxy" version by executing the command "sudo haproxy -v;" (haproxy-configure)...
[2017-02-13 16:14:03,710] [INFO] dependencies.py/execute_command  - (50) RESULT for command "sudo haproxy -v;" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "haproxy" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew
" install  haproxy;sudo update-rc.d -f haproxy remove;"

[2017-02-13 16:14:03,710] [ERROR] dependencies.py/dependency_checker_installer  - (50) RESULT for command "sudo haproxy -v;" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "haproxy" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="-
-force-confnew" install  haproxy;sudo update-rc.d -f haproxy remove;"

[2017-02-13 16:14:09,206] [INFO] dependencies.py/execute_command  - (50) Installing "haproxy" by executing the command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  haproxy;sudo update-rc.d -f haproxy remove;" (common-haproxy-install-pm,common-haproxy-postinstal
l-pm)...
[2017-02-13 16:14:33,870] [INFO] dependencies.py/dependency_checker_installer  - (50) RESULT for command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  haproxy;sudo update-rc.d -f haproxy remove;" : DONE OK.

[2017-02-13 16:14:39,361] [INFO] dependencies.py/execute_command  - (58) Checking "iptables" version by executing the command "sudo iptables -v 2>&1 | grep v | cut -d ' ' -f 2 | sed 's/v//g' | sed 's/://g';" (iptables-configure)...
[2017-02-13 16:14:44,851] [INFO] dependencies.py/dependency_checker_installer  - (58) RESULT for command "sudo iptables -v 2>&1 | grep v | cut -d ' ' -f 2 | sed 's/v//g' | sed 's/://g';" : ANY >= ANY OK.

[2017-02-13 16:14:44,852] [INFO] dependencies.py/execute_command  - (60) Checking "sshkey" version by executing the command "ls /home/ubuntu/cloudbench/credentials//cbtool_rsa;" (sshkey-configure)...
[2017-02-13 16:14:44,877] [INFO] dependencies.py/dependency_checker_installer  - (60) RESULT for command "ls /home/ubuntu/cloudbench/credentials//cbtool_rsa;" : ANY >= ANY OK.

[2017-02-13 16:14:44,878] [INFO] dependencies.py/execute_command  - (61) Checking "sshd" version by executing the command "if [[ $(sudo cat cat /proc/1/cgroup | grep -c docker) -eq 0 ]]; then sudo cat /etc/ssh/sshd_config | grep -v ^# | grep UseDNS | grep no; else /bin/true; fi;" (sshd-configure)...
[2017-02-13 16:14:50,385] [INFO] dependencies.py/dependency_checker_installer  - (61) RESULT for command "if [[ $(sudo cat cat /proc/1/cgroup | grep -c docker) -eq 0 ]]; then sudo cat /etc/ssh/sshd_config | grep -v ^# | grep UseDNS | grep no; else /bin/true; fi;" : ANY >= ANY OK.

[2017-02-13 16:14:50,386] [INFO] dependencies.py/execute_command  - (62) Checking "pssh" version by executing the command "sudo ln -s /usr/bin/parallel-ssh /usr/local/bin/pssh; pssh --help;" (pssh-configure)...
[2017-02-13 16:14:55,880] [INFO] dependencies.py/execute_command  - (62) RESULT for command "sudo ln -s /usr/bin/parallel-ssh /usr/local/bin/pssh; pssh --help;" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "pssh" by issuing the following command: "sudo apt-get -q -y --force-yes --allow-unau
thenticated -o Dpkg::Options::="--force-confnew" install  pssh;"

[2017-02-13 16:14:55,881] [ERROR] dependencies.py/dependency_checker_installer  - (62) RESULT for command "sudo ln -s /usr/bin/parallel-ssh /usr/local/bin/pssh; pssh --help;" : NOT OK (PMgr Exception). CORRECTIVE ACTION:  Please install/configure "pssh" by issuing the following command: "sudo apt-get -q -y --force-ye
s --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  pssh;"

[2017-02-13 16:14:55,882] [INFO] dependencies.py/execute_command  - (62) Installing "pssh" by executing the command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  pssh;" (common-pssh-install-pm,)...
[2017-02-13 16:15:05,001] [INFO] dependencies.py/dependency_checker_installer  - (62) RESULT for command "sudo apt-get -q -y --force-yes --allow-unauthenticated -o Dpkg::Options::="--force-confnew" install  pssh;" : DONE OK.

[2017-02-13 16:15:05,002] [INFO] dependencies.py/execute_command  - (64) Checking "setuptools" version by executing the command "python -c "import setuptools; print str(setuptools.__version__).strip()";" (setuptools-configure)...
[2017-02-13 16:15:05,127] [INFO] dependencies.py/dependency_checker_installer  - (64) RESULT for command "python -c "import setuptools; print str(setuptools.__version__).strip()";" : 20.7.0 >= 7.0 OK.

[2017-02-13 16:15:05,128] [INFO] install/main  - All dependencies are in place for workload(s) "nullworkload"

----------------------------------------------------------

[2017-02-13 16:15:05,132] [INFO] dependencies.py/instance_preparation  - Checking accesss from this instance to the CB Orchestrator's Objectstore with "nc -z -w 3 -t 9.2.208.21 6379"...
[2017-02-13 16:15:05,153] [INFO] dependencies.py/instance_preparation  - This instance was able to access CB Orchestrator's Objectstore with "nc -z -w 3 -t 9.2.208.21 6379" (OK)
[2017-02-13 16:15:05,153] [INFO] dependencies.py/instance_preparation  - Checking accesss from this instance to the CB Orchestrator's Metricstore with "nc -z -w 3 -t 9.2.208.21 27017"...
[2017-02-13 16:15:05,161] [INFO] dependencies.py/instance_preparation  - This instance was able to access CB Orchestrator's Metricstore with "nc -z -w 3 -t 9.2.208.21 27017" (OK)
[2017-02-13 16:15:05,161] [INFO] dependencies.py/instance_preparation  - Checking accesss from this instance to the CB Orchestrator's Logstore with "nc -z -w 3 -u 9.2.208.21 5114"...
[2017-02-13 16:15:05,164] [INFO] dependencies.py/instance_preparation  - This instance was able to access CB Orchestrator's Logstore with "nc -z -w 3 -u 9.2.208.21 5114" (OK)
[2017-02-13 16:15:05,164] [INFO] dependencies.py/instance_preparation  - Checking accesss from this instance to the CB Orchestrator's Filestore with "nc -z -w 3 -t 9.2.208.21 10000"...
[2017-02-13 16:15:05,171] [INFO] dependencies.py/instance_preparation  - This instance was able to access CB Orchestrator's Filestore with "nc -z -w 3 -t 9.2.208.21 10000" (OK)
[2017-02-13 16:15:05,171] [INFO] dependencies.py/instance_preparation  - Running the instance cleanup script "/home/ubuntu/cloudbench//scripts//common/cb_cleanup.sh"...
[2017-02-13 16:16:43,740] [INFO] dependencies.py/instance_preparation  - Sucessfully checked this instance's ability to connect to the Orchestrator's stores.Sucessfully cleaned up this instance.

------------------------------------------------------------

[2017-02-13 16:16:43,742] [INFO] install/main  - SUCCESS! Please go back to CBTOOL's CLI and capture the image

2.5 We can now go back to CLI on the CBTOOL CLI and issue a command to capture this newly configured VM :

(TESTOPENSTACK WALKTHROUGH) vmcapture youngest cb_nullworkload
 status: Waiting for instance cb-cbuser-TESTOPENSTACK-vm3-check (cloud-assigned uuid 1c7fd022-848c-49f6-90cf-ddff5abb3967) to be captured with image name "cb_nullworkload"...
 status: Sending a termination request for instance cb-cbuser-TESTOPENSTACK-vm3-check (cloud-assigned uuid 1c7fd022-848c-49f6-90cf-ddff5abb3967)....


 You have sucessfully captured your first fully configured instance, with the role "tinyvm", as part of the workload "nullworkload". Now lets try to attach this new instance with "vmattach tinyvm". on the CLI

2.6. Finally, we can confirm that this image can be properly used by CBTOOL with the command vmattach tinyvm:

(TESTOPENSTACK WALKTHROUGH) vmattach tinyvm
 status: Starting instance "cb-cbuser-TESTOPENSTACK-vm4-tinyvm" on OpenStack Cloud, using the image "cb_nullworkload" (a1372342-e819-11e6-bcc9-6cae8b2ac98e qemu) and size "m1.tiny" (40adaa80-06dc-477c-a748-d469ee0b5fd7), connected to network "flat_net", on VMC "RegionOne", under tenant "default", injecting the contents of the pub ssh key "cbuser_cbtool_rsa" (userdata is "None").
 status: Waiting for vm_4 (062D3848-4D3C-58D6-85FC-98D7B4C12C28), to start...
 status: Trying to establish network connectivity to vm_4 (062D3848-4D3C-58D6-85FC-98D7B4C12C28), on IP address 172.17.1.9 (using method "tcp_on_22")...
 status: Checking ssh accessibility on vm_4 (062D3848-4D3C-58D6-85FC-98D7B4C12C28): ssh -p 22 -i /home/cbuser/cbtool/lib/auxiliary//../../credentials/cbtool_rsa [email protected] "/bin/true"...
 status: Bootstrapping vm_5 (062D3848-4D3C-58D6-85FC-98D7B4C12C28): creating file cb_os_paramaters.txt in "fedora" user's home dir on IP address 172.17.1.9...
 status: Sending a copy of the code tree to vm_4 (062D3848-4D3C-58D6-85FC-98D7B4C12C28), on IP address 172.17.1.9...
 status: Performing generic VM post_boot configuration on vm_4 (062D3848-4D3C-58D6-85FC-98D7B4C12C28), on IP address 172.17.1.9...
VM object 062D3848-4D3C-58D6-85FC-98D7B4C12C28 (named "vm_4") sucessfully attached to this experiment. It is ssh-accessible at the IP address 172.17.1.9 (cb-cbuser-TESTOPENSTACK-vm5-tinyvm).

 You have sucessfully deployed your first fully configured instance, with the role "tinyvm". Now lets try deploy our first workload with "aiattach nullworkload" on the CLI

NEXT STEP: Deploy your first Virtual Application Deploy your first Virtual Application

⚠️ **GitHub.com Fallback** ⚠️