2025-08-20 16:12:20,497 - INFO - Domain Default found not creating
2025-08-20 16:12:20,620 - INFO - Project ctest-TestBasicPolicy-67049107 not found, creating it
2025-08-20 16:12:21,068 - INFO - Created Project:ctest-TestBasicPolicy-67049107, ID : c96f62fb-7537-414d-8bb4-b0ca0cb74b94
2025-08-20 16:12:22,366 - INFO - ================================================================================
2025-08-20 16:12:22,366 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-20 16:12:22,366 - 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-08-20 16:12:22,629 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-08-20 16:12:22,629 - INFO - Initial checks done. Running the testcase now
2025-08-20 16:12:22,629 - INFO -
2025-08-20 16:12:23,126 - DEBUG - Response for create_network : {'network': {'id': '19814aeb-29f5-4bf3-b066-de8a30185a17', 'name': 'ctest-vn-85788350', 'tenant_id': 'c96f62fb7537414d8bb4b0ca0cb74b94', 'project_id': 'c96f62fb7537414d8bb4b0ca0cb74b94', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67049107', 'ctest-vn-85788350'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 16:12:23,304 - DEBUG - Response for create_subnet : {'subnet': {'id': '03262437-1ad2-499b-8641-650ff44f03df', 'name': '', 'tenant_id': 'c96f62fb7537414d8bb4b0ca0cb74b94', 'network_id': '19814aeb-29f5-4bf3-b066-de8a30185a17', 'ip_version': 4, 'cidr': '5.61.110.0/26', 'allocation_pools': [{'start': '5.61.110.2', 'end': '5.61.110.62'}], 'gateway_ip': '5.61.110.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.61.110.2', 'tags': [], 'project_id': 'c96f62fb7537414d8bb4b0ca0cb74b94'}}
2025-08-20 16:12:23,320 - INFO - Created VN ctest-vn-85788350
2025-08-20 16:12:23,373 - DEBUG - VN ctest-vn-85788350 UUID is 19814aeb-29f5-4bf3-b066-de8a30185a17
2025-08-20 16:12:23,675 - DEBUG - Response for create_network : {'network': {'id': '7516b12c-7146-4e46-baad-bdafde0611e0', 'name': 'ctest-vn-68305653', 'tenant_id': 'c96f62fb7537414d8bb4b0ca0cb74b94', 'project_id': 'c96f62fb7537414d8bb4b0ca0cb74b94', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67049107', 'ctest-vn-68305653'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 16:12:23,862 - DEBUG - Response for create_subnet : {'subnet': {'id': '996e92fc-d2e8-4fc5-aee0-8f62611ae45a', 'name': '', 'tenant_id': 'c96f62fb7537414d8bb4b0ca0cb74b94', 'network_id': '7516b12c-7146-4e46-baad-bdafde0611e0', 'ip_version': 4, 'cidr': '130.79.116.192/26', 'allocation_pools': [{'start': '130.79.116.194', 'end': '130.79.116.254'}], 'gateway_ip': '130.79.116.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.79.116.194', 'tags': [], 'project_id': 'c96f62fb7537414d8bb4b0ca0cb74b94'}}
2025-08-20 16:12:23,879 - INFO - Created VN ctest-vn-68305653
2025-08-20 16:12:23,929 - DEBUG - VN ctest-vn-68305653 UUID is 7516b12c-7146-4e46-baad-bdafde0611e0
2025-08-20 16:12:24,069 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67049107:ctest-vn-85788350, 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-67049107:ctest-vn-68305653, 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-08-20 16:12:24,358 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19814aeb-29f5-4bf3-b066-de8a30185a17', 'name': 'ctest-vn-85788350', 'tenant_id': 'c96f62fb7537414d8bb4b0ca0cb74b94', 'project_id': 'c96f62fb7537414d8bb4b0ca0cb74b94', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03262437-1ad2-499b-8641-650ff44f03df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67049107', 'ctest-vn-85788350'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67049107', 'ctest-policy-allow-all-95303829']], 'subnet_ipam': [{'subnet_cidr': '5.61.110.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 16:12:24,568 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7516b12c-7146-4e46-baad-bdafde0611e0', 'name': 'ctest-vn-68305653', 'tenant_id': 'c96f62fb7537414d8bb4b0ca0cb74b94', 'project_id': 'c96f62fb7537414d8bb4b0ca0cb74b94', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['996e92fc-d2e8-4fc5-aee0-8f62611ae45a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67049107', 'ctest-vn-68305653'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67049107', 'ctest-policy-allow-all-95303829']], 'subnet_ipam': [{'subnet_cidr': '130.79.116.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 16:12:24,721 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-20 16:12:25,010 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-20 16:12:25,035 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9555d193-959a-4921-997f-f42de7783b33
2025-08-20 16:12:25,046 - DEBUG - Requesting: http://10.0.0.254:8082/project/c96f62fb-7537-414d-8bb4-b0ca0cb74b94
2025-08-20 16:12:25,117 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/19814aeb-29f5-4bf3-b066-de8a30185a17
2025-08-20 16:12:25,127 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/19814aeb-29f5-4bf3-b066-de8a30185a17
2025-08-20 16:12:25,136 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8c2fc0c8-d188-4f13-a6dd-9fc439cb06e4
2025-08-20 16:12:25,141 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8c2fc0c8-d188-4f13-a6dd-9fc439cb06e4
2025-08-20 16:12:25,146 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ac5961e5-49b1-47d5-8f24-8d63975859c6
2025-08-20 16:12:25,151 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 16:12:25,151 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/19814aeb-29f5-4bf3-b066-de8a30185a17
2025-08-20 16:12:25,158 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8c2fc0c8-d188-4f13-a6dd-9fc439cb06e4
2025-08-20 16:12:25,169 - INFO - Verified VN network id 12 for VN 19814aeb-29f5-4bf3-b066-de8a30185a17
2025-08-20 16:12:25,170 - INFO - Verifications in API Server for VN ctest-vn-85788350 passed
2025-08-20 16:12:25,170 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/19814aeb-29f5-4bf3-b066-de8a30185a17
2025-08-20 16:12:25,177 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8c2fc0c8-d188-4f13-a6dd-9fc439cb06e4
2025-08-20 16:12:25,183 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8c2fc0c8-d188-4f13-a6dd-9fc439cb06e4
2025-08-20 16:12:25,189 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ac5961e5-49b1-47d5-8f24-8d63975859c6
2025-08-20 16:12:25,198 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67049107:ctest-vn-85788350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67049107', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1837832496825584627', 'uuid-lslong': '12711091683393559063'}, 'enable': 'true', 'created': '2025-08-20T16:12:23', 'last-modified': '2025-08-20T16:12:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.860838'}
2025-08-20 16:12:25,202 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 16:12:25,202 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85788350 passed
2025-08-20 16:12:25,202 - DEBUG - ====Verifying policy data for ctest-vn-85788350 in API_Server ======
2025-08-20 16:12:25,203 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-20 16:12:25,206 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9555d193-959a-4921-997f-f42de7783b33
2025-08-20 16:12:25,216 - DEBUG - Requesting: http://10.0.0.254:8082/project/c96f62fb-7537-414d-8bb4-b0ca0cb74b94
2025-08-20 16:12:25,284 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/19814aeb-29f5-4bf3-b066-de8a30185a17
2025-08-20 16:12:25,292 - DEBUG - ==>Verifying data for policy with id: 33c3b26f-59a0-463d-aeb1-5547124159c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-67049107', 'ctest-policy-allow-all-95303829']
2025-08-20 16:12:25,292 - INFO - VN ctest-vn-85788350 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 16:12:25,292 - DEBUG - Verifying the vn in opserver
2025-08-20 16:12:25,292 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67049107:ctest-vn-85788350 virtual network link through opserver 10.0.0.254
2025-08-20 16:12:25,292 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-20 16:12:25,579 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-20 16:12:25,626 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67049107:ctest-vn-85788350', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67049107:ctest-vn-85788350?flat'}
2025-08-20 16:12:25,626 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67049107:ctest-vn-85788350 is found in opserver
2025-08-20 16:12:25,634 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 16:12:25,638 - DEBUG - VRF ids for VN ctest-vn-85788350: {}
2025-08-20 16:12:25,638 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-20 16:12:25,642 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9555d193-959a-4921-997f-f42de7783b33
2025-08-20 16:12:25,651 - DEBUG - Requesting: http://10.0.0.254:8082/project/c96f62fb-7537-414d-8bb4-b0ca0cb74b94
2025-08-20 16:12:25,716 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7516b12c-7146-4e46-baad-bdafde0611e0
2025-08-20 16:12:25,726 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7516b12c-7146-4e46-baad-bdafde0611e0
2025-08-20 16:12:25,733 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe225b6-b091-4698-82c7-58007982ce56
2025-08-20 16:12:25,738 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe225b6-b091-4698-82c7-58007982ce56
2025-08-20 16:12:25,742 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/51de2930-12da-47d5-8b1f-4c6958dbd660
2025-08-20 16:12:25,747 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 16:12:25,747 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7516b12c-7146-4e46-baad-bdafde0611e0
2025-08-20 16:12:25,754 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe225b6-b091-4698-82c7-58007982ce56
2025-08-20 16:12:25,763 - INFO - Verified VN network id 13 for VN 7516b12c-7146-4e46-baad-bdafde0611e0
2025-08-20 16:12:25,763 - INFO - Verifications in API Server for VN ctest-vn-68305653 passed
2025-08-20 16:12:25,763 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7516b12c-7146-4e46-baad-bdafde0611e0
2025-08-20 16:12:25,770 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe225b6-b091-4698-82c7-58007982ce56
2025-08-20 16:12:25,774 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe225b6-b091-4698-82c7-58007982ce56
2025-08-20 16:12:25,779 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/51de2930-12da-47d5-8b1f-4c6958dbd660
2025-08-20 16:12:25,787 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67049107:ctest-vn-68305653', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67049107', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8437125756362313286', 'uuid-lslong': '13451616225067405792'}, 'enable': 'true', 'created': '2025-08-20T16:12:23', 'last-modified': '2025-08-20T16:12:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.240152'}
2025-08-20 16:12:25,792 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 16:12:25,792 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68305653 passed
2025-08-20 16:12:25,792 - DEBUG - ====Verifying policy data for ctest-vn-68305653 in API_Server ======
2025-08-20 16:12:25,792 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-20 16:12:25,796 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9555d193-959a-4921-997f-f42de7783b33
2025-08-20 16:12:25,803 - DEBUG - Requesting: http://10.0.0.254:8082/project/c96f62fb-7537-414d-8bb4-b0ca0cb74b94
2025-08-20 16:12:25,872 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7516b12c-7146-4e46-baad-bdafde0611e0
2025-08-20 16:12:25,879 - DEBUG - ==>Verifying data for policy with id: 33c3b26f-59a0-463d-aeb1-5547124159c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-67049107', 'ctest-policy-allow-all-95303829']
2025-08-20 16:12:25,879 - INFO - VN ctest-vn-68305653 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 16:12:25,880 - DEBUG - Verifying the vn in opserver
2025-08-20 16:12:25,880 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67049107:ctest-vn-68305653 virtual network link through opserver 10.0.0.254
2025-08-20 16:12:25,880 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-20 16:12:25,887 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67049107:ctest-vn-68305653', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67049107:ctest-vn-68305653?flat'}
2025-08-20 16:12:25,887 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67049107:ctest-vn-68305653 is found in opserver
2025-08-20 16:12:25,894 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 16:12:25,898 - DEBUG - VRF ids for VN ctest-vn-68305653: {}
2025-08-20 16:12:25,944 - DEBUG - Services list from nova: [