2025-06-09 12:50:06,614 - INFO - Domain Default found not creating
2025-06-09 12:50:06,790 - INFO - Project ctest-TestBasicPolicy-23064684 not found, creating it
2025-06-09 12:50:07,270 - INFO - Created Project:ctest-TestBasicPolicy-23064684, ID : 5891d580-9814-4d7f-b357-cfd0e97eaecd
2025-06-09 12:50:08,756 - INFO - ================================================================================
2025-06-09 12:50:08,757 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-09 12:50:08,757 - 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-09 12:50:09,019 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-06-09 12:50:09,020 - INFO - Initial checks done. Running the testcase now
2025-06-09 12:50:09,020 - INFO -
2025-06-09 12:50:09,564 - DEBUG - Response for create_network : {'network': {'id': '314e38e8-59b0-4994-96d1-738df303617a', 'name': 'ctest-vn-24112125', 'tenant_id': '5891d58098144d7fb357cfd0e97eaecd', 'project_id': '5891d58098144d7fb357cfd0e97eaecd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23064684', 'ctest-vn-24112125'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 12:50:09,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c67ecd2-bd14-464c-9e60-10000a5ba8e5', 'name': '', 'tenant_id': '5891d58098144d7fb357cfd0e97eaecd', 'network_id': '314e38e8-59b0-4994-96d1-738df303617a', 'ip_version': 4, 'cidr': '50.1.116.64/26', 'allocation_pools': [{'start': '50.1.116.66', 'end': '50.1.116.126'}], 'gateway_ip': '50.1.116.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.1.116.66', 'tags': [], 'project_id': '5891d58098144d7fb357cfd0e97eaecd'}}
2025-06-09 12:50:09,783 - INFO - Created VN ctest-vn-24112125
2025-06-09 12:50:09,837 - DEBUG - VN ctest-vn-24112125 UUID is 314e38e8-59b0-4994-96d1-738df303617a
2025-06-09 12:50:10,155 - DEBUG - Response for create_network : {'network': {'id': 'bf310278-dd6c-4e12-aa1a-82324b13b987', 'name': 'ctest-vn-17655413', 'tenant_id': '5891d58098144d7fb357cfd0e97eaecd', 'project_id': '5891d58098144d7fb357cfd0e97eaecd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23064684', 'ctest-vn-17655413'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 12:50:10,353 - DEBUG - Response for create_subnet : {'subnet': {'id': '43c9b87a-4728-48b0-929c-50197e615219', 'name': '', 'tenant_id': '5891d58098144d7fb357cfd0e97eaecd', 'network_id': 'bf310278-dd6c-4e12-aa1a-82324b13b987', 'ip_version': 4, 'cidr': '202.214.132.192/26', 'allocation_pools': [{'start': '202.214.132.194', 'end': '202.214.132.254'}], 'gateway_ip': '202.214.132.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.214.132.194', 'tags': [], 'project_id': '5891d58098144d7fb357cfd0e97eaecd'}}
2025-06-09 12:50:10,371 - INFO - Created VN ctest-vn-17655413
2025-06-09 12:50:10,433 - DEBUG - VN ctest-vn-17655413 UUID is bf310278-dd6c-4e12-aa1a-82324b13b987
2025-06-09 12:50:10,603 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23064684:ctest-vn-24112125, 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-23064684:ctest-vn-17655413, 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-09 12:50:10,910 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '314e38e8-59b0-4994-96d1-738df303617a', 'name': 'ctest-vn-24112125', 'tenant_id': '5891d58098144d7fb357cfd0e97eaecd', 'project_id': '5891d58098144d7fb357cfd0e97eaecd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c67ecd2-bd14-464c-9e60-10000a5ba8e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23064684', 'ctest-vn-24112125'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23064684', 'ctest-policy-allow-all-11581562']], 'subnet_ipam': [{'subnet_cidr': '50.1.116.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 12:50:11,149 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf310278-dd6c-4e12-aa1a-82324b13b987', 'name': 'ctest-vn-17655413', 'tenant_id': '5891d58098144d7fb357cfd0e97eaecd', 'project_id': '5891d58098144d7fb357cfd0e97eaecd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43c9b87a-4728-48b0-929c-50197e615219'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23064684', 'ctest-vn-17655413'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23064684', 'ctest-policy-allow-all-11581562']], 'subnet_ipam': [{'subnet_cidr': '202.214.132.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 12:50:11,313 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-09 12:50:11,634 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-09 12:50:11,669 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f260d6f1-7f67-4167-8e30-893eafa50950
2025-06-09 12:50:11,685 - DEBUG - Requesting: http://10.0.0.254:8082/project/5891d580-9814-4d7f-b357-cfd0e97eaecd
2025-06-09 12:50:11,766 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/314e38e8-59b0-4994-96d1-738df303617a
2025-06-09 12:50:11,780 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/314e38e8-59b0-4994-96d1-738df303617a
2025-06-09 12:50:11,792 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a9056f20-9839-4f2f-86cc-9e5d1d1f17f5
2025-06-09 12:50:11,802 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a9056f20-9839-4f2f-86cc-9e5d1d1f17f5
2025-06-09 12:50:11,810 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0cc14307-b675-462a-8b5d-ff1d361bcefe
2025-06-09 12:50:11,817 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 12:50:11,817 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/314e38e8-59b0-4994-96d1-738df303617a
2025-06-09 12:50:11,826 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a9056f20-9839-4f2f-86cc-9e5d1d1f17f5
2025-06-09 12:50:11,842 - INFO - Verified VN network id 8 for VN 314e38e8-59b0-4994-96d1-738df303617a
2025-06-09 12:50:11,842 - INFO - Verifications in API Server for VN ctest-vn-24112125 passed
2025-06-09 12:50:11,842 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/314e38e8-59b0-4994-96d1-738df303617a
2025-06-09 12:50:11,852 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a9056f20-9839-4f2f-86cc-9e5d1d1f17f5
2025-06-09 12:50:11,860 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a9056f20-9839-4f2f-86cc-9e5d1d1f17f5
2025-06-09 12:50:11,868 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0cc14307-b675-462a-8b5d-ff1d361bcefe
2025-06-09 12:50:11,882 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23064684:ctest-vn-24112125', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23064684', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3552839726630193556', 'uuid-lslong': '10867594429326385530'}, 'enable': 'true', 'created': '2025-06-09T12:50:09', 'last-modified': '2025-06-09T12:50:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.998046'}
2025-06-09 12:50:11,889 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 12:50:11,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24112125 passed
2025-06-09 12:50:11,890 - DEBUG - ====Verifying policy data for ctest-vn-24112125 in API_Server ======
2025-06-09 12:50:11,890 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-09 12:50:11,896 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f260d6f1-7f67-4167-8e30-893eafa50950
2025-06-09 12:50:11,909 - DEBUG - Requesting: http://10.0.0.254:8082/project/5891d580-9814-4d7f-b357-cfd0e97eaecd
2025-06-09 12:50:11,983 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/314e38e8-59b0-4994-96d1-738df303617a
2025-06-09 12:50:11,996 - DEBUG - ==>Verifying data for policy with id: b1f18801-7127-491f-bcf3-a41d74428e64, fqn: ['default-domain', 'ctest-TestBasicPolicy-23064684', 'ctest-policy-allow-all-11581562']
2025-06-09 12:50:11,996 - INFO - VN ctest-vn-24112125 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 12:50:11,996 - DEBUG - Verifying the vn in opserver
2025-06-09 12:50:11,996 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23064684:ctest-vn-24112125 virtual network link through opserver 10.0.0.254
2025-06-09 12:50:11,996 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-09 12:50:12,298 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-09 12:50:12,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23064684:ctest-vn-24112125', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23064684:ctest-vn-24112125?flat'}
2025-06-09 12:50:12,357 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23064684:ctest-vn-24112125 is found in opserver
2025-06-09 12:50:12,368 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 12:50:12,374 - DEBUG - VRF ids for VN ctest-vn-24112125: {}
2025-06-09 12:50:12,374 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-09 12:50:12,380 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f260d6f1-7f67-4167-8e30-893eafa50950
2025-06-09 12:50:12,394 - DEBUG - Requesting: http://10.0.0.254:8082/project/5891d580-9814-4d7f-b357-cfd0e97eaecd
2025-06-09 12:50:12,473 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bf310278-dd6c-4e12-aa1a-82324b13b987
2025-06-09 12:50:12,489 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bf310278-dd6c-4e12-aa1a-82324b13b987
2025-06-09 12:50:12,502 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/79784d9d-d1f9-4ff7-87a0-577311f22be2
2025-06-09 12:50:12,512 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/79784d9d-d1f9-4ff7-87a0-577311f22be2
2025-06-09 12:50:12,522 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/01e99517-19cd-4d83-866a-c84063f8333b
2025-06-09 12:50:12,532 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 12:50:12,533 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bf310278-dd6c-4e12-aa1a-82324b13b987
2025-06-09 12:50:12,547 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/79784d9d-d1f9-4ff7-87a0-577311f22be2
2025-06-09 12:50:12,568 - INFO - Verified VN network id 9 for VN bf310278-dd6c-4e12-aa1a-82324b13b987
2025-06-09 12:50:12,569 - INFO - Verifications in API Server for VN ctest-vn-17655413 passed
2025-06-09 12:50:12,569 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bf310278-dd6c-4e12-aa1a-82324b13b987
2025-06-09 12:50:12,581 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/79784d9d-d1f9-4ff7-87a0-577311f22be2
2025-06-09 12:50:12,592 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/79784d9d-d1f9-4ff7-87a0-577311f22be2
2025-06-09 12:50:12,602 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/01e99517-19cd-4d83-866a-c84063f8333b
2025-06-09 12:50:12,618 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23064684:ctest-vn-17655413', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23064684', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13776795453237251602', 'uuid-lslong': '12257252488361785735'}, 'enable': 'true', 'created': '2025-06-09T12:50:10', 'last-modified': '2025-06-09T12:50:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.489488'}
2025-06-09 12:50:12,627 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 12:50:12,627 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17655413 passed
2025-06-09 12:50:12,627 - DEBUG - ====Verifying policy data for ctest-vn-17655413 in API_Server ======
2025-06-09 12:50:12,627 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-09 12:50:12,634 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f260d6f1-7f67-4167-8e30-893eafa50950
2025-06-09 12:50:12,650 - DEBUG - Requesting: http://10.0.0.254:8082/project/5891d580-9814-4d7f-b357-cfd0e97eaecd
2025-06-09 12:50:12,736 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bf310278-dd6c-4e12-aa1a-82324b13b987
2025-06-09 12:50:12,749 - DEBUG - ==>Verifying data for policy with id: b1f18801-7127-491f-bcf3-a41d74428e64, fqn: ['default-domain', 'ctest-TestBasicPolicy-23064684', 'ctest-policy-allow-all-11581562']
2025-06-09 12:50:12,749 - INFO - VN ctest-vn-17655413 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 12:50:12,749 - DEBUG - Verifying the vn in opserver
2025-06-09 12:50:12,749 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23064684:ctest-vn-17655413 virtual network link through opserver 10.0.0.254
2025-06-09 12:50:12,749 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-09 12:50:12,761 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23064684:ctest-vn-17655413', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23064684:ctest-vn-17655413?flat'}
2025-06-09 12:50:12,761 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23064684:ctest-vn-17655413 is found in opserver
2025-06-09 12:50:12,773 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 12:50:12,779 - DEBUG - VRF ids for VN ctest-vn-17655413: {}
2025-06-09 12:50:12,838 - DEBUG - Services list from nova: [