2024-08-24 02:30:06,060 - INFO - Domain Default found not creating
2024-08-24 02:30:06,526 - INFO - Project ctest-TestBasicPolicy-94745391 not found, creating it
2024-08-24 02:30:06,995 - INFO - Created Project:ctest-TestBasicPolicy-94745391, ID : 06b4abf8-136d-496c-af0d-87554aa2b24b
2024-08-24 02:30:08,480 - INFO - ================================================================================
2024-08-24 02:30:08,480 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-24 02:30:08,480 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-08-24 02:30:08,735 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.6': '0'}} with
2024-08-24 02:30:08,735 - INFO - Initial checks done. Running the testcase now
2024-08-24 02:30:08,735 - INFO -
2024-08-24 02:30:09,283 - DEBUG - Response for create_network : {'network': {'id': '269ae818-4b08-4b64-b75c-c3beefaac6ac', 'name': 'ctest-vn-86127780', 'tenant_id': '06b4abf8136d496caf0d87554aa2b24b', 'project_id': '06b4abf8136d496caf0d87554aa2b24b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94745391', 'ctest-vn-86127780'], 'port_security_enabled': True, 'description': ''}}
2024-08-24 02:30:09,462 - DEBUG - Response for create_subnet : {'subnet': {'id': '37f071b7-1303-4646-811f-fea77d483ba1', 'name': '', 'tenant_id': '06b4abf8136d496caf0d87554aa2b24b', 'network_id': '269ae818-4b08-4b64-b75c-c3beefaac6ac', 'ip_version': 4, 'cidr': '65.240.176.192/26', 'allocation_pools': [{'start': '65.240.176.194', 'end': '65.240.176.254'}], 'gateway_ip': '65.240.176.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.240.176.194', 'tags': [], 'project_id': '06b4abf8136d496caf0d87554aa2b24b'}}
2024-08-24 02:30:09,484 - INFO - Created VN ctest-vn-86127780
2024-08-24 02:30:09,537 - DEBUG - VN ctest-vn-86127780 UUID is 269ae818-4b08-4b64-b75c-c3beefaac6ac
2024-08-24 02:30:09,834 - DEBUG - Response for create_network : {'network': {'id': '2e8d0aec-51cd-4df6-8abb-40ab2d9bfc6f', 'name': 'ctest-vn-22304200', 'tenant_id': '06b4abf8136d496caf0d87554aa2b24b', 'project_id': '06b4abf8136d496caf0d87554aa2b24b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94745391', 'ctest-vn-22304200'], 'port_security_enabled': True, 'description': ''}}
2024-08-24 02:30:10,013 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd450f9e7-47fa-4859-8fc8-2e5bb1997619', 'name': '', 'tenant_id': '06b4abf8136d496caf0d87554aa2b24b', 'network_id': '2e8d0aec-51cd-4df6-8abb-40ab2d9bfc6f', 'ip_version': 4, 'cidr': '146.100.13.0/26', 'allocation_pools': [{'start': '146.100.13.2', 'end': '146.100.13.62'}], 'gateway_ip': '146.100.13.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.100.13.2', 'tags': [], 'project_id': '06b4abf8136d496caf0d87554aa2b24b'}}
2024-08-24 02:30:10,032 - INFO - Created VN ctest-vn-22304200
2024-08-24 02:30:10,085 - DEBUG - VN ctest-vn-22304200 UUID is 2e8d0aec-51cd-4df6-8abb-40ab2d9bfc6f
2024-08-24 02:30:10,199 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94745391:ctest-vn-86127780, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94745391:ctest-vn-22304200, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-08-24 02:30:10,487 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '269ae818-4b08-4b64-b75c-c3beefaac6ac', 'name': 'ctest-vn-86127780', 'tenant_id': '06b4abf8136d496caf0d87554aa2b24b', 'project_id': '06b4abf8136d496caf0d87554aa2b24b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37f071b7-1303-4646-811f-fea77d483ba1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94745391', 'ctest-vn-86127780'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94745391', 'ctest-policy-allow-all-73319480']], 'subnet_ipam': [{'subnet_cidr': '65.240.176.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-24 02:30:10,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e8d0aec-51cd-4df6-8abb-40ab2d9bfc6f', 'name': 'ctest-vn-22304200', 'tenant_id': '06b4abf8136d496caf0d87554aa2b24b', 'project_id': '06b4abf8136d496caf0d87554aa2b24b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d450f9e7-47fa-4859-8fc8-2e5bb1997619'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94745391', 'ctest-vn-22304200'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94745391', 'ctest-policy-allow-all-73319480']], 'subnet_ipam': [{'subnet_cidr': '146.100.13.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-24 02:30:10,893 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-08-24 02:30:11,192 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-08-24 02:30:11,229 - DEBUG - Requesting: http://10.0.0.52:8082/domain/1acddb76-cfec-497d-a36a-862dcf33412a
2024-08-24 02:30:11,248 - DEBUG - Requesting: http://10.0.0.52:8082/project/06b4abf8-136d-496c-af0d-87554aa2b24b
2024-08-24 02:30:11,326 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/269ae818-4b08-4b64-b75c-c3beefaac6ac
2024-08-24 02:30:11,335 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/269ae818-4b08-4b64-b75c-c3beefaac6ac
2024-08-24 02:30:11,342 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/3ea48d4e-d893-48de-8a75-dcaf891a04bb
2024-08-24 02:30:11,348 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/3ea48d4e-d893-48de-8a75-dcaf891a04bb
2024-08-24 02:30:11,355 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/ceff813e-0ebc-4e1a-8fdb-443f980bc37e
2024-08-24 02:30:11,360 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-24 02:30:11,361 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/269ae818-4b08-4b64-b75c-c3beefaac6ac
2024-08-24 02:30:11,368 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/3ea48d4e-d893-48de-8a75-dcaf891a04bb
2024-08-24 02:30:11,379 - INFO - Verified VN network id 7 for VN 269ae818-4b08-4b64-b75c-c3beefaac6ac
2024-08-24 02:30:11,379 - INFO - Verifications in API Server for VN ctest-vn-86127780 passed
2024-08-24 02:30:11,379 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/269ae818-4b08-4b64-b75c-c3beefaac6ac
2024-08-24 02:30:11,387 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/3ea48d4e-d893-48de-8a75-dcaf891a04bb
2024-08-24 02:30:11,393 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/3ea48d4e-d893-48de-8a75-dcaf891a04bb
2024-08-24 02:30:11,400 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/ceff813e-0ebc-4e1a-8fdb-443f980bc37e
2024-08-24 02:30:11,413 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94745391:ctest-vn-86127780', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94745391', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2781790910890396516', 'uuid-lslong': '13212650631630341804'}, 'enable': 'true', 'created': '2024-08-24T02:30:09', 'last-modified': '2024-08-24T02:30:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952438'}
2024-08-24 02:30:11,421 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-24 02:30:11,421 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86127780 passed
2024-08-24 02:30:11,421 - DEBUG - ====Verifying policy data for ctest-vn-86127780 in API_Server ======
2024-08-24 02:30:11,421 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-08-24 02:30:11,427 - DEBUG - Requesting: http://10.0.0.52:8082/domain/1acddb76-cfec-497d-a36a-862dcf33412a
2024-08-24 02:30:11,438 - DEBUG - Requesting: http://10.0.0.52:8082/project/06b4abf8-136d-496c-af0d-87554aa2b24b
2024-08-24 02:30:11,509 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/269ae818-4b08-4b64-b75c-c3beefaac6ac
2024-08-24 02:30:11,517 - DEBUG - ==>Verifying data for policy with id: 4b7bdc04-753e-460b-82c7-ae508a35252e, fqn: ['default-domain', 'ctest-TestBasicPolicy-94745391', 'ctest-policy-allow-all-73319480']
2024-08-24 02:30:11,517 - INFO - VN ctest-vn-86127780 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-24 02:30:11,517 - DEBUG - Verifying the vn in opserver
2024-08-24 02:30:11,517 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94745391:ctest-vn-86127780 virtual network link through opserver 10.0.0.52
2024-08-24 02:30:11,518 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-08-24 02:30:11,811 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-08-24 02:30:11,867 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94745391:ctest-vn-86127780', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94745391:ctest-vn-86127780?flat'}
2024-08-24 02:30:11,867 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94745391:ctest-vn-86127780 is found in opserver
2024-08-24 02:30:11,878 - DEBUG - Do not have enough data to verify VN in agent
2024-08-24 02:30:11,883 - DEBUG - VRF ids for VN ctest-vn-86127780: {}
2024-08-24 02:30:11,883 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-08-24 02:30:11,890 - DEBUG - Requesting: http://10.0.0.52:8082/domain/1acddb76-cfec-497d-a36a-862dcf33412a
2024-08-24 02:30:11,902 - DEBUG - Requesting: http://10.0.0.52:8082/project/06b4abf8-136d-496c-af0d-87554aa2b24b
2024-08-24 02:30:11,970 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e8d0aec-51cd-4df6-8abb-40ab2d9bfc6f
2024-08-24 02:30:11,981 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e8d0aec-51cd-4df6-8abb-40ab2d9bfc6f
2024-08-24 02:30:11,989 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/7a370b88-d584-452a-8f8d-b8617a68931d
2024-08-24 02:30:11,996 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/7a370b88-d584-452a-8f8d-b8617a68931d
2024-08-24 02:30:12,003 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/0fc68ec3-3daa-4fec-be73-3ece5c5f0ef7
2024-08-24 02:30:12,010 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-24 02:30:12,010 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e8d0aec-51cd-4df6-8abb-40ab2d9bfc6f
2024-08-24 02:30:12,018 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/7a370b88-d584-452a-8f8d-b8617a68931d
2024-08-24 02:30:12,030 - INFO - Verified VN network id 8 for VN 2e8d0aec-51cd-4df6-8abb-40ab2d9bfc6f
2024-08-24 02:30:12,030 - INFO - Verifications in API Server for VN ctest-vn-22304200 passed
2024-08-24 02:30:12,030 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e8d0aec-51cd-4df6-8abb-40ab2d9bfc6f
2024-08-24 02:30:12,040 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/7a370b88-d584-452a-8f8d-b8617a68931d
2024-08-24 02:30:12,046 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/7a370b88-d584-452a-8f8d-b8617a68931d
2024-08-24 02:30:12,052 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/0fc68ec3-3daa-4fec-be73-3ece5c5f0ef7
2024-08-24 02:30:12,064 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94745391:ctest-vn-22304200', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94745391', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3354349307561856502', 'uuid-lslong': '9996654901827730543'}, 'enable': 'true', 'created': '2024-08-24T02:30:09', 'last-modified': '2024-08-24T02:30:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.364739'}
2024-08-24 02:30:12,070 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-24 02:30:12,070 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22304200 passed
2024-08-24 02:30:12,070 - DEBUG - ====Verifying policy data for ctest-vn-22304200 in API_Server ======
2024-08-24 02:30:12,071 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-08-24 02:30:12,076 - DEBUG - Requesting: http://10.0.0.52:8082/domain/1acddb76-cfec-497d-a36a-862dcf33412a
2024-08-24 02:30:12,088 - DEBUG - Requesting: http://10.0.0.52:8082/project/06b4abf8-136d-496c-af0d-87554aa2b24b
2024-08-24 02:30:12,155 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e8d0aec-51cd-4df6-8abb-40ab2d9bfc6f
2024-08-24 02:30:12,163 - DEBUG - ==>Verifying data for policy with id: 4b7bdc04-753e-460b-82c7-ae508a35252e, fqn: ['default-domain', 'ctest-TestBasicPolicy-94745391', 'ctest-policy-allow-all-73319480']
2024-08-24 02:30:12,163 - INFO - VN ctest-vn-22304200 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-24 02:30:12,163 - DEBUG - Verifying the vn in opserver
2024-08-24 02:30:12,163 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94745391:ctest-vn-22304200 virtual network link through opserver 10.0.0.52
2024-08-24 02:30:12,163 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-08-24 02:30:12,175 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94745391:ctest-vn-22304200', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94745391:ctest-vn-22304200?flat'}
2024-08-24 02:30:12,175 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94745391:ctest-vn-22304200 is found in opserver
2024-08-24 02:30:12,189 - DEBUG - Do not have enough data to verify VN in agent
2024-08-24 02:30:12,194 - DEBUG - VRF ids for VN ctest-vn-22304200: {}
2024-08-24 02:30:12,249 - DEBUG - Services list from nova: [