2025-07-25 02:28:33,266 - INFO - Domain Default found not creating
2025-07-25 02:28:33,426 - INFO - Project ctest-TestBasicPolicy-07939167 not found, creating it
2025-07-25 02:28:33,931 - INFO - Created Project:ctest-TestBasicPolicy-07939167, ID : d292057e-09fa-4d71-b8c7-7050e198d39a
2025-07-25 02:28:35,555 - INFO - ================================================================================
2025-07-25 02:28:35,555 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-25 02:28:35,555 - 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-25 02:28:35,817 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-25 02:28:35,817 - INFO - Initial checks done. Running the testcase now
2025-07-25 02:28:35,817 - INFO -
2025-07-25 02:28:36,431 - DEBUG - Response for create_network : {'network': {'id': 'ba24be8d-07e6-4340-93ab-06ce535c5466', 'name': 'ctest-vn-81022797', 'tenant_id': 'd292057e09fa4d71b8c77050e198d39a', 'project_id': 'd292057e09fa4d71b8c77050e198d39a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07939167', 'ctest-vn-81022797'], 'port_security_enabled': True, 'description': ''}}
2025-07-25 02:28:36,592 - DEBUG - Response for create_subnet : {'subnet': {'id': '39ef0da8-7626-48f3-99a9-08c669ce69b7', 'name': '', 'tenant_id': 'd292057e09fa4d71b8c77050e198d39a', 'network_id': 'ba24be8d-07e6-4340-93ab-06ce535c5466', 'ip_version': 4, 'cidr': '108.24.49.64/26', 'allocation_pools': [{'start': '108.24.49.66', 'end': '108.24.49.126'}], 'gateway_ip': '108.24.49.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.24.49.66', 'tags': [], 'project_id': 'd292057e09fa4d71b8c77050e198d39a'}}
2025-07-25 02:28:36,610 - INFO - Created VN ctest-vn-81022797
2025-07-25 02:28:36,666 - DEBUG - VN ctest-vn-81022797 UUID is ba24be8d-07e6-4340-93ab-06ce535c5466
2025-07-25 02:28:36,970 - DEBUG - Response for create_network : {'network': {'id': '29b60866-2538-4852-80c6-235e4b22e010', 'name': 'ctest-vn-93084000', 'tenant_id': 'd292057e09fa4d71b8c77050e198d39a', 'project_id': 'd292057e09fa4d71b8c77050e198d39a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07939167', 'ctest-vn-93084000'], 'port_security_enabled': True, 'description': ''}}
2025-07-25 02:28:37,151 - DEBUG - Response for create_subnet : {'subnet': {'id': '61f37e7e-3f5c-4c42-b5ff-d8d2635e87c8', 'name': '', 'tenant_id': 'd292057e09fa4d71b8c77050e198d39a', 'network_id': '29b60866-2538-4852-80c6-235e4b22e010', 'ip_version': 4, 'cidr': '71.165.126.64/26', 'allocation_pools': [{'start': '71.165.126.66', 'end': '71.165.126.126'}], 'gateway_ip': '71.165.126.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.165.126.66', 'tags': [], 'project_id': 'd292057e09fa4d71b8c77050e198d39a'}}
2025-07-25 02:28:37,170 - INFO - Created VN ctest-vn-93084000
2025-07-25 02:28:37,226 - DEBUG - VN ctest-vn-93084000 UUID is 29b60866-2538-4852-80c6-235e4b22e010
2025-07-25 02:28:37,346 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07939167:ctest-vn-81022797, 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-07939167:ctest-vn-93084000, 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-25 02:28:37,656 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba24be8d-07e6-4340-93ab-06ce535c5466', 'name': 'ctest-vn-81022797', 'tenant_id': 'd292057e09fa4d71b8c77050e198d39a', 'project_id': 'd292057e09fa4d71b8c77050e198d39a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39ef0da8-7626-48f3-99a9-08c669ce69b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07939167', 'ctest-vn-81022797'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07939167', 'ctest-policy-allow-all-69003756']], 'subnet_ipam': [{'subnet_cidr': '108.24.49.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-25 02:28:37,898 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '29b60866-2538-4852-80c6-235e4b22e010', 'name': 'ctest-vn-93084000', 'tenant_id': 'd292057e09fa4d71b8c77050e198d39a', 'project_id': 'd292057e09fa4d71b8c77050e198d39a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['61f37e7e-3f5c-4c42-b5ff-d8d2635e87c8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07939167', 'ctest-vn-93084000'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07939167', 'ctest-policy-allow-all-69003756']], 'subnet_ipam': [{'subnet_cidr': '71.165.126.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-25 02:28:38,050 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-25 02:28:38,384 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-25 02:28:38,412 - DEBUG - Requesting: http://10.0.0.254:8082/domain/40a01d10-0fe3-40f2-8054-46ddbb699d4b
2025-07-25 02:28:38,426 - DEBUG - Requesting: http://10.0.0.254:8082/project/d292057e-09fa-4d71-b8c7-7050e198d39a
2025-07-25 02:28:38,507 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ba24be8d-07e6-4340-93ab-06ce535c5466
2025-07-25 02:28:38,521 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ba24be8d-07e6-4340-93ab-06ce535c5466
2025-07-25 02:28:38,533 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fec165ab-fc49-4603-ad08-03f751bb5a99
2025-07-25 02:28:38,541 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fec165ab-fc49-4603-ad08-03f751bb5a99
2025-07-25 02:28:38,548 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c150c3b4-fa1f-466c-afec-19de365e1ae4
2025-07-25 02:28:38,556 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-25 02:28:38,556 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ba24be8d-07e6-4340-93ab-06ce535c5466
2025-07-25 02:28:38,568 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fec165ab-fc49-4603-ad08-03f751bb5a99
2025-07-25 02:28:38,586 - INFO - Verified VN network id 11 for VN ba24be8d-07e6-4340-93ab-06ce535c5466
2025-07-25 02:28:38,586 - INFO - Verifications in API Server for VN ctest-vn-81022797 passed
2025-07-25 02:28:38,586 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ba24be8d-07e6-4340-93ab-06ce535c5466
2025-07-25 02:28:38,601 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fec165ab-fc49-4603-ad08-03f751bb5a99
2025-07-25 02:28:38,608 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fec165ab-fc49-4603-ad08-03f751bb5a99
2025-07-25 02:28:38,617 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c150c3b4-fa1f-466c-afec-19de365e1ae4
2025-07-25 02:28:38,630 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07939167:ctest-vn-81022797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07939167', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13413055103148376896', 'uuid-lslong': '10640606027824518246'}, 'enable': 'true', 'created': '2025-07-25T02:28:36', 'last-modified': '2025-07-25T02:28:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999757'}
2025-07-25 02:28:38,638 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-25 02:28:38,638 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81022797 passed
2025-07-25 02:28:38,638 - DEBUG - ====Verifying policy data for ctest-vn-81022797 in API_Server ======
2025-07-25 02:28:38,638 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-25 02:28:38,645 - DEBUG - Requesting: http://10.0.0.254:8082/domain/40a01d10-0fe3-40f2-8054-46ddbb699d4b
2025-07-25 02:28:38,660 - DEBUG - Requesting: http://10.0.0.254:8082/project/d292057e-09fa-4d71-b8c7-7050e198d39a
2025-07-25 02:28:38,739 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ba24be8d-07e6-4340-93ab-06ce535c5466
2025-07-25 02:28:38,753 - DEBUG - ==>Verifying data for policy with id: db490b01-be2e-4265-a4e1-e52dd657ff1e, fqn: ['default-domain', 'ctest-TestBasicPolicy-07939167', 'ctest-policy-allow-all-69003756']
2025-07-25 02:28:38,753 - INFO - VN ctest-vn-81022797 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-25 02:28:38,753 - DEBUG - Verifying the vn in opserver
2025-07-25 02:28:38,754 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07939167:ctest-vn-81022797 virtual network link through opserver 10.0.0.254
2025-07-25 02:28:38,754 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-25 02:28:39,086 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-25 02:28:39,145 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07939167:ctest-vn-81022797', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07939167:ctest-vn-81022797?flat'}
2025-07-25 02:28:39,146 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07939167:ctest-vn-81022797 is found in opserver
2025-07-25 02:28:39,158 - DEBUG - Do not have enough data to verify VN in agent
2025-07-25 02:28:39,163 - DEBUG - VRF ids for VN ctest-vn-81022797: {}
2025-07-25 02:28:39,163 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-25 02:28:39,170 - DEBUG - Requesting: http://10.0.0.254:8082/domain/40a01d10-0fe3-40f2-8054-46ddbb699d4b
2025-07-25 02:28:39,183 - DEBUG - Requesting: http://10.0.0.254:8082/project/d292057e-09fa-4d71-b8c7-7050e198d39a
2025-07-25 02:28:39,273 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29b60866-2538-4852-80c6-235e4b22e010
2025-07-25 02:28:39,293 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29b60866-2538-4852-80c6-235e4b22e010
2025-07-25 02:28:39,304 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c0cd009a-fb1a-478a-bd47-72b30c229320
2025-07-25 02:28:39,312 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c0cd009a-fb1a-478a-bd47-72b30c229320
2025-07-25 02:28:39,320 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c6438d80-b7f1-48d9-928e-6633249ed1e3
2025-07-25 02:28:39,327 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-25 02:28:39,328 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29b60866-2538-4852-80c6-235e4b22e010
2025-07-25 02:28:39,338 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c0cd009a-fb1a-478a-bd47-72b30c229320
2025-07-25 02:28:39,355 - INFO - Verified VN network id 12 for VN 29b60866-2538-4852-80c6-235e4b22e010
2025-07-25 02:28:39,355 - INFO - Verifications in API Server for VN ctest-vn-93084000 passed
2025-07-25 02:28:39,355 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29b60866-2538-4852-80c6-235e4b22e010
2025-07-25 02:28:39,370 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c0cd009a-fb1a-478a-bd47-72b30c229320
2025-07-25 02:28:39,379 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c0cd009a-fb1a-478a-bd47-72b30c229320
2025-07-25 02:28:39,388 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c6438d80-b7f1-48d9-928e-6633249ed1e3
2025-07-25 02:28:39,403 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07939167:ctest-vn-93084000', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07939167', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3005599036120516690', 'uuid-lslong': '9279142970137960464'}, 'enable': 'true', 'created': '2025-07-25T02:28:36', 'last-modified': '2025-07-25T02:28:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530776'}
2025-07-25 02:28:39,410 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-25 02:28:39,411 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93084000 passed
2025-07-25 02:28:39,411 - DEBUG - ====Verifying policy data for ctest-vn-93084000 in API_Server ======
2025-07-25 02:28:39,411 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-25 02:28:39,418 - DEBUG - Requesting: http://10.0.0.254:8082/domain/40a01d10-0fe3-40f2-8054-46ddbb699d4b
2025-07-25 02:28:39,431 - DEBUG - Requesting: http://10.0.0.254:8082/project/d292057e-09fa-4d71-b8c7-7050e198d39a
2025-07-25 02:28:39,509 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29b60866-2538-4852-80c6-235e4b22e010
2025-07-25 02:28:39,521 - DEBUG - ==>Verifying data for policy with id: db490b01-be2e-4265-a4e1-e52dd657ff1e, fqn: ['default-domain', 'ctest-TestBasicPolicy-07939167', 'ctest-policy-allow-all-69003756']
2025-07-25 02:28:39,521 - INFO - VN ctest-vn-93084000 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-25 02:28:39,521 - DEBUG - Verifying the vn in opserver
2025-07-25 02:28:39,521 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07939167:ctest-vn-93084000 virtual network link through opserver 10.0.0.254
2025-07-25 02:28:39,521 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-25 02:28:39,536 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07939167:ctest-vn-93084000', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07939167:ctest-vn-93084000?flat'}
2025-07-25 02:28:39,536 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07939167:ctest-vn-93084000 is found in opserver
2025-07-25 02:28:39,549 - DEBUG - Do not have enough data to verify VN in agent
2025-07-25 02:28:39,556 - DEBUG - VRF ids for VN ctest-vn-93084000: {}
2025-07-25 02:28:39,621 - DEBUG - Services list from nova: [