2025-08-26 08:01:53,841 - INFO - Domain Default found not creating
2025-08-26 08:01:53,985 - INFO - Project ctest-TestBasicPolicy-94044704 not found, creating it
2025-08-26 08:01:54,468 - INFO - Created Project:ctest-TestBasicPolicy-94044704, ID : 4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce
2025-08-26 08:01:56,082 - INFO - ================================================================================
2025-08-26 08:01:56,082 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-26 08:01:56,082 - 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-26 08:01:56,340 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-26 08:01:56,340 - INFO - Initial checks done. Running the testcase now
2025-08-26 08:01:56,340 - INFO -
2025-08-26 08:01:56,936 - DEBUG - Response for create_network : {'network': {'id': 'f09f92ff-1381-41f9-80f5-4f0c7ab06755', 'name': 'ctest-vn-75876029', 'tenant_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'project_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-vn-75876029'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 08:01:57,113 - DEBUG - Response for create_subnet : {'subnet': {'id': '06157300-9b3b-4334-9d10-4cb66cb31b6c', 'name': '', 'tenant_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'network_id': 'f09f92ff-1381-41f9-80f5-4f0c7ab06755', 'ip_version': 4, 'cidr': '211.162.209.192/26', 'allocation_pools': [{'start': '211.162.209.194', 'end': '211.162.209.254'}], 'gateway_ip': '211.162.209.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.162.209.194', 'tags': [], 'project_id': '4b6eeeda49b04ea4b7ccd531a4e364ce'}}
2025-08-26 08:01:57,134 - INFO - Created VN ctest-vn-75876029
2025-08-26 08:01:57,187 - DEBUG - VN ctest-vn-75876029 UUID is f09f92ff-1381-41f9-80f5-4f0c7ab06755
2025-08-26 08:01:57,506 - DEBUG - Response for create_network : {'network': {'id': 'aadd8b7b-8922-4699-9ae6-24371d766aeb', 'name': 'ctest-vn-82117403', 'tenant_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'project_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-vn-82117403'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 08:01:57,693 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b06b2d02-19de-4302-92e6-afed8c6d0559', 'name': '', 'tenant_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'network_id': 'aadd8b7b-8922-4699-9ae6-24371d766aeb', 'ip_version': 4, 'cidr': '132.80.38.128/26', 'allocation_pools': [{'start': '132.80.38.130', 'end': '132.80.38.190'}], 'gateway_ip': '132.80.38.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.80.38.130', 'tags': [], 'project_id': '4b6eeeda49b04ea4b7ccd531a4e364ce'}}
2025-08-26 08:01:57,730 - INFO - Created VN ctest-vn-82117403
2025-08-26 08:01:57,787 - DEBUG - VN ctest-vn-82117403 UUID is aadd8b7b-8922-4699-9ae6-24371d766aeb
2025-08-26 08:01:57,900 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029, 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-94044704:ctest-vn-82117403, 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-26 08:01:58,216 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f09f92ff-1381-41f9-80f5-4f0c7ab06755', 'name': 'ctest-vn-75876029', 'tenant_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'project_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06157300-9b3b-4334-9d10-4cb66cb31b6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-vn-75876029'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-policy-allow-all-10908357']], 'subnet_ipam': [{'subnet_cidr': '211.162.209.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 08:01:58,471 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aadd8b7b-8922-4699-9ae6-24371d766aeb', 'name': 'ctest-vn-82117403', 'tenant_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'project_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b06b2d02-19de-4302-92e6-afed8c6d0559'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-vn-82117403'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-policy-allow-all-10908357']], 'subnet_ipam': [{'subnet_cidr': '132.80.38.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 08:01:58,647 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-26 08:01:58,983 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-26 08:01:59,011 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6
2025-08-26 08:01:59,024 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce
2025-08-26 08:01:59,101 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f09f92ff-1381-41f9-80f5-4f0c7ab06755
2025-08-26 08:01:59,112 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f09f92ff-1381-41f9-80f5-4f0c7ab06755
2025-08-26 08:01:59,122 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8e8c828-ff1d-4727-b599-897efe47265d
2025-08-26 08:01:59,130 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8e8c828-ff1d-4727-b599-897efe47265d
2025-08-26 08:01:59,136 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/19e56d9b-c6bb-4460-93ad-ee4a0836084d
2025-08-26 08:01:59,143 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 08:01:59,143 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f09f92ff-1381-41f9-80f5-4f0c7ab06755
2025-08-26 08:01:59,153 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8e8c828-ff1d-4727-b599-897efe47265d
2025-08-26 08:01:59,167 - INFO - Verified VN network id 9 for VN f09f92ff-1381-41f9-80f5-4f0c7ab06755
2025-08-26 08:01:59,167 - INFO - Verifications in API Server for VN ctest-vn-75876029 passed
2025-08-26 08:01:59,168 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f09f92ff-1381-41f9-80f5-4f0c7ab06755
2025-08-26 08:01:59,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8e8c828-ff1d-4727-b599-897efe47265d
2025-08-26 08:01:59,185 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8e8c828-ff1d-4727-b599-897efe47265d
2025-08-26 08:01:59,193 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/19e56d9b-c6bb-4460-93ad-ee4a0836084d
2025-08-26 08:01:59,206 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94044704', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17338738714641252857', 'uuid-lslong': '9292420321165469525'}, 'enable': 'true', 'created': '2025-08-26T08:01:56', 'last-modified': '2025-08-26T08:01:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017232'}
2025-08-26 08:01:59,213 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 08:01:59,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75876029 passed
2025-08-26 08:01:59,213 - DEBUG - ====Verifying policy data for ctest-vn-75876029 in API_Server ======
2025-08-26 08:01:59,214 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-26 08:01:59,219 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6
2025-08-26 08:01:59,232 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce
2025-08-26 08:01:59,309 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f09f92ff-1381-41f9-80f5-4f0c7ab06755
2025-08-26 08:01:59,320 - DEBUG - ==>Verifying data for policy with id: bf726f7c-8d45-450d-a5c0-fb4c4e492b47, fqn: ['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-policy-allow-all-10908357']
2025-08-26 08:01:59,320 - INFO - VN ctest-vn-75876029 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 08:01:59,321 - DEBUG - Verifying the vn in opserver
2025-08-26 08:01:59,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029 virtual network link through opserver 10.0.0.38
2025-08-26 08:01:59,321 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-26 08:01:59,655 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-26 08:01:59,714 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029?flat'}
2025-08-26 08:01:59,714 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029 is found in opserver
2025-08-26 08:01:59,727 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 08:01:59,733 - DEBUG - VRF ids for VN ctest-vn-75876029: {}
2025-08-26 08:01:59,733 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-26 08:01:59,739 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6
2025-08-26 08:01:59,758 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce
2025-08-26 08:01:59,848 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aadd8b7b-8922-4699-9ae6-24371d766aeb
2025-08-26 08:01:59,862 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aadd8b7b-8922-4699-9ae6-24371d766aeb
2025-08-26 08:01:59,872 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aee738e0-32f0-4c9f-bee9-448b890c837c
2025-08-26 08:01:59,881 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aee738e0-32f0-4c9f-bee9-448b890c837c
2025-08-26 08:01:59,889 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ced45f21-8211-43d9-9888-3725461fe52d
2025-08-26 08:01:59,899 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 08:01:59,899 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aadd8b7b-8922-4699-9ae6-24371d766aeb
2025-08-26 08:01:59,913 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aee738e0-32f0-4c9f-bee9-448b890c837c
2025-08-26 08:01:59,930 - INFO - Verified VN network id 10 for VN aadd8b7b-8922-4699-9ae6-24371d766aeb
2025-08-26 08:01:59,930 - INFO - Verifications in API Server for VN ctest-vn-82117403 passed
2025-08-26 08:01:59,930 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aadd8b7b-8922-4699-9ae6-24371d766aeb
2025-08-26 08:01:59,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aee738e0-32f0-4c9f-bee9-448b890c837c
2025-08-26 08:01:59,954 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aee738e0-32f0-4c9f-bee9-448b890c837c
2025-08-26 08:01:59,961 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ced45f21-8211-43d9-9888-3725461fe52d
2025-08-26 08:01:59,974 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-82117403', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94044704', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12312150318998767257', 'uuid-lslong': '11161648545620454123'}, 'enable': 'true', 'created': '2025-08-26T08:01:57', 'last-modified': '2025-08-26T08:01:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.534969'}
2025-08-26 08:01:59,981 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 08:01:59,981 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82117403 passed
2025-08-26 08:01:59,982 - DEBUG - ====Verifying policy data for ctest-vn-82117403 in API_Server ======
2025-08-26 08:01:59,982 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-26 08:01:59,987 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6
2025-08-26 08:01:59,999 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce
2025-08-26 08:02:00,074 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aadd8b7b-8922-4699-9ae6-24371d766aeb
2025-08-26 08:02:00,085 - DEBUG - ==>Verifying data for policy with id: bf726f7c-8d45-450d-a5c0-fb4c4e492b47, fqn: ['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-policy-allow-all-10908357']
2025-08-26 08:02:00,085 - INFO - VN ctest-vn-82117403 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 08:02:00,085 - DEBUG - Verifying the vn in opserver
2025-08-26 08:02:00,085 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-82117403 virtual network link through opserver 10.0.0.38
2025-08-26 08:02:00,085 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-26 08:02:00,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-82117403', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-82117403?flat'}
2025-08-26 08:02:00,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-82117403 is found in opserver
2025-08-26 08:02:00,108 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 08:02:00,114 - DEBUG - VRF ids for VN ctest-vn-82117403: {}
2025-08-26 08:02:00,182 - DEBUG - Services list from nova: [