2026-06-15 12:42:49,226 - INFO - Domain Default found not creating
2026-06-15 12:42:49,370 - INFO - Project ctest-TestBasicPolicy-22873727 not found, creating it
2026-06-15 12:42:49,797 - INFO - Created Project:ctest-TestBasicPolicy-22873727, ID : 607a0c45-63bc-4839-83f9-56bb12be39d6
2026-06-15 12:42:51,253 - INFO - ================================================================================
2026-06-15 12:42:51,253 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-15 12:42:51,253 - 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-06-15 12:42:51,532 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-06-15 12:42:51,532 - INFO - Initial checks done. Running the testcase now
2026-06-15 12:42:51,532 - INFO -
2026-06-15 12:42:52,103 - DEBUG - Response for create_network : {'network': {'id': 'abbc4c02-0e48-423b-be9e-b84d9e383a22', 'name': 'ctest-vn-84337690', 'tenant_id': '607a0c4563bc483983f956bb12be39d6', 'project_id': '607a0c4563bc483983f956bb12be39d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22873727', 'ctest-vn-84337690'], 'port_security_enabled': True, 'description': ''}}
2026-06-15 12:42:52,281 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc4ec7db-de51-4212-97a0-9bb8f40508be', 'name': '', 'tenant_id': '607a0c4563bc483983f956bb12be39d6', 'network_id': 'abbc4c02-0e48-423b-be9e-b84d9e383a22', 'ip_version': 4, 'cidr': '171.201.0.128/26', 'allocation_pools': [{'start': '171.201.0.130', 'end': '171.201.0.190'}], 'gateway_ip': '171.201.0.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.201.0.130', 'tags': [], 'project_id': '607a0c4563bc483983f956bb12be39d6'}}
2026-06-15 12:42:52,295 - INFO - Created VN ctest-vn-84337690
2026-06-15 12:42:52,351 - DEBUG - VN ctest-vn-84337690 UUID is abbc4c02-0e48-423b-be9e-b84d9e383a22
2026-06-15 12:42:52,656 - DEBUG - Response for create_network : {'network': {'id': 'ab97157d-af80-43cc-bbea-55aada4a278f', 'name': 'ctest-vn-24593156', 'tenant_id': '607a0c4563bc483983f956bb12be39d6', 'project_id': '607a0c4563bc483983f956bb12be39d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22873727', 'ctest-vn-24593156'], 'port_security_enabled': True, 'description': ''}}
2026-06-15 12:42:52,812 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c0a5c3f-40a9-49f2-aa20-463e2a2522af', 'name': '', 'tenant_id': '607a0c4563bc483983f956bb12be39d6', 'network_id': 'ab97157d-af80-43cc-bbea-55aada4a278f', 'ip_version': 4, 'cidr': '35.173.10.64/26', 'allocation_pools': [{'start': '35.173.10.66', 'end': '35.173.10.126'}], 'gateway_ip': '35.173.10.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.173.10.66', 'tags': [], 'project_id': '607a0c4563bc483983f956bb12be39d6'}}
2026-06-15 12:42:52,826 - INFO - Created VN ctest-vn-24593156
2026-06-15 12:42:52,875 - DEBUG - VN ctest-vn-24593156 UUID is ab97157d-af80-43cc-bbea-55aada4a278f
2026-06-15 12:42:53,015 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22873727:ctest-vn-84337690, 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-22873727:ctest-vn-24593156, 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-06-15 12:42:53,309 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abbc4c02-0e48-423b-be9e-b84d9e383a22', 'name': 'ctest-vn-84337690', 'tenant_id': '607a0c4563bc483983f956bb12be39d6', 'project_id': '607a0c4563bc483983f956bb12be39d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc4ec7db-de51-4212-97a0-9bb8f40508be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22873727', 'ctest-vn-84337690'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22873727', 'ctest-policy-allow-all-52163346']], 'subnet_ipam': [{'subnet_cidr': '171.201.0.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-15 12:42:53,544 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab97157d-af80-43cc-bbea-55aada4a278f', 'name': 'ctest-vn-24593156', 'tenant_id': '607a0c4563bc483983f956bb12be39d6', 'project_id': '607a0c4563bc483983f956bb12be39d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c0a5c3f-40a9-49f2-aa20-463e2a2522af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22873727', 'ctest-vn-24593156'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22873727', 'ctest-policy-allow-all-52163346']], 'subnet_ipam': [{'subnet_cidr': '35.173.10.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-15 12:42:53,699 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-15 12:42:54,023 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-15 12:42:54,045 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36dcb4fc-0d2b-4d81-9fd0-98a450c78c4a
2026-06-15 12:42:54,055 - DEBUG - Requesting: http://10.0.0.38:8082/project/607a0c45-63bc-4839-83f9-56bb12be39d6
2026-06-15 12:42:54,124 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/abbc4c02-0e48-423b-be9e-b84d9e383a22
2026-06-15 12:42:54,134 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/abbc4c02-0e48-423b-be9e-b84d9e383a22
2026-06-15 12:42:54,141 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cc820a86-980b-4fed-b31f-9a43cce0b189
2026-06-15 12:42:54,147 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cc820a86-980b-4fed-b31f-9a43cce0b189
2026-06-15 12:42:54,152 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8b0536eb-a35e-451f-8dca-4a2e8d5c799b
2026-06-15 12:42:54,156 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-15 12:42:54,156 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/abbc4c02-0e48-423b-be9e-b84d9e383a22
2026-06-15 12:42:54,164 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cc820a86-980b-4fed-b31f-9a43cce0b189
2026-06-15 12:42:54,174 - INFO - Verified VN network id 12 for VN abbc4c02-0e48-423b-be9e-b84d9e383a22
2026-06-15 12:42:54,174 - INFO - Verifications in API Server for VN ctest-vn-84337690 passed
2026-06-15 12:42:54,174 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/abbc4c02-0e48-423b-be9e-b84d9e383a22
2026-06-15 12:42:54,181 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cc820a86-980b-4fed-b31f-9a43cce0b189
2026-06-15 12:42:54,186 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cc820a86-980b-4fed-b31f-9a43cce0b189
2026-06-15 12:42:54,191 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8b0536eb-a35e-451f-8dca-4a2e8d5c799b
2026-06-15 12:42:54,200 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22873727:ctest-vn-84337690', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22873727', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12374849447820542523', 'uuid-lslong': '13735618557033069090'}, 'enable': 'true', 'created': '2026-06-15T12:42:52', 'last-modified': '2026-06-15T12:42:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.912921'}
2026-06-15 12:42:54,205 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-15 12:42:54,205 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84337690 passed
2026-06-15 12:42:54,205 - DEBUG - ====Verifying policy data for ctest-vn-84337690 in API_Server ======
2026-06-15 12:42:54,205 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-15 12:42:54,209 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36dcb4fc-0d2b-4d81-9fd0-98a450c78c4a
2026-06-15 12:42:54,218 - DEBUG - Requesting: http://10.0.0.38:8082/project/607a0c45-63bc-4839-83f9-56bb12be39d6
2026-06-15 12:42:54,290 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/abbc4c02-0e48-423b-be9e-b84d9e383a22
2026-06-15 12:42:54,298 - DEBUG - ==>Verifying data for policy with id: d8fc3528-2b48-464e-8d90-04a46b04641e, fqn: ['default-domain', 'ctest-TestBasicPolicy-22873727', 'ctest-policy-allow-all-52163346']
2026-06-15 12:42:54,298 - INFO - VN ctest-vn-84337690 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-15 12:42:54,298 - DEBUG - Verifying the vn in opserver
2026-06-15 12:42:54,298 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22873727:ctest-vn-84337690 virtual network link through opserver 10.0.0.38
2026-06-15 12:42:54,298 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-15 12:42:54,612 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-15 12:42:54,964 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22873727:ctest-vn-84337690', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22873727:ctest-vn-84337690?flat'}
2026-06-15 12:42:54,964 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22873727:ctest-vn-84337690 is found in opserver
2026-06-15 12:42:54,972 - DEBUG - Do not have enough data to verify VN in agent
2026-06-15 12:42:54,976 - DEBUG - VRF ids for VN ctest-vn-84337690: {}
2026-06-15 12:42:54,976 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-15 12:42:54,981 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36dcb4fc-0d2b-4d81-9fd0-98a450c78c4a
2026-06-15 12:42:54,990 - DEBUG - Requesting: http://10.0.0.38:8082/project/607a0c45-63bc-4839-83f9-56bb12be39d6
2026-06-15 12:42:55,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab97157d-af80-43cc-bbea-55aada4a278f
2026-06-15 12:42:55,073 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab97157d-af80-43cc-bbea-55aada4a278f
2026-06-15 12:42:55,080 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31cd521e-5241-4551-a62c-55d688fdcc43
2026-06-15 12:42:55,087 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31cd521e-5241-4551-a62c-55d688fdcc43
2026-06-15 12:42:55,093 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4dff453e-9506-490d-9495-7a89962a4b74
2026-06-15 12:42:55,099 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-15 12:42:55,099 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab97157d-af80-43cc-bbea-55aada4a278f
2026-06-15 12:42:55,108 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31cd521e-5241-4551-a62c-55d688fdcc43
2026-06-15 12:42:55,122 - INFO - Verified VN network id 13 for VN ab97157d-af80-43cc-bbea-55aada4a278f
2026-06-15 12:42:55,123 - INFO - Verifications in API Server for VN ctest-vn-24593156 passed
2026-06-15 12:42:55,123 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab97157d-af80-43cc-bbea-55aada4a278f
2026-06-15 12:42:55,132 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31cd521e-5241-4551-a62c-55d688fdcc43
2026-06-15 12:42:55,139 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31cd521e-5241-4551-a62c-55d688fdcc43
2026-06-15 12:42:55,146 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4dff453e-9506-490d-9495-7a89962a4b74
2026-06-15 12:42:55,156 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22873727:ctest-vn-24593156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22873727', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12364374931528500172', 'uuid-lslong': '13540729421937911695'}, 'enable': 'true', 'created': '2026-06-15T12:42:52', 'last-modified': '2026-06-15T12:42:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.633672'}
2026-06-15 12:42:55,161 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-15 12:42:55,161 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24593156 passed
2026-06-15 12:42:55,161 - DEBUG - ====Verifying policy data for ctest-vn-24593156 in API_Server ======
2026-06-15 12:42:55,161 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-15 12:42:55,166 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36dcb4fc-0d2b-4d81-9fd0-98a450c78c4a
2026-06-15 12:42:55,178 - DEBUG - Requesting: http://10.0.0.38:8082/project/607a0c45-63bc-4839-83f9-56bb12be39d6
2026-06-15 12:42:55,245 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab97157d-af80-43cc-bbea-55aada4a278f
2026-06-15 12:42:55,252 - DEBUG - ==>Verifying data for policy with id: d8fc3528-2b48-464e-8d90-04a46b04641e, fqn: ['default-domain', 'ctest-TestBasicPolicy-22873727', 'ctest-policy-allow-all-52163346']
2026-06-15 12:42:55,253 - INFO - VN ctest-vn-24593156 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-15 12:42:55,253 - DEBUG - Verifying the vn in opserver
2026-06-15 12:42:55,253 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22873727:ctest-vn-24593156 virtual network link through opserver 10.0.0.38
2026-06-15 12:42:55,253 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-15 12:42:55,262 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22873727:ctest-vn-24593156', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22873727:ctest-vn-24593156?flat'}
2026-06-15 12:42:55,262 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22873727:ctest-vn-24593156 is found in opserver
2026-06-15 12:42:55,270 - DEBUG - Do not have enough data to verify VN in agent
2026-06-15 12:42:55,274 - DEBUG - VRF ids for VN ctest-vn-24593156: {}
2026-06-15 12:42:55,324 - DEBUG - Services list from nova: [