2025-08-18 18:00:03,141 - INFO - Domain Default found not creating
2025-08-18 18:00:03,260 - INFO - Project ctest-TestBasicPolicy-17868094 not found, creating it
2025-08-18 18:00:03,753 - INFO - Created Project:ctest-TestBasicPolicy-17868094, ID : da3f7ee0-84bc-4ccf-b428-35d1dc692e14
2025-08-18 18:00:05,117 - INFO - ================================================================================
2025-08-18 18:00:05,117 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-18 18:00:05,117 - 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-08-18 18:00:05,375 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-18 18:00:05,375 - INFO - Initial checks done. Running the testcase now
2025-08-18 18:00:05,375 - INFO -
2025-08-18 18:00:05,896 - DEBUG - Response for create_network : {'network': {'id': '0b5676d6-b9a0-4305-9485-87d0942f22dd', 'name': 'ctest-vn-20175370', 'tenant_id': 'da3f7ee084bc4ccfb42835d1dc692e14', 'project_id': 'da3f7ee084bc4ccfb42835d1dc692e14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17868094', 'ctest-vn-20175370'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 18:00:06,065 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee0bf40a-1b48-4229-a349-cfc9533482ed', 'name': '', 'tenant_id': 'da3f7ee084bc4ccfb42835d1dc692e14', 'network_id': '0b5676d6-b9a0-4305-9485-87d0942f22dd', 'ip_version': 4, 'cidr': '137.136.133.128/26', 'allocation_pools': [{'start': '137.136.133.130', 'end': '137.136.133.190'}], 'gateway_ip': '137.136.133.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.136.133.130', 'tags': [], 'project_id': 'da3f7ee084bc4ccfb42835d1dc692e14'}}
2025-08-18 18:00:06,081 - INFO - Created VN ctest-vn-20175370
2025-08-18 18:00:06,137 - DEBUG - VN ctest-vn-20175370 UUID is 0b5676d6-b9a0-4305-9485-87d0942f22dd
2025-08-18 18:00:06,440 - DEBUG - Response for create_network : {'network': {'id': 'b8b470b8-14be-4e88-80c8-80047abb568e', 'name': 'ctest-vn-36525881', 'tenant_id': 'da3f7ee084bc4ccfb42835d1dc692e14', 'project_id': 'da3f7ee084bc4ccfb42835d1dc692e14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17868094', 'ctest-vn-36525881'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 18:00:06,595 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a66577f-6717-4d97-9124-adc573d1d42b', 'name': '', 'tenant_id': 'da3f7ee084bc4ccfb42835d1dc692e14', 'network_id': 'b8b470b8-14be-4e88-80c8-80047abb568e', 'ip_version': 4, 'cidr': '77.237.160.0/26', 'allocation_pools': [{'start': '77.237.160.2', 'end': '77.237.160.62'}], 'gateway_ip': '77.237.160.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.237.160.2', 'tags': [], 'project_id': 'da3f7ee084bc4ccfb42835d1dc692e14'}}
2025-08-18 18:00:06,610 - INFO - Created VN ctest-vn-36525881
2025-08-18 18:00:06,661 - DEBUG - VN ctest-vn-36525881 UUID is b8b470b8-14be-4e88-80c8-80047abb568e
2025-08-18 18:00:06,805 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17868094:ctest-vn-20175370, 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-17868094:ctest-vn-36525881, 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-08-18 18:00:07,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b5676d6-b9a0-4305-9485-87d0942f22dd', 'name': 'ctest-vn-20175370', 'tenant_id': 'da3f7ee084bc4ccfb42835d1dc692e14', 'project_id': 'da3f7ee084bc4ccfb42835d1dc692e14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee0bf40a-1b48-4229-a349-cfc9533482ed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17868094', 'ctest-vn-20175370'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17868094', 'ctest-policy-allow-all-46173558']], 'subnet_ipam': [{'subnet_cidr': '137.136.133.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 18:00:07,326 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8b470b8-14be-4e88-80c8-80047abb568e', 'name': 'ctest-vn-36525881', 'tenant_id': 'da3f7ee084bc4ccfb42835d1dc692e14', 'project_id': 'da3f7ee084bc4ccfb42835d1dc692e14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a66577f-6717-4d97-9124-adc573d1d42b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17868094', 'ctest-vn-36525881'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17868094', 'ctest-policy-allow-all-46173558']], 'subnet_ipam': [{'subnet_cidr': '77.237.160.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 18:00:07,477 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 18:00:07,776 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 18:00:07,809 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f344721-acc4-4296-a324-03d3dc4be7d1
2025-08-18 18:00:07,821 - DEBUG - Requesting: http://10.0.0.254:8082/project/da3f7ee0-84bc-4ccf-b428-35d1dc692e14
2025-08-18 18:00:07,894 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0b5676d6-b9a0-4305-9485-87d0942f22dd
2025-08-18 18:00:07,905 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0b5676d6-b9a0-4305-9485-87d0942f22dd
2025-08-18 18:00:07,913 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/188367ef-e777-40ea-8def-abcce1da7802
2025-08-18 18:00:07,919 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/188367ef-e777-40ea-8def-abcce1da7802
2025-08-18 18:00:07,925 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d4a72d3a-85bf-4987-b14f-b8385e647cc1
2025-08-18 18:00:07,931 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 18:00:07,931 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0b5676d6-b9a0-4305-9485-87d0942f22dd
2025-08-18 18:00:07,939 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/188367ef-e777-40ea-8def-abcce1da7802
2025-08-18 18:00:07,951 - INFO - Verified VN network id 11 for VN 0b5676d6-b9a0-4305-9485-87d0942f22dd
2025-08-18 18:00:07,951 - INFO - Verifications in API Server for VN ctest-vn-20175370 passed
2025-08-18 18:00:07,952 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0b5676d6-b9a0-4305-9485-87d0942f22dd
2025-08-18 18:00:07,960 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/188367ef-e777-40ea-8def-abcce1da7802
2025-08-18 18:00:07,966 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/188367ef-e777-40ea-8def-abcce1da7802
2025-08-18 18:00:07,972 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d4a72d3a-85bf-4987-b14f-b8385e647cc1
2025-08-18 18:00:07,983 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17868094:ctest-vn-20175370', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17868094', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '816971047023690501', 'uuid-lslong': '10702109419424916189'}, 'enable': 'true', 'created': '2025-08-18T18:00:05', 'last-modified': '2025-08-18T18:00:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.917046'}
2025-08-18 18:00:07,989 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 18:00:07,990 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20175370 passed
2025-08-18 18:00:07,990 - DEBUG - ====Verifying policy data for ctest-vn-20175370 in API_Server ======
2025-08-18 18:00:07,990 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 18:00:07,995 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f344721-acc4-4296-a324-03d3dc4be7d1
2025-08-18 18:00:08,006 - DEBUG - Requesting: http://10.0.0.254:8082/project/da3f7ee0-84bc-4ccf-b428-35d1dc692e14
2025-08-18 18:00:08,076 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0b5676d6-b9a0-4305-9485-87d0942f22dd
2025-08-18 18:00:08,085 - DEBUG - ==>Verifying data for policy with id: 7a0b96ff-a584-4ff6-b01c-8f12c7ba1095, fqn: ['default-domain', 'ctest-TestBasicPolicy-17868094', 'ctest-policy-allow-all-46173558']
2025-08-18 18:00:08,085 - INFO - VN ctest-vn-20175370 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 18:00:08,085 - DEBUG - Verifying the vn in opserver
2025-08-18 18:00:08,085 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17868094:ctest-vn-20175370 virtual network link through opserver 10.0.0.254
2025-08-18 18:00:08,085 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-18 18:00:08,372 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-18 18:00:08,426 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17868094:ctest-vn-20175370', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17868094:ctest-vn-20175370?flat'}
2025-08-18 18:00:08,426 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17868094:ctest-vn-20175370 is found in opserver
2025-08-18 18:00:08,436 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 18:00:08,441 - DEBUG - VRF ids for VN ctest-vn-20175370: {}
2025-08-18 18:00:08,441 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 18:00:08,446 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f344721-acc4-4296-a324-03d3dc4be7d1
2025-08-18 18:00:08,456 - DEBUG - Requesting: http://10.0.0.254:8082/project/da3f7ee0-84bc-4ccf-b428-35d1dc692e14
2025-08-18 18:00:08,527 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8b470b8-14be-4e88-80c8-80047abb568e
2025-08-18 18:00:08,538 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8b470b8-14be-4e88-80c8-80047abb568e
2025-08-18 18:00:08,546 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9dc3651f-fa68-4c0d-a4ec-85535f87370c
2025-08-18 18:00:08,552 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9dc3651f-fa68-4c0d-a4ec-85535f87370c
2025-08-18 18:00:08,558 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/28da1390-bb24-444d-b0d1-6553bf8b2f32
2025-08-18 18:00:08,564 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 18:00:08,564 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8b470b8-14be-4e88-80c8-80047abb568e
2025-08-18 18:00:08,572 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9dc3651f-fa68-4c0d-a4ec-85535f87370c
2025-08-18 18:00:08,583 - INFO - Verified VN network id 12 for VN b8b470b8-14be-4e88-80c8-80047abb568e
2025-08-18 18:00:08,583 - INFO - Verifications in API Server for VN ctest-vn-36525881 passed
2025-08-18 18:00:08,583 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8b470b8-14be-4e88-80c8-80047abb568e
2025-08-18 18:00:08,592 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9dc3651f-fa68-4c0d-a4ec-85535f87370c
2025-08-18 18:00:08,598 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9dc3651f-fa68-4c0d-a4ec-85535f87370c
2025-08-18 18:00:08,603 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/28da1390-bb24-444d-b0d1-6553bf8b2f32
2025-08-18 18:00:08,614 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17868094:ctest-vn-36525881', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17868094', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13309386734710967944', 'uuid-lslong': '9279807788924229262'}, 'enable': 'true', 'created': '2025-08-18T18:00:06', 'last-modified': '2025-08-18T18:00:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.314362'}
2025-08-18 18:00:08,619 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 18:00:08,619 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36525881 passed
2025-08-18 18:00:08,620 - DEBUG - ====Verifying policy data for ctest-vn-36525881 in API_Server ======
2025-08-18 18:00:08,620 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 18:00:08,625 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f344721-acc4-4296-a324-03d3dc4be7d1
2025-08-18 18:00:08,636 - DEBUG - Requesting: http://10.0.0.254:8082/project/da3f7ee0-84bc-4ccf-b428-35d1dc692e14
2025-08-18 18:00:08,707 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8b470b8-14be-4e88-80c8-80047abb568e
2025-08-18 18:00:08,717 - DEBUG - ==>Verifying data for policy with id: 7a0b96ff-a584-4ff6-b01c-8f12c7ba1095, fqn: ['default-domain', 'ctest-TestBasicPolicy-17868094', 'ctest-policy-allow-all-46173558']
2025-08-18 18:00:08,717 - INFO - VN ctest-vn-36525881 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 18:00:08,717 - DEBUG - Verifying the vn in opserver
2025-08-18 18:00:08,717 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17868094:ctest-vn-36525881 virtual network link through opserver 10.0.0.254
2025-08-18 18:00:08,717 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-18 18:00:08,726 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17868094:ctest-vn-36525881', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17868094:ctest-vn-36525881?flat'}
2025-08-18 18:00:08,726 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17868094:ctest-vn-36525881 is found in opserver
2025-08-18 18:00:08,736 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 18:00:08,740 - DEBUG - VRF ids for VN ctest-vn-36525881: {}
2025-08-18 18:00:08,789 - DEBUG - Services list from nova: [