2025-10-27 22:44:49,743 - INFO - Domain Default found not creating
2025-10-27 22:44:49,892 - INFO - Project ctest-TestBasicPolicy-18113490 not found, creating it
2025-10-27 22:44:50,345 - INFO - Created Project:ctest-TestBasicPolicy-18113490, ID : 9c685bcd-6455-41cb-8a29-3b0ef8eccd92
2025-10-27 22:44:51,774 - INFO - ================================================================================
2025-10-27 22:44:51,774 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 22:44:51,774 - 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-10-27 22:44:52,030 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-10-27 22:44:52,030 - INFO - Initial checks done. Running the testcase now
2025-10-27 22:44:52,030 - INFO -
2025-10-27 22:44:52,586 - DEBUG - Response for create_network : {'network': {'id': '377dcecf-17c1-4c97-bfba-77b8d5f8fdc9', 'name': 'ctest-vn-82593435', 'tenant_id': '9c685bcd645541cb8a293b0ef8eccd92', 'project_id': '9c685bcd645541cb8a293b0ef8eccd92', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18113490', 'ctest-vn-82593435'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 22:44:52,751 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f112461b-2d75-4320-9660-e90112248203', 'name': '', 'tenant_id': '9c685bcd645541cb8a293b0ef8eccd92', 'network_id': '377dcecf-17c1-4c97-bfba-77b8d5f8fdc9', 'ip_version': 4, 'cidr': '4.61.226.64/26', 'allocation_pools': [{'start': '4.61.226.66', 'end': '4.61.226.126'}], 'gateway_ip': '4.61.226.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.61.226.66', 'tags': [], 'project_id': '9c685bcd645541cb8a293b0ef8eccd92'}}
2025-10-27 22:44:52,770 - INFO - Created VN ctest-vn-82593435
2025-10-27 22:44:52,825 - DEBUG - VN ctest-vn-82593435 UUID is 377dcecf-17c1-4c97-bfba-77b8d5f8fdc9
2025-10-27 22:44:53,103 - DEBUG - Response for create_network : {'network': {'id': 'b5756eee-5320-439f-a943-cc9585bd3217', 'name': 'ctest-vn-20147729', 'tenant_id': '9c685bcd645541cb8a293b0ef8eccd92', 'project_id': '9c685bcd645541cb8a293b0ef8eccd92', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18113490', 'ctest-vn-20147729'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 22:44:53,332 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3fe82ed-55fa-487e-87ce-bbdc535b7451', 'name': '', 'tenant_id': '9c685bcd645541cb8a293b0ef8eccd92', 'network_id': 'b5756eee-5320-439f-a943-cc9585bd3217', 'ip_version': 4, 'cidr': '211.38.194.0/26', 'allocation_pools': [{'start': '211.38.194.2', 'end': '211.38.194.62'}], 'gateway_ip': '211.38.194.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.38.194.2', 'tags': [], 'project_id': '9c685bcd645541cb8a293b0ef8eccd92'}}
2025-10-27 22:44:53,349 - INFO - Created VN ctest-vn-20147729
2025-10-27 22:44:53,401 - DEBUG - VN ctest-vn-20147729 UUID is b5756eee-5320-439f-a943-cc9585bd3217
2025-10-27 22:44:53,557 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18113490:ctest-vn-82593435, 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-18113490:ctest-vn-20147729, 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-10-27 22:44:53,840 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '377dcecf-17c1-4c97-bfba-77b8d5f8fdc9', 'name': 'ctest-vn-82593435', 'tenant_id': '9c685bcd645541cb8a293b0ef8eccd92', 'project_id': '9c685bcd645541cb8a293b0ef8eccd92', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f112461b-2d75-4320-9660-e90112248203'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18113490', 'ctest-vn-82593435'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18113490', 'ctest-policy-allow-all-33353694']], 'subnet_ipam': [{'subnet_cidr': '4.61.226.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 22:44:54,064 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5756eee-5320-439f-a943-cc9585bd3217', 'name': 'ctest-vn-20147729', 'tenant_id': '9c685bcd645541cb8a293b0ef8eccd92', 'project_id': '9c685bcd645541cb8a293b0ef8eccd92', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3fe82ed-55fa-487e-87ce-bbdc535b7451'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18113490', 'ctest-vn-20147729'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18113490', 'ctest-policy-allow-all-33353694']], 'subnet_ipam': [{'subnet_cidr': '211.38.194.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 22:44:54,217 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-27 22:44:54,522 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-27 22:44:54,549 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab761c9e-8dd5-413c-a870-debafadd9c8b
2025-10-27 22:44:54,562 - DEBUG - Requesting: http://10.0.0.38:8082/project/9c685bcd-6455-41cb-8a29-3b0ef8eccd92
2025-10-27 22:44:54,633 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/377dcecf-17c1-4c97-bfba-77b8d5f8fdc9
2025-10-27 22:44:54,644 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/377dcecf-17c1-4c97-bfba-77b8d5f8fdc9
2025-10-27 22:44:54,652 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/54d272d4-7a6e-44c5-80b8-ccea3d9526b9
2025-10-27 22:44:54,658 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/54d272d4-7a6e-44c5-80b8-ccea3d9526b9
2025-10-27 22:44:54,663 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/46df7936-b7b1-4d35-8923-35358ba200b3
2025-10-27 22:44:54,668 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 22:44:54,668 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/377dcecf-17c1-4c97-bfba-77b8d5f8fdc9
2025-10-27 22:44:54,676 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/54d272d4-7a6e-44c5-80b8-ccea3d9526b9
2025-10-27 22:44:54,688 - INFO - Verified VN network id 11 for VN 377dcecf-17c1-4c97-bfba-77b8d5f8fdc9
2025-10-27 22:44:54,688 - INFO - Verifications in API Server for VN ctest-vn-82593435 passed
2025-10-27 22:44:54,688 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/377dcecf-17c1-4c97-bfba-77b8d5f8fdc9
2025-10-27 22:44:54,696 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/54d272d4-7a6e-44c5-80b8-ccea3d9526b9
2025-10-27 22:44:54,701 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/54d272d4-7a6e-44c5-80b8-ccea3d9526b9
2025-10-27 22:44:54,706 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/46df7936-b7b1-4d35-8923-35358ba200b3
2025-10-27 22:44:54,715 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18113490:ctest-vn-82593435', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18113490', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3998579433026964631', 'uuid-lslong': '13815486442659970505'}, 'enable': 'true', 'created': '2025-10-27T22:44:52', 'last-modified': '2025-10-27T22:44:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.894514'}
2025-10-27 22:44:54,721 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 22:44:54,721 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82593435 passed
2025-10-27 22:44:54,721 - DEBUG - ====Verifying policy data for ctest-vn-82593435 in API_Server ======
2025-10-27 22:44:54,721 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-27 22:44:54,727 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab761c9e-8dd5-413c-a870-debafadd9c8b
2025-10-27 22:44:54,737 - DEBUG - Requesting: http://10.0.0.38:8082/project/9c685bcd-6455-41cb-8a29-3b0ef8eccd92
2025-10-27 22:44:54,806 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/377dcecf-17c1-4c97-bfba-77b8d5f8fdc9
2025-10-27 22:44:54,816 - DEBUG - ==>Verifying data for policy with id: 3d2ad12d-c3cd-4e75-87bc-3269c109632c, fqn: ['default-domain', 'ctest-TestBasicPolicy-18113490', 'ctest-policy-allow-all-33353694']
2025-10-27 22:44:54,816 - INFO - VN ctest-vn-82593435 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 22:44:54,817 - DEBUG - Verifying the vn in opserver
2025-10-27 22:44:54,817 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18113490:ctest-vn-82593435 virtual network link through opserver 10.0.0.38
2025-10-27 22:44:54,817 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-27 22:44:55,109 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-27 22:44:55,163 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18113490:ctest-vn-82593435', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18113490:ctest-vn-82593435?flat'}
2025-10-27 22:44:55,163 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18113490:ctest-vn-82593435 is found in opserver
2025-10-27 22:44:55,172 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 22:44:55,176 - DEBUG - VRF ids for VN ctest-vn-82593435: {}
2025-10-27 22:44:55,177 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-27 22:44:55,182 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab761c9e-8dd5-413c-a870-debafadd9c8b
2025-10-27 22:44:55,194 - DEBUG - Requesting: http://10.0.0.38:8082/project/9c685bcd-6455-41cb-8a29-3b0ef8eccd92
2025-10-27 22:44:55,266 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b5756eee-5320-439f-a943-cc9585bd3217
2025-10-27 22:44:55,277 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b5756eee-5320-439f-a943-cc9585bd3217
2025-10-27 22:44:55,285 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7a3bd7d-c6a8-4ec5-ac11-6a6b447bb5b0
2025-10-27 22:44:55,291 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7a3bd7d-c6a8-4ec5-ac11-6a6b447bb5b0
2025-10-27 22:44:55,296 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cddf9440-73b6-4ae5-b062-0217efc410a9
2025-10-27 22:44:55,301 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 22:44:55,301 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b5756eee-5320-439f-a943-cc9585bd3217
2025-10-27 22:44:55,310 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7a3bd7d-c6a8-4ec5-ac11-6a6b447bb5b0
2025-10-27 22:44:55,325 - INFO - Verified VN network id 12 for VN b5756eee-5320-439f-a943-cc9585bd3217
2025-10-27 22:44:55,325 - INFO - Verifications in API Server for VN ctest-vn-20147729 passed
2025-10-27 22:44:55,325 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b5756eee-5320-439f-a943-cc9585bd3217
2025-10-27 22:44:55,333 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7a3bd7d-c6a8-4ec5-ac11-6a6b447bb5b0
2025-10-27 22:44:55,340 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7a3bd7d-c6a8-4ec5-ac11-6a6b447bb5b0
2025-10-27 22:44:55,346 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cddf9440-73b6-4ae5-b062-0217efc410a9
2025-10-27 22:44:55,357 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18113490:ctest-vn-20147729', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18113490', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13075479063015998367', 'uuid-lslong': '12196817158415397399'}, 'enable': 'true', 'created': '2025-10-27T22:44:53', 'last-modified': '2025-10-27T22:44:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.312535'}
2025-10-27 22:44:55,367 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 22:44:55,367 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20147729 passed
2025-10-27 22:44:55,367 - DEBUG - ====Verifying policy data for ctest-vn-20147729 in API_Server ======
2025-10-27 22:44:55,367 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-27 22:44:55,377 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab761c9e-8dd5-413c-a870-debafadd9c8b
2025-10-27 22:44:55,387 - DEBUG - Requesting: http://10.0.0.38:8082/project/9c685bcd-6455-41cb-8a29-3b0ef8eccd92
2025-10-27 22:44:55,459 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b5756eee-5320-439f-a943-cc9585bd3217
2025-10-27 22:44:55,469 - DEBUG - ==>Verifying data for policy with id: 3d2ad12d-c3cd-4e75-87bc-3269c109632c, fqn: ['default-domain', 'ctest-TestBasicPolicy-18113490', 'ctest-policy-allow-all-33353694']
2025-10-27 22:44:55,469 - INFO - VN ctest-vn-20147729 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 22:44:55,469 - DEBUG - Verifying the vn in opserver
2025-10-27 22:44:55,469 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18113490:ctest-vn-20147729 virtual network link through opserver 10.0.0.38
2025-10-27 22:44:55,469 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-27 22:44:55,478 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18113490:ctest-vn-20147729', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18113490:ctest-vn-20147729?flat'}
2025-10-27 22:44:55,478 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18113490:ctest-vn-20147729 is found in opserver
2025-10-27 22:44:55,488 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 22:44:55,493 - DEBUG - VRF ids for VN ctest-vn-20147729: {}
2025-10-27 22:44:55,554 - DEBUG - Services list from nova: [