2026-01-26 16:55:48,865 - INFO - Domain Default found not creating
2026-01-26 16:55:49,052 - INFO - Project ctest-TestBasicPolicy-80365625 not found, creating it
2026-01-26 16:55:49,515 - INFO - Created Project:ctest-TestBasicPolicy-80365625, ID : a50c6509-9262-4ac8-85d9-4588ecc3e071
2026-01-26 16:55:51,122 - INFO - ================================================================================
2026-01-26 16:55:51,122 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-26 16:55:51,122 - 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-26 16:55:51,383 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2026-01-26 16:55:51,383 - INFO - Initial checks done. Running the testcase now
2026-01-26 16:55:51,384 - INFO -
2026-01-26 16:55:51,966 - DEBUG - Response for create_network : {'network': {'id': '04c27ab6-dc4a-4394-a050-d2d6e0132077', 'name': 'ctest-vn-56912237', 'tenant_id': 'a50c650992624ac885d94588ecc3e071', 'project_id': 'a50c650992624ac885d94588ecc3e071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80365625', 'ctest-vn-56912237'], 'port_security_enabled': True, 'description': ''}}
2026-01-26 16:55:52,173 - DEBUG - Response for create_subnet : {'subnet': {'id': '33f61142-83d5-4c05-b36a-35009f53840b', 'name': '', 'tenant_id': 'a50c650992624ac885d94588ecc3e071', 'network_id': '04c27ab6-dc4a-4394-a050-d2d6e0132077', 'ip_version': 4, 'cidr': '38.35.91.64/26', 'allocation_pools': [{'start': '38.35.91.66', 'end': '38.35.91.126'}], 'gateway_ip': '38.35.91.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.35.91.66', 'tags': [], 'project_id': 'a50c650992624ac885d94588ecc3e071'}}
2026-01-26 16:55:52,190 - INFO - Created VN ctest-vn-56912237
2026-01-26 16:55:52,241 - DEBUG - VN ctest-vn-56912237 UUID is 04c27ab6-dc4a-4394-a050-d2d6e0132077
2026-01-26 16:55:52,577 - DEBUG - Response for create_network : {'network': {'id': '259435b2-ff07-4eb7-8fe4-bc55a0c151c7', 'name': 'ctest-vn-03390526', 'tenant_id': 'a50c650992624ac885d94588ecc3e071', 'project_id': 'a50c650992624ac885d94588ecc3e071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80365625', 'ctest-vn-03390526'], 'port_security_enabled': True, 'description': ''}}
2026-01-26 16:55:52,773 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f9f8c95-1988-4e7b-a4bd-04648736d168', 'name': '', 'tenant_id': 'a50c650992624ac885d94588ecc3e071', 'network_id': '259435b2-ff07-4eb7-8fe4-bc55a0c151c7', 'ip_version': 4, 'cidr': '9.104.25.64/26', 'allocation_pools': [{'start': '9.104.25.66', 'end': '9.104.25.126'}], 'gateway_ip': '9.104.25.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.104.25.66', 'tags': [], 'project_id': 'a50c650992624ac885d94588ecc3e071'}}
2026-01-26 16:55:52,792 - INFO - Created VN ctest-vn-03390526
2026-01-26 16:55:52,845 - DEBUG - VN ctest-vn-03390526 UUID is 259435b2-ff07-4eb7-8fe4-bc55a0c151c7
2026-01-26 16:55:52,997 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80365625:ctest-vn-56912237, 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-80365625:ctest-vn-03390526, 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-26 16:55:53,290 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04c27ab6-dc4a-4394-a050-d2d6e0132077', 'name': 'ctest-vn-56912237', 'tenant_id': 'a50c650992624ac885d94588ecc3e071', 'project_id': 'a50c650992624ac885d94588ecc3e071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33f61142-83d5-4c05-b36a-35009f53840b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80365625', 'ctest-vn-56912237'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80365625', 'ctest-policy-allow-all-40235147']], 'subnet_ipam': [{'subnet_cidr': '38.35.91.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-26 16:55:53,574 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '259435b2-ff07-4eb7-8fe4-bc55a0c151c7', 'name': 'ctest-vn-03390526', 'tenant_id': 'a50c650992624ac885d94588ecc3e071', 'project_id': 'a50c650992624ac885d94588ecc3e071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f9f8c95-1988-4e7b-a4bd-04648736d168'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80365625', 'ctest-vn-03390526'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80365625', 'ctest-policy-allow-all-40235147']], 'subnet_ipam': [{'subnet_cidr': '9.104.25.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-26 16:55:53,717 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-26 16:55:54,056 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-26 16:55:54,089 - DEBUG - Requesting: http://10.0.0.242:8082/domain/88faa671-3e7b-47f7-9762-2ccccea6f09f
2026-01-26 16:55:54,101 - DEBUG - Requesting: http://10.0.0.242:8082/project/a50c6509-9262-4ac8-85d9-4588ecc3e071
2026-01-26 16:55:54,176 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/04c27ab6-dc4a-4394-a050-d2d6e0132077
2026-01-26 16:55:54,186 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/04c27ab6-dc4a-4394-a050-d2d6e0132077
2026-01-26 16:55:54,196 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/699f89b6-06c7-4128-8663-3fc31050d84a
2026-01-26 16:55:54,203 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/699f89b6-06c7-4128-8663-3fc31050d84a
2026-01-26 16:55:54,210 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6ac2f9af-fbe2-4784-a0a2-f84c820dad88
2026-01-26 16:55:54,216 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-26 16:55:54,216 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/04c27ab6-dc4a-4394-a050-d2d6e0132077
2026-01-26 16:55:54,225 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/699f89b6-06c7-4128-8663-3fc31050d84a
2026-01-26 16:55:54,239 - INFO - Verified VN network id 11 for VN 04c27ab6-dc4a-4394-a050-d2d6e0132077
2026-01-26 16:55:54,239 - INFO - Verifications in API Server for VN ctest-vn-56912237 passed
2026-01-26 16:55:54,239 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/04c27ab6-dc4a-4394-a050-d2d6e0132077
2026-01-26 16:55:54,250 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/699f89b6-06c7-4128-8663-3fc31050d84a
2026-01-26 16:55:54,258 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/699f89b6-06c7-4128-8663-3fc31050d84a
2026-01-26 16:55:54,266 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6ac2f9af-fbe2-4784-a0a2-f84c820dad88
2026-01-26 16:55:54,279 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80365625:ctest-vn-56912237', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80365625', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '342971447432070036', 'uuid-lslong': '11551964864529506423'}, 'enable': 'true', 'created': '2026-01-26T16:55:51', 'last-modified': '2026-01-26T16:55:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014052'}
2026-01-26 16:55:54,285 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-26 16:55:54,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56912237 passed
2026-01-26 16:55:54,285 - DEBUG - ====Verifying policy data for ctest-vn-56912237 in API_Server ======
2026-01-26 16:55:54,285 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-26 16:55:54,291 - DEBUG - Requesting: http://10.0.0.242:8082/domain/88faa671-3e7b-47f7-9762-2ccccea6f09f
2026-01-26 16:55:54,305 - DEBUG - Requesting: http://10.0.0.242:8082/project/a50c6509-9262-4ac8-85d9-4588ecc3e071
2026-01-26 16:55:54,375 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/04c27ab6-dc4a-4394-a050-d2d6e0132077
2026-01-26 16:55:54,385 - DEBUG - ==>Verifying data for policy with id: 983175f1-f300-41c5-aa4b-3736971a7fcc, fqn: ['default-domain', 'ctest-TestBasicPolicy-80365625', 'ctest-policy-allow-all-40235147']
2026-01-26 16:55:54,385 - INFO - VN ctest-vn-56912237 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-26 16:55:54,385 - DEBUG - Verifying the vn in opserver
2026-01-26 16:55:54,385 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80365625:ctest-vn-56912237 virtual network link through opserver 10.0.0.242
2026-01-26 16:55:54,385 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-01-26 16:55:54,723 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-01-26 16:55:54,793 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80365625:ctest-vn-56912237', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80365625:ctest-vn-56912237?flat'}
2026-01-26 16:55:54,793 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80365625:ctest-vn-56912237 is found in opserver
2026-01-26 16:55:54,802 - DEBUG - Do not have enough data to verify VN in agent
2026-01-26 16:55:54,806 - DEBUG - VRF ids for VN ctest-vn-56912237: {}
2026-01-26 16:55:54,807 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-26 16:55:54,812 - DEBUG - Requesting: http://10.0.0.242:8082/domain/88faa671-3e7b-47f7-9762-2ccccea6f09f
2026-01-26 16:55:54,822 - DEBUG - Requesting: http://10.0.0.242:8082/project/a50c6509-9262-4ac8-85d9-4588ecc3e071
2026-01-26 16:55:54,895 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/259435b2-ff07-4eb7-8fe4-bc55a0c151c7
2026-01-26 16:55:54,914 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/259435b2-ff07-4eb7-8fe4-bc55a0c151c7
2026-01-26 16:55:54,924 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e78b3a3a-b5c5-4c37-9810-3166aedf398e
2026-01-26 16:55:54,931 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e78b3a3a-b5c5-4c37-9810-3166aedf398e
2026-01-26 16:55:54,938 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/fce750c6-7775-4d6e-bf27-a8eac35301f6
2026-01-26 16:55:54,944 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-26 16:55:54,944 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/259435b2-ff07-4eb7-8fe4-bc55a0c151c7
2026-01-26 16:55:54,952 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e78b3a3a-b5c5-4c37-9810-3166aedf398e
2026-01-26 16:55:54,964 - INFO - Verified VN network id 12 for VN 259435b2-ff07-4eb7-8fe4-bc55a0c151c7
2026-01-26 16:55:54,964 - INFO - Verifications in API Server for VN ctest-vn-03390526 passed
2026-01-26 16:55:54,964 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/259435b2-ff07-4eb7-8fe4-bc55a0c151c7
2026-01-26 16:55:54,972 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e78b3a3a-b5c5-4c37-9810-3166aedf398e
2026-01-26 16:55:54,978 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e78b3a3a-b5c5-4c37-9810-3166aedf398e
2026-01-26 16:55:54,984 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/fce750c6-7775-4d6e-bf27-a8eac35301f6
2026-01-26 16:55:54,995 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80365625:ctest-vn-03390526', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80365625', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2707848318855630519', 'uuid-lslong': '10368619318068990407'}, 'enable': 'true', 'created': '2026-01-26T16:55:52', 'last-modified': '2026-01-26T16:55:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.492206'}
2026-01-26 16:55:55,001 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-26 16:55:55,001 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03390526 passed
2026-01-26 16:55:55,001 - DEBUG - ====Verifying policy data for ctest-vn-03390526 in API_Server ======
2026-01-26 16:55:55,001 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-26 16:55:55,007 - DEBUG - Requesting: http://10.0.0.242:8082/domain/88faa671-3e7b-47f7-9762-2ccccea6f09f
2026-01-26 16:55:55,017 - DEBUG - Requesting: http://10.0.0.242:8082/project/a50c6509-9262-4ac8-85d9-4588ecc3e071
2026-01-26 16:55:55,084 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/259435b2-ff07-4eb7-8fe4-bc55a0c151c7
2026-01-26 16:55:55,093 - DEBUG - ==>Verifying data for policy with id: 983175f1-f300-41c5-aa4b-3736971a7fcc, fqn: ['default-domain', 'ctest-TestBasicPolicy-80365625', 'ctest-policy-allow-all-40235147']
2026-01-26 16:55:55,093 - INFO - VN ctest-vn-03390526 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-26 16:55:55,093 - DEBUG - Verifying the vn in opserver
2026-01-26 16:55:55,093 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80365625:ctest-vn-03390526 virtual network link through opserver 10.0.0.242
2026-01-26 16:55:55,093 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-01-26 16:55:55,103 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80365625:ctest-vn-03390526', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80365625:ctest-vn-03390526?flat'}
2026-01-26 16:55:55,103 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80365625:ctest-vn-03390526 is found in opserver
2026-01-26 16:55:55,113 - DEBUG - Do not have enough data to verify VN in agent
2026-01-26 16:55:55,117 - DEBUG - VRF ids for VN ctest-vn-03390526: {}
2026-01-26 16:55:55,173 - DEBUG - Services list from nova: [