2025-09-11 08:34:57,901 - INFO - Domain Default found not creating
2025-09-11 08:34:58,024 - INFO - Project ctest-TestBasicPolicy-94637925 not found, creating it
2025-09-11 08:34:58,432 - INFO - Created Project:ctest-TestBasicPolicy-94637925, ID : 544cce99-2f77-4ff4-84b1-16b830498d4a
2025-09-11 08:34:59,768 - INFO - ================================================================================
2025-09-11 08:34:59,768 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 08:34:59,768 - 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-09-11 08:35:00,030 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.25': '0'}} with
2025-09-11 08:35:00,030 - INFO - Initial checks done. Running the testcase now
2025-09-11 08:35:00,030 - INFO -
2025-09-11 08:35:00,550 - DEBUG - Response for create_network : {'network': {'id': '7a44cfda-77d1-4291-9e2b-6c1669b8d4ff', 'name': 'ctest-vn-16866535', 'tenant_id': '544cce992f774ff484b116b830498d4a', 'project_id': '544cce992f774ff484b116b830498d4a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94637925', 'ctest-vn-16866535'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:35:00,759 - DEBUG - Response for create_subnet : {'subnet': {'id': '62ff4757-f353-4b1a-b617-9b7fc2f99661', 'name': '', 'tenant_id': '544cce992f774ff484b116b830498d4a', 'network_id': '7a44cfda-77d1-4291-9e2b-6c1669b8d4ff', 'ip_version': 4, 'cidr': '145.118.209.0/26', 'allocation_pools': [{'start': '145.118.209.2', 'end': '145.118.209.62'}], 'gateway_ip': '145.118.209.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.118.209.2', 'tags': [], 'project_id': '544cce992f774ff484b116b830498d4a'}}
2025-09-11 08:35:00,776 - INFO - Created VN ctest-vn-16866535
2025-09-11 08:35:00,825 - DEBUG - VN ctest-vn-16866535 UUID is 7a44cfda-77d1-4291-9e2b-6c1669b8d4ff
2025-09-11 08:35:01,134 - DEBUG - Response for create_network : {'network': {'id': 'f0852dd1-ecf9-4d93-a809-fdc63b207217', 'name': 'ctest-vn-66955493', 'tenant_id': '544cce992f774ff484b116b830498d4a', 'project_id': '544cce992f774ff484b116b830498d4a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94637925', 'ctest-vn-66955493'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:35:01,285 - DEBUG - Response for create_subnet : {'subnet': {'id': '13a13c1b-c568-42f4-bcad-02551eaa2995', 'name': '', 'tenant_id': '544cce992f774ff484b116b830498d4a', 'network_id': 'f0852dd1-ecf9-4d93-a809-fdc63b207217', 'ip_version': 4, 'cidr': '157.182.153.64/26', 'allocation_pools': [{'start': '157.182.153.66', 'end': '157.182.153.126'}], 'gateway_ip': '157.182.153.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.182.153.66', 'tags': [], 'project_id': '544cce992f774ff484b116b830498d4a'}}
2025-09-11 08:35:01,300 - INFO - Created VN ctest-vn-66955493
2025-09-11 08:35:01,349 - DEBUG - VN ctest-vn-66955493 UUID is f0852dd1-ecf9-4d93-a809-fdc63b207217
2025-09-11 08:35:01,493 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94637925:ctest-vn-16866535, 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-94637925:ctest-vn-66955493, 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-09-11 08:35:01,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a44cfda-77d1-4291-9e2b-6c1669b8d4ff', 'name': 'ctest-vn-16866535', 'tenant_id': '544cce992f774ff484b116b830498d4a', 'project_id': '544cce992f774ff484b116b830498d4a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62ff4757-f353-4b1a-b617-9b7fc2f99661'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94637925', 'ctest-vn-16866535'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94637925', 'ctest-policy-allow-all-98458002']], 'subnet_ipam': [{'subnet_cidr': '145.118.209.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:35:02,040 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f0852dd1-ecf9-4d93-a809-fdc63b207217', 'name': 'ctest-vn-66955493', 'tenant_id': '544cce992f774ff484b116b830498d4a', 'project_id': '544cce992f774ff484b116b830498d4a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['13a13c1b-c568-42f4-bcad-02551eaa2995'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94637925', 'ctest-vn-66955493'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94637925', 'ctest-policy-allow-all-98458002']], 'subnet_ipam': [{'subnet_cidr': '157.182.153.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:35:02,185 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-09-11 08:35:02,480 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-09-11 08:35:02,505 - DEBUG - Requesting: http://10.0.0.73:8082/domain/6711179a-bbf7-4392-830f-4a51d29b6852
2025-09-11 08:35:02,515 - DEBUG - Requesting: http://10.0.0.73:8082/project/544cce99-2f77-4ff4-84b1-16b830498d4a
2025-09-11 08:35:02,588 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/7a44cfda-77d1-4291-9e2b-6c1669b8d4ff
2025-09-11 08:35:02,597 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/7a44cfda-77d1-4291-9e2b-6c1669b8d4ff
2025-09-11 08:35:02,604 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/da0d23ed-bb11-4a5e-8824-7e31f1fd7ea1
2025-09-11 08:35:02,610 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/da0d23ed-bb11-4a5e-8824-7e31f1fd7ea1
2025-09-11 08:35:02,615 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/b817eb0b-f297-4539-b6e0-8e1c2fc45d37
2025-09-11 08:35:02,620 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 08:35:02,620 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/7a44cfda-77d1-4291-9e2b-6c1669b8d4ff
2025-09-11 08:35:02,628 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/da0d23ed-bb11-4a5e-8824-7e31f1fd7ea1
2025-09-11 08:35:02,639 - INFO - Verified VN network id 11 for VN 7a44cfda-77d1-4291-9e2b-6c1669b8d4ff
2025-09-11 08:35:02,639 - INFO - Verifications in API Server for VN ctest-vn-16866535 passed
2025-09-11 08:35:02,639 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/7a44cfda-77d1-4291-9e2b-6c1669b8d4ff
2025-09-11 08:35:02,647 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/da0d23ed-bb11-4a5e-8824-7e31f1fd7ea1
2025-09-11 08:35:02,652 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/da0d23ed-bb11-4a5e-8824-7e31f1fd7ea1
2025-09-11 08:35:02,657 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/b817eb0b-f297-4539-b6e0-8e1c2fc45d37
2025-09-11 08:35:02,666 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94637925:ctest-vn-16866535', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94637925', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8810395308263555729', 'uuid-lslong': '11397322125509973247'}, 'enable': 'true', 'created': '2025-09-11T08:35:00', 'last-modified': '2025-09-11T08:35:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905886'}
2025-09-11 08:35:02,671 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 08:35:02,671 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16866535 passed
2025-09-11 08:35:02,672 - DEBUG - ====Verifying policy data for ctest-vn-16866535 in API_Server ======
2025-09-11 08:35:02,672 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-09-11 08:35:02,676 - DEBUG - Requesting: http://10.0.0.73:8082/domain/6711179a-bbf7-4392-830f-4a51d29b6852
2025-09-11 08:35:02,686 - DEBUG - Requesting: http://10.0.0.73:8082/project/544cce99-2f77-4ff4-84b1-16b830498d4a
2025-09-11 08:35:02,759 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/7a44cfda-77d1-4291-9e2b-6c1669b8d4ff
2025-09-11 08:35:02,768 - DEBUG - ==>Verifying data for policy with id: 39d6d88b-f0e7-4561-9a52-19f764a9a1ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-94637925', 'ctest-policy-allow-all-98458002']
2025-09-11 08:35:02,768 - INFO - VN ctest-vn-16866535 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 08:35:02,768 - DEBUG - Verifying the vn in opserver
2025-09-11 08:35:02,768 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94637925:ctest-vn-16866535 virtual network link through opserver 10.0.0.73
2025-09-11 08:35:02,768 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-09-11 08:35:03,055 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-09-11 08:35:03,103 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94637925:ctest-vn-16866535', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94637925:ctest-vn-16866535?flat'}
2025-09-11 08:35:03,103 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94637925:ctest-vn-16866535 is found in opserver
2025-09-11 08:35:03,112 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 08:35:03,116 - DEBUG - VRF ids for VN ctest-vn-16866535: {}
2025-09-11 08:35:03,116 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-09-11 08:35:03,120 - DEBUG - Requesting: http://10.0.0.73:8082/domain/6711179a-bbf7-4392-830f-4a51d29b6852
2025-09-11 08:35:03,130 - DEBUG - Requesting: http://10.0.0.73:8082/project/544cce99-2f77-4ff4-84b1-16b830498d4a
2025-09-11 08:35:03,196 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/f0852dd1-ecf9-4d93-a809-fdc63b207217
2025-09-11 08:35:03,206 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/f0852dd1-ecf9-4d93-a809-fdc63b207217
2025-09-11 08:35:03,214 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/bc4a2e2d-790a-46c1-9707-a80b3dbc31a9
2025-09-11 08:35:03,220 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/bc4a2e2d-790a-46c1-9707-a80b3dbc31a9
2025-09-11 08:35:03,225 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/7ce6da6c-9e3b-4566-a86a-99a412502b75
2025-09-11 08:35:03,231 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 08:35:03,231 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/f0852dd1-ecf9-4d93-a809-fdc63b207217
2025-09-11 08:35:03,238 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/bc4a2e2d-790a-46c1-9707-a80b3dbc31a9
2025-09-11 08:35:03,250 - INFO - Verified VN network id 12 for VN f0852dd1-ecf9-4d93-a809-fdc63b207217
2025-09-11 08:35:03,250 - INFO - Verifications in API Server for VN ctest-vn-66955493 passed
2025-09-11 08:35:03,250 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/f0852dd1-ecf9-4d93-a809-fdc63b207217
2025-09-11 08:35:03,258 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/bc4a2e2d-790a-46c1-9707-a80b3dbc31a9
2025-09-11 08:35:03,264 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/bc4a2e2d-790a-46c1-9707-a80b3dbc31a9
2025-09-11 08:35:03,269 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/7ce6da6c-9e3b-4566-a86a-99a412502b75
2025-09-11 08:35:03,279 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94637925:ctest-vn-66955493', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94637925', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17331309120652397971', 'uuid-lslong': '12108488100999623191'}, 'enable': 'true', 'created': '2025-09-11T08:35:01', 'last-modified': '2025-09-11T08:35:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.299607'}
2025-09-11 08:35:03,283 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 08:35:03,284 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66955493 passed
2025-09-11 08:35:03,284 - DEBUG - ====Verifying policy data for ctest-vn-66955493 in API_Server ======
2025-09-11 08:35:03,284 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-09-11 08:35:03,288 - DEBUG - Requesting: http://10.0.0.73:8082/domain/6711179a-bbf7-4392-830f-4a51d29b6852
2025-09-11 08:35:03,298 - DEBUG - Requesting: http://10.0.0.73:8082/project/544cce99-2f77-4ff4-84b1-16b830498d4a
2025-09-11 08:35:03,368 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/f0852dd1-ecf9-4d93-a809-fdc63b207217
2025-09-11 08:35:03,376 - DEBUG - ==>Verifying data for policy with id: 39d6d88b-f0e7-4561-9a52-19f764a9a1ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-94637925', 'ctest-policy-allow-all-98458002']
2025-09-11 08:35:03,376 - INFO - VN ctest-vn-66955493 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 08:35:03,376 - DEBUG - Verifying the vn in opserver
2025-09-11 08:35:03,376 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94637925:ctest-vn-66955493 virtual network link through opserver 10.0.0.73
2025-09-11 08:35:03,376 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-09-11 08:35:03,385 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94637925:ctest-vn-66955493', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94637925:ctest-vn-66955493?flat'}
2025-09-11 08:35:03,385 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94637925:ctest-vn-66955493 is found in opserver
2025-09-11 08:35:03,395 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 08:35:03,399 - DEBUG - VRF ids for VN ctest-vn-66955493: {}
2025-09-11 08:35:03,453 - DEBUG - Services list from nova: [