2025-09-27 06:51:36,101 - INFO - Domain Default found not creating
2025-09-27 06:51:36,507 - INFO - Project ctest-TestBasicPolicy-03688325 not found, creating it
2025-09-27 06:51:37,171 - INFO - Created Project:ctest-TestBasicPolicy-03688325, ID : ba000343-06a2-422c-a53f-7fd5b203f77b
2025-09-27 06:51:39,210 - INFO - ================================================================================
2025-09-27 06:51:39,210 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-27 06:51:39,210 - 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-09-27 06:51:39,536 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-27 06:51:39,537 - INFO - Initial checks done. Running the testcase now
2025-09-27 06:51:39,537 - INFO -
2025-09-27 06:51:40,679 - DEBUG - Response for create_network : {'network': {'id': '0cf276ff-f49d-4033-9e16-b1c3009a90ab', 'name': 'ctest-vn-41533375', 'tenant_id': 'ba00034306a2422ca53f7fd5b203f77b', 'project_id': 'ba00034306a2422ca53f7fd5b203f77b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03688325', 'ctest-vn-41533375'], 'port_security_enabled': True, 'description': ''}}
2025-09-27 06:51:40,951 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a5f846c-4eb7-4bfe-9201-1064c80b873a', 'name': '', 'tenant_id': 'ba00034306a2422ca53f7fd5b203f77b', 'network_id': '0cf276ff-f49d-4033-9e16-b1c3009a90ab', 'ip_version': 4, 'cidr': '35.94.17.64/26', 'allocation_pools': [{'start': '35.94.17.66', 'end': '35.94.17.126'}], 'gateway_ip': '35.94.17.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.94.17.66', 'tags': [], 'project_id': 'ba00034306a2422ca53f7fd5b203f77b'}}
2025-09-27 06:51:40,977 - INFO - Created VN ctest-vn-41533375
2025-09-27 06:51:41,033 - DEBUG - VN ctest-vn-41533375 UUID is 0cf276ff-f49d-4033-9e16-b1c3009a90ab
2025-09-27 06:51:41,536 - DEBUG - Response for create_network : {'network': {'id': 'eeb73b9b-31da-4f36-a2f2-757186d164c3', 'name': 'ctest-vn-73441785', 'tenant_id': 'ba00034306a2422ca53f7fd5b203f77b', 'project_id': 'ba00034306a2422ca53f7fd5b203f77b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03688325', 'ctest-vn-73441785'], 'port_security_enabled': True, 'description': ''}}
2025-09-27 06:51:41,809 - DEBUG - Response for create_subnet : {'subnet': {'id': '95da208e-0091-41c5-88cc-19eb4110bbd9', 'name': '', 'tenant_id': 'ba00034306a2422ca53f7fd5b203f77b', 'network_id': 'eeb73b9b-31da-4f36-a2f2-757186d164c3', 'ip_version': 4, 'cidr': '118.18.129.0/26', 'allocation_pools': [{'start': '118.18.129.2', 'end': '118.18.129.62'}], 'gateway_ip': '118.18.129.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.18.129.2', 'tags': [], 'project_id': 'ba00034306a2422ca53f7fd5b203f77b'}}
2025-09-27 06:51:41,840 - INFO - Created VN ctest-vn-73441785
2025-09-27 06:51:41,893 - DEBUG - VN ctest-vn-73441785 UUID is eeb73b9b-31da-4f36-a2f2-757186d164c3
2025-09-27 06:51:42,068 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03688325:ctest-vn-41533375, 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-03688325:ctest-vn-73441785, 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-09-27 06:51:42,540 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0cf276ff-f49d-4033-9e16-b1c3009a90ab', 'name': 'ctest-vn-41533375', 'tenant_id': 'ba00034306a2422ca53f7fd5b203f77b', 'project_id': 'ba00034306a2422ca53f7fd5b203f77b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a5f846c-4eb7-4bfe-9201-1064c80b873a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03688325', 'ctest-vn-41533375'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03688325', 'ctest-policy-allow-all-32975937']], 'subnet_ipam': [{'subnet_cidr': '35.94.17.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-27 06:51:42,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eeb73b9b-31da-4f36-a2f2-757186d164c3', 'name': 'ctest-vn-73441785', 'tenant_id': 'ba00034306a2422ca53f7fd5b203f77b', 'project_id': 'ba00034306a2422ca53f7fd5b203f77b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95da208e-0091-41c5-88cc-19eb4110bbd9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03688325', 'ctest-vn-73441785'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03688325', 'ctest-policy-allow-all-32975937']], 'subnet_ipam': [{'subnet_cidr': '118.18.129.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-27 06:51:43,074 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-27 06:51:43,402 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-27 06:51:43,445 - DEBUG - Requesting: http://10.0.0.254:8082/domain/17587573-c7ff-4969-bf3a-d5efb592ec26
2025-09-27 06:51:43,477 - DEBUG - Requesting: http://10.0.0.254:8082/project/ba000343-06a2-422c-a53f-7fd5b203f77b
2025-09-27 06:51:43,590 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0cf276ff-f49d-4033-9e16-b1c3009a90ab
2025-09-27 06:51:43,620 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0cf276ff-f49d-4033-9e16-b1c3009a90ab
2025-09-27 06:51:43,641 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/307b5356-4cbf-4d5b-b41b-b5270e91100e
2025-09-27 06:51:43,658 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/307b5356-4cbf-4d5b-b41b-b5270e91100e
2025-09-27 06:51:43,669 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0eedbacb-7d82-4f6b-bc7b-cde3be862787
2025-09-27 06:51:43,678 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-27 06:51:43,679 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0cf276ff-f49d-4033-9e16-b1c3009a90ab
2025-09-27 06:51:43,696 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/307b5356-4cbf-4d5b-b41b-b5270e91100e
2025-09-27 06:51:43,724 - INFO - Verified VN network id 11 for VN 0cf276ff-f49d-4033-9e16-b1c3009a90ab
2025-09-27 06:51:43,724 - INFO - Verifications in API Server for VN ctest-vn-41533375 passed
2025-09-27 06:51:43,724 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0cf276ff-f49d-4033-9e16-b1c3009a90ab
2025-09-27 06:51:43,748 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/307b5356-4cbf-4d5b-b41b-b5270e91100e
2025-09-27 06:51:43,765 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/307b5356-4cbf-4d5b-b41b-b5270e91100e
2025-09-27 06:51:43,781 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0eedbacb-7d82-4f6b-bc7b-cde3be862787
2025-09-27 06:51:43,817 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03688325:ctest-vn-41533375', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03688325', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '932938914511798323', 'uuid-lslong': '11391487758567116971'}, 'enable': 'true', 'created': '2025-09-27T06:51:40', 'last-modified': '2025-09-27T06:51:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.329069'}
2025-09-27 06:51:43,834 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-27 06:51:43,834 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41533375 passed
2025-09-27 06:51:43,834 - DEBUG - ====Verifying policy data for ctest-vn-41533375 in API_Server ======
2025-09-27 06:51:43,834 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-27 06:51:43,849 - DEBUG - Requesting: http://10.0.0.254:8082/domain/17587573-c7ff-4969-bf3a-d5efb592ec26
2025-09-27 06:51:43,876 - DEBUG - Requesting: http://10.0.0.254:8082/project/ba000343-06a2-422c-a53f-7fd5b203f77b
2025-09-27 06:51:43,977 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0cf276ff-f49d-4033-9e16-b1c3009a90ab
2025-09-27 06:51:43,991 - DEBUG - ==>Verifying data for policy with id: 99e41251-629a-45df-9fee-ce8ee4eda3da, fqn: ['default-domain', 'ctest-TestBasicPolicy-03688325', 'ctest-policy-allow-all-32975937']
2025-09-27 06:51:43,992 - INFO - VN ctest-vn-41533375 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-27 06:51:43,992 - DEBUG - Verifying the vn in opserver
2025-09-27 06:51:43,992 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03688325:ctest-vn-41533375 virtual network link through opserver 10.0.0.254
2025-09-27 06:51:43,992 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-27 06:51:44,292 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-27 06:51:44,368 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03688325:ctest-vn-41533375', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03688325:ctest-vn-41533375?flat'}
2025-09-27 06:51:44,369 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03688325:ctest-vn-41533375 is found in opserver
2025-09-27 06:51:44,390 - DEBUG - Do not have enough data to verify VN in agent
2025-09-27 06:51:44,396 - DEBUG - VRF ids for VN ctest-vn-41533375: {}
2025-09-27 06:51:44,396 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-27 06:51:44,405 - DEBUG - Requesting: http://10.0.0.254:8082/domain/17587573-c7ff-4969-bf3a-d5efb592ec26
2025-09-27 06:51:44,424 - DEBUG - Requesting: http://10.0.0.254:8082/project/ba000343-06a2-422c-a53f-7fd5b203f77b
2025-09-27 06:51:44,542 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eeb73b9b-31da-4f36-a2f2-757186d164c3
2025-09-27 06:51:44,564 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eeb73b9b-31da-4f36-a2f2-757186d164c3
2025-09-27 06:51:44,587 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72890b23-89f1-4b2b-9b7a-09a42bb8a702
2025-09-27 06:51:44,605 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72890b23-89f1-4b2b-9b7a-09a42bb8a702
2025-09-27 06:51:44,621 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/92db20c2-af16-43ec-b150-58cb13f7a6fa
2025-09-27 06:51:44,637 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-27 06:51:44,637 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eeb73b9b-31da-4f36-a2f2-757186d164c3
2025-09-27 06:51:44,664 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72890b23-89f1-4b2b-9b7a-09a42bb8a702
2025-09-27 06:51:44,704 - INFO - Verified VN network id 12 for VN eeb73b9b-31da-4f36-a2f2-757186d164c3
2025-09-27 06:51:44,704 - INFO - Verifications in API Server for VN ctest-vn-73441785 passed
2025-09-27 06:51:44,705 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eeb73b9b-31da-4f36-a2f2-757186d164c3
2025-09-27 06:51:44,734 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72890b23-89f1-4b2b-9b7a-09a42bb8a702
2025-09-27 06:51:44,755 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72890b23-89f1-4b2b-9b7a-09a42bb8a702
2025-09-27 06:51:44,769 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/92db20c2-af16-43ec-b150-58cb13f7a6fa
2025-09-27 06:51:44,800 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03688325:ctest-vn-73441785', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03688325', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17201282839507259190', 'uuid-lslong': '11741576308961928387'}, 'enable': 'true', 'created': '2025-09-27T06:51:41', 'last-modified': '2025-09-27T06:51:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.983817'}
2025-09-27 06:51:44,821 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-27 06:51:44,821 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73441785 passed
2025-09-27 06:51:44,821 - DEBUG - ====Verifying policy data for ctest-vn-73441785 in API_Server ======
2025-09-27 06:51:44,821 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-27 06:51:44,836 - DEBUG - Requesting: http://10.0.0.254:8082/domain/17587573-c7ff-4969-bf3a-d5efb592ec26
2025-09-27 06:51:44,867 - DEBUG - Requesting: http://10.0.0.254:8082/project/ba000343-06a2-422c-a53f-7fd5b203f77b
2025-09-27 06:51:44,984 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eeb73b9b-31da-4f36-a2f2-757186d164c3
2025-09-27 06:51:45,007 - DEBUG - ==>Verifying data for policy with id: 99e41251-629a-45df-9fee-ce8ee4eda3da, fqn: ['default-domain', 'ctest-TestBasicPolicy-03688325', 'ctest-policy-allow-all-32975937']
2025-09-27 06:51:45,008 - INFO - VN ctest-vn-73441785 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-27 06:51:45,008 - DEBUG - Verifying the vn in opserver
2025-09-27 06:51:45,008 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03688325:ctest-vn-73441785 virtual network link through opserver 10.0.0.254
2025-09-27 06:51:45,008 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-27 06:51:45,029 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03688325:ctest-vn-73441785', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03688325:ctest-vn-73441785?flat'}
2025-09-27 06:51:45,029 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03688325:ctest-vn-73441785 is found in opserver
2025-09-27 06:51:45,044 - DEBUG - Do not have enough data to verify VN in agent
2025-09-27 06:51:45,051 - DEBUG - VRF ids for VN ctest-vn-73441785: {}
2025-09-27 06:51:45,162 - DEBUG - Services list from nova: [