2024-09-02 12:33:08,595 - INFO - Reading existing Domain with UUID fe57c7f3-7b6c-41e2-9cbd-18f55724bf05
2024-09-02 12:33:08,606 - INFO - Using existing domain ['admin_domain'](fe57c7f3-7b6c-41e2-9cbd-18f55724bf05)
2024-09-02 12:33:08,824 - INFO - Project ctest-TestBasicPolicy-60546220 not found, creating it
2024-09-02 12:33:09,326 - INFO - Created Project:ctest-TestBasicPolicy-60546220, ID : 15ed628e-e0b4-412e-bf62-d9d8f4453875
2024-09-02 12:33:11,110 - INFO - ================================================================================
2024-09-02 12:33:11,110 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-02 12:33:11,110 - 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-09-02 12:33:11,506 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.0.0.12': '0'}} with
2024-09-02 12:33:11,506 - INFO - Initial checks done. Running the testcase now
2024-09-02 12:33:11,506 - INFO -
2024-09-02 12:33:12,315 - DEBUG - Response for create_network : {'network': {'id': '603a26a0-f353-4118-abd2-887e93717ba7', 'name': 'ctest-vn-63941130', 'tenant_id': '15ed628ee0b4412ebf62d9d8f4453875', 'project_id': '15ed628ee0b4412ebf62d9d8f4453875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-vn-63941130'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-09-02 12:33:12,536 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1354551-c45d-4d80-a658-636ee10ea965', 'name': '', 'tenant_id': '15ed628ee0b4412ebf62d9d8f4453875', 'network_id': '603a26a0-f353-4118-abd2-887e93717ba7', 'ip_version': 4, 'cidr': '212.55.149.64/26', 'allocation_pools': [{'start': '212.55.149.66', 'end': '212.55.149.126'}], 'gateway_ip': '212.55.149.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T12:33:12.432182', 'updated_at': '2024-09-02T12:33:12.432182', 'dns_server_address': '212.55.149.66', 'tags': [], 'project_id': '15ed628ee0b4412ebf62d9d8f4453875'}}
2024-09-02 12:33:12,602 - INFO - Created VN ctest-vn-63941130
2024-09-02 12:33:12,660 - DEBUG - VN ctest-vn-63941130 UUID is 603a26a0-f353-4118-abd2-887e93717ba7
2024-09-02 12:33:13,177 - DEBUG - Response for create_network : {'network': {'id': '58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc', 'name': 'ctest-vn-15176406', 'tenant_id': '15ed628ee0b4412ebf62d9d8f4453875', 'project_id': '15ed628ee0b4412ebf62d9d8f4453875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-vn-15176406'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-09-02 12:33:13,417 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ff42b13-13db-4ee5-b837-c8d969656690', 'name': '', 'tenant_id': '15ed628ee0b4412ebf62d9d8f4453875', 'network_id': '58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc', 'ip_version': 4, 'cidr': '5.130.236.192/26', 'allocation_pools': [{'start': '5.130.236.194', 'end': '5.130.236.254'}], 'gateway_ip': '5.130.236.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T12:33:13.302310', 'updated_at': '2024-09-02T12:33:13.302310', 'dns_server_address': '5.130.236.194', 'tags': [], 'project_id': '15ed628ee0b4412ebf62d9d8f4453875'}}
2024-09-02 12:33:13,486 - INFO - Created VN ctest-vn-15176406
2024-09-02 12:33:13,540 - DEBUG - VN ctest-vn-15176406 UUID is 58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc
2024-09-02 12:33:13,766 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-15176406, 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-09-02 12:33:14,196 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '603a26a0-f353-4118-abd2-887e93717ba7', 'name': 'ctest-vn-63941130', 'tenant_id': '15ed628ee0b4412ebf62d9d8f4453875', 'project_id': '15ed628ee0b4412ebf62d9d8f4453875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1354551-c45d-4d80-a658-636ee10ea965'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-vn-63941130'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-policy-allow-all-07378938']], 'subnet_ipam': [{'subnet_cidr': '212.55.149.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-02T12:33:12.233792', 'updated_at': '2024-09-02T12:33:12.448006'}}
2024-09-02 12:33:14,563 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc', 'name': 'ctest-vn-15176406', 'tenant_id': '15ed628ee0b4412ebf62d9d8f4453875', 'project_id': '15ed628ee0b4412ebf62d9d8f4453875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ff42b13-13db-4ee5-b837-c8d969656690'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-vn-15176406'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-policy-allow-all-07378938']], 'subnet_ipam': [{'subnet_cidr': '5.130.236.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-02T12:33:13.096090', 'updated_at': '2024-09-02T12:33:13.321115'}}
2024-09-02 12:33:14,788 - DEBUG - Requesting: https://10.0.0.12:8082/domains
2024-09-02 12:33:15,162 - DEBUG - Requesting: https://10.0.0.12:8082/domains
2024-09-02 12:33:15,248 - DEBUG - Requesting: https://10.0.0.12:8082/domain/fe57c7f3-7b6c-41e2-9cbd-18f55724bf05
2024-09-02 12:33:15,322 - DEBUG - Requesting: https://10.0.0.12:8082/project/15ed628e-e0b4-412e-bf62-d9d8f4453875
2024-09-02 12:33:15,498 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/603a26a0-f353-4118-abd2-887e93717ba7
2024-09-02 12:33:15,578 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/603a26a0-f353-4118-abd2-887e93717ba7
2024-09-02 12:33:15,638 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/6b4c732d-1a5e-4c4f-8a47-147f55e589fd
2024-09-02 12:33:15,701 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/6b4c732d-1a5e-4c4f-8a47-147f55e589fd
2024-09-02 12:33:15,765 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/6893ec89-6407-4c60-9228-3f0f15f435e5
2024-09-02 12:33:15,821 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-02 12:33:15,821 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/603a26a0-f353-4118-abd2-887e93717ba7
2024-09-02 12:33:15,883 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/6b4c732d-1a5e-4c4f-8a47-147f55e589fd
2024-09-02 12:33:15,979 - INFO - Verified VN network id 7 for VN 603a26a0-f353-4118-abd2-887e93717ba7
2024-09-02 12:33:15,980 - INFO - Verifications in API Server for VN ctest-vn-63941130 passed
2024-09-02 12:33:15,980 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/603a26a0-f353-4118-abd2-887e93717ba7
2024-09-02 12:33:16,044 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/6b4c732d-1a5e-4c4f-8a47-147f55e589fd
2024-09-02 12:33:16,117 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/6b4c732d-1a5e-4c4f-8a47-147f55e589fd
2024-09-02 12:33:16,180 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/6893ec89-6407-4c60-9228-3f0f15f435e5
2024-09-02 12:33:16,313 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60546220', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6933897049009242392', 'uuid-lslong': '12381108402815859623'}, 'enable': 'true', 'created': '2024-09-02T12:33:12', 'last-modified': '2024-09-02T12:33:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.145396'}
2024-09-02 12:33:16,382 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-02 12:33:16,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63941130 passed
2024-09-02 12:33:16,382 - DEBUG - ====Verifying policy data for ctest-vn-63941130 in API_Server ======
2024-09-02 12:33:16,382 - DEBUG - Requesting: https://10.0.0.12:8082/domains
2024-09-02 12:33:16,444 - DEBUG - Requesting: https://10.0.0.12:8082/domain/fe57c7f3-7b6c-41e2-9cbd-18f55724bf05
2024-09-02 12:33:16,509 - DEBUG - Requesting: https://10.0.0.12:8082/project/15ed628e-e0b4-412e-bf62-d9d8f4453875
2024-09-02 12:33:16,694 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/603a26a0-f353-4118-abd2-887e93717ba7
2024-09-02 12:33:16,783 - DEBUG - ==>Verifying data for policy with id: bf9c6693-cb86-4632-91d3-628b4392213b, fqn: ['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-policy-allow-all-07378938']
2024-09-02 12:33:16,783 - INFO - VN ctest-vn-63941130 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-02 12:33:16,783 - DEBUG - Verifying the vn in opserver
2024-09-02 12:33:16,783 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130 virtual network link through opserver 10.0.0.12
2024-09-02 12:33:16,783 - DEBUG - Requesting: https://10.0.0.12:8081/analytics/uves/virtual-networks
2024-09-02 12:33:17,181 - DEBUG - Requesting: https://10.0.0.12:8081/analytics/uves/virtual-networks
2024-09-02 12:33:17,362 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130', 'href': 'https://10.0.0.12:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130?flat'}
2024-09-02 12:33:17,362 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130 is found in opserver
2024-09-02 12:33:17,468 - DEBUG - Do not have enough data to verify VN in agent
2024-09-02 12:33:17,521 - DEBUG - VRF ids for VN ctest-vn-63941130: {}
2024-09-02 12:33:17,521 - DEBUG - Requesting: https://10.0.0.12:8082/domains
2024-09-02 12:33:17,576 - DEBUG - Requesting: https://10.0.0.12:8082/domain/fe57c7f3-7b6c-41e2-9cbd-18f55724bf05
2024-09-02 12:33:17,647 - DEBUG - Requesting: https://10.0.0.12:8082/project/15ed628e-e0b4-412e-bf62-d9d8f4453875
2024-09-02 12:33:17,729 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc
2024-09-02 12:33:17,806 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc
2024-09-02 12:33:17,875 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/d4602fb8-984b-4fb4-a477-4d98f8b3ae74
2024-09-02 12:33:17,941 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/d4602fb8-984b-4fb4-a477-4d98f8b3ae74
2024-09-02 12:33:18,009 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/b16e7e4b-4a96-48f3-9c43-d81c3a4d1754
2024-09-02 12:33:18,076 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-02 12:33:18,077 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc
2024-09-02 12:33:18,147 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/d4602fb8-984b-4fb4-a477-4d98f8b3ae74
2024-09-02 12:33:18,223 - INFO - Verified VN network id 8 for VN 58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc
2024-09-02 12:33:18,223 - INFO - Verifications in API Server for VN ctest-vn-15176406 passed
2024-09-02 12:33:18,223 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc
2024-09-02 12:33:18,282 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/d4602fb8-984b-4fb4-a477-4d98f8b3ae74
2024-09-02 12:33:18,347 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/d4602fb8-984b-4fb4-a477-4d98f8b3ae74
2024-09-02 12:33:18,414 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/b16e7e4b-4a96-48f3-9c43-d81c3a4d1754
2024-09-02 12:33:18,585 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-15176406', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60546220', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6411419590210898797', 'uuid-lslong': '11654399220549250524'}, 'enable': 'true', 'created': '2024-09-02T12:33:13', 'last-modified': '2024-09-02T12:33:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.030037'}
2024-09-02 12:33:18,670 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-02 12:33:18,671 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15176406 passed
2024-09-02 12:33:18,671 - DEBUG - ====Verifying policy data for ctest-vn-15176406 in API_Server ======
2024-09-02 12:33:18,671 - DEBUG - Requesting: https://10.0.0.12:8082/domains
2024-09-02 12:33:18,732 - DEBUG - Requesting: https://10.0.0.12:8082/domain/fe57c7f3-7b6c-41e2-9cbd-18f55724bf05
2024-09-02 12:33:18,793 - DEBUG - Requesting: https://10.0.0.12:8082/project/15ed628e-e0b4-412e-bf62-d9d8f4453875
2024-09-02 12:33:18,918 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc
2024-09-02 12:33:18,982 - DEBUG - ==>Verifying data for policy with id: bf9c6693-cb86-4632-91d3-628b4392213b, fqn: ['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-policy-allow-all-07378938']
2024-09-02 12:33:18,982 - INFO - VN ctest-vn-15176406 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-02 12:33:18,982 - DEBUG - Verifying the vn in opserver
2024-09-02 12:33:18,982 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-15176406 virtual network link through opserver 10.0.0.12
2024-09-02 12:33:18,982 - DEBUG - Requesting: https://10.0.0.12:8081/analytics/uves/virtual-networks
2024-09-02 12:33:19,053 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-15176406', 'href': 'https://10.0.0.12:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-15176406?flat'}
2024-09-02 12:33:19,053 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-15176406 is found in opserver
2024-09-02 12:33:19,185 - DEBUG - Do not have enough data to verify VN in agent
2024-09-02 12:33:19,242 - DEBUG - VRF ids for VN ctest-vn-15176406: {}
2024-09-02 12:33:19,349 - DEBUG - Services list from nova: [