2025-07-22 08:59:48,140 - INFO - Domain Default found not creating
2025-07-22 08:59:48,531 - INFO - Project ctest-TestBasicPolicy-92529331 not found, creating it
2025-07-22 08:59:49,253 - INFO - Created Project:ctest-TestBasicPolicy-92529331, ID : 8be958d7-4073-48f4-beff-3834a249ba03
2025-07-22 08:59:51,533 - INFO - ================================================================================
2025-07-22 08:59:51,533 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-22 08:59:51,533 - 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-07-22 08:59:51,848 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-07-22 08:59:51,848 - INFO - Initial checks done. Running the testcase now
2025-07-22 08:59:51,849 - INFO -
2025-07-22 08:59:52,842 - DEBUG - Response for create_network : {'network': {'id': 'a8100bdb-c0e8-4aff-b250-bcd34690b858', 'name': 'ctest-vn-29609814', 'tenant_id': '8be958d7407348f4beff3834a249ba03', 'project_id': '8be958d7407348f4beff3834a249ba03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-vn-29609814'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 08:59:53,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ebbd958-b0c6-4a17-8bd9-4c72e74caeb8', 'name': '', 'tenant_id': '8be958d7407348f4beff3834a249ba03', 'network_id': 'a8100bdb-c0e8-4aff-b250-bcd34690b858', 'ip_version': 4, 'cidr': '39.233.120.64/26', 'allocation_pools': [{'start': '39.233.120.66', 'end': '39.233.120.126'}], 'gateway_ip': '39.233.120.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.233.120.66', 'tags': [], 'project_id': '8be958d7407348f4beff3834a249ba03'}}
2025-07-22 08:59:53,055 - INFO - Created VN ctest-vn-29609814
2025-07-22 08:59:53,109 - DEBUG - VN ctest-vn-29609814 UUID is a8100bdb-c0e8-4aff-b250-bcd34690b858
2025-07-22 08:59:53,510 - DEBUG - Response for create_network : {'network': {'id': 'f2c43710-06d6-4978-ab6e-c587e42bfb79', 'name': 'ctest-vn-56595752', 'tenant_id': '8be958d7407348f4beff3834a249ba03', 'project_id': '8be958d7407348f4beff3834a249ba03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-vn-56595752'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 08:59:53,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '40d94f05-bdf3-4a66-9206-51bae13cd8cd', 'name': '', 'tenant_id': '8be958d7407348f4beff3834a249ba03', 'network_id': 'f2c43710-06d6-4978-ab6e-c587e42bfb79', 'ip_version': 4, 'cidr': '169.171.234.0/26', 'allocation_pools': [{'start': '169.171.234.2', 'end': '169.171.234.62'}], 'gateway_ip': '169.171.234.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.171.234.2', 'tags': [], 'project_id': '8be958d7407348f4beff3834a249ba03'}}
2025-07-22 08:59:53,776 - INFO - Created VN ctest-vn-56595752
2025-07-22 08:59:53,833 - DEBUG - VN ctest-vn-56595752 UUID is f2c43710-06d6-4978-ab6e-c587e42bfb79
2025-07-22 08:59:53,999 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814, 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-92529331:ctest-vn-56595752, 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-07-22 08:59:54,431 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8100bdb-c0e8-4aff-b250-bcd34690b858', 'name': 'ctest-vn-29609814', 'tenant_id': '8be958d7407348f4beff3834a249ba03', 'project_id': '8be958d7407348f4beff3834a249ba03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ebbd958-b0c6-4a17-8bd9-4c72e74caeb8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-vn-29609814'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-policy-allow-all-20211369']], 'subnet_ipam': [{'subnet_cidr': '39.233.120.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 08:59:54,722 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f2c43710-06d6-4978-ab6e-c587e42bfb79', 'name': 'ctest-vn-56595752', 'tenant_id': '8be958d7407348f4beff3834a249ba03', 'project_id': '8be958d7407348f4beff3834a249ba03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40d94f05-bdf3-4a66-9206-51bae13cd8cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-vn-56595752'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-policy-allow-all-20211369']], 'subnet_ipam': [{'subnet_cidr': '169.171.234.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 08:59:54,917 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-22 08:59:55,238 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-22 08:59:55,284 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e
2025-07-22 08:59:55,312 - DEBUG - Requesting: http://10.0.0.50:8082/project/8be958d7-4073-48f4-beff-3834a249ba03
2025-07-22 08:59:55,421 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8100bdb-c0e8-4aff-b250-bcd34690b858
2025-07-22 08:59:55,460 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8100bdb-c0e8-4aff-b250-bcd34690b858
2025-07-22 08:59:55,492 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a787a2-e9d8-4e48-acf6-c15be7bcf487
2025-07-22 08:59:55,511 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a787a2-e9d8-4e48-acf6-c15be7bcf487
2025-07-22 08:59:55,537 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/be8e5a8f-ce73-48f9-aacf-f9a446467197
2025-07-22 08:59:55,554 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 08:59:55,555 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8100bdb-c0e8-4aff-b250-bcd34690b858
2025-07-22 08:59:55,575 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a787a2-e9d8-4e48-acf6-c15be7bcf487
2025-07-22 08:59:55,597 - INFO - Verified VN network id 11 for VN a8100bdb-c0e8-4aff-b250-bcd34690b858
2025-07-22 08:59:55,597 - INFO - Verifications in API Server for VN ctest-vn-29609814 passed
2025-07-22 08:59:55,597 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8100bdb-c0e8-4aff-b250-bcd34690b858
2025-07-22 08:59:55,611 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a787a2-e9d8-4e48-acf6-c15be7bcf487
2025-07-22 08:59:55,621 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a787a2-e9d8-4e48-acf6-c15be7bcf487
2025-07-22 08:59:55,631 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/be8e5a8f-ce73-48f9-aacf-f9a446467197
2025-07-22 08:59:55,650 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92529331', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12110192436461456127', 'uuid-lslong': '12848977352496035928'}, 'enable': 'true', 'created': '2025-07-22T08:59:52', 'last-modified': '2025-07-22T08:59:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.275045'}
2025-07-22 08:59:55,664 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 08:59:55,664 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29609814 passed
2025-07-22 08:59:55,664 - DEBUG - ====Verifying policy data for ctest-vn-29609814 in API_Server ======
2025-07-22 08:59:55,664 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-22 08:59:55,673 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e
2025-07-22 08:59:55,691 - DEBUG - Requesting: http://10.0.0.50:8082/project/8be958d7-4073-48f4-beff-3834a249ba03
2025-07-22 08:59:55,791 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8100bdb-c0e8-4aff-b250-bcd34690b858
2025-07-22 08:59:55,809 - DEBUG - ==>Verifying data for policy with id: a5d2698d-5bc5-41f0-92c1-e851414d6bfe, fqn: ['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-policy-allow-all-20211369']
2025-07-22 08:59:55,809 - INFO - VN ctest-vn-29609814 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 08:59:55,809 - DEBUG - Verifying the vn in opserver
2025-07-22 08:59:55,809 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814 virtual network link through opserver 10.0.0.50
2025-07-22 08:59:55,809 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-22 08:59:56,132 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-22 08:59:56,247 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814?flat'}
2025-07-22 08:59:56,247 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814 is found in opserver
2025-07-22 08:59:56,270 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 08:59:56,278 - DEBUG - VRF ids for VN ctest-vn-29609814: {}
2025-07-22 08:59:56,278 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-22 08:59:56,290 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e
2025-07-22 08:59:56,319 - DEBUG - Requesting: http://10.0.0.50:8082/project/8be958d7-4073-48f4-beff-3834a249ba03
2025-07-22 08:59:56,439 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2c43710-06d6-4978-ab6e-c587e42bfb79
2025-07-22 08:59:56,468 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2c43710-06d6-4978-ab6e-c587e42bfb79
2025-07-22 08:59:56,489 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33db23cb-f138-4d98-b76f-4da2b5c4e81e
2025-07-22 08:59:56,505 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33db23cb-f138-4d98-b76f-4da2b5c4e81e
2025-07-22 08:59:56,522 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/18b853fc-f4b0-494f-9793-650c0cae6f41
2025-07-22 08:59:56,537 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 08:59:56,537 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2c43710-06d6-4978-ab6e-c587e42bfb79
2025-07-22 08:59:56,555 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33db23cb-f138-4d98-b76f-4da2b5c4e81e
2025-07-22 08:59:56,586 - INFO - Verified VN network id 12 for VN f2c43710-06d6-4978-ab6e-c587e42bfb79
2025-07-22 08:59:56,586 - INFO - Verifications in API Server for VN ctest-vn-56595752 passed
2025-07-22 08:59:56,586 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2c43710-06d6-4978-ab6e-c587e42bfb79
2025-07-22 08:59:56,610 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33db23cb-f138-4d98-b76f-4da2b5c4e81e
2025-07-22 08:59:56,632 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33db23cb-f138-4d98-b76f-4da2b5c4e81e
2025-07-22 08:59:56,650 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/18b853fc-f4b0-494f-9793-650c0cae6f41
2025-07-22 08:59:56,677 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-56595752', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92529331', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17493167394587560312', 'uuid-lslong': '12353028015363193721'}, 'enable': 'true', 'created': '2025-07-22T08:59:53', 'last-modified': '2025-07-22T08:59:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.988293'}
2025-07-22 08:59:56,691 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 08:59:56,691 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56595752 passed
2025-07-22 08:59:56,691 - DEBUG - ====Verifying policy data for ctest-vn-56595752 in API_Server ======
2025-07-22 08:59:56,691 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-22 08:59:56,704 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e
2025-07-22 08:59:56,732 - DEBUG - Requesting: http://10.0.0.50:8082/project/8be958d7-4073-48f4-beff-3834a249ba03
2025-07-22 08:59:56,850 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2c43710-06d6-4978-ab6e-c587e42bfb79
2025-07-22 08:59:56,866 - DEBUG - ==>Verifying data for policy with id: a5d2698d-5bc5-41f0-92c1-e851414d6bfe, fqn: ['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-policy-allow-all-20211369']
2025-07-22 08:59:56,866 - INFO - VN ctest-vn-56595752 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 08:59:56,866 - DEBUG - Verifying the vn in opserver
2025-07-22 08:59:56,866 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-56595752 virtual network link through opserver 10.0.0.50
2025-07-22 08:59:56,866 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-22 08:59:56,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-56595752', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-56595752?flat'}
2025-07-22 08:59:56,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-56595752 is found in opserver
2025-07-22 08:59:56,916 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 08:59:56,930 - DEBUG - VRF ids for VN ctest-vn-56595752: {}
2025-07-22 08:59:57,009 - DEBUG - Services list from nova: [