2025-07-23 06:24:37,031 - INFO - Domain Default found not creating
2025-07-23 06:24:37,185 - INFO - Project ctest-TestBasicPolicy-49257773 not found, creating it
2025-07-23 06:24:37,641 - INFO - Created Project:ctest-TestBasicPolicy-49257773, ID : 75ab6892-5e7b-492f-bf00-751edd588ce2
2025-07-23 06:24:39,337 - INFO - ================================================================================
2025-07-23 06:24:39,337 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-23 06:24:39,338 - 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-07-23 06:24:39,591 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2025-07-23 06:24:39,591 - INFO - Initial checks done. Running the testcase now
2025-07-23 06:24:39,591 - INFO -
2025-07-23 06:24:40,135 - DEBUG - Response for create_network : {'network': {'id': '04022994-e8a7-4d9d-9824-4f21c7906e48', 'name': 'ctest-vn-32884084', 'tenant_id': '75ab68925e7b492fbf00751edd588ce2', 'project_id': '75ab68925e7b492fbf00751edd588ce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49257773', 'ctest-vn-32884084'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 06:24:40,315 - DEBUG - Response for create_subnet : {'subnet': {'id': '5dc40138-ea8d-4f10-96d6-a7ea3e855348', 'name': '', 'tenant_id': '75ab68925e7b492fbf00751edd588ce2', 'network_id': '04022994-e8a7-4d9d-9824-4f21c7906e48', 'ip_version': 4, 'cidr': '197.104.44.128/26', 'allocation_pools': [{'start': '197.104.44.130', 'end': '197.104.44.190'}], 'gateway_ip': '197.104.44.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.104.44.130', 'tags': [], 'project_id': '75ab68925e7b492fbf00751edd588ce2'}}
2025-07-23 06:24:40,336 - INFO - Created VN ctest-vn-32884084
2025-07-23 06:24:40,389 - DEBUG - VN ctest-vn-32884084 UUID is 04022994-e8a7-4d9d-9824-4f21c7906e48
2025-07-23 06:24:40,702 - DEBUG - Response for create_network : {'network': {'id': '84a8d755-2809-453b-9b09-4420cb2dddac', 'name': 'ctest-vn-75157303', 'tenant_id': '75ab68925e7b492fbf00751edd588ce2', 'project_id': '75ab68925e7b492fbf00751edd588ce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49257773', 'ctest-vn-75157303'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 06:24:40,883 - DEBUG - Response for create_subnet : {'subnet': {'id': '9babfad8-5dfc-4ce0-a8d7-7004f2d094a5', 'name': '', 'tenant_id': '75ab68925e7b492fbf00751edd588ce2', 'network_id': '84a8d755-2809-453b-9b09-4420cb2dddac', 'ip_version': 4, 'cidr': '146.69.130.128/26', 'allocation_pools': [{'start': '146.69.130.130', 'end': '146.69.130.190'}], 'gateway_ip': '146.69.130.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.69.130.130', 'tags': [], 'project_id': '75ab68925e7b492fbf00751edd588ce2'}}
2025-07-23 06:24:40,901 - INFO - Created VN ctest-vn-75157303
2025-07-23 06:24:40,957 - DEBUG - VN ctest-vn-75157303 UUID is 84a8d755-2809-453b-9b09-4420cb2dddac
2025-07-23 06:24:41,081 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49257773:ctest-vn-32884084, 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-49257773:ctest-vn-75157303, 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-07-23 06:24:41,388 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04022994-e8a7-4d9d-9824-4f21c7906e48', 'name': 'ctest-vn-32884084', 'tenant_id': '75ab68925e7b492fbf00751edd588ce2', 'project_id': '75ab68925e7b492fbf00751edd588ce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5dc40138-ea8d-4f10-96d6-a7ea3e855348'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49257773', 'ctest-vn-32884084'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49257773', 'ctest-policy-allow-all-79406967']], 'subnet_ipam': [{'subnet_cidr': '197.104.44.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 06:24:41,632 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84a8d755-2809-453b-9b09-4420cb2dddac', 'name': 'ctest-vn-75157303', 'tenant_id': '75ab68925e7b492fbf00751edd588ce2', 'project_id': '75ab68925e7b492fbf00751edd588ce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9babfad8-5dfc-4ce0-a8d7-7004f2d094a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49257773', 'ctest-vn-75157303'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49257773', 'ctest-policy-allow-all-79406967']], 'subnet_ipam': [{'subnet_cidr': '146.69.130.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 06:24:41,789 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-23 06:24:42,093 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-23 06:24:42,120 - DEBUG - Requesting: http://10.0.0.141:8082/domain/644e7c77-5632-4339-b359-95639eedac10
2025-07-23 06:24:42,137 - DEBUG - Requesting: http://10.0.0.141:8082/project/75ab6892-5e7b-492f-bf00-751edd588ce2
2025-07-23 06:24:42,213 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/04022994-e8a7-4d9d-9824-4f21c7906e48
2025-07-23 06:24:42,225 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/04022994-e8a7-4d9d-9824-4f21c7906e48
2025-07-23 06:24:42,235 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4da9ab49-85d8-4195-b4ac-8876333396c9
2025-07-23 06:24:42,243 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4da9ab49-85d8-4195-b4ac-8876333396c9
2025-07-23 06:24:42,250 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4f55546b-9116-40ae-9282-d7948e48748b
2025-07-23 06:24:42,257 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 06:24:42,257 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/04022994-e8a7-4d9d-9824-4f21c7906e48
2025-07-23 06:24:42,268 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4da9ab49-85d8-4195-b4ac-8876333396c9
2025-07-23 06:24:42,283 - INFO - Verified VN network id 9 for VN 04022994-e8a7-4d9d-9824-4f21c7906e48
2025-07-23 06:24:42,283 - INFO - Verifications in API Server for VN ctest-vn-32884084 passed
2025-07-23 06:24:42,283 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/04022994-e8a7-4d9d-9824-4f21c7906e48
2025-07-23 06:24:42,294 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4da9ab49-85d8-4195-b4ac-8876333396c9
2025-07-23 06:24:42,301 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4da9ab49-85d8-4195-b4ac-8876333396c9
2025-07-23 06:24:42,311 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4f55546b-9116-40ae-9282-d7948e48748b
2025-07-23 06:24:42,324 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49257773:ctest-vn-32884084', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49257773', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '288839045640310173', 'uuid-lslong': '10962974399427276360'}, 'enable': 'true', 'created': '2025-07-23T06:24:40', 'last-modified': '2025-07-23T06:24:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.960338'}
2025-07-23 06:24:42,332 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 06:24:42,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32884084 passed
2025-07-23 06:24:42,332 - DEBUG - ====Verifying policy data for ctest-vn-32884084 in API_Server ======
2025-07-23 06:24:42,333 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-23 06:24:42,339 - DEBUG - Requesting: http://10.0.0.141:8082/domain/644e7c77-5632-4339-b359-95639eedac10
2025-07-23 06:24:42,351 - DEBUG - Requesting: http://10.0.0.141:8082/project/75ab6892-5e7b-492f-bf00-751edd588ce2
2025-07-23 06:24:42,430 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/04022994-e8a7-4d9d-9824-4f21c7906e48
2025-07-23 06:24:42,442 - DEBUG - ==>Verifying data for policy with id: 9b33241a-c061-4e87-8782-58560073bbb1, fqn: ['default-domain', 'ctest-TestBasicPolicy-49257773', 'ctest-policy-allow-all-79406967']
2025-07-23 06:24:42,442 - INFO - VN ctest-vn-32884084 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 06:24:42,442 - DEBUG - Verifying the vn in opserver
2025-07-23 06:24:42,442 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49257773:ctest-vn-32884084 virtual network link through opserver 10.0.0.141
2025-07-23 06:24:42,442 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-07-23 06:24:42,737 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-07-23 06:24:42,789 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49257773:ctest-vn-32884084', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49257773:ctest-vn-32884084?flat'}
2025-07-23 06:24:42,790 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49257773:ctest-vn-32884084 is found in opserver
2025-07-23 06:24:42,803 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 06:24:42,808 - DEBUG - VRF ids for VN ctest-vn-32884084: {}
2025-07-23 06:24:42,808 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-23 06:24:42,814 - DEBUG - Requesting: http://10.0.0.141:8082/domain/644e7c77-5632-4339-b359-95639eedac10
2025-07-23 06:24:42,825 - DEBUG - Requesting: http://10.0.0.141:8082/project/75ab6892-5e7b-492f-bf00-751edd588ce2
2025-07-23 06:24:42,893 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/84a8d755-2809-453b-9b09-4420cb2dddac
2025-07-23 06:24:42,905 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/84a8d755-2809-453b-9b09-4420cb2dddac
2025-07-23 06:24:42,917 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/bfa3d210-9bae-41f2-9d10-db4d00912243
2025-07-23 06:24:42,926 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/bfa3d210-9bae-41f2-9d10-db4d00912243
2025-07-23 06:24:42,933 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/296a605a-feb4-4448-9929-7922f7e2ea76
2025-07-23 06:24:42,940 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 06:24:42,940 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/84a8d755-2809-453b-9b09-4420cb2dddac
2025-07-23 06:24:42,949 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/bfa3d210-9bae-41f2-9d10-db4d00912243
2025-07-23 06:24:42,964 - INFO - Verified VN network id 10 for VN 84a8d755-2809-453b-9b09-4420cb2dddac
2025-07-23 06:24:42,964 - INFO - Verifications in API Server for VN ctest-vn-75157303 passed
2025-07-23 06:24:42,965 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/84a8d755-2809-453b-9b09-4420cb2dddac
2025-07-23 06:24:42,975 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/bfa3d210-9bae-41f2-9d10-db4d00912243
2025-07-23 06:24:42,983 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/bfa3d210-9bae-41f2-9d10-db4d00912243
2025-07-23 06:24:42,990 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/296a605a-feb4-4448-9929-7922f7e2ea76
2025-07-23 06:24:43,003 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49257773:ctest-vn-75157303', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49257773', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9559126969837765947', 'uuid-lslong': '11171535258307648940'}, 'enable': 'true', 'created': '2025-07-23T06:24:40', 'last-modified': '2025-07-23T06:24:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.394375'}
2025-07-23 06:24:43,009 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 06:24:43,009 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75157303 passed
2025-07-23 06:24:43,009 - DEBUG - ====Verifying policy data for ctest-vn-75157303 in API_Server ======
2025-07-23 06:24:43,010 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-23 06:24:43,016 - DEBUG - Requesting: http://10.0.0.141:8082/domain/644e7c77-5632-4339-b359-95639eedac10
2025-07-23 06:24:43,028 - DEBUG - Requesting: http://10.0.0.141:8082/project/75ab6892-5e7b-492f-bf00-751edd588ce2
2025-07-23 06:24:43,099 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/84a8d755-2809-453b-9b09-4420cb2dddac
2025-07-23 06:24:43,108 - DEBUG - ==>Verifying data for policy with id: 9b33241a-c061-4e87-8782-58560073bbb1, fqn: ['default-domain', 'ctest-TestBasicPolicy-49257773', 'ctest-policy-allow-all-79406967']
2025-07-23 06:24:43,108 - INFO - VN ctest-vn-75157303 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 06:24:43,108 - DEBUG - Verifying the vn in opserver
2025-07-23 06:24:43,108 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49257773:ctest-vn-75157303 virtual network link through opserver 10.0.0.141
2025-07-23 06:24:43,108 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-07-23 06:24:43,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49257773:ctest-vn-75157303', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49257773:ctest-vn-75157303?flat'}
2025-07-23 06:24:43,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49257773:ctest-vn-75157303 is found in opserver
2025-07-23 06:24:43,131 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 06:24:43,136 - DEBUG - VRF ids for VN ctest-vn-75157303: {}
2025-07-23 06:24:43,191 - DEBUG - Services list from nova: [