2025-04-28 15:45:40,246 - INFO - Domain Default found not creating
2025-04-28 15:45:40,421 - INFO - Project ctest-TestBasicPolicy-57136025 not found, creating it
2025-04-28 15:45:41,074 - INFO - Created Project:ctest-TestBasicPolicy-57136025, ID : f490232e-786f-4cee-a01f-9249a970bd43
2025-04-28 15:45:43,574 - INFO - ================================================================================
2025-04-28 15:45:43,574 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-28 15:45:43,574 - 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
2025-04-28 15:45:43,893 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2025-04-28 15:45:43,893 - INFO - Initial checks done. Running the testcase now
2025-04-28 15:45:43,893 - INFO -
2025-04-28 15:45:44,722 - DEBUG - Response for create_network : {'network': {'id': '5bc2e9b0-6eb3-4fb3-a349-75a168c50500', 'name': 'ctest-vn-84047884', 'tenant_id': 'f490232e786f4ceea01f9249a970bd43', 'project_id': 'f490232e786f4ceea01f9249a970bd43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57136025', 'ctest-vn-84047884'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:45:44,990 - DEBUG - Response for create_subnet : {'subnet': {'id': '4862cb5b-e121-4382-a564-aa61f461b5d5', 'name': '', 'tenant_id': 'f490232e786f4ceea01f9249a970bd43', 'network_id': '5bc2e9b0-6eb3-4fb3-a349-75a168c50500', 'ip_version': 4, 'cidr': '117.110.162.0/26', 'allocation_pools': [{'start': '117.110.162.2', 'end': '117.110.162.62'}], 'gateway_ip': '117.110.162.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.110.162.2', 'tags': [], 'project_id': 'f490232e786f4ceea01f9249a970bd43'}}
2025-04-28 15:45:45,026 - INFO - Created VN ctest-vn-84047884
2025-04-28 15:45:45,092 - DEBUG - VN ctest-vn-84047884 UUID is 5bc2e9b0-6eb3-4fb3-a349-75a168c50500
2025-04-28 15:45:45,693 - DEBUG - Response for create_network : {'network': {'id': 'fdf1ad14-e71e-40d1-8120-28951de44e9f', 'name': 'ctest-vn-62570126', 'tenant_id': 'f490232e786f4ceea01f9249a970bd43', 'project_id': 'f490232e786f4ceea01f9249a970bd43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57136025', 'ctest-vn-62570126'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:45:45,865 - DEBUG - Response for create_subnet : {'subnet': {'id': '79998581-e404-4239-ac77-57a9a826f85d', 'name': '', 'tenant_id': 'f490232e786f4ceea01f9249a970bd43', 'network_id': 'fdf1ad14-e71e-40d1-8120-28951de44e9f', 'ip_version': 4, 'cidr': '200.175.19.0/26', 'allocation_pools': [{'start': '200.175.19.2', 'end': '200.175.19.62'}], 'gateway_ip': '200.175.19.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.175.19.2', 'tags': [], 'project_id': 'f490232e786f4ceea01f9249a970bd43'}}
2025-04-28 15:45:45,888 - INFO - Created VN ctest-vn-62570126
2025-04-28 15:45:45,947 - DEBUG - VN ctest-vn-62570126 UUID is fdf1ad14-e71e-40d1-8120-28951de44e9f
2025-04-28 15:45:46,138 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57136025:ctest-vn-84047884, 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-57136025:ctest-vn-62570126, 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]
2025-04-28 15:45:46,646 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5bc2e9b0-6eb3-4fb3-a349-75a168c50500', 'name': 'ctest-vn-84047884', 'tenant_id': 'f490232e786f4ceea01f9249a970bd43', 'project_id': 'f490232e786f4ceea01f9249a970bd43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4862cb5b-e121-4382-a564-aa61f461b5d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57136025', 'ctest-vn-84047884'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57136025', 'ctest-policy-allow-all-48279967']], 'subnet_ipam': [{'subnet_cidr': '117.110.162.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:45:47,105 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fdf1ad14-e71e-40d1-8120-28951de44e9f', 'name': 'ctest-vn-62570126', 'tenant_id': 'f490232e786f4ceea01f9249a970bd43', 'project_id': 'f490232e786f4ceea01f9249a970bd43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79998581-e404-4239-ac77-57a9a826f85d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57136025', 'ctest-vn-62570126'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57136025', 'ctest-policy-allow-all-48279967']], 'subnet_ipam': [{'subnet_cidr': '200.175.19.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:45:47,263 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-28 15:45:47,581 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-28 15:45:47,894 - DEBUG - Requesting: http://10.0.0.130:8082/domain/66ba7cc8-4980-41db-8134-6180e2e29607
2025-04-28 15:45:47,927 - DEBUG - Requesting: http://10.0.0.130:8082/project/f490232e-786f-4cee-a01f-9249a970bd43
2025-04-28 15:45:48,035 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5bc2e9b0-6eb3-4fb3-a349-75a168c50500
2025-04-28 15:45:48,058 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5bc2e9b0-6eb3-4fb3-a349-75a168c50500
2025-04-28 15:45:48,073 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c470827d-1d66-41bd-b189-35539194b3f1
2025-04-28 15:45:48,084 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c470827d-1d66-41bd-b189-35539194b3f1
2025-04-28 15:45:48,095 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/a83e9c42-7d8d-4283-b187-0c5c044567f3
2025-04-28 15:45:48,105 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 15:45:48,105 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5bc2e9b0-6eb3-4fb3-a349-75a168c50500
2025-04-28 15:45:48,120 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c470827d-1d66-41bd-b189-35539194b3f1
2025-04-28 15:45:48,134 - INFO - Verified VN network id 8 for VN 5bc2e9b0-6eb3-4fb3-a349-75a168c50500
2025-04-28 15:45:48,135 - INFO - Verifications in API Server for VN ctest-vn-84047884 passed
2025-04-28 15:45:48,135 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5bc2e9b0-6eb3-4fb3-a349-75a168c50500
2025-04-28 15:45:48,146 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c470827d-1d66-41bd-b189-35539194b3f1
2025-04-28 15:45:48,156 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c470827d-1d66-41bd-b189-35539194b3f1
2025-04-28 15:45:48,166 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/a83e9c42-7d8d-4283-b187-0c5c044567f3
2025-04-28 15:45:48,184 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57136025:ctest-vn-84047884', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57136025', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6612104146914070451', 'uuid-lslong': '11766064837590058240'}, 'enable': 'true', 'created': '2025-04-28T15:45:44', 'last-modified': '2025-04-28T15:45:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.585804'}
2025-04-28 15:45:48,194 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 15:45:48,194 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84047884 passed
2025-04-28 15:45:48,194 - DEBUG - ====Verifying policy data for ctest-vn-84047884 in API_Server ======
2025-04-28 15:45:48,194 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-28 15:45:48,203 - DEBUG - Requesting: http://10.0.0.130:8082/domain/66ba7cc8-4980-41db-8134-6180e2e29607
2025-04-28 15:45:48,218 - DEBUG - Requesting: http://10.0.0.130:8082/project/f490232e-786f-4cee-a01f-9249a970bd43
2025-04-28 15:45:48,319 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5bc2e9b0-6eb3-4fb3-a349-75a168c50500
2025-04-28 15:45:48,334 - DEBUG - ==>Verifying data for policy with id: 78c8904c-147f-4c10-8366-61aa2f189708, fqn: ['default-domain', 'ctest-TestBasicPolicy-57136025', 'ctest-policy-allow-all-48279967']
2025-04-28 15:45:48,334 - INFO - VN ctest-vn-84047884 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 15:45:48,334 - DEBUG - Verifying the vn in opserver
2025-04-28 15:45:48,334 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57136025:ctest-vn-84047884 virtual network link through opserver 10.0.0.130
2025-04-28 15:45:48,334 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-28 15:45:48,675 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-28 15:45:48,766 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57136025:ctest-vn-84047884', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57136025:ctest-vn-84047884?flat'}
2025-04-28 15:45:48,766 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57136025:ctest-vn-84047884 is found in opserver
2025-04-28 15:45:48,786 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 15:45:48,795 - DEBUG - VRF ids for VN ctest-vn-84047884: {}
2025-04-28 15:45:48,795 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-28 15:45:48,808 - DEBUG - Requesting: http://10.0.0.130:8082/domain/66ba7cc8-4980-41db-8134-6180e2e29607
2025-04-28 15:45:48,831 - DEBUG - Requesting: http://10.0.0.130:8082/project/f490232e-786f-4cee-a01f-9249a970bd43
2025-04-28 15:45:48,933 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fdf1ad14-e71e-40d1-8120-28951de44e9f
2025-04-28 15:45:48,952 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fdf1ad14-e71e-40d1-8120-28951de44e9f
2025-04-28 15:45:48,962 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e1eb0a88-5622-41ae-b7ef-0b4f8b6d23d9
2025-04-28 15:45:48,970 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e1eb0a88-5622-41ae-b7ef-0b4f8b6d23d9
2025-04-28 15:45:48,977 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/9aee3419-8419-4be8-bc8a-bc3ad4e8c82c
2025-04-28 15:45:48,986 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 15:45:48,986 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fdf1ad14-e71e-40d1-8120-28951de44e9f
2025-04-28 15:45:49,001 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e1eb0a88-5622-41ae-b7ef-0b4f8b6d23d9
2025-04-28 15:45:49,023 - INFO - Verified VN network id 9 for VN fdf1ad14-e71e-40d1-8120-28951de44e9f
2025-04-28 15:45:49,023 - INFO - Verifications in API Server for VN ctest-vn-62570126 passed
2025-04-28 15:45:49,023 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fdf1ad14-e71e-40d1-8120-28951de44e9f
2025-04-28 15:45:49,040 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e1eb0a88-5622-41ae-b7ef-0b4f8b6d23d9
2025-04-28 15:45:49,054 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e1eb0a88-5622-41ae-b7ef-0b4f8b6d23d9
2025-04-28 15:45:49,074 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/9aee3419-8419-4be8-bc8a-bc3ad4e8c82c
2025-04-28 15:45:49,098 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57136025:ctest-vn-62570126', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57136025', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18298597066271506641', 'uuid-lslong': '9304481451064184479'}, 'enable': 'true', 'created': '2025-04-28T15:45:45', 'last-modified': '2025-04-28T15:45:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.098439'}
2025-04-28 15:45:49,112 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 15:45:49,112 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62570126 passed
2025-04-28 15:45:49,112 - DEBUG - ====Verifying policy data for ctest-vn-62570126 in API_Server ======
2025-04-28 15:45:49,112 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-28 15:45:49,120 - DEBUG - Requesting: http://10.0.0.130:8082/domain/66ba7cc8-4980-41db-8134-6180e2e29607
2025-04-28 15:45:49,138 - DEBUG - Requesting: http://10.0.0.130:8082/project/f490232e-786f-4cee-a01f-9249a970bd43
2025-04-28 15:45:49,227 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fdf1ad14-e71e-40d1-8120-28951de44e9f
2025-04-28 15:45:49,243 - DEBUG - ==>Verifying data for policy with id: 78c8904c-147f-4c10-8366-61aa2f189708, fqn: ['default-domain', 'ctest-TestBasicPolicy-57136025', 'ctest-policy-allow-all-48279967']
2025-04-28 15:45:49,243 - INFO - VN ctest-vn-62570126 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 15:45:49,243 - DEBUG - Verifying the vn in opserver
2025-04-28 15:45:49,244 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57136025:ctest-vn-62570126 virtual network link through opserver 10.0.0.130
2025-04-28 15:45:49,244 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-28 15:45:49,256 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57136025:ctest-vn-62570126', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57136025:ctest-vn-62570126?flat'}
2025-04-28 15:45:49,256 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57136025:ctest-vn-62570126 is found in opserver
2025-04-28 15:45:49,269 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 15:45:49,275 - DEBUG - VRF ids for VN ctest-vn-62570126: {}
2025-04-28 15:45:49,343 - DEBUG - Services list from nova: [