2025-08-05 20:01:00,242 - INFO - Domain Default found not creating
2025-08-05 20:01:00,572 - INFO - Project ctest-TestBasicPolicy-80579303 not found, creating it
2025-08-05 20:01:01,459 - INFO - Created Project:ctest-TestBasicPolicy-80579303, ID : f09e357b-4511-4b77-9bba-665134ccd0ff
2025-08-05 20:01:03,843 - INFO - ================================================================================
2025-08-05 20:01:03,844 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-05 20:01:03,844 - 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-05 20:01:04,154 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with
2025-08-05 20:01:04,154 - INFO - Initial checks done. Running the testcase now
2025-08-05 20:01:04,154 - INFO -
2025-08-05 20:01:04,908 - DEBUG - Response for create_network : {'network': {'id': '4113230f-01da-4302-8112-6b85bbda6531', 'name': 'ctest-vn-76729773', 'tenant_id': 'f09e357b45114b779bba665134ccd0ff', 'project_id': 'f09e357b45114b779bba665134ccd0ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80579303', 'ctest-vn-76729773'], 'port_security_enabled': True, 'description': ''}}
2025-08-05 20:01:05,197 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c11c5c8a-c0fc-406c-b3cc-5df45ea35677', 'name': '', 'tenant_id': 'f09e357b45114b779bba665134ccd0ff', 'network_id': '4113230f-01da-4302-8112-6b85bbda6531', 'ip_version': 4, 'cidr': '202.40.56.64/26', 'allocation_pools': [{'start': '202.40.56.66', 'end': '202.40.56.126'}], 'gateway_ip': '202.40.56.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.40.56.66', 'tags': [], 'project_id': 'f09e357b45114b779bba665134ccd0ff'}}
2025-08-05 20:01:05,226 - INFO - Created VN ctest-vn-76729773
2025-08-05 20:01:05,289 - DEBUG - VN ctest-vn-76729773 UUID is 4113230f-01da-4302-8112-6b85bbda6531
2025-08-05 20:01:05,901 - DEBUG - Response for create_network : {'network': {'id': 'c72b6ff9-9e25-4ade-a868-c89579b0acf1', 'name': 'ctest-vn-67354276', 'tenant_id': 'f09e357b45114b779bba665134ccd0ff', 'project_id': 'f09e357b45114b779bba665134ccd0ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80579303', 'ctest-vn-67354276'], 'port_security_enabled': True, 'description': ''}}
2025-08-05 20:01:06,159 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa9a518b-5df3-4910-ba37-d988924bedfc', 'name': '', 'tenant_id': 'f09e357b45114b779bba665134ccd0ff', 'network_id': 'c72b6ff9-9e25-4ade-a868-c89579b0acf1', 'ip_version': 4, 'cidr': '24.101.43.64/26', 'allocation_pools': [{'start': '24.101.43.66', 'end': '24.101.43.126'}], 'gateway_ip': '24.101.43.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.101.43.66', 'tags': [], 'project_id': 'f09e357b45114b779bba665134ccd0ff'}}
2025-08-05 20:01:06,179 - INFO - Created VN ctest-vn-67354276
2025-08-05 20:01:06,236 - DEBUG - VN ctest-vn-67354276 UUID is c72b6ff9-9e25-4ade-a868-c89579b0acf1
2025-08-05 20:01:06,444 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80579303:ctest-vn-76729773, 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-80579303:ctest-vn-67354276, 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-05 20:01:06,891 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4113230f-01da-4302-8112-6b85bbda6531', 'name': 'ctest-vn-76729773', 'tenant_id': 'f09e357b45114b779bba665134ccd0ff', 'project_id': 'f09e357b45114b779bba665134ccd0ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c11c5c8a-c0fc-406c-b3cc-5df45ea35677'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80579303', 'ctest-vn-76729773'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80579303', 'ctest-policy-allow-all-26840265']], 'subnet_ipam': [{'subnet_cidr': '202.40.56.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-05 20:01:07,364 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c72b6ff9-9e25-4ade-a868-c89579b0acf1', 'name': 'ctest-vn-67354276', 'tenant_id': 'f09e357b45114b779bba665134ccd0ff', 'project_id': 'f09e357b45114b779bba665134ccd0ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa9a518b-5df3-4910-ba37-d988924bedfc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80579303', 'ctest-vn-67354276'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80579303', 'ctest-policy-allow-all-26840265']], 'subnet_ipam': [{'subnet_cidr': '24.101.43.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-05 20:01:07,557 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-05 20:01:07,909 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-05 20:01:07,963 - DEBUG - Requesting: http://10.0.0.49:8082/domain/7825e73d-de76-48a6-8f19-0d33116c8a06
2025-08-05 20:01:07,991 - DEBUG - Requesting: http://10.0.0.49:8082/project/f09e357b-4511-4b77-9bba-665134ccd0ff
2025-08-05 20:01:08,127 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4113230f-01da-4302-8112-6b85bbda6531
2025-08-05 20:01:08,163 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4113230f-01da-4302-8112-6b85bbda6531
2025-08-05 20:01:08,195 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/802c5a6a-ce75-4203-b285-eee265865440
2025-08-05 20:01:08,220 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/802c5a6a-ce75-4203-b285-eee265865440
2025-08-05 20:01:08,243 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/4d8903dc-7946-43ca-9e9c-a6fc728ccffb
2025-08-05 20:01:08,266 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-05 20:01:08,267 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4113230f-01da-4302-8112-6b85bbda6531
2025-08-05 20:01:08,300 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/802c5a6a-ce75-4203-b285-eee265865440
2025-08-05 20:01:08,348 - INFO - Verified VN network id 11 for VN 4113230f-01da-4302-8112-6b85bbda6531
2025-08-05 20:01:08,348 - INFO - Verifications in API Server for VN ctest-vn-76729773 passed
2025-08-05 20:01:08,348 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4113230f-01da-4302-8112-6b85bbda6531
2025-08-05 20:01:08,381 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/802c5a6a-ce75-4203-b285-eee265865440
2025-08-05 20:01:08,405 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/802c5a6a-ce75-4203-b285-eee265865440
2025-08-05 20:01:08,428 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/4d8903dc-7946-43ca-9e9c-a6fc728ccffb
2025-08-05 20:01:08,468 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80579303:ctest-vn-76729773', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80579303', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4689130184385381122', 'uuid-lslong': '9300614402599970097'}, 'enable': 'true', 'created': '2025-08-05T20:01:04', 'last-modified': '2025-08-05T20:01:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.609353'}
2025-08-05 20:01:08,490 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-05 20:01:08,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76729773 passed
2025-08-05 20:01:08,491 - DEBUG - ====Verifying policy data for ctest-vn-76729773 in API_Server ======
2025-08-05 20:01:08,491 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-05 20:01:08,509 - DEBUG - Requesting: http://10.0.0.49:8082/domain/7825e73d-de76-48a6-8f19-0d33116c8a06
2025-08-05 20:01:08,552 - DEBUG - Requesting: http://10.0.0.49:8082/project/f09e357b-4511-4b77-9bba-665134ccd0ff
2025-08-05 20:01:08,648 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4113230f-01da-4302-8112-6b85bbda6531
2025-08-05 20:01:08,677 - DEBUG - ==>Verifying data for policy with id: 7a3b9b64-38b0-4ef7-991c-23a61f9ccf1b, fqn: ['default-domain', 'ctest-TestBasicPolicy-80579303', 'ctest-policy-allow-all-26840265']
2025-08-05 20:01:08,677 - INFO - VN ctest-vn-76729773 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-05 20:01:08,677 - DEBUG - Verifying the vn in opserver
2025-08-05 20:01:08,677 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80579303:ctest-vn-76729773 virtual network link through opserver 10.0.0.49
2025-08-05 20:01:08,678 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-05 20:01:09,032 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-05 20:01:09,161 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80579303:ctest-vn-76729773', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80579303:ctest-vn-76729773?flat'}
2025-08-05 20:01:09,161 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80579303:ctest-vn-76729773 is found in opserver
2025-08-05 20:01:09,195 - DEBUG - Do not have enough data to verify VN in agent
2025-08-05 20:01:09,211 - DEBUG - VRF ids for VN ctest-vn-76729773: {}
2025-08-05 20:01:09,211 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-05 20:01:09,228 - DEBUG - Requesting: http://10.0.0.49:8082/domain/7825e73d-de76-48a6-8f19-0d33116c8a06
2025-08-05 20:01:09,264 - DEBUG - Requesting: http://10.0.0.49:8082/project/f09e357b-4511-4b77-9bba-665134ccd0ff
2025-08-05 20:01:09,396 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/c72b6ff9-9e25-4ade-a868-c89579b0acf1
2025-08-05 20:01:09,433 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/c72b6ff9-9e25-4ade-a868-c89579b0acf1
2025-08-05 20:01:09,467 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/348f4ddd-21af-4fe7-afbd-0f094d1ee378
2025-08-05 20:01:09,494 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/348f4ddd-21af-4fe7-afbd-0f094d1ee378
2025-08-05 20:01:09,518 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1cc252c7-3abc-430b-8971-491af2eb7050
2025-08-05 20:01:09,542 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-05 20:01:09,542 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/c72b6ff9-9e25-4ade-a868-c89579b0acf1
2025-08-05 20:01:09,578 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/348f4ddd-21af-4fe7-afbd-0f094d1ee378
2025-08-05 20:01:09,630 - INFO - Verified VN network id 12 for VN c72b6ff9-9e25-4ade-a868-c89579b0acf1
2025-08-05 20:01:09,630 - INFO - Verifications in API Server for VN ctest-vn-67354276 passed
2025-08-05 20:01:09,631 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/c72b6ff9-9e25-4ade-a868-c89579b0acf1
2025-08-05 20:01:09,667 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/348f4ddd-21af-4fe7-afbd-0f094d1ee378
2025-08-05 20:01:09,690 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/348f4ddd-21af-4fe7-afbd-0f094d1ee378
2025-08-05 20:01:09,713 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1cc252c7-3abc-430b-8971-491af2eb7050
2025-08-05 20:01:09,754 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80579303:ctest-vn-67354276', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80579303', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14351687755437001438', 'uuid-lslong': '12135169740267105521'}, 'enable': 'true', 'created': '2025-08-05T20:01:05', 'last-modified': '2025-08-05T20:01:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.514413'}
2025-08-05 20:01:09,776 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-05 20:01:09,776 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67354276 passed
2025-08-05 20:01:09,777 - DEBUG - ====Verifying policy data for ctest-vn-67354276 in API_Server ======
2025-08-05 20:01:09,777 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-05 20:01:09,793 - DEBUG - Requesting: http://10.0.0.49:8082/domain/7825e73d-de76-48a6-8f19-0d33116c8a06
2025-08-05 20:01:09,831 - DEBUG - Requesting: http://10.0.0.49:8082/project/f09e357b-4511-4b77-9bba-665134ccd0ff
2025-08-05 20:01:09,971 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/c72b6ff9-9e25-4ade-a868-c89579b0acf1
2025-08-05 20:01:10,003 - DEBUG - ==>Verifying data for policy with id: 7a3b9b64-38b0-4ef7-991c-23a61f9ccf1b, fqn: ['default-domain', 'ctest-TestBasicPolicy-80579303', 'ctest-policy-allow-all-26840265']
2025-08-05 20:01:10,003 - INFO - VN ctest-vn-67354276 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-05 20:01:10,003 - DEBUG - Verifying the vn in opserver
2025-08-05 20:01:10,004 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80579303:ctest-vn-67354276 virtual network link through opserver 10.0.0.49
2025-08-05 20:01:10,004 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-05 20:01:10,036 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80579303:ctest-vn-67354276', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80579303:ctest-vn-67354276?flat'}
2025-08-05 20:01:10,037 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80579303:ctest-vn-67354276 is found in opserver
2025-08-05 20:01:10,072 - DEBUG - Do not have enough data to verify VN in agent
2025-08-05 20:01:10,089 - DEBUG - VRF ids for VN ctest-vn-67354276: {}
2025-08-05 20:01:10,242 - DEBUG - Services list from nova: [