snaps.git
7 years agoFixed test for security groups when checking for project/tenant ID 79/33879/1 stable/danube
spisarski [Wed, 26 Apr 2017 13:15:49 +0000 (15:15 +0200)]
Fixed test for security groups when checking for project/tenant ID

This problem has only been observed on the WindRiver pod during the
OPNFV Plug/Hackfest

This is exactly the same patch that was checked in master

JIRA: SNAPS-72

Change-Id: I595cf0bca7394d8ffd95cec5824afbacda80d3ef
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoMerge "Add DEBUG logs to SimpleHealthCheck for VM console output."
Steven Pisarski [Fri, 10 Mar 2017 15:56:28 +0000 (15:56 +0000)]
Merge "Add DEBUG logs to SimpleHealthCheck for VM console output."

7 years agoAdd DEBUG logs to SimpleHealthCheck for VM console output. 09/30209/3
spisarski [Thu, 9 Mar 2017 19:10:02 +0000 (12:10 -0700)]
Add DEBUG logs to SimpleHealthCheck for VM console output.

The test in the class SimpleHealthCheck uses the console output
to determine whether or not the VM obtains a DHCP lease which
contains a very image-specific check. When a client changes
the image from what the test was designed for, the console
output can change causing the test to fail unless it is simply
timing out. This patch will output the full console log on
failure or on success when the logger is configured as DEBUG.

JIRA: SNAPS-47

Change-Id: I2041ca1aed8bd1e2fb65932591f4acbd4d3cd720
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoreduce instance's memory size 13/30113/3
SerenaFeng [Thu, 9 Mar 2017 05:58:53 +0000 (13:58 +0800)]
reduce instance's memory size

when using snaps to test small OpenStack env(devstack or all-in-one),
testcase  will fail due to not enough memory for a vm. As a
basic test using cirros, only allocating ip and test the connectivity is
needed, 128M should be enough.
the error msg is:

  File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py",
  line 80, in request
      raise exceptions.from_response(resp, body, url, method)
ClientException: Unknown Error (HTTP 504)

Change-Id: Ibfb27018ffd25292bcf80f69e8cb205b2c9c334b
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
7 years agoMerge "Adapt integration tests to use custom image config"
Steven Pisarski [Wed, 8 Mar 2017 14:57:38 +0000 (14:57 +0000)]
Merge "Adapt integration tests to use custom image config"

7 years agoAdapt integration tests to use custom image config 89/29989/2
Cristina Pauna [Tue, 7 Mar 2017 14:52:35 +0000 (16:52 +0200)]
Adapt integration tests to use custom image config

This fix uses the possibility to pass custom imformation about the
image via image_metadata variable. In the integration tests it checks
for this info and creates a 3-part image if the kernel_url and
ramdisk_url are set. The fix also allows the default url to be overriden
as well as passing extra-properties. All the metadata info comes from
the app.

The part in functest where the custom config is set for creating a 3-part
image is https://gerrit.opnfv.org/gerrit/29987

Change-Id: Ib2ad823705dbea68d672514c7c89b150c9c6dc63
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
7 years agoAdd check that SSH validate returns true 97/29897/1
randyl [Tue, 7 Mar 2017 00:38:46 +0000 (17:38 -0700)]
Add check that SSH validate returns true

The SSH Validate call needs to be checked before passing tests.
test_ssh_client_fip_before_active and test_ssh_client_fip_after_active
run the SSH Verify function, but do not check the return value.

You will see an error in the test log file, but the test will
appear to have passed.

JIRA: SNAPS-45

Added an Assert True test to the SSH Validate return.

Change-Id: Ib86ec38c7b5a64061a1ace4293336e3021c59013
Signed-off-by: randyl <r.levensalor@cablelabs.com>
7 years agoAdapt simple health check to use 3-part image 53/29853/3
Cristina Pauna [Thu, 2 Mar 2017 14:53:17 +0000 (14:53 +0000)]
Adapt simple health check to use 3-part image

This fix adds the possibility to pass custom imformation about the
image via image_metadata variable. In SimpleHealthcheck it checks
for this info and creates a 3-part image if the kernel_url and
ramdisk_url are set. The fix also allows the default url to be
overriden as well as passing extra-properties. All the metadata info
comes from the app.

The part in functest where the custom config is set for creating
a 3-part image is https://gerrit.opnfv.org/gerrit/#/c/29851/

JIRA: ARMBAND-222

Change-Id: I11435d8bab4cf097b4079b6984741869f83aee2b
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
7 years agoMerge "Added the ability to give the tests the ability to add in flavor metadata."
Steven Pisarski [Mon, 6 Mar 2017 17:14:37 +0000 (17:14 +0000)]
Merge "Added the ability to give the tests the ability to add in flavor metadata."

7 years agoAdded the ability to give the tests the ability to add in flavor metadata. 71/29671/3
spisarski [Thu, 2 Mar 2017 19:01:34 +0000 (12:01 -0700)]
Added the ability to give the tests the ability to add in flavor metadata.

NFVI's configured for OVS/DPDK and fd.io scenarios required special
metadata for flavors in order for VM instances to be activated. This
patch allows for setting a value to be applied to all tests. With
this change, the default value is being removed that only partially
addressed this issue.

JIRA: SNAPS-38

Change-Id: Ic42944a849f710f631fe7ac6fbefb720a73f0b77
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoFixed docs build and examples 67/29767/1
randyl [Fri, 3 Mar 2017 22:30:05 +0000 (15:30 -0700)]
Fixed docs build and examples

Modified index.rst to include the other docs.
Removed redundnat items.
Cleaned up the examples.

JIRA: SNAPS-41

Change-Id: I7058f1604135f6a2af0376d7b3d2ebc7bafd63e7
Signed-off-by: randyl <r.levensalor@cablelabs.com>
7 years agoRemoved test class in question from the test builder. 75/29675/4
spisarski [Thu, 2 Mar 2017 22:46:53 +0000 (15:46 -0700)]
Removed test class in question from the test builder.

test_suite_builder#add_openstack_integration_tests() which is
being used to add SNAPS-OO tests to Functest.snaps_smoke test case.

JIRA: SNAPS-39

Change-Id: Ib9d7fea3a132ac29078ce052b5e334c7e5076b61
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoAdded new 3-part image tests to test_suite_builder.py and documented them 69/29569/1
spisarski [Wed, 1 Mar 2017 16:01:07 +0000 (09:01 -0700)]
Added new 3-part image tests to test_suite_builder.py and documented them
in IntegrationTests.rst.

JIRA: SNAPS-32

Change-Id: I20b3917840b5caf26f1a12caf0231f5f0801999d
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoMerge "Add support for extra properties in an image"
Steven Pisarski [Wed, 1 Mar 2017 16:00:04 +0000 (16:00 +0000)]
Merge "Add support for extra properties in an image"

7 years agoAdd support for extra properties in an image 41/29441/5
Cristina Pauna [Fri, 24 Feb 2017 14:41:46 +0000 (16:41 +0200)]
Add support for extra properties in an image

This patch adds a new setting for images, extra_properties.
This field is a dict and can be used to create a 3-part image
by setting the kernel_id and the ramdisk_id of the main image.

Unit tests have been added to set some generic property, for
creation of the 3-part image, and for creating an instance
with that 3-part image

JIRA: SNAPS-32

Change-Id: Ifb53d1da1085fcd6429ddc0607c905522db5e8bb
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
7 years agoMerge "Ensuring all instances must have ports/network. Fixing the addition of securit...
Steven Pisarski [Tue, 28 Feb 2017 22:15:41 +0000 (22:15 +0000)]
Merge "Ensuring all instances must have ports/network. Fixing the addition of security groups during server instantiation."

7 years agoEnsuring all instances must have ports/network. 99/29499/1
spisarski [Tue, 28 Feb 2017 21:01:38 +0000 (14:01 -0700)]
Ensuring all instances must have ports/network.
Fixing the addition of security groups during server instantiation.

JIRA: SNAPS-35

Change-Id: Id29b18ba1454538e2cd72ffa33ed3dc47120944f
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoAdded Ansible substitution value support for flavor IDs, image IDs, and image_user... 47/29447/3
spisarski [Mon, 27 Feb 2017 17:09:31 +0000 (10:09 -0700)]
Added Ansible substitution value support for flavor IDs, image IDs, and image_user values
to the SNAPS-OO application deploy_venv.py.

Decided to stop raising an exception when ansible cannot properly apply the playbook and
simply logging the problem as a WARN.

Change-Id: I4ae74bbaa80a5d9763cc9352810c1620af3192af
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoImprove way to check instances getting an IP 57/29357/5
jose.lausuch [Fri, 24 Feb 2017 12:08:57 +0000 (13:08 +0100)]
Improve way to check instances getting an IP

JIRA: SNAPS-33

Change-Id: I7f8e0ff80da97f6be6df21b20e0a878f2fc18636
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoMake SNAPS repo installable as a python module 97/29097/2
jose.lausuch [Mon, 20 Feb 2017 16:56:05 +0000 (17:56 +0100)]
Make SNAPS repo installable as a python module

JIRA: SNAPS-29

Change-Id: I180a0ad0db531ba3c32ad35e41381baebd164724
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoMerge "Adding INFO and LICENSE for review"
Aric Gardner [Mon, 20 Feb 2017 18:52:20 +0000 (18:52 +0000)]
Merge "Adding INFO and LICENSE for review"

7 years agoMerge "Added the ability to add in configurable metadata to flavor creation. In order...
Steven Pisarski [Fri, 17 Feb 2017 16:57:24 +0000 (16:57 +0000)]
Merge "Added the ability to add in configurable metadata to flavor creation. In order to properly support standard and DPDK installations, the default metadata value is hw:mem_page_size=any."

7 years agoMerge "Converted existing markdown documentation to RST format. Removed MD versions...
Steven Pisarski [Fri, 17 Feb 2017 16:57:08 +0000 (16:57 +0000)]
Merge "Converted existing markdown documentation to RST format. Removed MD versions. Moved examples directory up one under repo root Moved RST files under docs/how-to-use"

7 years agoMerge "Added the ability to create custom flavors with the deploy_venv.py application."
Steven Pisarski [Fri, 17 Feb 2017 16:56:54 +0000 (16:56 +0000)]
Merge "Added the ability to create custom flavors with the deploy_venv.py application."

7 years agoAdded the ability to create custom flavors with the deploy_venv.py application. 73/28873/3
spisarski [Thu, 16 Feb 2017 21:41:25 +0000 (14:41 -0700)]
Added the ability to create custom flavors with the deploy_venv.py application.

JIRA: SNAPS-3

CableLabs JIRA SNAPS-155

Change-Id: Ic1c07b7d75e04578495cb2f2881798da4c2571a2
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoAccidentally checked in changes to this file. 71/28971/1
spisarski [Fri, 17 Feb 2017 16:27:23 +0000 (09:27 -0700)]
Accidentally checked in changes to this file.

Change-Id: I10565206e81a2d960e42c808345e91c32cc4b57c
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoAdded the ability to add in configurable metadata to flavor creation. 67/28967/1
spisarski [Fri, 17 Feb 2017 16:21:59 +0000 (09:21 -0700)]
Added the ability to add in configurable metadata to flavor creation.
In order to properly support standard and DPDK installations, the
default metadata value is hw:mem_page_size=any.

JIRA: SNAPS-28
JIRA: FUNCTEST-737

Change-Id: Ic882e8f85a97320d65ede3d6a00735a909a4ead2
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoConverted existing markdown documentation to RST format. 43/28743/4
spisarski [Wed, 15 Feb 2017 19:07:07 +0000 (12:07 -0700)]
Converted existing markdown documentation to RST format.
Removed MD versions.
Moved examples directory up one under repo root
Moved RST files under docs/how-to-use

Change-Id: I4137b8591e4ae63e40674a7f5f8243d928efee0c
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoInitial patch with all code from CableLabs repository. 27/28727/1
spisarski [Wed, 15 Feb 2017 16:13:54 +0000 (09:13 -0700)]
Initial patch with all code from CableLabs repository.

Change-Id: I70a2778718c5e7f21fd14e4ad28c9269d3761cc7
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoAdding INFO and LICENSE for review 47/28647/1
Aric Gardner [Tue, 14 Feb 2017 19:08:23 +0000 (14:08 -0500)]
Adding INFO and LICENSE for review

Change-Id: I028dc92b441aa81f9f1538fab229162f9a30bd8e
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
7 years agoInitial empty repository
Aric Gardner [Tue, 14 Feb 2017 19:08:16 +0000 (19:08 +0000)]
Initial empty repository