2026-04-24 14:15:35,486 - INFO - Domain Default found not creating
2026-04-24 14:15:35,719 - INFO - Project ctest-TestBasicPolicy-54263639 not found, creating it
2026-04-24 14:15:36,232 - INFO - Created Project:ctest-TestBasicPolicy-54263639, ID : b147af86-9ef1-42e8-bc55-e9b0b572bf5d
2026-04-24 14:15:37,854 - INFO - ================================================================================
2026-04-24 14:15:37,854 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-24 14:15:37,855 - 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-24 14:15:38,122 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2026-04-24 14:15:38,122 - INFO - Initial checks done. Running the testcase now
2026-04-24 14:15:38,122 - INFO -
2026-04-24 14:15:38,775 - DEBUG - Response for create_network : {'network': {'id': '9b0c1146-f8bd-411b-97be-17081de1539e', 'name': 'ctest-vn-33394181', 'tenant_id': 'b147af869ef142e8bc55e9b0b572bf5d', 'project_id': 'b147af869ef142e8bc55e9b0b572bf5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54263639', 'ctest-vn-33394181'], 'port_security_enabled': True, 'description': ''}}
2026-04-24 14:15:38,962 - DEBUG - Response for create_subnet : {'subnet': {'id': '60b75ee8-a557-4789-b5ac-17e3c8d71820', 'name': '', 'tenant_id': 'b147af869ef142e8bc55e9b0b572bf5d', 'network_id': '9b0c1146-f8bd-411b-97be-17081de1539e', 'ip_version': 4, 'cidr': '192.11.26.128/26', 'allocation_pools': [{'start': '192.11.26.130', 'end': '192.11.26.190'}], 'gateway_ip': '192.11.26.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.11.26.130', 'tags': [], 'project_id': 'b147af869ef142e8bc55e9b0b572bf5d'}}
2026-04-24 14:15:38,981 - INFO - Created VN ctest-vn-33394181
2026-04-24 14:15:39,035 - DEBUG - VN ctest-vn-33394181 UUID is 9b0c1146-f8bd-411b-97be-17081de1539e
2026-04-24 14:15:39,336 - DEBUG - Response for create_network : {'network': {'id': 'b8508e5d-55bf-4574-8df5-0743fb71e16f', 'name': 'ctest-vn-07110945', 'tenant_id': 'b147af869ef142e8bc55e9b0b572bf5d', 'project_id': 'b147af869ef142e8bc55e9b0b572bf5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54263639', 'ctest-vn-07110945'], 'port_security_enabled': True, 'description': ''}}
2026-04-24 14:15:39,501 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0407fd2-5f6c-4135-8007-a56cea307a18', 'name': '', 'tenant_id': 'b147af869ef142e8bc55e9b0b572bf5d', 'network_id': 'b8508e5d-55bf-4574-8df5-0743fb71e16f', 'ip_version': 4, 'cidr': '25.247.33.0/26', 'allocation_pools': [{'start': '25.247.33.2', 'end': '25.247.33.62'}], 'gateway_ip': '25.247.33.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.247.33.2', 'tags': [], 'project_id': 'b147af869ef142e8bc55e9b0b572bf5d'}}
2026-04-24 14:15:39,523 - INFO - Created VN ctest-vn-07110945
2026-04-24 14:15:39,575 - DEBUG - VN ctest-vn-07110945 UUID is b8508e5d-55bf-4574-8df5-0743fb71e16f
2026-04-24 14:15:39,690 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54263639:ctest-vn-33394181, 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-54263639:ctest-vn-07110945, 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-24 14:15:40,006 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b0c1146-f8bd-411b-97be-17081de1539e', 'name': 'ctest-vn-33394181', 'tenant_id': 'b147af869ef142e8bc55e9b0b572bf5d', 'project_id': 'b147af869ef142e8bc55e9b0b572bf5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60b75ee8-a557-4789-b5ac-17e3c8d71820'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54263639', 'ctest-vn-33394181'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54263639', 'ctest-policy-allow-all-64835156']], 'subnet_ipam': [{'subnet_cidr': '192.11.26.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-24 14:15:40,242 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8508e5d-55bf-4574-8df5-0743fb71e16f', 'name': 'ctest-vn-07110945', 'tenant_id': 'b147af869ef142e8bc55e9b0b572bf5d', 'project_id': 'b147af869ef142e8bc55e9b0b572bf5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f0407fd2-5f6c-4135-8007-a56cea307a18'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54263639', 'ctest-vn-07110945'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54263639', 'ctest-policy-allow-all-64835156']], 'subnet_ipam': [{'subnet_cidr': '25.247.33.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-24 14:15:40,404 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-24 14:15:40,712 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-24 14:15:40,748 - DEBUG - Requesting: http://10.0.0.249:8082/domain/79c65c63-69d7-41bc-97be-09914138ab11
2026-04-24 14:15:40,761 - DEBUG - Requesting: http://10.0.0.249:8082/project/b147af86-9ef1-42e8-bc55-e9b0b572bf5d
2026-04-24 14:15:40,841 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9b0c1146-f8bd-411b-97be-17081de1539e
2026-04-24 14:15:40,855 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9b0c1146-f8bd-411b-97be-17081de1539e
2026-04-24 14:15:40,866 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d390aed9-888a-48e0-9984-90c896e29df1
2026-04-24 14:15:40,874 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d390aed9-888a-48e0-9984-90c896e29df1
2026-04-24 14:15:40,882 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0c9b92a6-ef4b-4144-8602-7bcab915eb63
2026-04-24 14:15:40,889 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-24 14:15:40,889 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9b0c1146-f8bd-411b-97be-17081de1539e
2026-04-24 14:15:40,900 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d390aed9-888a-48e0-9984-90c896e29df1
2026-04-24 14:15:40,917 - INFO - Verified VN network id 11 for VN 9b0c1146-f8bd-411b-97be-17081de1539e
2026-04-24 14:15:40,917 - INFO - Verifications in API Server for VN ctest-vn-33394181 passed
2026-04-24 14:15:40,917 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9b0c1146-f8bd-411b-97be-17081de1539e
2026-04-24 14:15:40,928 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d390aed9-888a-48e0-9984-90c896e29df1
2026-04-24 14:15:40,936 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d390aed9-888a-48e0-9984-90c896e29df1
2026-04-24 14:15:40,944 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0c9b92a6-ef4b-4144-8602-7bcab915eb63
2026-04-24 14:15:40,959 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54263639:ctest-vn-33394181', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54263639', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11172323772117893403', 'uuid-lslong': '10934202268930626462'}, 'enable': 'true', 'created': '2026-04-24T14:15:38', 'last-modified': '2026-04-24T14:15:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985788'}
2026-04-24 14:15:40,967 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-24 14:15:40,967 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33394181 passed
2026-04-24 14:15:40,967 - DEBUG - ====Verifying policy data for ctest-vn-33394181 in API_Server ======
2026-04-24 14:15:40,967 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-24 14:15:40,974 - DEBUG - Requesting: http://10.0.0.249:8082/domain/79c65c63-69d7-41bc-97be-09914138ab11
2026-04-24 14:15:40,986 - DEBUG - Requesting: http://10.0.0.249:8082/project/b147af86-9ef1-42e8-bc55-e9b0b572bf5d
2026-04-24 14:15:41,056 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9b0c1146-f8bd-411b-97be-17081de1539e
2026-04-24 14:15:41,065 - DEBUG - ==>Verifying data for policy with id: 9c9ac6f2-d859-4f4f-9676-02e9e0d9268e, fqn: ['default-domain', 'ctest-TestBasicPolicy-54263639', 'ctest-policy-allow-all-64835156']
2026-04-24 14:15:41,065 - INFO - VN ctest-vn-33394181 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-24 14:15:41,065 - DEBUG - Verifying the vn in opserver
2026-04-24 14:15:41,065 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54263639:ctest-vn-33394181 virtual network link through opserver 10.0.0.249
2026-04-24 14:15:41,065 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-24 14:15:41,358 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-24 14:15:41,434 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54263639:ctest-vn-33394181', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54263639:ctest-vn-33394181?flat'}
2026-04-24 14:15:41,434 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54263639:ctest-vn-33394181 is found in opserver
2026-04-24 14:15:41,448 - DEBUG - Do not have enough data to verify VN in agent
2026-04-24 14:15:41,454 - DEBUG - VRF ids for VN ctest-vn-33394181: {}
2026-04-24 14:15:41,455 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-24 14:15:41,462 - DEBUG - Requesting: http://10.0.0.249:8082/domain/79c65c63-69d7-41bc-97be-09914138ab11
2026-04-24 14:15:41,473 - DEBUG - Requesting: http://10.0.0.249:8082/project/b147af86-9ef1-42e8-bc55-e9b0b572bf5d
2026-04-24 14:15:41,550 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b8508e5d-55bf-4574-8df5-0743fb71e16f
2026-04-24 14:15:41,562 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b8508e5d-55bf-4574-8df5-0743fb71e16f
2026-04-24 14:15:41,572 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e75da75b-3d4c-4ad9-b275-e07ae76f240e
2026-04-24 14:15:41,580 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e75da75b-3d4c-4ad9-b275-e07ae76f240e
2026-04-24 14:15:41,587 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0afc12a5-b65d-4b85-8955-443ca10918d4
2026-04-24 14:15:41,596 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-24 14:15:41,596 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b8508e5d-55bf-4574-8df5-0743fb71e16f
2026-04-24 14:15:41,606 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e75da75b-3d4c-4ad9-b275-e07ae76f240e
2026-04-24 14:15:41,621 - INFO - Verified VN network id 12 for VN b8508e5d-55bf-4574-8df5-0743fb71e16f
2026-04-24 14:15:41,621 - INFO - Verifications in API Server for VN ctest-vn-07110945 passed
2026-04-24 14:15:41,621 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b8508e5d-55bf-4574-8df5-0743fb71e16f
2026-04-24 14:15:41,631 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e75da75b-3d4c-4ad9-b275-e07ae76f240e
2026-04-24 14:15:41,638 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e75da75b-3d4c-4ad9-b275-e07ae76f240e
2026-04-24 14:15:41,646 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0afc12a5-b65d-4b85-8955-443ca10918d4
2026-04-24 14:15:41,661 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54263639:ctest-vn-07110945', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54263639', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13281271832637293940', 'uuid-lslong': '10229090117204697455'}, 'enable': 'true', 'created': '2026-04-24T14:15:39', 'last-modified': '2026-04-24T14:15:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.438065'}
2026-04-24 14:15:41,667 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-24 14:15:41,667 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07110945 passed
2026-04-24 14:15:41,667 - DEBUG - ====Verifying policy data for ctest-vn-07110945 in API_Server ======
2026-04-24 14:15:41,667 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-24 14:15:41,673 - DEBUG - Requesting: http://10.0.0.249:8082/domain/79c65c63-69d7-41bc-97be-09914138ab11
2026-04-24 14:15:41,685 - DEBUG - Requesting: http://10.0.0.249:8082/project/b147af86-9ef1-42e8-bc55-e9b0b572bf5d
2026-04-24 14:15:41,762 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b8508e5d-55bf-4574-8df5-0743fb71e16f
2026-04-24 14:15:41,772 - DEBUG - ==>Verifying data for policy with id: 9c9ac6f2-d859-4f4f-9676-02e9e0d9268e, fqn: ['default-domain', 'ctest-TestBasicPolicy-54263639', 'ctest-policy-allow-all-64835156']
2026-04-24 14:15:41,772 - INFO - VN ctest-vn-07110945 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-24 14:15:41,772 - DEBUG - Verifying the vn in opserver
2026-04-24 14:15:41,772 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54263639:ctest-vn-07110945 virtual network link through opserver 10.0.0.249
2026-04-24 14:15:41,772 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-24 14:15:41,783 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54263639:ctest-vn-07110945', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54263639:ctest-vn-07110945?flat'}
2026-04-24 14:15:41,783 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54263639:ctest-vn-07110945 is found in opserver
2026-04-24 14:15:41,793 - DEBUG - Do not have enough data to verify VN in agent
2026-04-24 14:15:41,799 - DEBUG - VRF ids for VN ctest-vn-07110945: {}
2026-04-24 14:15:41,865 - DEBUG - Services list from nova: [