2026-08-25 08:20:16,103 - INFO - Domain Default found not creating
2026-08-25 08:20:16,300 - INFO - Project ctest-TestBasicPolicy-24051036 not found, creating it
2026-08-25 08:20:16,808 - INFO - Created Project:ctest-TestBasicPolicy-24051036, ID : 2f1553b7-331c-4ab0-9b99-e2b3ed05d34b
2026-08-25 08:20:18,597 - INFO - ================================================================================
2026-08-25 08:20:18,597 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-25 08:20:18,597 - 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-08-25 08:20:18,871 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-08-25 08:20:18,871 - INFO - Initial checks done. Running the testcase now
2026-08-25 08:20:18,871 - INFO -
2026-08-25 08:20:19,541 - DEBUG - Response for create_network : {'network': {'id': '8029f3fc-b49c-47d3-a1d1-abc3c9769eca', 'name': 'ctest-vn-01937877', 'tenant_id': '2f1553b7331c4ab09b99e2b3ed05d34b', 'project_id': '2f1553b7331c4ab09b99e2b3ed05d34b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24051036', 'ctest-vn-01937877'], 'port_security_enabled': True, 'description': ''}}
2026-08-25 08:20:19,778 - DEBUG - Response for create_subnet : {'subnet': {'id': '945b609b-825b-4adb-bead-deed72a0ef8e', 'name': '', 'tenant_id': '2f1553b7331c4ab09b99e2b3ed05d34b', 'network_id': '8029f3fc-b49c-47d3-a1d1-abc3c9769eca', 'ip_version': 4, 'cidr': '75.230.78.192/26', 'allocation_pools': [{'start': '75.230.78.194', 'end': '75.230.78.254'}], 'gateway_ip': '75.230.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.230.78.194', 'tags': [], 'project_id': '2f1553b7331c4ab09b99e2b3ed05d34b'}}
2026-08-25 08:20:19,797 - INFO - Created VN ctest-vn-01937877
2026-08-25 08:20:19,854 - DEBUG - VN ctest-vn-01937877 UUID is 8029f3fc-b49c-47d3-a1d1-abc3c9769eca
2026-08-25 08:20:20,190 - DEBUG - Response for create_network : {'network': {'id': '17be4358-84b4-4e0d-ab55-37489417f1b0', 'name': 'ctest-vn-96265587', 'tenant_id': '2f1553b7331c4ab09b99e2b3ed05d34b', 'project_id': '2f1553b7331c4ab09b99e2b3ed05d34b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24051036', 'ctest-vn-96265587'], 'port_security_enabled': True, 'description': ''}}
2026-08-25 08:20:20,402 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d77348e-1588-4fa5-b186-1b13e263bf41', 'name': '', 'tenant_id': '2f1553b7331c4ab09b99e2b3ed05d34b', 'network_id': '17be4358-84b4-4e0d-ab55-37489417f1b0', 'ip_version': 4, 'cidr': '78.127.11.192/26', 'allocation_pools': [{'start': '78.127.11.194', 'end': '78.127.11.254'}], 'gateway_ip': '78.127.11.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.127.11.194', 'tags': [], 'project_id': '2f1553b7331c4ab09b99e2b3ed05d34b'}}
2026-08-25 08:20:20,422 - INFO - Created VN ctest-vn-96265587
2026-08-25 08:20:20,478 - DEBUG - VN ctest-vn-96265587 UUID is 17be4358-84b4-4e0d-ab55-37489417f1b0
2026-08-25 08:20:20,599 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24051036:ctest-vn-01937877, 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-24051036:ctest-vn-96265587, 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-08-25 08:20:20,935 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8029f3fc-b49c-47d3-a1d1-abc3c9769eca', 'name': 'ctest-vn-01937877', 'tenant_id': '2f1553b7331c4ab09b99e2b3ed05d34b', 'project_id': '2f1553b7331c4ab09b99e2b3ed05d34b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['945b609b-825b-4adb-bead-deed72a0ef8e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24051036', 'ctest-vn-01937877'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24051036', 'ctest-policy-allow-all-39350880']], 'subnet_ipam': [{'subnet_cidr': '75.230.78.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-25 08:20:21,191 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '17be4358-84b4-4e0d-ab55-37489417f1b0', 'name': 'ctest-vn-96265587', 'tenant_id': '2f1553b7331c4ab09b99e2b3ed05d34b', 'project_id': '2f1553b7331c4ab09b99e2b3ed05d34b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['8d77348e-1588-4fa5-b186-1b13e263bf41'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24051036', 'ctest-vn-96265587'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24051036', 'ctest-policy-allow-all-39350880']], 'subnet_ipam': [{'subnet_cidr': '78.127.11.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-25 08:20:21,366 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-25 08:20:21,746 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-25 08:20:21,778 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d4677a8-59fa-40f2-a66c-82b6bdeb6beb
2026-08-25 08:20:21,794 - DEBUG - Requesting: http://10.0.0.38:8082/project/2f1553b7-331c-4ab0-9b99-e2b3ed05d34b
2026-08-25 08:20:21,880 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8029f3fc-b49c-47d3-a1d1-abc3c9769eca
2026-08-25 08:20:21,897 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8029f3fc-b49c-47d3-a1d1-abc3c9769eca
2026-08-25 08:20:21,908 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a4dc17e-2972-481f-9522-6c0d23b1689d
2026-08-25 08:20:21,917 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a4dc17e-2972-481f-9522-6c0d23b1689d
2026-08-25 08:20:21,928 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fa83c811-6126-48d1-aeb8-f035573cfbba
2026-08-25 08:20:21,937 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-25 08:20:21,937 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8029f3fc-b49c-47d3-a1d1-abc3c9769eca
2026-08-25 08:20:21,951 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a4dc17e-2972-481f-9522-6c0d23b1689d
2026-08-25 08:20:21,973 - INFO - Verified VN network id 11 for VN 8029f3fc-b49c-47d3-a1d1-abc3c9769eca
2026-08-25 08:20:21,973 - INFO - Verifications in API Server for VN ctest-vn-01937877 passed
2026-08-25 08:20:21,973 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8029f3fc-b49c-47d3-a1d1-abc3c9769eca
2026-08-25 08:20:21,984 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a4dc17e-2972-481f-9522-6c0d23b1689d
2026-08-25 08:20:21,992 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a4dc17e-2972-481f-9522-6c0d23b1689d
2026-08-25 08:20:22,000 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fa83c811-6126-48d1-aeb8-f035573cfbba
2026-08-25 08:20:22,015 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24051036:ctest-vn-01937877', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24051036', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9235180777587361747', 'uuid-lslong': '11660289767625891530'}, 'enable': 'true', 'created': '2026-08-25T08:20:19', 'last-modified': '2026-08-25T08:20:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.099964'}
2026-08-25 08:20:22,023 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-25 08:20:22,023 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01937877 passed
2026-08-25 08:20:22,023 - DEBUG - ====Verifying policy data for ctest-vn-01937877 in API_Server ======
2026-08-25 08:20:22,023 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-25 08:20:22,030 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d4677a8-59fa-40f2-a66c-82b6bdeb6beb
2026-08-25 08:20:22,044 - DEBUG - Requesting: http://10.0.0.38:8082/project/2f1553b7-331c-4ab0-9b99-e2b3ed05d34b
2026-08-25 08:20:22,124 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8029f3fc-b49c-47d3-a1d1-abc3c9769eca
2026-08-25 08:20:22,137 - DEBUG - ==>Verifying data for policy with id: cbca26cc-5078-4a18-95af-ca727ac75ced, fqn: ['default-domain', 'ctest-TestBasicPolicy-24051036', 'ctest-policy-allow-all-39350880']
2026-08-25 08:20:22,137 - INFO - VN ctest-vn-01937877 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-25 08:20:22,138 - DEBUG - Verifying the vn in opserver
2026-08-25 08:20:22,138 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24051036:ctest-vn-01937877 virtual network link through opserver 10.0.0.38
2026-08-25 08:20:22,138 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-25 08:20:22,519 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-25 08:20:22,585 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24051036:ctest-vn-01937877', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24051036:ctest-vn-01937877?flat'}
2026-08-25 08:20:22,585 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24051036:ctest-vn-01937877 is found in opserver
2026-08-25 08:20:22,599 - DEBUG - Do not have enough data to verify VN in agent
2026-08-25 08:20:22,604 - DEBUG - VRF ids for VN ctest-vn-01937877: {}
2026-08-25 08:20:22,604 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-25 08:20:22,612 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d4677a8-59fa-40f2-a66c-82b6bdeb6beb
2026-08-25 08:20:22,628 - DEBUG - Requesting: http://10.0.0.38:8082/project/2f1553b7-331c-4ab0-9b99-e2b3ed05d34b
2026-08-25 08:20:22,707 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17be4358-84b4-4e0d-ab55-37489417f1b0
2026-08-25 08:20:22,721 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17be4358-84b4-4e0d-ab55-37489417f1b0
2026-08-25 08:20:22,731 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3e7ddfd8-8f50-44f0-8b0a-0004c53e896a
2026-08-25 08:20:22,741 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3e7ddfd8-8f50-44f0-8b0a-0004c53e896a
2026-08-25 08:20:22,751 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/50fdd581-78fb-4dca-8c44-72c794ea24bd
2026-08-25 08:20:22,760 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-25 08:20:22,760 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17be4358-84b4-4e0d-ab55-37489417f1b0
2026-08-25 08:20:22,772 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3e7ddfd8-8f50-44f0-8b0a-0004c53e896a
2026-08-25 08:20:22,789 - INFO - Verified VN network id 12 for VN 17be4358-84b4-4e0d-ab55-37489417f1b0
2026-08-25 08:20:22,789 - INFO - Verifications in API Server for VN ctest-vn-96265587 passed
2026-08-25 08:20:22,789 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17be4358-84b4-4e0d-ab55-37489417f1b0
2026-08-25 08:20:22,804 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3e7ddfd8-8f50-44f0-8b0a-0004c53e896a
2026-08-25 08:20:22,815 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3e7ddfd8-8f50-44f0-8b0a-0004c53e896a
2026-08-25 08:20:22,824 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/50fdd581-78fb-4dca-8c44-72c794ea24bd
2026-08-25 08:20:22,840 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24051036:ctest-vn-96265587', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24051036', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1710878955909959181', 'uuid-lslong': '12345834738367852976'}, 'enable': 'true', 'created': '2026-08-25T08:20:20', 'last-modified': '2026-08-25T08:20:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.677675'}
2026-08-25 08:20:22,846 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-25 08:20:22,847 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96265587 passed
2026-08-25 08:20:22,847 - DEBUG - ====Verifying policy data for ctest-vn-96265587 in API_Server ======
2026-08-25 08:20:22,847 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-25 08:20:22,854 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d4677a8-59fa-40f2-a66c-82b6bdeb6beb
2026-08-25 08:20:22,870 - DEBUG - Requesting: http://10.0.0.38:8082/project/2f1553b7-331c-4ab0-9b99-e2b3ed05d34b
2026-08-25 08:20:22,946 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17be4358-84b4-4e0d-ab55-37489417f1b0
2026-08-25 08:20:22,956 - DEBUG - ==>Verifying data for policy with id: cbca26cc-5078-4a18-95af-ca727ac75ced, fqn: ['default-domain', 'ctest-TestBasicPolicy-24051036', 'ctest-policy-allow-all-39350880']
2026-08-25 08:20:22,957 - INFO - VN ctest-vn-96265587 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-25 08:20:22,957 - DEBUG - Verifying the vn in opserver
2026-08-25 08:20:22,957 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24051036:ctest-vn-96265587 virtual network link through opserver 10.0.0.38
2026-08-25 08:20:22,957 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-25 08:20:22,969 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24051036:ctest-vn-96265587', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24051036:ctest-vn-96265587?flat'}
2026-08-25 08:20:22,969 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24051036:ctest-vn-96265587 is found in opserver
2026-08-25 08:20:22,984 - DEBUG - Do not have enough data to verify VN in agent
2026-08-25 08:20:22,991 - DEBUG - VRF ids for VN ctest-vn-96265587: {}
2026-08-25 08:20:23,070 - DEBUG - Services list from nova: [