No local image file or the file() doesn't exsit!
so will download image(cirros-0.3.5-x86_64-disk.img) from http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img.


======================={ Parser functest begin }==========================

|========= 1/4. Preparing VM image for parser...     =========|

  Download image cirros-0.3.5-x86_64-disk.img...

  Registe image cirros-0.3.2-x86_64-uec...
+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field            | Value                                                                                                                                                                                                                                             |
+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| checksum         | eeaa77cbfad8495fb46ddd23ac8e5a69                                                                                                                                                                                                                  |
| container_format | bare                                                                                                                                                                                                                                              |
| created_at       | 2018-01-01T18:45:39Z                                                                                                                                                                                                                              |
| disk_format      | qcow2                                                                                                                                                                                                                                             |
| file             | /v2/images/cd52ad7a-dfdf-4c66-a199-bc8793f5f5ce/file                                                                                                                                                                                              |
| id               | cd52ad7a-dfdf-4c66-a199-bc8793f5f5ce                                                                                                                                                                                                              |
| min_disk         | 0                                                                                                                                                                                                                                                 |
| min_ram          | 0                                                                                                                                                                                                                                                 |
| name             | cirros-0.3.2-x86_64-uec                                                                                                                                                                                                                           |
| owner            | 6b0b4d50fba24a03a526c86275522cdc                                                                                                                                                                                                                  |
| properties       | direct_url='rbd://730a3b17-170e-4b54-a05e-14e6ad42ca51/images/cd52ad7a-dfdf-4c66-a199-bc8793f5f5ce/snap', locations='[{u'url': u'rbd://730a3b17-170e-4b54-a05e-14e6ad42ca51/images/cd52ad7a-dfdf-4c66-a199-bc8793f5f5ce/snap', u'metadata': {}}]' |
| protected        | False                                                                                                                                                                                                                                             |
| schema           | /v2/schemas/image                                                                                                                                                                                                                                 |
| size             | 20331                                                                                                                                                                                                                                             |
| status           | active                                                                                                                                                                                                                                            |
| tags             |                                                                                                                                                                                                                                                   |
| updated_at       | 2018-01-01T18:46:22Z                                                                                                                                                                                                                              |
| virtual_size     | None                                                                                                                                                                                                                                              |
| visibility       | public                                                                                                                                                                                                                                            |
+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

|========= 2/4. Creating test user for parser...     =========|
+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | Project for parser test          |
| domain_id   | default                          |
| enabled     | True                             |
| id          | 79883c7695074c539c7a3bd86dca44ea |
| is_domain   | False                            |
| name        | parser                           |
| parent_id   | default                          |
+-------------+----------------------------------+
  Create project parser successful.
+---------------------+----------------------------------+
| Field               | Value                            |
+---------------------+----------------------------------+
| default_project_id  | 79883c7695074c539c7a3bd86dca44ea |
| domain_id           | default                          |
| email               | shang.xiaodong@zte.com.cn        |
| enabled             | True                             |
| id                  | 8a89796719144ab5b1369538fe2d3cfb |
| name                | parser                           |
| options             | {}                               |
| password_expires_at | None                             |
+---------------------+----------------------------------+
  Create user parser successful.
  Grant user parser the role of admin in project parser successful.
  Grant user parser the role of heat_stack_owner in project parser successful.

|========= 3/4. Parse -> translate -> deploy vRNC... =========|
  Switch openstack env to parser project

  Make patch for provider network
    Patch provider network for input file:
      Raw yaml file: ../tosca2heat/heat-translator/translator/tests/data/vRNC/Definitions/vRNC.yaml
      Patched yaml file: ../tosca2heat/heat-translator/translator/tests/data/vRNC/Definitions/vRNC_patch.yaml

      Patching provider:network_type...
      Patching provider:segmentation_id...
      Patching provider:physical_network...

  Translator use parser:
    1. Input  file: ../tosca2heat/heat-translator/translator/tests/data/vRNC/Definitions/vRNC_patch.yaml
    2. Output file: ../tosca2heat/heat-translator/translator/tests/data/vRNC/vRNC_Hot_Template.yaml
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connection.py:340: SubjectAltNameWarning: Certificate for 192.168.11.222 has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SubjectAltNameWarning
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connection.py:340: SubjectAltNameWarning: Certificate for 192.168.11.222 has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SubjectAltNameWarning
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connection.py:340: SubjectAltNameWarning: Certificate for 192.168.11.222 has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SubjectAltNameWarning

  Make patch for translated file:
    Patch yaml file: ../tosca2heat/heat-translator/translator/tests/data/vRNC/vRNC_Hot_Template.yaml

    Patching compute:signal_transport

  Deploy stack...
ERROR: <html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>

  Clean-up the environment...

ERROR: <html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>

    Delete patch temp file ../tosca2heat/heat-translator/translator/tests/data/vRNC/Definitions/vRNC_patch.yaml after test.
    Delete hot temp file ../tosca2heat/heat-translator/translator/tests/data/vRNC/vRNC_Hot_Template.yaml after test.
    Delete local image file cirros-0.3.2-x86_64-uec.img after test.
    Delete local URL image file cirros-0.3.5-x86_64-disk.img after test.
    Delete user parser's role from project parser
    Delete user parser
    Delete project parser

======================={ Parser functest end }==========================


2018-01-02 02:57:02,151 - functest.core.feature - INFO - Test result is stored in '/home/opnfv/functest/results/parser-basics.log'
