2025-09-23 22:49:36,122 - INFO - Domain Default found not creating
2025-09-23 22:49:36,254 - INFO - Project ctest-TestBasicPolicy-16191555 not found, creating it
2025-09-23 22:49:36,682 - INFO - Created Project:ctest-TestBasicPolicy-16191555, ID : 8deda2b0-0ef4-40d2-8f46-b85f2878f88d
2025-09-23 22:49:38,054 - INFO - ================================================================================
2025-09-23 22:49:38,055 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-23 22:49:38,055 - 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-23 22:49:38,312 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-09-23 22:49:38,312 - INFO - Initial checks done. Running the testcase now
2025-09-23 22:49:38,312 - INFO -
2025-09-23 22:49:39,072 - DEBUG - Response for create_network : {'network': {'id': 'c01075df-d8bc-46c3-8759-230549fff5b5', 'name': 'ctest-vn-72528844', 'tenant_id': '8deda2b00ef440d28f46b85f2878f88d', 'project_id': '8deda2b00ef440d28f46b85f2878f88d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16191555', 'ctest-vn-72528844'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 22:49:39,220 - DEBUG - Response for create_subnet : {'subnet': {'id': '16584c6d-aaf3-40c6-8bd0-695d19fce361', 'name': '', 'tenant_id': '8deda2b00ef440d28f46b85f2878f88d', 'network_id': 'c01075df-d8bc-46c3-8759-230549fff5b5', 'ip_version': 4, 'cidr': '54.166.133.192/26', 'allocation_pools': [{'start': '54.166.133.194', 'end': '54.166.133.254'}], 'gateway_ip': '54.166.133.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.166.133.194', 'tags': [], 'project_id': '8deda2b00ef440d28f46b85f2878f88d'}}
2025-09-23 22:49:39,236 - INFO - Created VN ctest-vn-72528844
2025-09-23 22:49:39,286 - DEBUG - VN ctest-vn-72528844 UUID is c01075df-d8bc-46c3-8759-230549fff5b5
2025-09-23 22:49:39,591 - DEBUG - Response for create_network : {'network': {'id': '81cfaeb5-b59a-4653-b4bc-3db4d43bb222', 'name': 'ctest-vn-48882760', 'tenant_id': '8deda2b00ef440d28f46b85f2878f88d', 'project_id': '8deda2b00ef440d28f46b85f2878f88d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16191555', 'ctest-vn-48882760'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 22:49:39,760 - DEBUG - Response for create_subnet : {'subnet': {'id': '6648cce5-dbbe-4454-8514-8fc86d9d4450', 'name': '', 'tenant_id': '8deda2b00ef440d28f46b85f2878f88d', 'network_id': '81cfaeb5-b59a-4653-b4bc-3db4d43bb222', 'ip_version': 4, 'cidr': '31.209.143.64/26', 'allocation_pools': [{'start': '31.209.143.66', 'end': '31.209.143.126'}], 'gateway_ip': '31.209.143.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.209.143.66', 'tags': [], 'project_id': '8deda2b00ef440d28f46b85f2878f88d'}}
2025-09-23 22:49:39,777 - INFO - Created VN ctest-vn-48882760
2025-09-23 22:49:39,826 - DEBUG - VN ctest-vn-48882760 UUID is 81cfaeb5-b59a-4653-b4bc-3db4d43bb222
2025-09-23 22:49:39,970 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16191555:ctest-vn-72528844, 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-16191555:ctest-vn-48882760, 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-23 22:49:40,258 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c01075df-d8bc-46c3-8759-230549fff5b5', 'name': 'ctest-vn-72528844', 'tenant_id': '8deda2b00ef440d28f46b85f2878f88d', 'project_id': '8deda2b00ef440d28f46b85f2878f88d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16584c6d-aaf3-40c6-8bd0-695d19fce361'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16191555', 'ctest-vn-72528844'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16191555', 'ctest-policy-allow-all-23542375']], 'subnet_ipam': [{'subnet_cidr': '54.166.133.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 22:49:40,522 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81cfaeb5-b59a-4653-b4bc-3db4d43bb222', 'name': 'ctest-vn-48882760', 'tenant_id': '8deda2b00ef440d28f46b85f2878f88d', 'project_id': '8deda2b00ef440d28f46b85f2878f88d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6648cce5-dbbe-4454-8514-8fc86d9d4450'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16191555', 'ctest-vn-48882760'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16191555', 'ctest-policy-allow-all-23542375']], 'subnet_ipam': [{'subnet_cidr': '31.209.143.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 22:49:40,670 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-23 22:49:40,968 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-23 22:49:40,995 - DEBUG - Requesting: http://10.0.0.57:8082/domain/56cd4594-9fee-41ac-90cd-8796d0805d0d
2025-09-23 22:49:41,006 - DEBUG - Requesting: http://10.0.0.57:8082/project/8deda2b0-0ef4-40d2-8f46-b85f2878f88d
2025-09-23 22:49:41,076 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c01075df-d8bc-46c3-8759-230549fff5b5
2025-09-23 22:49:41,085 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c01075df-d8bc-46c3-8759-230549fff5b5
2025-09-23 22:49:41,093 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3db37188-ada5-400a-9c20-b6f34ab7de80
2025-09-23 22:49:41,099 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3db37188-ada5-400a-9c20-b6f34ab7de80
2025-09-23 22:49:41,104 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/1b34b08a-e850-48d3-a033-181788af456e
2025-09-23 22:49:41,109 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 22:49:41,109 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c01075df-d8bc-46c3-8759-230549fff5b5
2025-09-23 22:49:41,116 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3db37188-ada5-400a-9c20-b6f34ab7de80
2025-09-23 22:49:41,127 - INFO - Verified VN network id 11 for VN c01075df-d8bc-46c3-8759-230549fff5b5
2025-09-23 22:49:41,127 - INFO - Verifications in API Server for VN ctest-vn-72528844 passed
2025-09-23 22:49:41,127 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c01075df-d8bc-46c3-8759-230549fff5b5
2025-09-23 22:49:41,134 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3db37188-ada5-400a-9c20-b6f34ab7de80
2025-09-23 22:49:41,140 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3db37188-ada5-400a-9c20-b6f34ab7de80
2025-09-23 22:49:41,145 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/1b34b08a-e850-48d3-a033-181788af456e
2025-09-23 22:49:41,154 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16191555:ctest-vn-72528844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16191555', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13839691259183908547', 'uuid-lslong': '9752864973670839733'}, 'enable': 'true', 'created': '2025-09-23T22:49:39', 'last-modified': '2025-09-23T22:49:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915769'}
2025-09-23 22:49:41,159 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 22:49:41,159 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72528844 passed
2025-09-23 22:49:41,159 - DEBUG - ====Verifying policy data for ctest-vn-72528844 in API_Server ======
2025-09-23 22:49:41,159 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-23 22:49:41,163 - DEBUG - Requesting: http://10.0.0.57:8082/domain/56cd4594-9fee-41ac-90cd-8796d0805d0d
2025-09-23 22:49:41,173 - DEBUG - Requesting: http://10.0.0.57:8082/project/8deda2b0-0ef4-40d2-8f46-b85f2878f88d
2025-09-23 22:49:41,238 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c01075df-d8bc-46c3-8759-230549fff5b5
2025-09-23 22:49:41,246 - DEBUG - ==>Verifying data for policy with id: 49033b3c-6210-42b4-9758-341e47eb7052, fqn: ['default-domain', 'ctest-TestBasicPolicy-16191555', 'ctest-policy-allow-all-23542375']
2025-09-23 22:49:41,246 - INFO - VN ctest-vn-72528844 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 22:49:41,246 - DEBUG - Verifying the vn in opserver
2025-09-23 22:49:41,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16191555:ctest-vn-72528844 virtual network link through opserver 10.0.0.57
2025-09-23 22:49:41,246 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-23 22:49:41,535 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-23 22:49:41,584 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16191555:ctest-vn-72528844', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16191555:ctest-vn-72528844?flat'}
2025-09-23 22:49:41,584 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16191555:ctest-vn-72528844 is found in opserver
2025-09-23 22:49:41,592 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 22:49:41,596 - DEBUG - VRF ids for VN ctest-vn-72528844: {}
2025-09-23 22:49:41,596 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-23 22:49:41,602 - DEBUG - Requesting: http://10.0.0.57:8082/domain/56cd4594-9fee-41ac-90cd-8796d0805d0d
2025-09-23 22:49:41,611 - DEBUG - Requesting: http://10.0.0.57:8082/project/8deda2b0-0ef4-40d2-8f46-b85f2878f88d
2025-09-23 22:49:41,679 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/81cfaeb5-b59a-4653-b4bc-3db4d43bb222
2025-09-23 22:49:41,689 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/81cfaeb5-b59a-4653-b4bc-3db4d43bb222
2025-09-23 22:49:41,696 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/69cc133c-7436-4974-b036-0f5da2589984
2025-09-23 22:49:41,702 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/69cc133c-7436-4974-b036-0f5da2589984
2025-09-23 22:49:41,708 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/b84cbf60-738a-4173-809e-cfd58b0197f3
2025-09-23 22:49:41,716 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 22:49:41,716 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/81cfaeb5-b59a-4653-b4bc-3db4d43bb222
2025-09-23 22:49:41,725 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/69cc133c-7436-4974-b036-0f5da2589984
2025-09-23 22:49:41,737 - INFO - Verified VN network id 12 for VN 81cfaeb5-b59a-4653-b4bc-3db4d43bb222
2025-09-23 22:49:41,737 - INFO - Verifications in API Server for VN ctest-vn-48882760 passed
2025-09-23 22:49:41,737 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/81cfaeb5-b59a-4653-b4bc-3db4d43bb222
2025-09-23 22:49:41,744 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/69cc133c-7436-4974-b036-0f5da2589984
2025-09-23 22:49:41,750 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/69cc133c-7436-4974-b036-0f5da2589984
2025-09-23 22:49:41,756 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/b84cbf60-738a-4173-809e-cfd58b0197f3
2025-09-23 22:49:41,766 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16191555:ctest-vn-48882760', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16191555', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9353887046530909779', 'uuid-lslong': '13023352069312721442'}, 'enable': 'true', 'created': '2025-09-23T22:49:39', 'last-modified': '2025-09-23T22:49:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.308778'}
2025-09-23 22:49:41,770 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 22:49:41,771 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48882760 passed
2025-09-23 22:49:41,771 - DEBUG - ====Verifying policy data for ctest-vn-48882760 in API_Server ======
2025-09-23 22:49:41,771 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-23 22:49:41,777 - DEBUG - Requesting: http://10.0.0.57:8082/domain/56cd4594-9fee-41ac-90cd-8796d0805d0d
2025-09-23 22:49:41,786 - DEBUG - Requesting: http://10.0.0.57:8082/project/8deda2b0-0ef4-40d2-8f46-b85f2878f88d
2025-09-23 22:49:41,858 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/81cfaeb5-b59a-4653-b4bc-3db4d43bb222
2025-09-23 22:49:41,866 - DEBUG - ==>Verifying data for policy with id: 49033b3c-6210-42b4-9758-341e47eb7052, fqn: ['default-domain', 'ctest-TestBasicPolicy-16191555', 'ctest-policy-allow-all-23542375']
2025-09-23 22:49:41,866 - INFO - VN ctest-vn-48882760 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 22:49:41,866 - DEBUG - Verifying the vn in opserver
2025-09-23 22:49:41,866 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16191555:ctest-vn-48882760 virtual network link through opserver 10.0.0.57
2025-09-23 22:49:41,866 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-23 22:49:41,875 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16191555:ctest-vn-48882760', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16191555:ctest-vn-48882760?flat'}
2025-09-23 22:49:41,875 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16191555:ctest-vn-48882760 is found in opserver
2025-09-23 22:49:41,883 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 22:49:41,887 - DEBUG - VRF ids for VN ctest-vn-48882760: {}
2025-09-23 22:49:41,938 - DEBUG - Services list from nova: [