2025-07-15 18:25:01,349 - INFO - Domain Default found not creating
2025-07-15 18:25:01,644 - INFO - Project ctest-TestBasicPolicy-98226418 not found, creating it
2025-07-15 18:25:02,180 - INFO - Created Project:ctest-TestBasicPolicy-98226418, ID : 602133bb-d8e5-4533-9cdf-5bc29572d0c3
2025-07-15 18:25:04,298 - INFO - ================================================================================
2025-07-15 18:25:04,300 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-15 18:25:04,300 - 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-07-15 18:25:04,622 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-15 18:25:04,622 - INFO - Initial checks done. Running the testcase now
2025-07-15 18:25:04,622 - INFO -
2025-07-15 18:25:05,477 - DEBUG - Response for create_network : {'network': {'id': 'd5f072ea-faa6-463a-99d5-9e6c1f64c085', 'name': 'ctest-vn-24718787', 'tenant_id': '602133bbd8e545339cdf5bc29572d0c3', 'project_id': '602133bbd8e545339cdf5bc29572d0c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98226418', 'ctest-vn-24718787'], 'port_security_enabled': True, 'description': ''}}
2025-07-15 18:25:05,717 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eeb58dd9-bcb1-423e-a84f-5f16b2a293ba', 'name': '', 'tenant_id': '602133bbd8e545339cdf5bc29572d0c3', 'network_id': 'd5f072ea-faa6-463a-99d5-9e6c1f64c085', 'ip_version': 4, 'cidr': '95.75.169.0/26', 'allocation_pools': [{'start': '95.75.169.2', 'end': '95.75.169.62'}], 'gateway_ip': '95.75.169.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.75.169.2', 'tags': [], 'project_id': '602133bbd8e545339cdf5bc29572d0c3'}}
2025-07-15 18:25:05,754 - INFO - Created VN ctest-vn-24718787
2025-07-15 18:25:05,812 - DEBUG - VN ctest-vn-24718787 UUID is d5f072ea-faa6-463a-99d5-9e6c1f64c085
2025-07-15 18:25:06,350 - DEBUG - Response for create_network : {'network': {'id': 'f00f5ff0-7b67-455c-8d23-5439a31b2cc7', 'name': 'ctest-vn-51340065', 'tenant_id': '602133bbd8e545339cdf5bc29572d0c3', 'project_id': '602133bbd8e545339cdf5bc29572d0c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98226418', 'ctest-vn-51340065'], 'port_security_enabled': True, 'description': ''}}
2025-07-15 18:25:06,559 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e09cc547-ed34-4b1e-bfde-12ab7abea206', 'name': '', 'tenant_id': '602133bbd8e545339cdf5bc29572d0c3', 'network_id': 'f00f5ff0-7b67-455c-8d23-5439a31b2cc7', 'ip_version': 4, 'cidr': '37.199.220.192/26', 'allocation_pools': [{'start': '37.199.220.194', 'end': '37.199.220.254'}], 'gateway_ip': '37.199.220.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.199.220.194', 'tags': [], 'project_id': '602133bbd8e545339cdf5bc29572d0c3'}}
2025-07-15 18:25:06,577 - INFO - Created VN ctest-vn-51340065
2025-07-15 18:25:06,631 - DEBUG - VN ctest-vn-51340065 UUID is f00f5ff0-7b67-455c-8d23-5439a31b2cc7
2025-07-15 18:25:06,821 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98226418:ctest-vn-24718787, 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-98226418:ctest-vn-51340065, 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-07-15 18:25:07,297 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd5f072ea-faa6-463a-99d5-9e6c1f64c085', 'name': 'ctest-vn-24718787', 'tenant_id': '602133bbd8e545339cdf5bc29572d0c3', 'project_id': '602133bbd8e545339cdf5bc29572d0c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eeb58dd9-bcb1-423e-a84f-5f16b2a293ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98226418', 'ctest-vn-24718787'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98226418', 'ctest-policy-allow-all-08905031']], 'subnet_ipam': [{'subnet_cidr': '95.75.169.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-15 18:25:07,672 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f00f5ff0-7b67-455c-8d23-5439a31b2cc7', 'name': 'ctest-vn-51340065', 'tenant_id': '602133bbd8e545339cdf5bc29572d0c3', 'project_id': '602133bbd8e545339cdf5bc29572d0c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e09cc547-ed34-4b1e-bfde-12ab7abea206'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98226418', 'ctest-vn-51340065'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98226418', 'ctest-policy-allow-all-08905031']], 'subnet_ipam': [{'subnet_cidr': '37.199.220.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-15 18:25:07,903 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 18:25:08,242 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 18:25:08,322 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cdf34f58-f534-4462-822a-dddc33740cfe
2025-07-15 18:25:08,365 - DEBUG - Requesting: http://10.0.0.50:8082/project/602133bb-d8e5-4533-9cdf-5bc29572d0c3
2025-07-15 18:25:08,504 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d5f072ea-faa6-463a-99d5-9e6c1f64c085
2025-07-15 18:25:08,536 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d5f072ea-faa6-463a-99d5-9e6c1f64c085
2025-07-15 18:25:08,565 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/331b08dd-e329-4f43-85b2-f48ab4431fc1
2025-07-15 18:25:08,593 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/331b08dd-e329-4f43-85b2-f48ab4431fc1
2025-07-15 18:25:08,619 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8061d3b4-051e-4f4e-8f47-510a1c89d752
2025-07-15 18:25:08,642 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-15 18:25:08,642 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d5f072ea-faa6-463a-99d5-9e6c1f64c085
2025-07-15 18:25:08,675 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/331b08dd-e329-4f43-85b2-f48ab4431fc1
2025-07-15 18:25:08,723 - INFO - Verified VN network id 8 for VN d5f072ea-faa6-463a-99d5-9e6c1f64c085
2025-07-15 18:25:08,723 - INFO - Verifications in API Server for VN ctest-vn-24718787 passed
2025-07-15 18:25:08,723 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d5f072ea-faa6-463a-99d5-9e6c1f64c085
2025-07-15 18:25:08,753 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/331b08dd-e329-4f43-85b2-f48ab4431fc1
2025-07-15 18:25:08,771 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/331b08dd-e329-4f43-85b2-f48ab4431fc1
2025-07-15 18:25:08,791 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8061d3b4-051e-4f4e-8f47-510a1c89d752
2025-07-15 18:25:08,817 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98226418:ctest-vn-24718787', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98226418', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15415947878042322490', 'uuid-lslong': '11084940245062697093'}, 'enable': 'true', 'created': '2025-07-15T18:25:05', 'last-modified': '2025-07-15T18:25:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.571104'}
2025-07-15 18:25:08,828 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-15 18:25:08,828 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24718787 passed
2025-07-15 18:25:08,828 - DEBUG - ====Verifying policy data for ctest-vn-24718787 in API_Server ======
2025-07-15 18:25:08,828 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 18:25:08,838 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cdf34f58-f534-4462-822a-dddc33740cfe
2025-07-15 18:25:08,861 - DEBUG - Requesting: http://10.0.0.50:8082/project/602133bb-d8e5-4533-9cdf-5bc29572d0c3
2025-07-15 18:25:08,997 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d5f072ea-faa6-463a-99d5-9e6c1f64c085
2025-07-15 18:25:09,026 - DEBUG - ==>Verifying data for policy with id: 204e43b6-d359-498f-965f-2f5a169f8830, fqn: ['default-domain', 'ctest-TestBasicPolicy-98226418', 'ctest-policy-allow-all-08905031']
2025-07-15 18:25:09,026 - INFO - VN ctest-vn-24718787 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-15 18:25:09,026 - DEBUG - Verifying the vn in opserver
2025-07-15 18:25:09,026 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98226418:ctest-vn-24718787 virtual network link through opserver 10.0.0.50
2025-07-15 18:25:09,027 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-15 18:25:09,376 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-15 18:25:09,479 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98226418:ctest-vn-24718787', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98226418:ctest-vn-24718787?flat'}
2025-07-15 18:25:09,480 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98226418:ctest-vn-24718787 is found in opserver
2025-07-15 18:25:09,509 - DEBUG - Do not have enough data to verify VN in agent
2025-07-15 18:25:09,519 - DEBUG - VRF ids for VN ctest-vn-24718787: {}
2025-07-15 18:25:09,519 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 18:25:09,533 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cdf34f58-f534-4462-822a-dddc33740cfe
2025-07-15 18:25:09,568 - DEBUG - Requesting: http://10.0.0.50:8082/project/602133bb-d8e5-4533-9cdf-5bc29572d0c3
2025-07-15 18:25:09,699 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f00f5ff0-7b67-455c-8d23-5439a31b2cc7
2025-07-15 18:25:09,721 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f00f5ff0-7b67-455c-8d23-5439a31b2cc7
2025-07-15 18:25:09,739 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ac2151e-6355-4832-8dc4-f857c519e53b
2025-07-15 18:25:09,763 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ac2151e-6355-4832-8dc4-f857c519e53b
2025-07-15 18:25:09,777 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2ae2be14-3a65-4b16-9df1-a349b0633de4
2025-07-15 18:25:09,791 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-15 18:25:09,791 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f00f5ff0-7b67-455c-8d23-5439a31b2cc7
2025-07-15 18:25:09,811 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ac2151e-6355-4832-8dc4-f857c519e53b
2025-07-15 18:25:09,842 - INFO - Verified VN network id 9 for VN f00f5ff0-7b67-455c-8d23-5439a31b2cc7
2025-07-15 18:25:09,842 - INFO - Verifications in API Server for VN ctest-vn-51340065 passed
2025-07-15 18:25:09,843 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f00f5ff0-7b67-455c-8d23-5439a31b2cc7
2025-07-15 18:25:09,865 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ac2151e-6355-4832-8dc4-f857c519e53b
2025-07-15 18:25:09,880 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ac2151e-6355-4832-8dc4-f857c519e53b
2025-07-15 18:25:09,895 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2ae2be14-3a65-4b16-9df1-a349b0633de4
2025-07-15 18:25:09,951 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98226418:ctest-vn-51340065', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98226418', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17298150180220519772', 'uuid-lslong': '10170064990059048135'}, 'enable': 'true', 'created': '2025-07-15T18:25:06', 'last-modified': '2025-07-15T18:25:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.326485'}
2025-07-15 18:25:09,962 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-15 18:25:09,962 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51340065 passed
2025-07-15 18:25:09,963 - DEBUG - ====Verifying policy data for ctest-vn-51340065 in API_Server ======
2025-07-15 18:25:09,963 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 18:25:09,974 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cdf34f58-f534-4462-822a-dddc33740cfe
2025-07-15 18:25:10,002 - DEBUG - Requesting: http://10.0.0.50:8082/project/602133bb-d8e5-4533-9cdf-5bc29572d0c3
2025-07-15 18:25:10,115 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f00f5ff0-7b67-455c-8d23-5439a31b2cc7
2025-07-15 18:25:10,130 - DEBUG - ==>Verifying data for policy with id: 204e43b6-d359-498f-965f-2f5a169f8830, fqn: ['default-domain', 'ctest-TestBasicPolicy-98226418', 'ctest-policy-allow-all-08905031']
2025-07-15 18:25:10,130 - INFO - VN ctest-vn-51340065 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-15 18:25:10,130 - DEBUG - Verifying the vn in opserver
2025-07-15 18:25:10,130 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98226418:ctest-vn-51340065 virtual network link through opserver 10.0.0.50
2025-07-15 18:25:10,130 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-15 18:25:10,144 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98226418:ctest-vn-51340065', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98226418:ctest-vn-51340065?flat'}
2025-07-15 18:25:10,145 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98226418:ctest-vn-51340065 is found in opserver
2025-07-15 18:25:10,167 - DEBUG - Do not have enough data to verify VN in agent
2025-07-15 18:25:10,178 - DEBUG - VRF ids for VN ctest-vn-51340065: {}
2025-07-15 18:25:10,252 - DEBUG - Services list from nova: [