2025-10-12 19:09:34,069 - INFO - Domain Default found not creating
2025-10-12 19:09:34,207 - INFO - Project ctest-TestBasicPolicy-80322416 not found, creating it
2025-10-12 19:09:34,662 - INFO - Created Project:ctest-TestBasicPolicy-80322416, ID : da322754-73a7-4728-9e31-b175f0537328
2025-10-12 19:09:36,045 - INFO - ================================================================================
2025-10-12 19:09:36,045 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-12 19:09:36,045 - 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-10-12 19:09:36,304 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with
2025-10-12 19:09:36,304 - INFO - Initial checks done. Running the testcase now
2025-10-12 19:09:36,304 - INFO -
2025-10-12 19:09:36,887 - DEBUG - Response for create_network : {'network': {'id': 'aa666ec6-9bef-4b90-9162-dc0daa76efc9', 'name': 'ctest-vn-58127174', 'tenant_id': 'da32275473a747289e31b175f0537328', 'project_id': 'da32275473a747289e31b175f0537328', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80322416', 'ctest-vn-58127174'], 'port_security_enabled': True, 'description': ''}}
2025-10-12 19:09:37,058 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef008afb-9ea3-4ceb-8e9e-221879e09c3a', 'name': '', 'tenant_id': 'da32275473a747289e31b175f0537328', 'network_id': 'aa666ec6-9bef-4b90-9162-dc0daa76efc9', 'ip_version': 4, 'cidr': '19.233.27.0/26', 'allocation_pools': [{'start': '19.233.27.2', 'end': '19.233.27.62'}], 'gateway_ip': '19.233.27.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.233.27.2', 'tags': [], 'project_id': 'da32275473a747289e31b175f0537328'}}
2025-10-12 19:09:37,079 - INFO - Created VN ctest-vn-58127174
2025-10-12 19:09:37,131 - DEBUG - VN ctest-vn-58127174 UUID is aa666ec6-9bef-4b90-9162-dc0daa76efc9
2025-10-12 19:09:37,447 - DEBUG - Response for create_network : {'network': {'id': '0e9a0967-8b3a-4769-977e-1bfa41380f27', 'name': 'ctest-vn-35757689', 'tenant_id': 'da32275473a747289e31b175f0537328', 'project_id': 'da32275473a747289e31b175f0537328', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80322416', 'ctest-vn-35757689'], 'port_security_enabled': True, 'description': ''}}
2025-10-12 19:09:37,643 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f6081ca-9edb-4bfe-937f-01d3c8081d2e', 'name': '', 'tenant_id': 'da32275473a747289e31b175f0537328', 'network_id': '0e9a0967-8b3a-4769-977e-1bfa41380f27', 'ip_version': 4, 'cidr': '161.56.80.64/26', 'allocation_pools': [{'start': '161.56.80.66', 'end': '161.56.80.126'}], 'gateway_ip': '161.56.80.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.56.80.66', 'tags': [], 'project_id': 'da32275473a747289e31b175f0537328'}}
2025-10-12 19:09:37,661 - INFO - Created VN ctest-vn-35757689
2025-10-12 19:09:37,715 - DEBUG - VN ctest-vn-35757689 UUID is 0e9a0967-8b3a-4769-977e-1bfa41380f27
2025-10-12 19:09:37,867 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80322416:ctest-vn-58127174, 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-80322416:ctest-vn-35757689, 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-10-12 19:09:38,154 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa666ec6-9bef-4b90-9162-dc0daa76efc9', 'name': 'ctest-vn-58127174', 'tenant_id': 'da32275473a747289e31b175f0537328', 'project_id': 'da32275473a747289e31b175f0537328', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef008afb-9ea3-4ceb-8e9e-221879e09c3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80322416', 'ctest-vn-58127174'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80322416', 'ctest-policy-allow-all-03304054']], 'subnet_ipam': [{'subnet_cidr': '19.233.27.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-12 19:09:38,371 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0e9a0967-8b3a-4769-977e-1bfa41380f27', 'name': 'ctest-vn-35757689', 'tenant_id': 'da32275473a747289e31b175f0537328', 'project_id': 'da32275473a747289e31b175f0537328', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f6081ca-9edb-4bfe-937f-01d3c8081d2e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80322416', 'ctest-vn-35757689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80322416', 'ctest-policy-allow-all-03304054']], 'subnet_ipam': [{'subnet_cidr': '161.56.80.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-12 19:09:38,531 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-12 19:09:38,821 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-12 19:09:38,849 - DEBUG - Requesting: http://10.0.0.48:8082/domain/62d0a32e-052e-4a9b-b6a4-4f9a2f507701
2025-10-12 19:09:38,861 - DEBUG - Requesting: http://10.0.0.48:8082/project/da322754-73a7-4728-9e31-b175f0537328
2025-10-12 19:09:38,929 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/aa666ec6-9bef-4b90-9162-dc0daa76efc9
2025-10-12 19:09:38,938 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/aa666ec6-9bef-4b90-9162-dc0daa76efc9
2025-10-12 19:09:38,946 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/4340bc36-dd21-47c8-a233-39b754e47bef
2025-10-12 19:09:38,952 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/4340bc36-dd21-47c8-a233-39b754e47bef
2025-10-12 19:09:38,957 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/6edb4157-e7f7-460c-80aa-6f2d3c03d216
2025-10-12 19:09:38,962 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-12 19:09:38,963 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/aa666ec6-9bef-4b90-9162-dc0daa76efc9
2025-10-12 19:09:38,970 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/4340bc36-dd21-47c8-a233-39b754e47bef
2025-10-12 19:09:38,982 - INFO - Verified VN network id 12 for VN aa666ec6-9bef-4b90-9162-dc0daa76efc9
2025-10-12 19:09:38,982 - INFO - Verifications in API Server for VN ctest-vn-58127174 passed
2025-10-12 19:09:38,982 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/aa666ec6-9bef-4b90-9162-dc0daa76efc9
2025-10-12 19:09:38,990 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/4340bc36-dd21-47c8-a233-39b754e47bef
2025-10-12 19:09:38,995 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/4340bc36-dd21-47c8-a233-39b754e47bef
2025-10-12 19:09:39,001 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/6edb4157-e7f7-460c-80aa-6f2d3c03d216
2025-10-12 19:09:39,011 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80322416:ctest-vn-58127174', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80322416', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12278623233370966928', 'uuid-lslong': '10476177634469801929'}, 'enable': 'true', 'created': '2025-10-12T19:09:36', 'last-modified': '2025-10-12T19:09:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.874994'}
2025-10-12 19:09:39,016 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-12 19:09:39,016 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58127174 passed
2025-10-12 19:09:39,017 - DEBUG - ====Verifying policy data for ctest-vn-58127174 in API_Server ======
2025-10-12 19:09:39,017 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-12 19:09:39,022 - DEBUG - Requesting: http://10.0.0.48:8082/domain/62d0a32e-052e-4a9b-b6a4-4f9a2f507701
2025-10-12 19:09:39,035 - DEBUG - Requesting: http://10.0.0.48:8082/project/da322754-73a7-4728-9e31-b175f0537328
2025-10-12 19:09:39,106 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/aa666ec6-9bef-4b90-9162-dc0daa76efc9
2025-10-12 19:09:39,115 - DEBUG - ==>Verifying data for policy with id: 17575b52-2615-4aa9-a93a-9bb50f82c268, fqn: ['default-domain', 'ctest-TestBasicPolicy-80322416', 'ctest-policy-allow-all-03304054']
2025-10-12 19:09:39,115 - INFO - VN ctest-vn-58127174 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-12 19:09:39,115 - DEBUG - Verifying the vn in opserver
2025-10-12 19:09:39,115 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80322416:ctest-vn-58127174 virtual network link through opserver 10.0.0.48
2025-10-12 19:09:39,115 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-10-12 19:09:39,406 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-10-12 19:09:39,459 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80322416:ctest-vn-58127174', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80322416:ctest-vn-58127174?flat'}
2025-10-12 19:09:39,459 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80322416:ctest-vn-58127174 is found in opserver
2025-10-12 19:09:39,468 - DEBUG - Do not have enough data to verify VN in agent
2025-10-12 19:09:39,472 - DEBUG - VRF ids for VN ctest-vn-58127174: {}
2025-10-12 19:09:39,472 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-12 19:09:39,477 - DEBUG - Requesting: http://10.0.0.48:8082/domain/62d0a32e-052e-4a9b-b6a4-4f9a2f507701
2025-10-12 19:09:39,488 - DEBUG - Requesting: http://10.0.0.48:8082/project/da322754-73a7-4728-9e31-b175f0537328
2025-10-12 19:09:39,559 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0e9a0967-8b3a-4769-977e-1bfa41380f27
2025-10-12 19:09:39,570 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0e9a0967-8b3a-4769-977e-1bfa41380f27
2025-10-12 19:09:39,578 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/78390ffa-0f07-4141-a76a-d8116c87b633
2025-10-12 19:09:39,585 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/78390ffa-0f07-4141-a76a-d8116c87b633
2025-10-12 19:09:39,591 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/c8810561-eb9e-49e7-8e95-266f8e64283a
2025-10-12 19:09:39,597 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-12 19:09:39,597 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0e9a0967-8b3a-4769-977e-1bfa41380f27
2025-10-12 19:09:39,605 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/78390ffa-0f07-4141-a76a-d8116c87b633
2025-10-12 19:09:39,617 - INFO - Verified VN network id 13 for VN 0e9a0967-8b3a-4769-977e-1bfa41380f27
2025-10-12 19:09:39,617 - INFO - Verifications in API Server for VN ctest-vn-35757689 passed
2025-10-12 19:09:39,618 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0e9a0967-8b3a-4769-977e-1bfa41380f27
2025-10-12 19:09:39,625 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/78390ffa-0f07-4141-a76a-d8116c87b633
2025-10-12 19:09:39,631 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/78390ffa-0f07-4141-a76a-d8116c87b633
2025-10-12 19:09:39,637 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/c8810561-eb9e-49e7-8e95-266f8e64283a
2025-10-12 19:09:39,648 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80322416:ctest-vn-35757689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80322416', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1052163803266565993', 'uuid-lslong': '10916193308442627879'}, 'enable': 'true', 'created': '2025-10-12T19:09:37', 'last-modified': '2025-10-12T19:09:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.295153'}
2025-10-12 19:09:39,654 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-12 19:09:39,654 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35757689 passed
2025-10-12 19:09:39,654 - DEBUG - ====Verifying policy data for ctest-vn-35757689 in API_Server ======
2025-10-12 19:09:39,654 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-12 19:09:39,659 - DEBUG - Requesting: http://10.0.0.48:8082/domain/62d0a32e-052e-4a9b-b6a4-4f9a2f507701
2025-10-12 19:09:39,670 - DEBUG - Requesting: http://10.0.0.48:8082/project/da322754-73a7-4728-9e31-b175f0537328
2025-10-12 19:09:39,741 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0e9a0967-8b3a-4769-977e-1bfa41380f27
2025-10-12 19:09:39,750 - DEBUG - ==>Verifying data for policy with id: 17575b52-2615-4aa9-a93a-9bb50f82c268, fqn: ['default-domain', 'ctest-TestBasicPolicy-80322416', 'ctest-policy-allow-all-03304054']
2025-10-12 19:09:39,750 - INFO - VN ctest-vn-35757689 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-12 19:09:39,750 - DEBUG - Verifying the vn in opserver
2025-10-12 19:09:39,750 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80322416:ctest-vn-35757689 virtual network link through opserver 10.0.0.48
2025-10-12 19:09:39,750 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-10-12 19:09:39,759 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80322416:ctest-vn-35757689', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80322416:ctest-vn-35757689?flat'}
2025-10-12 19:09:39,759 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80322416:ctest-vn-35757689 is found in opserver
2025-10-12 19:09:39,768 - DEBUG - Do not have enough data to verify VN in agent
2025-10-12 19:09:39,773 - DEBUG - VRF ids for VN ctest-vn-35757689: {}
2025-10-12 19:09:39,833 - DEBUG - Services list from nova: [