2026-01-07 18:07:32,990 - INFO - Domain Default found not creating
2026-01-07 18:07:33,172 - INFO - Project ctest-TestBasicPolicy-73985022 not found, creating it
2026-01-07 18:07:33,630 - INFO - Created Project:ctest-TestBasicPolicy-73985022, ID : 5d72f136-8407-4368-95d9-298cacb15d65
2026-01-07 18:07:35,099 - INFO - ================================================================================
2026-01-07 18:07:35,099 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-07 18:07:35,099 - 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-07 18:07:35,354 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-01-07 18:07:35,354 - INFO - Initial checks done. Running the testcase now
2026-01-07 18:07:35,354 - INFO -
2026-01-07 18:07:35,916 - DEBUG - Response for create_network : {'network': {'id': 'a20d24f8-9f4d-4baf-a525-fd0917f883ed', 'name': 'ctest-vn-75532072', 'tenant_id': '5d72f1368407436895d9298cacb15d65', 'project_id': '5d72f1368407436895d9298cacb15d65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73985022', 'ctest-vn-75532072'], 'port_security_enabled': True, 'description': ''}}
2026-01-07 18:07:36,121 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca54881a-0b0e-4bfc-b124-fc25b192c28a', 'name': '', 'tenant_id': '5d72f1368407436895d9298cacb15d65', 'network_id': 'a20d24f8-9f4d-4baf-a525-fd0917f883ed', 'ip_version': 4, 'cidr': '38.56.133.128/26', 'allocation_pools': [{'start': '38.56.133.130', 'end': '38.56.133.190'}], 'gateway_ip': '38.56.133.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.56.133.130', 'tags': [], 'project_id': '5d72f1368407436895d9298cacb15d65'}}
2026-01-07 18:07:36,140 - INFO - Created VN ctest-vn-75532072
2026-01-07 18:07:36,191 - DEBUG - VN ctest-vn-75532072 UUID is a20d24f8-9f4d-4baf-a525-fd0917f883ed
2026-01-07 18:07:36,509 - DEBUG - Response for create_network : {'network': {'id': '473b13e5-d52e-4c4a-9e7c-f75c8d6f7e9f', 'name': 'ctest-vn-60258152', 'tenant_id': '5d72f1368407436895d9298cacb15d65', 'project_id': '5d72f1368407436895d9298cacb15d65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73985022', 'ctest-vn-60258152'], 'port_security_enabled': True, 'description': ''}}
2026-01-07 18:07:36,688 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a93c5e3-90e2-4a21-894a-d4008e9aa0b8', 'name': '', 'tenant_id': '5d72f1368407436895d9298cacb15d65', 'network_id': '473b13e5-d52e-4c4a-9e7c-f75c8d6f7e9f', 'ip_version': 4, 'cidr': '69.24.138.192/26', 'allocation_pools': [{'start': '69.24.138.194', 'end': '69.24.138.254'}], 'gateway_ip': '69.24.138.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.24.138.194', 'tags': [], 'project_id': '5d72f1368407436895d9298cacb15d65'}}
2026-01-07 18:07:36,704 - INFO - Created VN ctest-vn-60258152
2026-01-07 18:07:36,758 - DEBUG - VN ctest-vn-60258152 UUID is 473b13e5-d52e-4c4a-9e7c-f75c8d6f7e9f
2026-01-07 18:07:36,906 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73985022:ctest-vn-75532072, 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-73985022:ctest-vn-60258152, 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-07 18:07:37,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a20d24f8-9f4d-4baf-a525-fd0917f883ed', 'name': 'ctest-vn-75532072', 'tenant_id': '5d72f1368407436895d9298cacb15d65', 'project_id': '5d72f1368407436895d9298cacb15d65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca54881a-0b0e-4bfc-b124-fc25b192c28a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73985022', 'ctest-vn-75532072'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73985022', 'ctest-policy-allow-all-37944067']], 'subnet_ipam': [{'subnet_cidr': '38.56.133.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-07 18:07:37,407 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '473b13e5-d52e-4c4a-9e7c-f75c8d6f7e9f', 'name': 'ctest-vn-60258152', 'tenant_id': '5d72f1368407436895d9298cacb15d65', 'project_id': '5d72f1368407436895d9298cacb15d65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a93c5e3-90e2-4a21-894a-d4008e9aa0b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73985022', 'ctest-vn-60258152'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73985022', 'ctest-policy-allow-all-37944067']], 'subnet_ipam': [{'subnet_cidr': '69.24.138.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-07 18:07:37,571 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-07 18:07:37,870 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-07 18:07:37,902 - DEBUG - Requesting: http://10.0.0.38:8082/domain/805c8dd5-b00e-40e2-9dec-f633b777630c
2026-01-07 18:07:37,914 - DEBUG - Requesting: http://10.0.0.38:8082/project/5d72f136-8407-4368-95d9-298cacb15d65
2026-01-07 18:07:37,987 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a20d24f8-9f4d-4baf-a525-fd0917f883ed
2026-01-07 18:07:37,998 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a20d24f8-9f4d-4baf-a525-fd0917f883ed
2026-01-07 18:07:38,008 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ba4e7b-73d3-4868-a6d9-290eb5d607ec
2026-01-07 18:07:38,016 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ba4e7b-73d3-4868-a6d9-290eb5d607ec
2026-01-07 18:07:38,023 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/57de9548-4bd5-4df6-ab0a-2b2e7ae9d599
2026-01-07 18:07:38,029 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-07 18:07:38,029 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a20d24f8-9f4d-4baf-a525-fd0917f883ed
2026-01-07 18:07:38,038 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ba4e7b-73d3-4868-a6d9-290eb5d607ec
2026-01-07 18:07:38,050 - INFO - Verified VN network id 11 for VN a20d24f8-9f4d-4baf-a525-fd0917f883ed
2026-01-07 18:07:38,051 - INFO - Verifications in API Server for VN ctest-vn-75532072 passed
2026-01-07 18:07:38,051 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a20d24f8-9f4d-4baf-a525-fd0917f883ed
2026-01-07 18:07:38,059 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ba4e7b-73d3-4868-a6d9-290eb5d607ec
2026-01-07 18:07:38,065 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ba4e7b-73d3-4868-a6d9-290eb5d607ec
2026-01-07 18:07:38,071 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/57de9548-4bd5-4df6-ab0a-2b2e7ae9d599
2026-01-07 18:07:38,084 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73985022:ctest-vn-75532072', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73985022', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11677030059084696495', 'uuid-lslong': '11900195805895099373'}, 'enable': 'true', 'created': '2026-01-07T18:07:35', 'last-modified': '2026-01-07T18:07:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914380'}
2026-01-07 18:07:38,089 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-07 18:07:38,089 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75532072 passed
2026-01-07 18:07:38,090 - DEBUG - ====Verifying policy data for ctest-vn-75532072 in API_Server ======
2026-01-07 18:07:38,090 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-07 18:07:38,094 - DEBUG - Requesting: http://10.0.0.38:8082/domain/805c8dd5-b00e-40e2-9dec-f633b777630c
2026-01-07 18:07:38,104 - DEBUG - Requesting: http://10.0.0.38:8082/project/5d72f136-8407-4368-95d9-298cacb15d65
2026-01-07 18:07:38,177 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a20d24f8-9f4d-4baf-a525-fd0917f883ed
2026-01-07 18:07:38,186 - DEBUG - ==>Verifying data for policy with id: 92abdad1-c04d-4405-a26e-4b4532b2bf65, fqn: ['default-domain', 'ctest-TestBasicPolicy-73985022', 'ctest-policy-allow-all-37944067']
2026-01-07 18:07:38,186 - INFO - VN ctest-vn-75532072 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-07 18:07:38,187 - DEBUG - Verifying the vn in opserver
2026-01-07 18:07:38,187 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73985022:ctest-vn-75532072 virtual network link through opserver 10.0.0.38
2026-01-07 18:07:38,187 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-07 18:07:38,483 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-07 18:07:38,545 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73985022:ctest-vn-75532072', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73985022:ctest-vn-75532072?flat'}
2026-01-07 18:07:38,545 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73985022:ctest-vn-75532072 is found in opserver
2026-01-07 18:07:38,554 - DEBUG - Do not have enough data to verify VN in agent
2026-01-07 18:07:38,559 - DEBUG - VRF ids for VN ctest-vn-75532072: {}
2026-01-07 18:07:38,559 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-07 18:07:38,563 - DEBUG - Requesting: http://10.0.0.38:8082/domain/805c8dd5-b00e-40e2-9dec-f633b777630c
2026-01-07 18:07:38,573 - DEBUG - Requesting: http://10.0.0.38:8082/project/5d72f136-8407-4368-95d9-298cacb15d65
2026-01-07 18:07:38,639 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/473b13e5-d52e-4c4a-9e7c-f75c8d6f7e9f
2026-01-07 18:07:38,649 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/473b13e5-d52e-4c4a-9e7c-f75c8d6f7e9f
2026-01-07 18:07:38,657 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cd2714d-2bad-4dbe-bff3-bc7d35e3ceaf
2026-01-07 18:07:38,664 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cd2714d-2bad-4dbe-bff3-bc7d35e3ceaf
2026-01-07 18:07:38,670 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dd635cc7-3b4e-431c-8bf9-0912982dfc18
2026-01-07 18:07:38,676 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-07 18:07:38,676 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/473b13e5-d52e-4c4a-9e7c-f75c8d6f7e9f
2026-01-07 18:07:38,684 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cd2714d-2bad-4dbe-bff3-bc7d35e3ceaf
2026-01-07 18:07:38,695 - INFO - Verified VN network id 12 for VN 473b13e5-d52e-4c4a-9e7c-f75c8d6f7e9f
2026-01-07 18:07:38,695 - INFO - Verifications in API Server for VN ctest-vn-60258152 passed
2026-01-07 18:07:38,695 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/473b13e5-d52e-4c4a-9e7c-f75c8d6f7e9f
2026-01-07 18:07:38,702 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cd2714d-2bad-4dbe-bff3-bc7d35e3ceaf
2026-01-07 18:07:38,708 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cd2714d-2bad-4dbe-bff3-bc7d35e3ceaf
2026-01-07 18:07:38,714 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dd635cc7-3b4e-431c-8bf9-0912982dfc18
2026-01-07 18:07:38,724 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73985022:ctest-vn-60258152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73985022', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5132718078163831882', 'uuid-lslong': '11420274731986681503'}, 'enable': 'true', 'created': '2026-01-07T18:07:36', 'last-modified': '2026-01-07T18:07:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.333471'}
2026-01-07 18:07:38,729 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-07 18:07:38,729 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60258152 passed
2026-01-07 18:07:38,729 - DEBUG - ====Verifying policy data for ctest-vn-60258152 in API_Server ======
2026-01-07 18:07:38,729 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-07 18:07:38,734 - DEBUG - Requesting: http://10.0.0.38:8082/domain/805c8dd5-b00e-40e2-9dec-f633b777630c
2026-01-07 18:07:38,744 - DEBUG - Requesting: http://10.0.0.38:8082/project/5d72f136-8407-4368-95d9-298cacb15d65
2026-01-07 18:07:38,812 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/473b13e5-d52e-4c4a-9e7c-f75c8d6f7e9f
2026-01-07 18:07:38,821 - DEBUG - ==>Verifying data for policy with id: 92abdad1-c04d-4405-a26e-4b4532b2bf65, fqn: ['default-domain', 'ctest-TestBasicPolicy-73985022', 'ctest-policy-allow-all-37944067']
2026-01-07 18:07:38,821 - INFO - VN ctest-vn-60258152 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-07 18:07:38,821 - DEBUG - Verifying the vn in opserver
2026-01-07 18:07:38,821 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73985022:ctest-vn-60258152 virtual network link through opserver 10.0.0.38
2026-01-07 18:07:38,821 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-07 18:07:38,829 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73985022:ctest-vn-60258152', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73985022:ctest-vn-60258152?flat'}
2026-01-07 18:07:38,829 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73985022:ctest-vn-60258152 is found in opserver
2026-01-07 18:07:38,838 - DEBUG - Do not have enough data to verify VN in agent
2026-01-07 18:07:38,843 - DEBUG - VRF ids for VN ctest-vn-60258152: {}
2026-01-07 18:07:38,896 - DEBUG - Services list from nova: [