2025-12-22 02:13:13,474 - INFO - Domain Default found not creating
2025-12-22 02:13:13,664 - INFO - Project ctest-TestBasicPolicy-20378034 not found, creating it
2025-12-22 02:13:14,159 - INFO - Created Project:ctest-TestBasicPolicy-20378034, ID : a8bcb995-b268-42c2-9061-df391ea23db2
2025-12-22 02:13:15,717 - INFO - ================================================================================
2025-12-22 02:13:15,717 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-22 02:13:15,718 - 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
2025-12-22 02:13:15,975 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.249': '0'}} with
2025-12-22 02:13:15,975 - INFO - Initial checks done. Running the testcase now
2025-12-22 02:13:15,976 - INFO -
2025-12-22 02:13:16,550 - DEBUG - Response for create_network : {'network': {'id': '0abc7282-441c-416f-bbdd-61c1c4ee4e04', 'name': 'ctest-vn-33829616', 'tenant_id': 'a8bcb995b26842c29061df391ea23db2', 'project_id': 'a8bcb995b26842c29061df391ea23db2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20378034', 'ctest-vn-33829616'], 'port_security_enabled': True, 'description': ''}}
2025-12-22 02:13:16,712 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ec496f8-c835-4988-ba24-953ae29a1487', 'name': '', 'tenant_id': 'a8bcb995b26842c29061df391ea23db2', 'network_id': '0abc7282-441c-416f-bbdd-61c1c4ee4e04', 'ip_version': 4, 'cidr': '166.91.254.128/26', 'allocation_pools': [{'start': '166.91.254.130', 'end': '166.91.254.190'}], 'gateway_ip': '166.91.254.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.91.254.130', 'tags': [], 'project_id': 'a8bcb995b26842c29061df391ea23db2'}}
2025-12-22 02:13:16,737 - INFO - Created VN ctest-vn-33829616
2025-12-22 02:13:16,793 - DEBUG - VN ctest-vn-33829616 UUID is 0abc7282-441c-416f-bbdd-61c1c4ee4e04
2025-12-22 02:13:17,092 - DEBUG - Response for create_network : {'network': {'id': '8b52374f-9986-4de1-baba-77f991b4412b', 'name': 'ctest-vn-10543769', 'tenant_id': 'a8bcb995b26842c29061df391ea23db2', 'project_id': 'a8bcb995b26842c29061df391ea23db2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20378034', 'ctest-vn-10543769'], 'port_security_enabled': True, 'description': ''}}
2025-12-22 02:13:17,283 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f186d05-49a3-4c5c-9ccb-2c4989683a82', 'name': '', 'tenant_id': 'a8bcb995b26842c29061df391ea23db2', 'network_id': '8b52374f-9986-4de1-baba-77f991b4412b', 'ip_version': 4, 'cidr': '136.254.81.0/26', 'allocation_pools': [{'start': '136.254.81.2', 'end': '136.254.81.62'}], 'gateway_ip': '136.254.81.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.254.81.2', 'tags': [], 'project_id': 'a8bcb995b26842c29061df391ea23db2'}}
2025-12-22 02:13:17,305 - INFO - Created VN ctest-vn-10543769
2025-12-22 02:13:17,361 - DEBUG - VN ctest-vn-10543769 UUID is 8b52374f-9986-4de1-baba-77f991b4412b
2025-12-22 02:13:17,480 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20378034:ctest-vn-33829616, 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-20378034:ctest-vn-10543769, 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]
2025-12-22 02:13:17,769 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0abc7282-441c-416f-bbdd-61c1c4ee4e04', 'name': 'ctest-vn-33829616', 'tenant_id': 'a8bcb995b26842c29061df391ea23db2', 'project_id': 'a8bcb995b26842c29061df391ea23db2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ec496f8-c835-4988-ba24-953ae29a1487'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20378034', 'ctest-vn-33829616'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20378034', 'ctest-policy-allow-all-60184036']], 'subnet_ipam': [{'subnet_cidr': '166.91.254.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-22 02:13:18,007 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b52374f-9986-4de1-baba-77f991b4412b', 'name': 'ctest-vn-10543769', 'tenant_id': 'a8bcb995b26842c29061df391ea23db2', 'project_id': 'a8bcb995b26842c29061df391ea23db2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f186d05-49a3-4c5c-9ccb-2c4989683a82'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20378034', 'ctest-vn-10543769'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20378034', 'ctest-policy-allow-all-60184036']], 'subnet_ipam': [{'subnet_cidr': '136.254.81.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-22 02:13:18,177 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-12-22 02:13:18,482 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-12-22 02:13:18,515 - DEBUG - Requesting: http://10.0.0.131:8082/domain/e63556d5-ccc7-4ac7-9e09-6f38f7aa70d0
2025-12-22 02:13:18,528 - DEBUG - Requesting: http://10.0.0.131:8082/project/a8bcb995-b268-42c2-9061-df391ea23db2
2025-12-22 02:13:18,606 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/0abc7282-441c-416f-bbdd-61c1c4ee4e04
2025-12-22 02:13:18,616 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/0abc7282-441c-416f-bbdd-61c1c4ee4e04
2025-12-22 02:13:18,625 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/3218c35a-0cd1-4202-a9ba-ef95bfae3566
2025-12-22 02:13:18,632 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/3218c35a-0cd1-4202-a9ba-ef95bfae3566
2025-12-22 02:13:18,638 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/f5129a5b-1222-40f3-876d-183ca6a8eac6
2025-12-22 02:13:18,644 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-22 02:13:18,644 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/0abc7282-441c-416f-bbdd-61c1c4ee4e04
2025-12-22 02:13:18,652 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/3218c35a-0cd1-4202-a9ba-ef95bfae3566
2025-12-22 02:13:18,666 - INFO - Verified VN network id 11 for VN 0abc7282-441c-416f-bbdd-61c1c4ee4e04
2025-12-22 02:13:18,667 - INFO - Verifications in API Server for VN ctest-vn-33829616 passed
2025-12-22 02:13:18,667 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/0abc7282-441c-416f-bbdd-61c1c4ee4e04
2025-12-22 02:13:18,677 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/3218c35a-0cd1-4202-a9ba-ef95bfae3566
2025-12-22 02:13:18,684 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/3218c35a-0cd1-4202-a9ba-ef95bfae3566
2025-12-22 02:13:18,691 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/f5129a5b-1222-40f3-876d-183ca6a8eac6
2025-12-22 02:13:18,706 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20378034:ctest-vn-33829616', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20378034', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '773619139814900079', 'uuid-lslong': '13537083539806113284'}, 'enable': 'true', 'created': '2025-12-22T02:13:16', 'last-modified': '2025-12-22T02:13:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956914'}
2025-12-22 02:13:18,713 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-22 02:13:18,713 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33829616 passed
2025-12-22 02:13:18,714 - DEBUG - ====Verifying policy data for ctest-vn-33829616 in API_Server ======
2025-12-22 02:13:18,714 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-12-22 02:13:18,721 - DEBUG - Requesting: http://10.0.0.131:8082/domain/e63556d5-ccc7-4ac7-9e09-6f38f7aa70d0
2025-12-22 02:13:18,731 - DEBUG - Requesting: http://10.0.0.131:8082/project/a8bcb995-b268-42c2-9061-df391ea23db2
2025-12-22 02:13:18,805 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/0abc7282-441c-416f-bbdd-61c1c4ee4e04
2025-12-22 02:13:18,815 - DEBUG - ==>Verifying data for policy with id: 91e5d78d-7108-472a-96c9-e8aaa7543fb3, fqn: ['default-domain', 'ctest-TestBasicPolicy-20378034', 'ctest-policy-allow-all-60184036']
2025-12-22 02:13:18,815 - INFO - VN ctest-vn-33829616 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-22 02:13:18,816 - DEBUG - Verifying the vn in opserver
2025-12-22 02:13:18,816 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20378034:ctest-vn-33829616 virtual network link through opserver 10.0.0.131
2025-12-22 02:13:18,816 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-12-22 02:13:19,111 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-12-22 02:13:19,177 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20378034:ctest-vn-33829616', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20378034:ctest-vn-33829616?flat'}
2025-12-22 02:13:19,177 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20378034:ctest-vn-33829616 is found in opserver
2025-12-22 02:13:19,187 - DEBUG - Do not have enough data to verify VN in agent
2025-12-22 02:13:19,192 - DEBUG - VRF ids for VN ctest-vn-33829616: {}
2025-12-22 02:13:19,192 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-12-22 02:13:19,198 - DEBUG - Requesting: http://10.0.0.131:8082/domain/e63556d5-ccc7-4ac7-9e09-6f38f7aa70d0
2025-12-22 02:13:19,209 - DEBUG - Requesting: http://10.0.0.131:8082/project/a8bcb995-b268-42c2-9061-df391ea23db2
2025-12-22 02:13:19,281 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/8b52374f-9986-4de1-baba-77f991b4412b
2025-12-22 02:13:19,292 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/8b52374f-9986-4de1-baba-77f991b4412b
2025-12-22 02:13:19,302 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/3e1d40f6-1929-4f1e-8025-d98d76657d38
2025-12-22 02:13:19,310 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/3e1d40f6-1929-4f1e-8025-d98d76657d38
2025-12-22 02:13:19,318 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/ea51effc-473d-4bb4-ad0d-e33953c32c63
2025-12-22 02:13:19,325 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-22 02:13:19,325 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/8b52374f-9986-4de1-baba-77f991b4412b
2025-12-22 02:13:19,335 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/3e1d40f6-1929-4f1e-8025-d98d76657d38
2025-12-22 02:13:19,352 - INFO - Verified VN network id 12 for VN 8b52374f-9986-4de1-baba-77f991b4412b
2025-12-22 02:13:19,352 - INFO - Verifications in API Server for VN ctest-vn-10543769 passed
2025-12-22 02:13:19,352 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/8b52374f-9986-4de1-baba-77f991b4412b
2025-12-22 02:13:19,362 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/3e1d40f6-1929-4f1e-8025-d98d76657d38
2025-12-22 02:13:19,370 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/3e1d40f6-1929-4f1e-8025-d98d76657d38
2025-12-22 02:13:19,379 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/ea51effc-473d-4bb4-ad0d-e33953c32c63
2025-12-22 02:13:19,393 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20378034:ctest-vn-10543769', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20378034', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10039147334379916769', 'uuid-lslong': '13455198750497849643'}, 'enable': 'true', 'created': '2025-12-22T02:13:17', 'last-modified': '2025-12-22T02:13:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.405604'}
2025-12-22 02:13:19,399 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-22 02:13:19,399 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10543769 passed
2025-12-22 02:13:19,399 - DEBUG - ====Verifying policy data for ctest-vn-10543769 in API_Server ======
2025-12-22 02:13:19,399 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-12-22 02:13:19,406 - DEBUG - Requesting: http://10.0.0.131:8082/domain/e63556d5-ccc7-4ac7-9e09-6f38f7aa70d0
2025-12-22 02:13:19,417 - DEBUG - Requesting: http://10.0.0.131:8082/project/a8bcb995-b268-42c2-9061-df391ea23db2
2025-12-22 02:13:19,491 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/8b52374f-9986-4de1-baba-77f991b4412b
2025-12-22 02:13:19,509 - DEBUG - ==>Verifying data for policy with id: 91e5d78d-7108-472a-96c9-e8aaa7543fb3, fqn: ['default-domain', 'ctest-TestBasicPolicy-20378034', 'ctest-policy-allow-all-60184036']
2025-12-22 02:13:19,509 - INFO - VN ctest-vn-10543769 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-22 02:13:19,509 - DEBUG - Verifying the vn in opserver
2025-12-22 02:13:19,509 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20378034:ctest-vn-10543769 virtual network link through opserver 10.0.0.131
2025-12-22 02:13:19,509 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-12-22 02:13:19,519 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20378034:ctest-vn-10543769', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20378034:ctest-vn-10543769?flat'}
2025-12-22 02:13:19,519 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20378034:ctest-vn-10543769 is found in opserver
2025-12-22 02:13:19,530 - DEBUG - Do not have enough data to verify VN in agent
2025-12-22 02:13:19,536 - DEBUG - VRF ids for VN ctest-vn-10543769: {}
2025-12-22 02:13:19,612 - DEBUG - Services list from nova: [