2026-01-28 23:44:07,554 - INFO - Domain Default found not creating
2026-01-28 23:44:07,719 - INFO - Project ctest-TestBasicPolicy-41954901 not found, creating it
2026-01-28 23:44:08,173 - INFO - Created Project:ctest-TestBasicPolicy-41954901, ID : 5481c66c-01f0-4dba-a6c1-cb022515334d
2026-01-28 23:44:09,752 - INFO - ================================================================================
2026-01-28 23:44:09,752 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 23:44:09,752 - 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-01-28 23:44:10,006 - DEBUG - Nothing to compare xmpp stats {'10.0.0.154': {'10.20.0.17': '0'}} with
2026-01-28 23:44:10,006 - INFO - Initial checks done. Running the testcase now
2026-01-28 23:44:10,006 - INFO -
2026-01-28 23:44:10,595 - DEBUG - Response for create_network : {'network': {'id': 'a166e5b2-1dba-4506-b7e9-faee2ff69c53', 'name': 'ctest-vn-27628020', 'tenant_id': '5481c66c01f04dbaa6c1cb022515334d', 'project_id': '5481c66c01f04dbaa6c1cb022515334d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41954901', 'ctest-vn-27628020'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 23:44:10,769 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd539dd58-68ee-49c9-9b67-af6d3b496673', 'name': '', 'tenant_id': '5481c66c01f04dbaa6c1cb022515334d', 'network_id': 'a166e5b2-1dba-4506-b7e9-faee2ff69c53', 'ip_version': 4, 'cidr': '12.175.13.0/26', 'allocation_pools': [{'start': '12.175.13.2', 'end': '12.175.13.62'}], 'gateway_ip': '12.175.13.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.175.13.2', 'tags': [], 'project_id': '5481c66c01f04dbaa6c1cb022515334d'}}
2026-01-28 23:44:10,786 - INFO - Created VN ctest-vn-27628020
2026-01-28 23:44:10,837 - DEBUG - VN ctest-vn-27628020 UUID is a166e5b2-1dba-4506-b7e9-faee2ff69c53
2026-01-28 23:44:11,168 - DEBUG - Response for create_network : {'network': {'id': 'b96dca5d-52ac-44c0-a8bb-a03f6f965765', 'name': 'ctest-vn-63894292', 'tenant_id': '5481c66c01f04dbaa6c1cb022515334d', 'project_id': '5481c66c01f04dbaa6c1cb022515334d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41954901', 'ctest-vn-63894292'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 23:44:11,393 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ecc2f312-e1d1-4ddc-b1a6-1f11104f0d23', 'name': '', 'tenant_id': '5481c66c01f04dbaa6c1cb022515334d', 'network_id': 'b96dca5d-52ac-44c0-a8bb-a03f6f965765', 'ip_version': 4, 'cidr': '12.81.55.64/26', 'allocation_pools': [{'start': '12.81.55.66', 'end': '12.81.55.126'}], 'gateway_ip': '12.81.55.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.81.55.66', 'tags': [], 'project_id': '5481c66c01f04dbaa6c1cb022515334d'}}
2026-01-28 23:44:11,411 - INFO - Created VN ctest-vn-63894292
2026-01-28 23:44:11,469 - DEBUG - VN ctest-vn-63894292 UUID is b96dca5d-52ac-44c0-a8bb-a03f6f965765
2026-01-28 23:44:11,585 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41954901:ctest-vn-27628020, 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-41954901:ctest-vn-63894292, 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-01-28 23:44:11,883 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a166e5b2-1dba-4506-b7e9-faee2ff69c53', 'name': 'ctest-vn-27628020', 'tenant_id': '5481c66c01f04dbaa6c1cb022515334d', 'project_id': '5481c66c01f04dbaa6c1cb022515334d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d539dd58-68ee-49c9-9b67-af6d3b496673'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41954901', 'ctest-vn-27628020'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41954901', 'ctest-policy-allow-all-03464512']], 'subnet_ipam': [{'subnet_cidr': '12.175.13.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 23:44:12,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b96dca5d-52ac-44c0-a8bb-a03f6f965765', 'name': 'ctest-vn-63894292', 'tenant_id': '5481c66c01f04dbaa6c1cb022515334d', 'project_id': '5481c66c01f04dbaa6c1cb022515334d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ecc2f312-e1d1-4ddc-b1a6-1f11104f0d23'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41954901', 'ctest-vn-63894292'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41954901', 'ctest-policy-allow-all-03464512']], 'subnet_ipam': [{'subnet_cidr': '12.81.55.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 23:44:12,310 - DEBUG - Requesting: http://10.0.0.154:8082/domains
2026-01-28 23:44:12,657 - DEBUG - Requesting: http://10.0.0.154:8082/domains
2026-01-28 23:44:12,690 - DEBUG - Requesting: http://10.0.0.154:8082/domain/5cb91dbf-e3fa-412d-b1a6-e6f20c2a114d
2026-01-28 23:44:12,702 - DEBUG - Requesting: http://10.0.0.154:8082/project/5481c66c-01f0-4dba-a6c1-cb022515334d
2026-01-28 23:44:12,774 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/a166e5b2-1dba-4506-b7e9-faee2ff69c53
2026-01-28 23:44:12,786 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/a166e5b2-1dba-4506-b7e9-faee2ff69c53
2026-01-28 23:44:12,796 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/3b0d960c-8baf-4ee0-8a0d-b332c0f96b43
2026-01-28 23:44:12,803 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/3b0d960c-8baf-4ee0-8a0d-b332c0f96b43
2026-01-28 23:44:12,812 - DEBUG - Requesting: http://10.0.0.154:8082/route-target/a9456fc0-085e-4036-8933-994c858f478f
2026-01-28 23:44:12,819 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 23:44:12,819 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/a166e5b2-1dba-4506-b7e9-faee2ff69c53
2026-01-28 23:44:12,829 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/3b0d960c-8baf-4ee0-8a0d-b332c0f96b43
2026-01-28 23:44:12,845 - INFO - Verified VN network id 11 for VN a166e5b2-1dba-4506-b7e9-faee2ff69c53
2026-01-28 23:44:12,845 - INFO - Verifications in API Server for VN ctest-vn-27628020 passed
2026-01-28 23:44:12,846 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/a166e5b2-1dba-4506-b7e9-faee2ff69c53
2026-01-28 23:44:12,856 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/3b0d960c-8baf-4ee0-8a0d-b332c0f96b43
2026-01-28 23:44:12,863 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/3b0d960c-8baf-4ee0-8a0d-b332c0f96b43
2026-01-28 23:44:12,872 - DEBUG - Requesting: http://10.0.0.154:8082/route-target/a9456fc0-085e-4036-8933-994c858f478f
2026-01-28 23:44:12,883 - DEBUG - Control-node 10.0.0.154 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41954901:ctest-vn-27628020', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41954901', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11630235640896570630', 'uuid-lslong': '13252399279428246611'}, 'enable': 'true', 'created': '2026-01-28T23:44:10', 'last-modified': '2026-01-28T23:44:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.025597'}
2026-01-28 23:44:12,889 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 23:44:12,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27628020 passed
2026-01-28 23:44:12,889 - DEBUG - ====Verifying policy data for ctest-vn-27628020 in API_Server ======
2026-01-28 23:44:12,889 - DEBUG - Requesting: http://10.0.0.154:8082/domains
2026-01-28 23:44:12,894 - DEBUG - Requesting: http://10.0.0.154:8082/domain/5cb91dbf-e3fa-412d-b1a6-e6f20c2a114d
2026-01-28 23:44:12,905 - DEBUG - Requesting: http://10.0.0.154:8082/project/5481c66c-01f0-4dba-a6c1-cb022515334d
2026-01-28 23:44:12,978 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/a166e5b2-1dba-4506-b7e9-faee2ff69c53
2026-01-28 23:44:12,988 - DEBUG - ==>Verifying data for policy with id: 2c3a7b82-32f1-429b-8415-a7af08600caf, fqn: ['default-domain', 'ctest-TestBasicPolicy-41954901', 'ctest-policy-allow-all-03464512']
2026-01-28 23:44:12,988 - INFO - VN ctest-vn-27628020 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 23:44:12,988 - DEBUG - Verifying the vn in opserver
2026-01-28 23:44:12,988 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41954901:ctest-vn-27628020 virtual network link through opserver 10.0.0.154
2026-01-28 23:44:12,988 - DEBUG - Requesting: http://10.0.0.154:8081/analytics/uves/virtual-networks
2026-01-28 23:44:13,327 - DEBUG - Requesting: http://10.0.0.154:8081/analytics/uves/virtual-networks
2026-01-28 23:44:13,399 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41954901:ctest-vn-27628020', 'href': 'http://10.0.0.154:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41954901:ctest-vn-27628020?flat'}
2026-01-28 23:44:13,399 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41954901:ctest-vn-27628020 is found in opserver
2026-01-28 23:44:13,412 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 23:44:13,420 - DEBUG - VRF ids for VN ctest-vn-27628020: {}
2026-01-28 23:44:13,420 - DEBUG - Requesting: http://10.0.0.154:8082/domains
2026-01-28 23:44:13,432 - DEBUG - Requesting: http://10.0.0.154:8082/domain/5cb91dbf-e3fa-412d-b1a6-e6f20c2a114d
2026-01-28 23:44:13,444 - DEBUG - Requesting: http://10.0.0.154:8082/project/5481c66c-01f0-4dba-a6c1-cb022515334d
2026-01-28 23:44:13,519 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/b96dca5d-52ac-44c0-a8bb-a03f6f965765
2026-01-28 23:44:13,534 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/b96dca5d-52ac-44c0-a8bb-a03f6f965765
2026-01-28 23:44:13,546 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/aa629ac9-af17-4cb0-9d18-24f499775338
2026-01-28 23:44:13,556 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/aa629ac9-af17-4cb0-9d18-24f499775338
2026-01-28 23:44:13,564 - DEBUG - Requesting: http://10.0.0.154:8082/route-target/0796d9c4-b923-48b7-a688-e1d8f0ce6d5f
2026-01-28 23:44:13,571 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 23:44:13,571 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/b96dca5d-52ac-44c0-a8bb-a03f6f965765
2026-01-28 23:44:13,580 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/aa629ac9-af17-4cb0-9d18-24f499775338
2026-01-28 23:44:13,594 - INFO - Verified VN network id 12 for VN b96dca5d-52ac-44c0-a8bb-a03f6f965765
2026-01-28 23:44:13,594 - INFO - Verifications in API Server for VN ctest-vn-63894292 passed
2026-01-28 23:44:13,595 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/b96dca5d-52ac-44c0-a8bb-a03f6f965765
2026-01-28 23:44:13,606 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/aa629ac9-af17-4cb0-9d18-24f499775338
2026-01-28 23:44:13,612 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/aa629ac9-af17-4cb0-9d18-24f499775338
2026-01-28 23:44:13,619 - DEBUG - Requesting: http://10.0.0.154:8082/route-target/0796d9c4-b923-48b7-a688-e1d8f0ce6d5f
2026-01-28 23:44:13,629 - DEBUG - Control-node 10.0.0.154 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41954901:ctest-vn-63894292', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41954901', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13361558171645920448', 'uuid-lslong': '12158487813332293477'}, 'enable': 'true', 'created': '2026-01-28T23:44:11', 'last-modified': '2026-01-28T23:44:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.538927'}
2026-01-28 23:44:13,635 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 23:44:13,635 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63894292 passed
2026-01-28 23:44:13,635 - DEBUG - ====Verifying policy data for ctest-vn-63894292 in API_Server ======
2026-01-28 23:44:13,635 - DEBUG - Requesting: http://10.0.0.154:8082/domains
2026-01-28 23:44:13,641 - DEBUG - Requesting: http://10.0.0.154:8082/domain/5cb91dbf-e3fa-412d-b1a6-e6f20c2a114d
2026-01-28 23:44:13,654 - DEBUG - Requesting: http://10.0.0.154:8082/project/5481c66c-01f0-4dba-a6c1-cb022515334d
2026-01-28 23:44:13,723 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/b96dca5d-52ac-44c0-a8bb-a03f6f965765
2026-01-28 23:44:13,732 - DEBUG - ==>Verifying data for policy with id: 2c3a7b82-32f1-429b-8415-a7af08600caf, fqn: ['default-domain', 'ctest-TestBasicPolicy-41954901', 'ctest-policy-allow-all-03464512']
2026-01-28 23:44:13,732 - INFO - VN ctest-vn-63894292 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 23:44:13,732 - DEBUG - Verifying the vn in opserver
2026-01-28 23:44:13,732 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41954901:ctest-vn-63894292 virtual network link through opserver 10.0.0.154
2026-01-28 23:44:13,732 - DEBUG - Requesting: http://10.0.0.154:8081/analytics/uves/virtual-networks
2026-01-28 23:44:13,742 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41954901:ctest-vn-63894292', 'href': 'http://10.0.0.154:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41954901:ctest-vn-63894292?flat'}
2026-01-28 23:44:13,742 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41954901:ctest-vn-63894292 is found in opserver
2026-01-28 23:44:13,751 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 23:44:13,755 - DEBUG - VRF ids for VN ctest-vn-63894292: {}
2026-01-28 23:44:13,813 - DEBUG - Services list from nova: [