2025-06-19 08:07:43,944 - INFO - Domain Default found not creating
2025-06-19 08:07:44,131 - INFO - Project ctest-TestBasicPolicy-82510016 not found, creating it
2025-06-19 08:07:44,651 - INFO - Created Project:ctest-TestBasicPolicy-82510016, ID : e670df69-3177-41f6-97e9-29f26c1e9e2e
2025-06-19 08:07:46,239 - INFO - ================================================================================
2025-06-19 08:07:46,239 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 08:07:46,239 - 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-06-19 08:07:46,495 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-06-19 08:07:46,495 - INFO - Initial checks done. Running the testcase now
2025-06-19 08:07:46,495 - INFO -
2025-06-19 08:07:47,057 - DEBUG - Response for create_network : {'network': {'id': '8a77f8a8-b2c4-4d83-acc7-a082aabeea08', 'name': 'ctest-vn-66518827', 'tenant_id': 'e670df69317741f697e929f26c1e9e2e', 'project_id': 'e670df69317741f697e929f26c1e9e2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82510016', 'ctest-vn-66518827'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:07:47,265 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3d7f70f-30e5-46de-8ea0-a6296ce5b8f9', 'name': '', 'tenant_id': 'e670df69317741f697e929f26c1e9e2e', 'network_id': '8a77f8a8-b2c4-4d83-acc7-a082aabeea08', 'ip_version': 4, 'cidr': '185.171.198.0/26', 'allocation_pools': [{'start': '185.171.198.2', 'end': '185.171.198.62'}], 'gateway_ip': '185.171.198.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.171.198.2', 'tags': [], 'project_id': 'e670df69317741f697e929f26c1e9e2e'}}
2025-06-19 08:07:47,286 - INFO - Created VN ctest-vn-66518827
2025-06-19 08:07:47,341 - DEBUG - VN ctest-vn-66518827 UUID is 8a77f8a8-b2c4-4d83-acc7-a082aabeea08
2025-06-19 08:07:47,654 - DEBUG - Response for create_network : {'network': {'id': 'cbb5c941-5b63-45a4-b6d1-1cbf76dd4ff1', 'name': 'ctest-vn-16876079', 'tenant_id': 'e670df69317741f697e929f26c1e9e2e', 'project_id': 'e670df69317741f697e929f26c1e9e2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82510016', 'ctest-vn-16876079'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:07:47,885 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b58dfaf5-97c9-4d82-bb1a-80b1feede975', 'name': '', 'tenant_id': 'e670df69317741f697e929f26c1e9e2e', 'network_id': 'cbb5c941-5b63-45a4-b6d1-1cbf76dd4ff1', 'ip_version': 4, 'cidr': '91.241.9.192/26', 'allocation_pools': [{'start': '91.241.9.194', 'end': '91.241.9.254'}], 'gateway_ip': '91.241.9.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.241.9.194', 'tags': [], 'project_id': 'e670df69317741f697e929f26c1e9e2e'}}
2025-06-19 08:07:47,904 - INFO - Created VN ctest-vn-16876079
2025-06-19 08:07:47,957 - DEBUG - VN ctest-vn-16876079 UUID is cbb5c941-5b63-45a4-b6d1-1cbf76dd4ff1
2025-06-19 08:07:48,171 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82510016:ctest-vn-66518827, 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-82510016:ctest-vn-16876079, 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-06-19 08:07:48,469 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8a77f8a8-b2c4-4d83-acc7-a082aabeea08', 'name': 'ctest-vn-66518827', 'tenant_id': 'e670df69317741f697e929f26c1e9e2e', 'project_id': 'e670df69317741f697e929f26c1e9e2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e3d7f70f-30e5-46de-8ea0-a6296ce5b8f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82510016', 'ctest-vn-66518827'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82510016', 'ctest-policy-allow-all-37964382']], 'subnet_ipam': [{'subnet_cidr': '185.171.198.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:07:48,711 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cbb5c941-5b63-45a4-b6d1-1cbf76dd4ff1', 'name': 'ctest-vn-16876079', 'tenant_id': 'e670df69317741f697e929f26c1e9e2e', 'project_id': 'e670df69317741f697e929f26c1e9e2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b58dfaf5-97c9-4d82-bb1a-80b1feede975'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82510016', 'ctest-vn-16876079'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82510016', 'ctest-policy-allow-all-37964382']], 'subnet_ipam': [{'subnet_cidr': '91.241.9.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:07:48,873 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-19 08:07:49,170 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-19 08:07:49,201 - DEBUG - Requesting: http://10.0.0.65:8082/domain/e1eeee35-3771-4958-ac78-d0d56dd04459
2025-06-19 08:07:49,218 - DEBUG - Requesting: http://10.0.0.65:8082/project/e670df69-3177-41f6-97e9-29f26c1e9e2e
2025-06-19 08:07:49,296 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8a77f8a8-b2c4-4d83-acc7-a082aabeea08
2025-06-19 08:07:49,309 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8a77f8a8-b2c4-4d83-acc7-a082aabeea08
2025-06-19 08:07:49,323 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/8bf38deb-1cfa-48e5-9459-e805200d7ca1
2025-06-19 08:07:49,331 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/8bf38deb-1cfa-48e5-9459-e805200d7ca1
2025-06-19 08:07:49,339 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/21566ea2-c153-414e-b726-71bda0835bc5
2025-06-19 08:07:49,347 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 08:07:49,347 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8a77f8a8-b2c4-4d83-acc7-a082aabeea08
2025-06-19 08:07:49,358 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/8bf38deb-1cfa-48e5-9459-e805200d7ca1
2025-06-19 08:07:49,377 - INFO - Verified VN network id 8 for VN 8a77f8a8-b2c4-4d83-acc7-a082aabeea08
2025-06-19 08:07:49,377 - INFO - Verifications in API Server for VN ctest-vn-66518827 passed
2025-06-19 08:07:49,377 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8a77f8a8-b2c4-4d83-acc7-a082aabeea08
2025-06-19 08:07:49,389 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/8bf38deb-1cfa-48e5-9459-e805200d7ca1
2025-06-19 08:07:49,397 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/8bf38deb-1cfa-48e5-9459-e805200d7ca1
2025-06-19 08:07:49,406 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/21566ea2-c153-414e-b726-71bda0835bc5
2025-06-19 08:07:49,422 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82510016:ctest-vn-66518827', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82510016', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9977716902900026755', 'uuid-lslong': '12450096177959856648'}, 'enable': 'true', 'created': '2025-06-19T08:07:47', 'last-modified': '2025-06-19T08:07:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985181'}
2025-06-19 08:07:49,430 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 08:07:49,430 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66518827 passed
2025-06-19 08:07:49,430 - DEBUG - ====Verifying policy data for ctest-vn-66518827 in API_Server ======
2025-06-19 08:07:49,431 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-19 08:07:49,438 - DEBUG - Requesting: http://10.0.0.65:8082/domain/e1eeee35-3771-4958-ac78-d0d56dd04459
2025-06-19 08:07:49,452 - DEBUG - Requesting: http://10.0.0.65:8082/project/e670df69-3177-41f6-97e9-29f26c1e9e2e
2025-06-19 08:07:49,543 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8a77f8a8-b2c4-4d83-acc7-a082aabeea08
2025-06-19 08:07:49,555 - DEBUG - ==>Verifying data for policy with id: f141ac53-e26c-4505-aea8-515d8d94427f, fqn: ['default-domain', 'ctest-TestBasicPolicy-82510016', 'ctest-policy-allow-all-37964382']
2025-06-19 08:07:49,555 - INFO - VN ctest-vn-66518827 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 08:07:49,555 - DEBUG - Verifying the vn in opserver
2025-06-19 08:07:49,555 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82510016:ctest-vn-66518827 virtual network link through opserver 10.0.0.65
2025-06-19 08:07:49,556 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-19 08:07:49,845 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-19 08:07:49,908 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82510016:ctest-vn-66518827', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82510016:ctest-vn-66518827?flat'}
2025-06-19 08:07:49,908 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82510016:ctest-vn-66518827 is found in opserver
2025-06-19 08:07:49,919 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 08:07:49,924 - DEBUG - VRF ids for VN ctest-vn-66518827: {}
2025-06-19 08:07:49,925 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-19 08:07:49,931 - DEBUG - Requesting: http://10.0.0.65:8082/domain/e1eeee35-3771-4958-ac78-d0d56dd04459
2025-06-19 08:07:49,944 - DEBUG - Requesting: http://10.0.0.65:8082/project/e670df69-3177-41f6-97e9-29f26c1e9e2e
2025-06-19 08:07:50,024 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/cbb5c941-5b63-45a4-b6d1-1cbf76dd4ff1
2025-06-19 08:07:50,038 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/cbb5c941-5b63-45a4-b6d1-1cbf76dd4ff1
2025-06-19 08:07:50,053 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5992e105-aff6-4672-91e7-64581afd07d3
2025-06-19 08:07:50,062 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5992e105-aff6-4672-91e7-64581afd07d3
2025-06-19 08:07:50,070 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/88c67165-e22a-40a1-8d44-6a3e6f7af24b
2025-06-19 08:07:50,078 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 08:07:50,078 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/cbb5c941-5b63-45a4-b6d1-1cbf76dd4ff1
2025-06-19 08:07:50,089 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5992e105-aff6-4672-91e7-64581afd07d3
2025-06-19 08:07:50,106 - INFO - Verified VN network id 9 for VN cbb5c941-5b63-45a4-b6d1-1cbf76dd4ff1
2025-06-19 08:07:50,106 - INFO - Verifications in API Server for VN ctest-vn-16876079 passed
2025-06-19 08:07:50,106 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/cbb5c941-5b63-45a4-b6d1-1cbf76dd4ff1
2025-06-19 08:07:50,117 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5992e105-aff6-4672-91e7-64581afd07d3
2025-06-19 08:07:50,126 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5992e105-aff6-4672-91e7-64581afd07d3
2025-06-19 08:07:50,134 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/88c67165-e22a-40a1-8d44-6a3e6f7af24b
2025-06-19 08:07:50,149 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82510016:ctest-vn-16876079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82510016', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14678859843027289508', 'uuid-lslong': '13173341993693958129'}, 'enable': 'true', 'created': '2025-06-19T08:07:47', 'last-modified': '2025-06-19T08:07:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.461301'}
2025-06-19 08:07:50,157 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 08:07:50,157 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16876079 passed
2025-06-19 08:07:50,157 - DEBUG - ====Verifying policy data for ctest-vn-16876079 in API_Server ======
2025-06-19 08:07:50,157 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-19 08:07:50,163 - DEBUG - Requesting: http://10.0.0.65:8082/domain/e1eeee35-3771-4958-ac78-d0d56dd04459
2025-06-19 08:07:50,176 - DEBUG - Requesting: http://10.0.0.65:8082/project/e670df69-3177-41f6-97e9-29f26c1e9e2e
2025-06-19 08:07:50,253 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/cbb5c941-5b63-45a4-b6d1-1cbf76dd4ff1
2025-06-19 08:07:50,266 - DEBUG - ==>Verifying data for policy with id: f141ac53-e26c-4505-aea8-515d8d94427f, fqn: ['default-domain', 'ctest-TestBasicPolicy-82510016', 'ctest-policy-allow-all-37964382']
2025-06-19 08:07:50,266 - INFO - VN ctest-vn-16876079 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 08:07:50,266 - DEBUG - Verifying the vn in opserver
2025-06-19 08:07:50,267 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82510016:ctest-vn-16876079 virtual network link through opserver 10.0.0.65
2025-06-19 08:07:50,267 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-19 08:07:50,278 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82510016:ctest-vn-16876079', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82510016:ctest-vn-16876079?flat'}
2025-06-19 08:07:50,278 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82510016:ctest-vn-16876079 is found in opserver
2025-06-19 08:07:50,290 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 08:07:50,296 - DEBUG - VRF ids for VN ctest-vn-16876079: {}
2025-06-19 08:07:50,359 - DEBUG - Services list from nova: [