2026-03-19 23:24:59,832 - INFO - Domain Default found not creating
2026-03-19 23:25:00,008 - INFO - Project ctest-TestBasicPolicy-33045643 not found, creating it
2026-03-19 23:25:00,480 - INFO - Created Project:ctest-TestBasicPolicy-33045643, ID : d05708fe-72df-4e1c-a39a-fbb52303d9a2
2026-03-19 23:25:01,921 - INFO - ================================================================================
2026-03-19 23:25:01,921 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-19 23:25:01,921 - 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
2026-03-19 23:25:02,180 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2026-03-19 23:25:02,180 - INFO - Initial checks done. Running the testcase now
2026-03-19 23:25:02,180 - INFO -
2026-03-19 23:25:02,708 - DEBUG - Response for create_network : {'network': {'id': '82c94e3e-0cd7-4426-944c-dd7c468ccc79', 'name': 'ctest-vn-18250233', 'tenant_id': 'd05708fe72df4e1ca39afbb52303d9a2', 'project_id': 'd05708fe72df4e1ca39afbb52303d9a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33045643', 'ctest-vn-18250233'], 'port_security_enabled': True, 'description': ''}}
2026-03-19 23:25:02,887 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1187d56-0433-4bc5-921e-1f3b06f9ff6e', 'name': '', 'tenant_id': 'd05708fe72df4e1ca39afbb52303d9a2', 'network_id': '82c94e3e-0cd7-4426-944c-dd7c468ccc79', 'ip_version': 4, 'cidr': '33.244.247.192/26', 'allocation_pools': [{'start': '33.244.247.194', 'end': '33.244.247.254'}], 'gateway_ip': '33.244.247.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.244.247.194', 'tags': [], 'project_id': 'd05708fe72df4e1ca39afbb52303d9a2'}}
2026-03-19 23:25:02,905 - INFO - Created VN ctest-vn-18250233
2026-03-19 23:25:02,960 - DEBUG - VN ctest-vn-18250233 UUID is 82c94e3e-0cd7-4426-944c-dd7c468ccc79
2026-03-19 23:25:03,246 - DEBUG - Response for create_network : {'network': {'id': 'ebe50782-4ff2-4970-bf71-e907d77cc368', 'name': 'ctest-vn-41557003', 'tenant_id': 'd05708fe72df4e1ca39afbb52303d9a2', 'project_id': 'd05708fe72df4e1ca39afbb52303d9a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33045643', 'ctest-vn-41557003'], 'port_security_enabled': True, 'description': ''}}
2026-03-19 23:25:03,394 - DEBUG - Response for create_subnet : {'subnet': {'id': '79c4b50d-df5f-4794-b6a7-0665ac2cba99', 'name': '', 'tenant_id': 'd05708fe72df4e1ca39afbb52303d9a2', 'network_id': 'ebe50782-4ff2-4970-bf71-e907d77cc368', 'ip_version': 4, 'cidr': '176.249.144.0/26', 'allocation_pools': [{'start': '176.249.144.2', 'end': '176.249.144.62'}], 'gateway_ip': '176.249.144.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.249.144.2', 'tags': [], 'project_id': 'd05708fe72df4e1ca39afbb52303d9a2'}}
2026-03-19 23:25:03,416 - INFO - Created VN ctest-vn-41557003
2026-03-19 23:25:03,472 - DEBUG - VN ctest-vn-41557003 UUID is ebe50782-4ff2-4970-bf71-e907d77cc368
2026-03-19 23:25:03,628 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33045643:ctest-vn-18250233, 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-33045643:ctest-vn-41557003, 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]
2026-03-19 23:25:03,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82c94e3e-0cd7-4426-944c-dd7c468ccc79', 'name': 'ctest-vn-18250233', 'tenant_id': 'd05708fe72df4e1ca39afbb52303d9a2', 'project_id': 'd05708fe72df4e1ca39afbb52303d9a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a1187d56-0433-4bc5-921e-1f3b06f9ff6e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33045643', 'ctest-vn-18250233'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33045643', 'ctest-policy-allow-all-82015573']], 'subnet_ipam': [{'subnet_cidr': '33.244.247.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-19 23:25:04,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ebe50782-4ff2-4970-bf71-e907d77cc368', 'name': 'ctest-vn-41557003', 'tenant_id': 'd05708fe72df4e1ca39afbb52303d9a2', 'project_id': 'd05708fe72df4e1ca39afbb52303d9a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79c4b50d-df5f-4794-b6a7-0665ac2cba99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33045643', 'ctest-vn-41557003'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33045643', 'ctest-policy-allow-all-82015573']], 'subnet_ipam': [{'subnet_cidr': '176.249.144.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-19 23:25:04,308 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-19 23:25:04,574 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-19 23:25:04,603 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b08ef5ca-d3a2-420b-939b-3e36d83c00eb
2026-03-19 23:25:04,614 - DEBUG - Requesting: http://10.0.0.249:8082/project/d05708fe-72df-4e1c-a39a-fbb52303d9a2
2026-03-19 23:25:04,682 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/82c94e3e-0cd7-4426-944c-dd7c468ccc79
2026-03-19 23:25:04,691 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/82c94e3e-0cd7-4426-944c-dd7c468ccc79
2026-03-19 23:25:04,698 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bedf9793-5825-4b52-8800-1c166b5cef0d
2026-03-19 23:25:04,705 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bedf9793-5825-4b52-8800-1c166b5cef0d
2026-03-19 23:25:04,712 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/6debdaea-ccbb-47a7-9630-13706c44f3ba
2026-03-19 23:25:04,719 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-19 23:25:04,719 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/82c94e3e-0cd7-4426-944c-dd7c468ccc79
2026-03-19 23:25:04,728 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bedf9793-5825-4b52-8800-1c166b5cef0d
2026-03-19 23:25:04,743 - INFO - Verified VN network id 12 for VN 82c94e3e-0cd7-4426-944c-dd7c468ccc79
2026-03-19 23:25:04,743 - INFO - Verifications in API Server for VN ctest-vn-18250233 passed
2026-03-19 23:25:04,743 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/82c94e3e-0cd7-4426-944c-dd7c468ccc79
2026-03-19 23:25:04,751 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bedf9793-5825-4b52-8800-1c166b5cef0d
2026-03-19 23:25:04,757 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bedf9793-5825-4b52-8800-1c166b5cef0d
2026-03-19 23:25:04,763 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/6debdaea-ccbb-47a7-9630-13706c44f3ba
2026-03-19 23:25:04,774 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33045643:ctest-vn-18250233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33045643', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9424149723659846694', 'uuid-lslong': '10686159541672660089'}, 'enable': 'true', 'created': '2026-03-19T23:25:02', 'last-modified': '2026-03-19T23:25:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.873063'}
2026-03-19 23:25:04,781 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-19 23:25:04,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18250233 passed
2026-03-19 23:25:04,781 - DEBUG - ====Verifying policy data for ctest-vn-18250233 in API_Server ======
2026-03-19 23:25:04,781 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-19 23:25:04,787 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b08ef5ca-d3a2-420b-939b-3e36d83c00eb
2026-03-19 23:25:04,799 - DEBUG - Requesting: http://10.0.0.249:8082/project/d05708fe-72df-4e1c-a39a-fbb52303d9a2
2026-03-19 23:25:04,868 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/82c94e3e-0cd7-4426-944c-dd7c468ccc79
2026-03-19 23:25:04,877 - DEBUG - ==>Verifying data for policy with id: 02855b01-47ab-48ab-a5d7-1e671bf40903, fqn: ['default-domain', 'ctest-TestBasicPolicy-33045643', 'ctest-policy-allow-all-82015573']
2026-03-19 23:25:04,877 - INFO - VN ctest-vn-18250233 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-19 23:25:04,877 - DEBUG - Verifying the vn in opserver
2026-03-19 23:25:04,877 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33045643:ctest-vn-18250233 virtual network link through opserver 10.0.0.249
2026-03-19 23:25:04,878 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-03-19 23:25:05,153 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-03-19 23:25:05,223 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33045643:ctest-vn-18250233', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33045643:ctest-vn-18250233?flat'}
2026-03-19 23:25:05,223 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33045643:ctest-vn-18250233 is found in opserver
2026-03-19 23:25:05,233 - DEBUG - Do not have enough data to verify VN in agent
2026-03-19 23:25:05,237 - DEBUG - VRF ids for VN ctest-vn-18250233: {}
2026-03-19 23:25:05,237 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-19 23:25:05,242 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b08ef5ca-d3a2-420b-939b-3e36d83c00eb
2026-03-19 23:25:05,251 - DEBUG - Requesting: http://10.0.0.249:8082/project/d05708fe-72df-4e1c-a39a-fbb52303d9a2
2026-03-19 23:25:05,324 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ebe50782-4ff2-4970-bf71-e907d77cc368
2026-03-19 23:25:05,363 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ebe50782-4ff2-4970-bf71-e907d77cc368
2026-03-19 23:25:05,376 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/24595ef4-5c01-4d31-a3bb-6f3e598bace2
2026-03-19 23:25:05,388 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/24595ef4-5c01-4d31-a3bb-6f3e598bace2
2026-03-19 23:25:05,400 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f50b4649-a410-4a2d-af89-be73de8ce88a
2026-03-19 23:25:05,424 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-19 23:25:05,424 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ebe50782-4ff2-4970-bf71-e907d77cc368
2026-03-19 23:25:05,452 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/24595ef4-5c01-4d31-a3bb-6f3e598bace2
2026-03-19 23:25:05,482 - INFO - Verified VN network id 13 for VN ebe50782-4ff2-4970-bf71-e907d77cc368
2026-03-19 23:25:05,482 - INFO - Verifications in API Server for VN ctest-vn-41557003 passed
2026-03-19 23:25:05,482 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ebe50782-4ff2-4970-bf71-e907d77cc368
2026-03-19 23:25:05,501 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/24595ef4-5c01-4d31-a3bb-6f3e598bace2
2026-03-19 23:25:05,537 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/24595ef4-5c01-4d31-a3bb-6f3e598bace2
2026-03-19 23:25:05,548 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f50b4649-a410-4a2d-af89-be73de8ce88a
2026-03-19 23:25:05,561 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33045643:ctest-vn-41557003', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33045643', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16998000624848226672', 'uuid-lslong': '13795063353501860712'}, 'enable': 'true', 'created': '2026-03-19T23:25:03', 'last-modified': '2026-03-19T23:25:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.421557'}
2026-03-19 23:25:05,568 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-19 23:25:05,568 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41557003 passed
2026-03-19 23:25:05,568 - DEBUG - ====Verifying policy data for ctest-vn-41557003 in API_Server ======
2026-03-19 23:25:05,568 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-19 23:25:05,577 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b08ef5ca-d3a2-420b-939b-3e36d83c00eb
2026-03-19 23:25:05,604 - DEBUG - Requesting: http://10.0.0.249:8082/project/d05708fe-72df-4e1c-a39a-fbb52303d9a2
2026-03-19 23:25:05,712 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ebe50782-4ff2-4970-bf71-e907d77cc368
2026-03-19 23:25:05,725 - DEBUG - ==>Verifying data for policy with id: 02855b01-47ab-48ab-a5d7-1e671bf40903, fqn: ['default-domain', 'ctest-TestBasicPolicy-33045643', 'ctest-policy-allow-all-82015573']
2026-03-19 23:25:05,725 - INFO - VN ctest-vn-41557003 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-19 23:25:05,725 - DEBUG - Verifying the vn in opserver
2026-03-19 23:25:05,725 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33045643:ctest-vn-41557003 virtual network link through opserver 10.0.0.249
2026-03-19 23:25:05,725 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-03-19 23:25:05,742 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33045643:ctest-vn-41557003', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33045643:ctest-vn-41557003?flat'}
2026-03-19 23:25:05,742 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33045643:ctest-vn-41557003 is found in opserver
2026-03-19 23:25:05,752 - DEBUG - Do not have enough data to verify VN in agent
2026-03-19 23:25:05,757 - DEBUG - VRF ids for VN ctest-vn-41557003: {}
2026-03-19 23:25:05,839 - DEBUG - Services list from nova: [