2025-09-04 14:33:37,427 - INFO - Domain Default found not creating
2025-09-04 14:33:37,554 - INFO - Project ctest-TestBasicPolicy-19169808 not found, creating it
2025-09-04 14:33:37,959 - INFO - Created Project:ctest-TestBasicPolicy-19169808, ID : b91e9cef-d548-451e-988c-c956c1fab789
2025-09-04 14:33:39,279 - INFO - ================================================================================
2025-09-04 14:33:39,279 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-04 14:33:39,279 - 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-09-04 14:33:39,529 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-04 14:33:39,529 - INFO - Initial checks done. Running the testcase now
2025-09-04 14:33:39,529 - INFO -
2025-09-04 14:33:40,039 - DEBUG - Response for create_network : {'network': {'id': '05da0995-e5e3-449b-8331-4c9e18ffb068', 'name': 'ctest-vn-30549505', 'tenant_id': 'b91e9cefd548451e988cc956c1fab789', 'project_id': 'b91e9cefd548451e988cc956c1fab789', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19169808', 'ctest-vn-30549505'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 14:33:40,251 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c76f9c2-6507-4603-9e40-24260d79f030', 'name': '', 'tenant_id': 'b91e9cefd548451e988cc956c1fab789', 'network_id': '05da0995-e5e3-449b-8331-4c9e18ffb068', 'ip_version': 4, 'cidr': '79.196.59.64/26', 'allocation_pools': [{'start': '79.196.59.66', 'end': '79.196.59.126'}], 'gateway_ip': '79.196.59.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.196.59.66', 'tags': [], 'project_id': 'b91e9cefd548451e988cc956c1fab789'}}
2025-09-04 14:33:40,265 - INFO - Created VN ctest-vn-30549505
2025-09-04 14:33:40,317 - DEBUG - VN ctest-vn-30549505 UUID is 05da0995-e5e3-449b-8331-4c9e18ffb068
2025-09-04 14:33:40,616 - DEBUG - Response for create_network : {'network': {'id': '662ec43c-8613-4b42-b639-b9d504b1b870', 'name': 'ctest-vn-66435584', 'tenant_id': 'b91e9cefd548451e988cc956c1fab789', 'project_id': 'b91e9cefd548451e988cc956c1fab789', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19169808', 'ctest-vn-66435584'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 14:33:40,777 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bbb05eb5-956a-4294-bdc9-2407006f5b7a', 'name': '', 'tenant_id': 'b91e9cefd548451e988cc956c1fab789', 'network_id': '662ec43c-8613-4b42-b639-b9d504b1b870', 'ip_version': 4, 'cidr': '19.228.221.0/26', 'allocation_pools': [{'start': '19.228.221.2', 'end': '19.228.221.62'}], 'gateway_ip': '19.228.221.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.228.221.2', 'tags': [], 'project_id': 'b91e9cefd548451e988cc956c1fab789'}}
2025-09-04 14:33:40,794 - INFO - Created VN ctest-vn-66435584
2025-09-04 14:33:40,845 - DEBUG - VN ctest-vn-66435584 UUID is 662ec43c-8613-4b42-b639-b9d504b1b870
2025-09-04 14:33:40,985 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19169808:ctest-vn-30549505, 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-19169808:ctest-vn-66435584, 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-09-04 14:33:41,255 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05da0995-e5e3-449b-8331-4c9e18ffb068', 'name': 'ctest-vn-30549505', 'tenant_id': 'b91e9cefd548451e988cc956c1fab789', 'project_id': 'b91e9cefd548451e988cc956c1fab789', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c76f9c2-6507-4603-9e40-24260d79f030'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19169808', 'ctest-vn-30549505'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19169808', 'ctest-policy-allow-all-94862567']], 'subnet_ipam': [{'subnet_cidr': '79.196.59.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 14:33:41,467 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '662ec43c-8613-4b42-b639-b9d504b1b870', 'name': 'ctest-vn-66435584', 'tenant_id': 'b91e9cefd548451e988cc956c1fab789', 'project_id': 'b91e9cefd548451e988cc956c1fab789', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bbb05eb5-956a-4294-bdc9-2407006f5b7a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19169808', 'ctest-vn-66435584'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19169808', 'ctest-policy-allow-all-94862567']], 'subnet_ipam': [{'subnet_cidr': '19.228.221.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 14:33:41,633 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-04 14:33:41,932 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-04 14:33:41,956 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7252870a-c484-4179-aeef-2d8a0b94dd84
2025-09-04 14:33:41,967 - DEBUG - Requesting: http://10.0.0.22:8082/project/b91e9cef-d548-451e-988c-c956c1fab789
2025-09-04 14:33:42,032 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/05da0995-e5e3-449b-8331-4c9e18ffb068
2025-09-04 14:33:42,040 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/05da0995-e5e3-449b-8331-4c9e18ffb068
2025-09-04 14:33:42,048 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28a9fdf-6f34-4d84-b851-73050d054f82
2025-09-04 14:33:42,053 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28a9fdf-6f34-4d84-b851-73050d054f82
2025-09-04 14:33:42,058 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5b175068-0a09-4f7e-88eb-cf2837df583e
2025-09-04 14:33:42,062 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 14:33:42,062 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/05da0995-e5e3-449b-8331-4c9e18ffb068
2025-09-04 14:33:42,069 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28a9fdf-6f34-4d84-b851-73050d054f82
2025-09-04 14:33:42,080 - INFO - Verified VN network id 12 for VN 05da0995-e5e3-449b-8331-4c9e18ffb068
2025-09-04 14:33:42,080 - INFO - Verifications in API Server for VN ctest-vn-30549505 passed
2025-09-04 14:33:42,080 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/05da0995-e5e3-449b-8331-4c9e18ffb068
2025-09-04 14:33:42,087 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28a9fdf-6f34-4d84-b851-73050d054f82
2025-09-04 14:33:42,092 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28a9fdf-6f34-4d84-b851-73050d054f82
2025-09-04 14:33:42,096 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5b175068-0a09-4f7e-88eb-cf2837df583e
2025-09-04 14:33:42,105 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19169808:ctest-vn-30549505', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19169808', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '421660054524216475', 'uuid-lslong': '9453421334735335528'}, 'enable': 'true', 'created': '2025-09-04T14:33:40', 'last-modified': '2025-09-04T14:33:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.870377'}
2025-09-04 14:33:42,110 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 14:33:42,110 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30549505 passed
2025-09-04 14:33:42,110 - DEBUG - ====Verifying policy data for ctest-vn-30549505 in API_Server ======
2025-09-04 14:33:42,110 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-04 14:33:42,114 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7252870a-c484-4179-aeef-2d8a0b94dd84
2025-09-04 14:33:42,123 - DEBUG - Requesting: http://10.0.0.22:8082/project/b91e9cef-d548-451e-988c-c956c1fab789
2025-09-04 14:33:42,185 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/05da0995-e5e3-449b-8331-4c9e18ffb068
2025-09-04 14:33:42,193 - DEBUG - ==>Verifying data for policy with id: 5c08e904-5ac8-4e1a-b036-a4ffe605565b, fqn: ['default-domain', 'ctest-TestBasicPolicy-19169808', 'ctest-policy-allow-all-94862567']
2025-09-04 14:33:42,193 - INFO - VN ctest-vn-30549505 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 14:33:42,193 - DEBUG - Verifying the vn in opserver
2025-09-04 14:33:42,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19169808:ctest-vn-30549505 virtual network link through opserver 10.0.0.22
2025-09-04 14:33:42,193 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-04 14:33:42,480 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-04 14:33:42,527 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19169808:ctest-vn-30549505', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19169808:ctest-vn-30549505?flat'}
2025-09-04 14:33:42,527 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19169808:ctest-vn-30549505 is found in opserver
2025-09-04 14:33:42,535 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 14:33:42,539 - DEBUG - VRF ids for VN ctest-vn-30549505: {}
2025-09-04 14:33:42,539 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-04 14:33:42,544 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7252870a-c484-4179-aeef-2d8a0b94dd84
2025-09-04 14:33:42,553 - DEBUG - Requesting: http://10.0.0.22:8082/project/b91e9cef-d548-451e-988c-c956c1fab789
2025-09-04 14:33:42,619 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/662ec43c-8613-4b42-b639-b9d504b1b870
2025-09-04 14:33:42,629 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/662ec43c-8613-4b42-b639-b9d504b1b870
2025-09-04 14:33:42,637 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40adbd9f-a071-4166-ab34-7530e26ab489
2025-09-04 14:33:42,643 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40adbd9f-a071-4166-ab34-7530e26ab489
2025-09-04 14:33:42,649 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c60125fe-e694-43cf-a9bf-ff480063f089
2025-09-04 14:33:42,655 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 14:33:42,655 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/662ec43c-8613-4b42-b639-b9d504b1b870
2025-09-04 14:33:42,663 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40adbd9f-a071-4166-ab34-7530e26ab489
2025-09-04 14:33:42,673 - INFO - Verified VN network id 13 for VN 662ec43c-8613-4b42-b639-b9d504b1b870
2025-09-04 14:33:42,674 - INFO - Verifications in API Server for VN ctest-vn-66435584 passed
2025-09-04 14:33:42,674 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/662ec43c-8613-4b42-b639-b9d504b1b870
2025-09-04 14:33:42,681 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40adbd9f-a071-4166-ab34-7530e26ab489
2025-09-04 14:33:42,686 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40adbd9f-a071-4166-ab34-7530e26ab489
2025-09-04 14:33:42,691 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c60125fe-e694-43cf-a9bf-ff480063f089
2025-09-04 14:33:42,699 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19169808:ctest-vn-66435584', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19169808', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7363038205023832898', 'uuid-lslong': '13130730513133320304'}, 'enable': 'true', 'created': '2025-09-04T14:33:40', 'last-modified': '2025-09-04T14:33:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.251666'}
2025-09-04 14:33:42,704 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 14:33:42,704 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66435584 passed
2025-09-04 14:33:42,704 - DEBUG - ====Verifying policy data for ctest-vn-66435584 in API_Server ======
2025-09-04 14:33:42,704 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-04 14:33:42,708 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7252870a-c484-4179-aeef-2d8a0b94dd84
2025-09-04 14:33:42,716 - DEBUG - Requesting: http://10.0.0.22:8082/project/b91e9cef-d548-451e-988c-c956c1fab789
2025-09-04 14:33:42,783 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/662ec43c-8613-4b42-b639-b9d504b1b870
2025-09-04 14:33:42,790 - DEBUG - ==>Verifying data for policy with id: 5c08e904-5ac8-4e1a-b036-a4ffe605565b, fqn: ['default-domain', 'ctest-TestBasicPolicy-19169808', 'ctest-policy-allow-all-94862567']
2025-09-04 14:33:42,790 - INFO - VN ctest-vn-66435584 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 14:33:42,790 - DEBUG - Verifying the vn in opserver
2025-09-04 14:33:42,790 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19169808:ctest-vn-66435584 virtual network link through opserver 10.0.0.22
2025-09-04 14:33:42,790 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-04 14:33:42,798 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19169808:ctest-vn-66435584', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19169808:ctest-vn-66435584?flat'}
2025-09-04 14:33:42,798 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19169808:ctest-vn-66435584 is found in opserver
2025-09-04 14:33:42,805 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 14:33:42,809 - DEBUG - VRF ids for VN ctest-vn-66435584: {}
2025-09-04 14:33:42,857 - DEBUG - Services list from nova: [