2025-10-09 20:33:37,946 - INFO - Domain Default found not creating
2025-10-09 20:33:38,098 - INFO - Project ctest-TestBasicPolicy-35089984 not found, creating it
2025-10-09 20:33:38,517 - INFO - Created Project:ctest-TestBasicPolicy-35089984, ID : 00e1d023-3e16-4b10-9524-b7e88a9359b4
2025-10-09 20:33:39,878 - INFO - ================================================================================
2025-10-09 20:33:39,878 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 20:33:39,878 - 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-09 20:33:40,134 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.14': '0'}} with
2025-10-09 20:33:40,134 - INFO - Initial checks done. Running the testcase now
2025-10-09 20:33:40,134 - INFO -
2025-10-09 20:33:40,656 - DEBUG - Response for create_network : {'network': {'id': 'b89f831b-f494-4843-bac8-86609f3ec55d', 'name': 'ctest-vn-10494261', 'tenant_id': '00e1d0233e164b109524b7e88a9359b4', 'project_id': '00e1d0233e164b109524b7e88a9359b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35089984', 'ctest-vn-10494261'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 20:33:40,836 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b0ec209-8327-49e2-b12a-ba9809f5e7de', 'name': '', 'tenant_id': '00e1d0233e164b109524b7e88a9359b4', 'network_id': 'b89f831b-f494-4843-bac8-86609f3ec55d', 'ip_version': 4, 'cidr': '16.64.99.64/26', 'allocation_pools': [{'start': '16.64.99.66', 'end': '16.64.99.126'}], 'gateway_ip': '16.64.99.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.64.99.66', 'tags': [], 'project_id': '00e1d0233e164b109524b7e88a9359b4'}}
2025-10-09 20:33:40,852 - INFO - Created VN ctest-vn-10494261
2025-10-09 20:33:40,905 - DEBUG - VN ctest-vn-10494261 UUID is b89f831b-f494-4843-bac8-86609f3ec55d
2025-10-09 20:33:41,474 - DEBUG - Response for create_network : {'network': {'id': '3c243ede-e05c-4195-a0d7-c94246ecb311', 'name': 'ctest-vn-56767715', 'tenant_id': '00e1d0233e164b109524b7e88a9359b4', 'project_id': '00e1d0233e164b109524b7e88a9359b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35089984', 'ctest-vn-56767715'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 20:33:41,756 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce33059d-288a-404d-8821-c03c3f456640', 'name': '', 'tenant_id': '00e1d0233e164b109524b7e88a9359b4', 'network_id': '3c243ede-e05c-4195-a0d7-c94246ecb311', 'ip_version': 4, 'cidr': '27.117.166.64/26', 'allocation_pools': [{'start': '27.117.166.66', 'end': '27.117.166.126'}], 'gateway_ip': '27.117.166.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.117.166.66', 'tags': [], 'project_id': '00e1d0233e164b109524b7e88a9359b4'}}
2025-10-09 20:33:41,775 - INFO - Created VN ctest-vn-56767715
2025-10-09 20:33:41,825 - DEBUG - VN ctest-vn-56767715 UUID is 3c243ede-e05c-4195-a0d7-c94246ecb311
2025-10-09 20:33:41,973 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35089984:ctest-vn-10494261, 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-35089984:ctest-vn-56767715, 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-09 20:33:42,254 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b89f831b-f494-4843-bac8-86609f3ec55d', 'name': 'ctest-vn-10494261', 'tenant_id': '00e1d0233e164b109524b7e88a9359b4', 'project_id': '00e1d0233e164b109524b7e88a9359b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b0ec209-8327-49e2-b12a-ba9809f5e7de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35089984', 'ctest-vn-10494261'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35089984', 'ctest-policy-allow-all-52489644']], 'subnet_ipam': [{'subnet_cidr': '16.64.99.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 20:33:42,516 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c243ede-e05c-4195-a0d7-c94246ecb311', 'name': 'ctest-vn-56767715', 'tenant_id': '00e1d0233e164b109524b7e88a9359b4', 'project_id': '00e1d0233e164b109524b7e88a9359b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce33059d-288a-404d-8821-c03c3f456640'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35089984', 'ctest-vn-56767715'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35089984', 'ctest-policy-allow-all-52489644']], 'subnet_ipam': [{'subnet_cidr': '27.117.166.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 20:33:42,661 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-09 20:33:42,954 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-09 20:33:42,982 - DEBUG - Requesting: http://10.0.0.137:8082/domain/5492f48f-1a7f-472e-bb43-29ed56f99b8b
2025-10-09 20:33:42,992 - DEBUG - Requesting: http://10.0.0.137:8082/project/00e1d023-3e16-4b10-9524-b7e88a9359b4
2025-10-09 20:33:43,062 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/b89f831b-f494-4843-bac8-86609f3ec55d
2025-10-09 20:33:43,071 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/b89f831b-f494-4843-bac8-86609f3ec55d
2025-10-09 20:33:43,079 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/f01465d4-3958-4760-a3af-e6b3e31529dc
2025-10-09 20:33:43,084 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/f01465d4-3958-4760-a3af-e6b3e31529dc
2025-10-09 20:33:43,090 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/d527fbb6-96df-40d8-8702-38794fa17c7b
2025-10-09 20:33:43,095 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 20:33:43,096 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/b89f831b-f494-4843-bac8-86609f3ec55d
2025-10-09 20:33:43,102 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/f01465d4-3958-4760-a3af-e6b3e31529dc
2025-10-09 20:33:43,113 - INFO - Verified VN network id 10 for VN b89f831b-f494-4843-bac8-86609f3ec55d
2025-10-09 20:33:43,113 - INFO - Verifications in API Server for VN ctest-vn-10494261 passed
2025-10-09 20:33:43,113 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/b89f831b-f494-4843-bac8-86609f3ec55d
2025-10-09 20:33:43,120 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/f01465d4-3958-4760-a3af-e6b3e31529dc
2025-10-09 20:33:43,125 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/f01465d4-3958-4760-a3af-e6b3e31529dc
2025-10-09 20:33:43,130 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/d527fbb6-96df-40d8-8702-38794fa17c7b
2025-10-09 20:33:43,139 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35089984:ctest-vn-10494261', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35089984', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13303495980366448707', 'uuid-lslong': '13459155235943400797'}, 'enable': 'true', 'created': '2025-10-09T20:33:40', 'last-modified': '2025-10-09T20:33:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906020'}
2025-10-09 20:33:43,144 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 20:33:43,144 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10494261 passed
2025-10-09 20:33:43,144 - DEBUG - ====Verifying policy data for ctest-vn-10494261 in API_Server ======
2025-10-09 20:33:43,144 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-09 20:33:43,148 - DEBUG - Requesting: http://10.0.0.137:8082/domain/5492f48f-1a7f-472e-bb43-29ed56f99b8b
2025-10-09 20:33:43,157 - DEBUG - Requesting: http://10.0.0.137:8082/project/00e1d023-3e16-4b10-9524-b7e88a9359b4
2025-10-09 20:33:43,228 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/b89f831b-f494-4843-bac8-86609f3ec55d
2025-10-09 20:33:43,236 - DEBUG - ==>Verifying data for policy with id: 7331e60b-8418-49fd-9838-fe711a6f7068, fqn: ['default-domain', 'ctest-TestBasicPolicy-35089984', 'ctest-policy-allow-all-52489644']
2025-10-09 20:33:43,236 - INFO - VN ctest-vn-10494261 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 20:33:43,236 - DEBUG - Verifying the vn in opserver
2025-10-09 20:33:43,236 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35089984:ctest-vn-10494261 virtual network link through opserver 10.0.0.137
2025-10-09 20:33:43,236 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-09 20:33:43,524 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-09 20:33:43,573 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35089984:ctest-vn-10494261', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35089984:ctest-vn-10494261?flat'}
2025-10-09 20:33:43,573 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35089984:ctest-vn-10494261 is found in opserver
2025-10-09 20:33:43,581 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 20:33:43,585 - DEBUG - VRF ids for VN ctest-vn-10494261: {}
2025-10-09 20:33:43,585 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-09 20:33:43,589 - DEBUG - Requesting: http://10.0.0.137:8082/domain/5492f48f-1a7f-472e-bb43-29ed56f99b8b
2025-10-09 20:33:43,600 - DEBUG - Requesting: http://10.0.0.137:8082/project/00e1d023-3e16-4b10-9524-b7e88a9359b4
2025-10-09 20:33:43,668 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/3c243ede-e05c-4195-a0d7-c94246ecb311
2025-10-09 20:33:43,677 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/3c243ede-e05c-4195-a0d7-c94246ecb311
2025-10-09 20:33:43,685 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/965d98a5-0243-419c-a083-58077b95cdcb
2025-10-09 20:33:43,690 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/965d98a5-0243-419c-a083-58077b95cdcb
2025-10-09 20:33:43,696 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/4c66a789-695d-4e26-8f06-dd55e1498e07
2025-10-09 20:33:43,702 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 20:33:43,702 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/3c243ede-e05c-4195-a0d7-c94246ecb311
2025-10-09 20:33:43,709 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/965d98a5-0243-419c-a083-58077b95cdcb
2025-10-09 20:33:43,720 - INFO - Verified VN network id 11 for VN 3c243ede-e05c-4195-a0d7-c94246ecb311
2025-10-09 20:33:43,720 - INFO - Verifications in API Server for VN ctest-vn-56767715 passed
2025-10-09 20:33:43,720 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/3c243ede-e05c-4195-a0d7-c94246ecb311
2025-10-09 20:33:43,729 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/965d98a5-0243-419c-a083-58077b95cdcb
2025-10-09 20:33:43,734 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/965d98a5-0243-419c-a083-58077b95cdcb
2025-10-09 20:33:43,739 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/4c66a789-695d-4e26-8f06-dd55e1498e07
2025-10-09 20:33:43,749 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35089984:ctest-vn-56767715', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35089984', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4333657868405064085', 'uuid-lslong': '11589953452556202769'}, 'enable': 'true', 'created': '2025-10-09T20:33:41', 'last-modified': '2025-10-09T20:33:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.301900'}
2025-10-09 20:33:43,754 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 20:33:43,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56767715 passed
2025-10-09 20:33:43,755 - DEBUG - ====Verifying policy data for ctest-vn-56767715 in API_Server ======
2025-10-09 20:33:43,755 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-09 20:33:43,759 - DEBUG - Requesting: http://10.0.0.137:8082/domain/5492f48f-1a7f-472e-bb43-29ed56f99b8b
2025-10-09 20:33:43,768 - DEBUG - Requesting: http://10.0.0.137:8082/project/00e1d023-3e16-4b10-9524-b7e88a9359b4
2025-10-09 20:33:43,837 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/3c243ede-e05c-4195-a0d7-c94246ecb311
2025-10-09 20:33:43,845 - DEBUG - ==>Verifying data for policy with id: 7331e60b-8418-49fd-9838-fe711a6f7068, fqn: ['default-domain', 'ctest-TestBasicPolicy-35089984', 'ctest-policy-allow-all-52489644']
2025-10-09 20:33:43,845 - INFO - VN ctest-vn-56767715 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 20:33:43,845 - DEBUG - Verifying the vn in opserver
2025-10-09 20:33:43,845 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35089984:ctest-vn-56767715 virtual network link through opserver 10.0.0.137
2025-10-09 20:33:43,845 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-09 20:33:43,853 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35089984:ctest-vn-56767715', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35089984:ctest-vn-56767715?flat'}
2025-10-09 20:33:43,853 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35089984:ctest-vn-56767715 is found in opserver
2025-10-09 20:33:43,862 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 20:33:43,866 - DEBUG - VRF ids for VN ctest-vn-56767715: {}
2025-10-09 20:33:43,920 - DEBUG - Services list from nova: [