2025-11-03 14:50:58,253 - INFO - Domain Default found not creating
2025-11-03 14:50:58,455 - INFO - Project ctest-TestBasicPolicy-17398458 not found, creating it
2025-11-03 14:50:58,919 - INFO - Created Project:ctest-TestBasicPolicy-17398458, ID : b7f441eb-fd6a-4f33-a3fd-3f8cd62159b8
2025-11-03 14:51:00,465 - INFO - ================================================================================
2025-11-03 14:51:00,465 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-03 14:51:00,465 - 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-11-03 14:51:00,729 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with
2025-11-03 14:51:00,729 - INFO - Initial checks done. Running the testcase now
2025-11-03 14:51:00,729 - INFO -
2025-11-03 14:51:01,316 - DEBUG - Response for create_network : {'network': {'id': 'aa04ba76-5f13-476e-8b95-01a7075e7ce5', 'name': 'ctest-vn-07565825', 'tenant_id': 'b7f441ebfd6a4f33a3fd3f8cd62159b8', 'project_id': 'b7f441ebfd6a4f33a3fd3f8cd62159b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17398458', 'ctest-vn-07565825'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 14:51:01,502 - DEBUG - Response for create_subnet : {'subnet': {'id': '74a3b13f-c09c-4c90-8925-d1dd43d54179', 'name': '', 'tenant_id': 'b7f441ebfd6a4f33a3fd3f8cd62159b8', 'network_id': 'aa04ba76-5f13-476e-8b95-01a7075e7ce5', 'ip_version': 4, 'cidr': '194.12.17.64/26', 'allocation_pools': [{'start': '194.12.17.66', 'end': '194.12.17.126'}], 'gateway_ip': '194.12.17.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.12.17.66', 'tags': [], 'project_id': 'b7f441ebfd6a4f33a3fd3f8cd62159b8'}}
2025-11-03 14:51:01,525 - INFO - Created VN ctest-vn-07565825
2025-11-03 14:51:01,578 - DEBUG - VN ctest-vn-07565825 UUID is aa04ba76-5f13-476e-8b95-01a7075e7ce5
2025-11-03 14:51:01,875 - DEBUG - Response for create_network : {'network': {'id': 'aba14ca5-e88a-4fdc-90bf-ab96ce8e488f', 'name': 'ctest-vn-60262571', 'tenant_id': 'b7f441ebfd6a4f33a3fd3f8cd62159b8', 'project_id': 'b7f441ebfd6a4f33a3fd3f8cd62159b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17398458', 'ctest-vn-60262571'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 14:51:02,048 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3fc10d3-28e8-4741-904e-1a3a1ab83115', 'name': '', 'tenant_id': 'b7f441ebfd6a4f33a3fd3f8cd62159b8', 'network_id': 'aba14ca5-e88a-4fdc-90bf-ab96ce8e488f', 'ip_version': 4, 'cidr': '147.210.195.64/26', 'allocation_pools': [{'start': '147.210.195.66', 'end': '147.210.195.126'}], 'gateway_ip': '147.210.195.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.210.195.66', 'tags': [], 'project_id': 'b7f441ebfd6a4f33a3fd3f8cd62159b8'}}
2025-11-03 14:51:02,071 - INFO - Created VN ctest-vn-60262571
2025-11-03 14:51:02,126 - DEBUG - VN ctest-vn-60262571 UUID is aba14ca5-e88a-4fdc-90bf-ab96ce8e488f
2025-11-03 14:51:02,243 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17398458:ctest-vn-07565825, 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-17398458:ctest-vn-60262571, 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-11-03 14:51:02,543 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa04ba76-5f13-476e-8b95-01a7075e7ce5', 'name': 'ctest-vn-07565825', 'tenant_id': 'b7f441ebfd6a4f33a3fd3f8cd62159b8', 'project_id': 'b7f441ebfd6a4f33a3fd3f8cd62159b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['74a3b13f-c09c-4c90-8925-d1dd43d54179'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17398458', 'ctest-vn-07565825'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17398458', 'ctest-policy-allow-all-09421658']], 'subnet_ipam': [{'subnet_cidr': '194.12.17.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 14:51:02,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aba14ca5-e88a-4fdc-90bf-ab96ce8e488f', 'name': 'ctest-vn-60262571', 'tenant_id': 'b7f441ebfd6a4f33a3fd3f8cd62159b8', 'project_id': 'b7f441ebfd6a4f33a3fd3f8cd62159b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3fc10d3-28e8-4741-904e-1a3a1ab83115'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17398458', 'ctest-vn-60262571'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17398458', 'ctest-policy-allow-all-09421658']], 'subnet_ipam': [{'subnet_cidr': '147.210.195.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 14:51:02,950 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-03 14:51:03,244 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-03 14:51:03,274 - DEBUG - Requesting: http://10.0.0.41:8082/domain/59192770-a1e6-486c-8665-2c08be9016ab
2025-11-03 14:51:03,287 - DEBUG - Requesting: http://10.0.0.41:8082/project/b7f441eb-fd6a-4f33-a3fd-3f8cd62159b8
2025-11-03 14:51:03,358 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/aa04ba76-5f13-476e-8b95-01a7075e7ce5
2025-11-03 14:51:03,369 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/aa04ba76-5f13-476e-8b95-01a7075e7ce5
2025-11-03 14:51:03,378 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3bb697d6-0a25-4f05-a8dd-18ddc6f436d4
2025-11-03 14:51:03,385 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3bb697d6-0a25-4f05-a8dd-18ddc6f436d4
2025-11-03 14:51:03,392 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/6c2b71a3-190e-49fe-95cc-5c6232be6507
2025-11-03 14:51:03,399 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 14:51:03,399 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/aa04ba76-5f13-476e-8b95-01a7075e7ce5
2025-11-03 14:51:03,409 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3bb697d6-0a25-4f05-a8dd-18ddc6f436d4
2025-11-03 14:51:03,432 - INFO - Verified VN network id 11 for VN aa04ba76-5f13-476e-8b95-01a7075e7ce5
2025-11-03 14:51:03,432 - INFO - Verifications in API Server for VN ctest-vn-07565825 passed
2025-11-03 14:51:03,432 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/aa04ba76-5f13-476e-8b95-01a7075e7ce5
2025-11-03 14:51:03,441 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3bb697d6-0a25-4f05-a8dd-18ddc6f436d4
2025-11-03 14:51:03,448 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3bb697d6-0a25-4f05-a8dd-18ddc6f436d4
2025-11-03 14:51:03,456 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/6c2b71a3-190e-49fe-95cc-5c6232be6507
2025-11-03 14:51:03,468 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17398458:ctest-vn-07565825', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17398458', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12251121903918597998', 'uuid-lslong': '10057947159696669925'}, 'enable': 'true', 'created': '2025-11-03T14:51:01', 'last-modified': '2025-11-03T14:51:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947218'}
2025-11-03 14:51:03,474 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 14:51:03,474 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07565825 passed
2025-11-03 14:51:03,474 - DEBUG - ====Verifying policy data for ctest-vn-07565825 in API_Server ======
2025-11-03 14:51:03,474 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-03 14:51:03,480 - DEBUG - Requesting: http://10.0.0.41:8082/domain/59192770-a1e6-486c-8665-2c08be9016ab
2025-11-03 14:51:03,491 - DEBUG - Requesting: http://10.0.0.41:8082/project/b7f441eb-fd6a-4f33-a3fd-3f8cd62159b8
2025-11-03 14:51:03,562 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/aa04ba76-5f13-476e-8b95-01a7075e7ce5
2025-11-03 14:51:03,578 - DEBUG - ==>Verifying data for policy with id: 29a899aa-ef01-4ab4-8b78-de8bcc2632a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-17398458', 'ctest-policy-allow-all-09421658']
2025-11-03 14:51:03,578 - INFO - VN ctest-vn-07565825 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 14:51:03,578 - DEBUG - Verifying the vn in opserver
2025-11-03 14:51:03,578 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17398458:ctest-vn-07565825 virtual network link through opserver 10.0.0.41
2025-11-03 14:51:03,578 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-11-03 14:51:03,872 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-11-03 14:51:03,935 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17398458:ctest-vn-07565825', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17398458:ctest-vn-07565825?flat'}
2025-11-03 14:51:03,935 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17398458:ctest-vn-07565825 is found in opserver
2025-11-03 14:51:03,946 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 14:51:03,951 - DEBUG - VRF ids for VN ctest-vn-07565825: {}
2025-11-03 14:51:03,951 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-03 14:51:03,957 - DEBUG - Requesting: http://10.0.0.41:8082/domain/59192770-a1e6-486c-8665-2c08be9016ab
2025-11-03 14:51:03,973 - DEBUG - Requesting: http://10.0.0.41:8082/project/b7f441eb-fd6a-4f33-a3fd-3f8cd62159b8
2025-11-03 14:51:04,044 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/aba14ca5-e88a-4fdc-90bf-ab96ce8e488f
2025-11-03 14:51:04,057 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/aba14ca5-e88a-4fdc-90bf-ab96ce8e488f
2025-11-03 14:51:04,066 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/57c78895-fd8c-45bb-b90d-3c26b9b5b1d6
2025-11-03 14:51:04,074 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/57c78895-fd8c-45bb-b90d-3c26b9b5b1d6
2025-11-03 14:51:04,081 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1535b0eb-05db-407b-bd48-709cd41a5c39
2025-11-03 14:51:04,090 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 14:51:04,090 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/aba14ca5-e88a-4fdc-90bf-ab96ce8e488f
2025-11-03 14:51:04,100 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/57c78895-fd8c-45bb-b90d-3c26b9b5b1d6
2025-11-03 14:51:04,118 - INFO - Verified VN network id 12 for VN aba14ca5-e88a-4fdc-90bf-ab96ce8e488f
2025-11-03 14:51:04,118 - INFO - Verifications in API Server for VN ctest-vn-60262571 passed
2025-11-03 14:51:04,118 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/aba14ca5-e88a-4fdc-90bf-ab96ce8e488f
2025-11-03 14:51:04,128 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/57c78895-fd8c-45bb-b90d-3c26b9b5b1d6
2025-11-03 14:51:04,136 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/57c78895-fd8c-45bb-b90d-3c26b9b5b1d6
2025-11-03 14:51:04,145 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1535b0eb-05db-407b-bd48-709cd41a5c39
2025-11-03 14:51:04,158 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17398458:ctest-vn-60262571', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17398458', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12367250327190786012', 'uuid-lslong': '10430243926212233359'}, 'enable': 'true', 'created': '2025-11-03T14:51:01', 'last-modified': '2025-11-03T14:51:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.408009'}
2025-11-03 14:51:04,163 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 14:51:04,164 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60262571 passed
2025-11-03 14:51:04,164 - DEBUG - ====Verifying policy data for ctest-vn-60262571 in API_Server ======
2025-11-03 14:51:04,164 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-03 14:51:04,170 - DEBUG - Requesting: http://10.0.0.41:8082/domain/59192770-a1e6-486c-8665-2c08be9016ab
2025-11-03 14:51:04,182 - DEBUG - Requesting: http://10.0.0.41:8082/project/b7f441eb-fd6a-4f33-a3fd-3f8cd62159b8
2025-11-03 14:51:04,257 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/aba14ca5-e88a-4fdc-90bf-ab96ce8e488f
2025-11-03 14:51:04,270 - DEBUG - ==>Verifying data for policy with id: 29a899aa-ef01-4ab4-8b78-de8bcc2632a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-17398458', 'ctest-policy-allow-all-09421658']
2025-11-03 14:51:04,270 - INFO - VN ctest-vn-60262571 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 14:51:04,270 - DEBUG - Verifying the vn in opserver
2025-11-03 14:51:04,270 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17398458:ctest-vn-60262571 virtual network link through opserver 10.0.0.41
2025-11-03 14:51:04,270 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-11-03 14:51:04,282 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17398458:ctest-vn-60262571', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17398458:ctest-vn-60262571?flat'}
2025-11-03 14:51:04,282 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17398458:ctest-vn-60262571 is found in opserver
2025-11-03 14:51:04,294 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 14:51:04,301 - DEBUG - VRF ids for VN ctest-vn-60262571: {}
2025-11-03 14:51:04,373 - DEBUG - Services list from nova: [