2026-04-21 22:14:59,748 - INFO - Domain Default found not creating
2026-04-21 22:14:59,943 - INFO - Project ctest-TestBasicPolicy-69512835 not found, creating it
2026-04-21 22:15:00,433 - INFO - Created Project:ctest-TestBasicPolicy-69512835, ID : 4596a8c2-e0f5-4ab6-9d51-2ffab476762a
2026-04-21 22:15:02,029 - INFO - ================================================================================
2026-04-21 22:15:02,029 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-21 22:15:02,030 - 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-04-21 22:15:02,299 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-21 22:15:02,300 - INFO - Initial checks done. Running the testcase now
2026-04-21 22:15:02,300 - INFO -
2026-04-21 22:15:02,961 - DEBUG - Response for create_network : {'network': {'id': 'c50dcdca-f525-43cd-b2bc-1e4ea0b5a57f', 'name': 'ctest-vn-65685355', 'tenant_id': '4596a8c2e0f54ab69d512ffab476762a', 'project_id': '4596a8c2e0f54ab69d512ffab476762a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69512835', 'ctest-vn-65685355'], 'port_security_enabled': True, 'description': ''}}
2026-04-21 22:15:03,130 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bee48ad-029c-4195-95b6-165fa2f9fdad', 'name': '', 'tenant_id': '4596a8c2e0f54ab69d512ffab476762a', 'network_id': 'c50dcdca-f525-43cd-b2bc-1e4ea0b5a57f', 'ip_version': 4, 'cidr': '52.248.12.0/26', 'allocation_pools': [{'start': '52.248.12.2', 'end': '52.248.12.62'}], 'gateway_ip': '52.248.12.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.248.12.2', 'tags': [], 'project_id': '4596a8c2e0f54ab69d512ffab476762a'}}
2026-04-21 22:15:03,149 - INFO - Created VN ctest-vn-65685355
2026-04-21 22:15:03,202 - DEBUG - VN ctest-vn-65685355 UUID is c50dcdca-f525-43cd-b2bc-1e4ea0b5a57f
2026-04-21 22:15:03,523 - DEBUG - Response for create_network : {'network': {'id': 'ab9e1feb-2e18-4949-bcc2-647911ded1c2', 'name': 'ctest-vn-41702955', 'tenant_id': '4596a8c2e0f54ab69d512ffab476762a', 'project_id': '4596a8c2e0f54ab69d512ffab476762a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69512835', 'ctest-vn-41702955'], 'port_security_enabled': True, 'description': ''}}
2026-04-21 22:15:03,767 - DEBUG - Response for create_subnet : {'subnet': {'id': 'faf41237-202b-4775-b9ce-47c44a0bb323', 'name': '', 'tenant_id': '4596a8c2e0f54ab69d512ffab476762a', 'network_id': 'ab9e1feb-2e18-4949-bcc2-647911ded1c2', 'ip_version': 4, 'cidr': '114.212.36.64/26', 'allocation_pools': [{'start': '114.212.36.66', 'end': '114.212.36.126'}], 'gateway_ip': '114.212.36.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.212.36.66', 'tags': [], 'project_id': '4596a8c2e0f54ab69d512ffab476762a'}}
2026-04-21 22:15:03,788 - INFO - Created VN ctest-vn-41702955
2026-04-21 22:15:03,842 - DEBUG - VN ctest-vn-41702955 UUID is ab9e1feb-2e18-4949-bcc2-647911ded1c2
2026-04-21 22:15:03,960 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69512835:ctest-vn-65685355, 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-69512835:ctest-vn-41702955, 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-04-21 22:15:04,265 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c50dcdca-f525-43cd-b2bc-1e4ea0b5a57f', 'name': 'ctest-vn-65685355', 'tenant_id': '4596a8c2e0f54ab69d512ffab476762a', 'project_id': '4596a8c2e0f54ab69d512ffab476762a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2bee48ad-029c-4195-95b6-165fa2f9fdad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69512835', 'ctest-vn-65685355'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69512835', 'ctest-policy-allow-all-63556803']], 'subnet_ipam': [{'subnet_cidr': '52.248.12.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-21 22:15:04,498 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab9e1feb-2e18-4949-bcc2-647911ded1c2', 'name': 'ctest-vn-41702955', 'tenant_id': '4596a8c2e0f54ab69d512ffab476762a', 'project_id': '4596a8c2e0f54ab69d512ffab476762a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['faf41237-202b-4775-b9ce-47c44a0bb323'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69512835', 'ctest-vn-41702955'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69512835', 'ctest-policy-allow-all-63556803']], 'subnet_ipam': [{'subnet_cidr': '114.212.36.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-21 22:15:04,662 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 22:15:04,957 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 22:15:04,997 - DEBUG - Requesting: http://10.0.0.38:8082/domain/33208cc1-0030-4a05-8a55-a4435d63b726
2026-04-21 22:15:05,010 - DEBUG - Requesting: http://10.0.0.38:8082/project/4596a8c2-e0f5-4ab6-9d51-2ffab476762a
2026-04-21 22:15:05,078 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c50dcdca-f525-43cd-b2bc-1e4ea0b5a57f
2026-04-21 22:15:05,089 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c50dcdca-f525-43cd-b2bc-1e4ea0b5a57f
2026-04-21 22:15:05,097 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ceb0188f-1d05-4e9d-b686-ce182f129ffc
2026-04-21 22:15:05,104 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ceb0188f-1d05-4e9d-b686-ce182f129ffc
2026-04-21 22:15:05,110 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dbabc491-cc3e-4029-82c0-cda983fa3aac
2026-04-21 22:15:05,116 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-21 22:15:05,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c50dcdca-f525-43cd-b2bc-1e4ea0b5a57f
2026-04-21 22:15:05,126 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ceb0188f-1d05-4e9d-b686-ce182f129ffc
2026-04-21 22:15:05,141 - INFO - Verified VN network id 11 for VN c50dcdca-f525-43cd-b2bc-1e4ea0b5a57f
2026-04-21 22:15:05,141 - INFO - Verifications in API Server for VN ctest-vn-65685355 passed
2026-04-21 22:15:05,141 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c50dcdca-f525-43cd-b2bc-1e4ea0b5a57f
2026-04-21 22:15:05,151 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ceb0188f-1d05-4e9d-b686-ce182f129ffc
2026-04-21 22:15:05,159 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ceb0188f-1d05-4e9d-b686-ce182f129ffc
2026-04-21 22:15:05,167 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dbabc491-cc3e-4029-82c0-cda983fa3aac
2026-04-21 22:15:05,181 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69512835:ctest-vn-65685355', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69512835', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14199231471748989901', 'uuid-lslong': '12879202357425317247'}, 'enable': 'true', 'created': '2026-04-21T22:15:02', 'last-modified': '2026-04-21T22:15:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946399'}
2026-04-21 22:15:05,187 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-21 22:15:05,187 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65685355 passed
2026-04-21 22:15:05,187 - DEBUG - ====Verifying policy data for ctest-vn-65685355 in API_Server ======
2026-04-21 22:15:05,187 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 22:15:05,194 - DEBUG - Requesting: http://10.0.0.38:8082/domain/33208cc1-0030-4a05-8a55-a4435d63b726
2026-04-21 22:15:05,205 - DEBUG - Requesting: http://10.0.0.38:8082/project/4596a8c2-e0f5-4ab6-9d51-2ffab476762a
2026-04-21 22:15:05,274 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c50dcdca-f525-43cd-b2bc-1e4ea0b5a57f
2026-04-21 22:15:05,283 - DEBUG - ==>Verifying data for policy with id: ce45febd-76f0-4830-b955-f60070d50c74, fqn: ['default-domain', 'ctest-TestBasicPolicy-69512835', 'ctest-policy-allow-all-63556803']
2026-04-21 22:15:05,283 - INFO - VN ctest-vn-65685355 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-21 22:15:05,283 - DEBUG - Verifying the vn in opserver
2026-04-21 22:15:05,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69512835:ctest-vn-65685355 virtual network link through opserver 10.0.0.38
2026-04-21 22:15:05,283 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-21 22:15:05,577 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-21 22:15:05,646 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69512835:ctest-vn-65685355', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69512835:ctest-vn-65685355?flat'}
2026-04-21 22:15:05,646 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69512835:ctest-vn-65685355 is found in opserver
2026-04-21 22:15:05,655 - DEBUG - Do not have enough data to verify VN in agent
2026-04-21 22:15:05,659 - DEBUG - VRF ids for VN ctest-vn-65685355: {}
2026-04-21 22:15:05,659 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 22:15:05,665 - DEBUG - Requesting: http://10.0.0.38:8082/domain/33208cc1-0030-4a05-8a55-a4435d63b726
2026-04-21 22:15:05,675 - DEBUG - Requesting: http://10.0.0.38:8082/project/4596a8c2-e0f5-4ab6-9d51-2ffab476762a
2026-04-21 22:15:05,749 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab9e1feb-2e18-4949-bcc2-647911ded1c2
2026-04-21 22:15:05,761 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab9e1feb-2e18-4949-bcc2-647911ded1c2
2026-04-21 22:15:05,772 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3e0213d2-7724-4168-b745-d9e317a0c879
2026-04-21 22:15:05,779 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3e0213d2-7724-4168-b745-d9e317a0c879
2026-04-21 22:15:05,786 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/37a14e38-c3a6-4a48-a1fe-31facebbb6c3
2026-04-21 22:15:05,792 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-21 22:15:05,792 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab9e1feb-2e18-4949-bcc2-647911ded1c2
2026-04-21 22:15:05,801 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3e0213d2-7724-4168-b745-d9e317a0c879
2026-04-21 22:15:05,815 - INFO - Verified VN network id 12 for VN ab9e1feb-2e18-4949-bcc2-647911ded1c2
2026-04-21 22:15:05,815 - INFO - Verifications in API Server for VN ctest-vn-41702955 passed
2026-04-21 22:15:05,816 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab9e1feb-2e18-4949-bcc2-647911ded1c2
2026-04-21 22:15:05,824 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3e0213d2-7724-4168-b745-d9e317a0c879
2026-04-21 22:15:05,832 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3e0213d2-7724-4168-b745-d9e317a0c879
2026-04-21 22:15:05,839 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/37a14e38-c3a6-4a48-a1fe-31facebbb6c3
2026-04-21 22:15:05,852 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69512835:ctest-vn-41702955', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69512835', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12366356721757079881', 'uuid-lslong': '13601544295765955010'}, 'enable': 'true', 'created': '2026-04-21T22:15:03', 'last-modified': '2026-04-21T22:15:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.380150'}
2026-04-21 22:15:05,858 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-21 22:15:05,858 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41702955 passed
2026-04-21 22:15:05,858 - DEBUG - ====Verifying policy data for ctest-vn-41702955 in API_Server ======
2026-04-21 22:15:05,858 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 22:15:05,864 - DEBUG - Requesting: http://10.0.0.38:8082/domain/33208cc1-0030-4a05-8a55-a4435d63b726
2026-04-21 22:15:05,876 - DEBUG - Requesting: http://10.0.0.38:8082/project/4596a8c2-e0f5-4ab6-9d51-2ffab476762a
2026-04-21 22:15:05,949 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab9e1feb-2e18-4949-bcc2-647911ded1c2
2026-04-21 22:15:05,957 - DEBUG - ==>Verifying data for policy with id: ce45febd-76f0-4830-b955-f60070d50c74, fqn: ['default-domain', 'ctest-TestBasicPolicy-69512835', 'ctest-policy-allow-all-63556803']
2026-04-21 22:15:05,957 - INFO - VN ctest-vn-41702955 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-21 22:15:05,958 - DEBUG - Verifying the vn in opserver
2026-04-21 22:15:05,958 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69512835:ctest-vn-41702955 virtual network link through opserver 10.0.0.38
2026-04-21 22:15:05,958 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-21 22:15:05,968 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69512835:ctest-vn-41702955', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69512835:ctest-vn-41702955?flat'}
2026-04-21 22:15:05,968 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69512835:ctest-vn-41702955 is found in opserver
2026-04-21 22:15:05,978 - DEBUG - Do not have enough data to verify VN in agent
2026-04-21 22:15:05,985 - DEBUG - VRF ids for VN ctest-vn-41702955: {}
2026-04-21 22:15:06,050 - DEBUG - Services list from nova: [