2025-08-22 22:24:39,763 - INFO - Domain Default found not creating
2025-08-22 22:24:40,069 - INFO - Project ctest-TestBasicPolicy-69751828 not found, creating it
2025-08-22 22:24:40,584 - INFO - Created Project:ctest-TestBasicPolicy-69751828, ID : dfe18eed-3e79-488e-a3b1-a168fa5a0cb2
2025-08-22 22:24:42,610 - INFO - ================================================================================
2025-08-22 22:24:42,610 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-22 22:24:42,610 - 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-22 22:24:42,916 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-22 22:24:42,916 - INFO - Initial checks done. Running the testcase now
2025-08-22 22:24:42,916 - INFO -
2025-08-22 22:24:43,669 - DEBUG - Response for create_network : {'network': {'id': '68069335-b19d-4e53-adc0-4fe5a309012d', 'name': 'ctest-vn-89065665', 'tenant_id': 'dfe18eed3e79488ea3b1a168fa5a0cb2', 'project_id': 'dfe18eed3e79488ea3b1a168fa5a0cb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69751828', 'ctest-vn-89065665'], 'port_security_enabled': True, 'description': ''}}
2025-08-22 22:24:43,855 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6947789-16dd-4cc3-ab37-eb82acf2117f', 'name': '', 'tenant_id': 'dfe18eed3e79488ea3b1a168fa5a0cb2', 'network_id': '68069335-b19d-4e53-adc0-4fe5a309012d', 'ip_version': 4, 'cidr': '77.7.210.64/26', 'allocation_pools': [{'start': '77.7.210.66', 'end': '77.7.210.126'}], 'gateway_ip': '77.7.210.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.7.210.66', 'tags': [], 'project_id': 'dfe18eed3e79488ea3b1a168fa5a0cb2'}}
2025-08-22 22:24:43,870 - INFO - Created VN ctest-vn-89065665
2025-08-22 22:24:43,928 - DEBUG - VN ctest-vn-89065665 UUID is 68069335-b19d-4e53-adc0-4fe5a309012d
2025-08-22 22:24:44,365 - DEBUG - Response for create_network : {'network': {'id': 'ae1e7a65-1b43-454d-8eb6-828a54c2e289', 'name': 'ctest-vn-89885472', 'tenant_id': 'dfe18eed3e79488ea3b1a168fa5a0cb2', 'project_id': 'dfe18eed3e79488ea3b1a168fa5a0cb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69751828', 'ctest-vn-89885472'], 'port_security_enabled': True, 'description': ''}}
2025-08-22 22:24:44,649 - DEBUG - Response for create_subnet : {'subnet': {'id': '046f6c34-df99-407e-a6c0-3ca493dd7e9c', 'name': '', 'tenant_id': 'dfe18eed3e79488ea3b1a168fa5a0cb2', 'network_id': 'ae1e7a65-1b43-454d-8eb6-828a54c2e289', 'ip_version': 4, 'cidr': '154.76.154.0/26', 'allocation_pools': [{'start': '154.76.154.2', 'end': '154.76.154.62'}], 'gateway_ip': '154.76.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.76.154.2', 'tags': [], 'project_id': 'dfe18eed3e79488ea3b1a168fa5a0cb2'}}
2025-08-22 22:24:44,683 - INFO - Created VN ctest-vn-89885472
2025-08-22 22:24:44,764 - DEBUG - VN ctest-vn-89885472 UUID is ae1e7a65-1b43-454d-8eb6-828a54c2e289
2025-08-22 22:24:44,942 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69751828:ctest-vn-89065665, 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-69751828:ctest-vn-89885472, 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-22 22:24:45,415 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '68069335-b19d-4e53-adc0-4fe5a309012d', 'name': 'ctest-vn-89065665', 'tenant_id': 'dfe18eed3e79488ea3b1a168fa5a0cb2', 'project_id': 'dfe18eed3e79488ea3b1a168fa5a0cb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6947789-16dd-4cc3-ab37-eb82acf2117f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69751828', 'ctest-vn-89065665'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69751828', 'ctest-policy-allow-all-75450329']], 'subnet_ipam': [{'subnet_cidr': '77.7.210.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-22 22:24:45,771 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae1e7a65-1b43-454d-8eb6-828a54c2e289', 'name': 'ctest-vn-89885472', 'tenant_id': 'dfe18eed3e79488ea3b1a168fa5a0cb2', 'project_id': 'dfe18eed3e79488ea3b1a168fa5a0cb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['046f6c34-df99-407e-a6c0-3ca493dd7e9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69751828', 'ctest-vn-89885472'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69751828', 'ctest-policy-allow-all-75450329']], 'subnet_ipam': [{'subnet_cidr': '154.76.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-22 22:24:45,948 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 22:24:46,270 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 22:24:46,315 - DEBUG - Requesting: http://10.0.0.254:8082/domain/753e6ff0-4d1a-4e49-ab0e-251036bab123
2025-08-22 22:24:46,348 - DEBUG - Requesting: http://10.0.0.254:8082/project/dfe18eed-3e79-488e-a3b1-a168fa5a0cb2
2025-08-22 22:24:46,468 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/68069335-b19d-4e53-adc0-4fe5a309012d
2025-08-22 22:24:46,499 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/68069335-b19d-4e53-adc0-4fe5a309012d
2025-08-22 22:24:46,531 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7649e625-6bcd-4169-be06-d636e06ecde4
2025-08-22 22:24:46,554 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7649e625-6bcd-4169-be06-d636e06ecde4
2025-08-22 22:24:46,577 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8b2d1d8a-fa2c-461b-bdb9-63c06fc53bfd
2025-08-22 22:24:46,597 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-22 22:24:46,597 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/68069335-b19d-4e53-adc0-4fe5a309012d
2025-08-22 22:24:46,628 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7649e625-6bcd-4169-be06-d636e06ecde4
2025-08-22 22:24:46,675 - INFO - Verified VN network id 11 for VN 68069335-b19d-4e53-adc0-4fe5a309012d
2025-08-22 22:24:46,675 - INFO - Verifications in API Server for VN ctest-vn-89065665 passed
2025-08-22 22:24:46,676 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/68069335-b19d-4e53-adc0-4fe5a309012d
2025-08-22 22:24:46,709 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7649e625-6bcd-4169-be06-d636e06ecde4
2025-08-22 22:24:46,735 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7649e625-6bcd-4169-be06-d636e06ecde4
2025-08-22 22:24:46,759 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8b2d1d8a-fa2c-461b-bdb9-63c06fc53bfd
2025-08-22 22:24:46,800 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69751828:ctest-vn-89065665', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69751828', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7495840488627195475', 'uuid-lslong': '12520094811791360301'}, 'enable': 'true', 'created': '2025-08-22T22:24:43', 'last-modified': '2025-08-22T22:24:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.435173'}
2025-08-22 22:24:46,818 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-22 22:24:46,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89065665 passed
2025-08-22 22:24:46,819 - DEBUG - ====Verifying policy data for ctest-vn-89065665 in API_Server ======
2025-08-22 22:24:46,819 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 22:24:46,837 - DEBUG - Requesting: http://10.0.0.254:8082/domain/753e6ff0-4d1a-4e49-ab0e-251036bab123
2025-08-22 22:24:46,865 - DEBUG - Requesting: http://10.0.0.254:8082/project/dfe18eed-3e79-488e-a3b1-a168fa5a0cb2
2025-08-22 22:24:46,984 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/68069335-b19d-4e53-adc0-4fe5a309012d
2025-08-22 22:24:47,009 - DEBUG - ==>Verifying data for policy with id: e1538301-82c4-4b61-924c-7eb183a2a89e, fqn: ['default-domain', 'ctest-TestBasicPolicy-69751828', 'ctest-policy-allow-all-75450329']
2025-08-22 22:24:47,009 - INFO - VN ctest-vn-89065665 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-22 22:24:47,010 - DEBUG - Verifying the vn in opserver
2025-08-22 22:24:47,010 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69751828:ctest-vn-89065665 virtual network link through opserver 10.0.0.254
2025-08-22 22:24:47,010 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-22 22:24:47,354 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-22 22:24:47,409 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69751828:ctest-vn-89065665', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69751828:ctest-vn-89065665?flat'}
2025-08-22 22:24:47,409 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69751828:ctest-vn-89065665 is found in opserver
2025-08-22 22:24:47,429 - DEBUG - Do not have enough data to verify VN in agent
2025-08-22 22:24:47,438 - DEBUG - VRF ids for VN ctest-vn-89065665: {}
2025-08-22 22:24:47,438 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 22:24:47,450 - DEBUG - Requesting: http://10.0.0.254:8082/domain/753e6ff0-4d1a-4e49-ab0e-251036bab123
2025-08-22 22:24:47,473 - DEBUG - Requesting: http://10.0.0.254:8082/project/dfe18eed-3e79-488e-a3b1-a168fa5a0cb2
2025-08-22 22:24:47,600 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ae1e7a65-1b43-454d-8eb6-828a54c2e289
2025-08-22 22:24:47,627 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ae1e7a65-1b43-454d-8eb6-828a54c2e289
2025-08-22 22:24:47,651 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/14907758-1518-43fd-9b75-4d0d3e49e9dc
2025-08-22 22:24:47,673 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/14907758-1518-43fd-9b75-4d0d3e49e9dc
2025-08-22 22:24:47,697 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b300fffa-412d-4c0e-8370-d334a523a3bd
2025-08-22 22:24:47,715 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-22 22:24:47,715 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ae1e7a65-1b43-454d-8eb6-828a54c2e289
2025-08-22 22:24:47,739 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/14907758-1518-43fd-9b75-4d0d3e49e9dc
2025-08-22 22:24:47,775 - INFO - Verified VN network id 12 for VN ae1e7a65-1b43-454d-8eb6-828a54c2e289
2025-08-22 22:24:47,775 - INFO - Verifications in API Server for VN ctest-vn-89885472 passed
2025-08-22 22:24:47,776 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ae1e7a65-1b43-454d-8eb6-828a54c2e289
2025-08-22 22:24:47,806 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/14907758-1518-43fd-9b75-4d0d3e49e9dc
2025-08-22 22:24:47,824 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/14907758-1518-43fd-9b75-4d0d3e49e9dc
2025-08-22 22:24:47,836 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b300fffa-412d-4c0e-8370-d334a523a3bd
2025-08-22 22:24:47,862 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69751828:ctest-vn-89885472', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69751828', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12546600186568459597', 'uuid-lslong': '10283550329786262153'}, 'enable': 'true', 'created': '2025-08-22T22:24:44', 'last-modified': '2025-08-22T22:24:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.133568'}
2025-08-22 22:24:47,874 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-22 22:24:47,874 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89885472 passed
2025-08-22 22:24:47,874 - DEBUG - ====Verifying policy data for ctest-vn-89885472 in API_Server ======
2025-08-22 22:24:47,874 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 22:24:47,883 - DEBUG - Requesting: http://10.0.0.254:8082/domain/753e6ff0-4d1a-4e49-ab0e-251036bab123
2025-08-22 22:24:47,904 - DEBUG - Requesting: http://10.0.0.254:8082/project/dfe18eed-3e79-488e-a3b1-a168fa5a0cb2
2025-08-22 22:24:48,037 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ae1e7a65-1b43-454d-8eb6-828a54c2e289
2025-08-22 22:24:48,061 - DEBUG - ==>Verifying data for policy with id: e1538301-82c4-4b61-924c-7eb183a2a89e, fqn: ['default-domain', 'ctest-TestBasicPolicy-69751828', 'ctest-policy-allow-all-75450329']
2025-08-22 22:24:48,061 - INFO - VN ctest-vn-89885472 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-22 22:24:48,061 - DEBUG - Verifying the vn in opserver
2025-08-22 22:24:48,061 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69751828:ctest-vn-89885472 virtual network link through opserver 10.0.0.254
2025-08-22 22:24:48,061 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-22 22:24:48,085 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69751828:ctest-vn-89885472', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69751828:ctest-vn-89885472?flat'}
2025-08-22 22:24:48,085 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69751828:ctest-vn-89885472 is found in opserver
2025-08-22 22:24:48,117 - DEBUG - Do not have enough data to verify VN in agent
2025-08-22 22:24:48,132 - DEBUG - VRF ids for VN ctest-vn-89885472: {}
2025-08-22 22:24:48,261 - DEBUG - Services list from nova: [