2025-10-20 02:12:35,375 - INFO - Domain Default found not creating
2025-10-20 02:12:35,521 - INFO - Project ctest-TestBasicPolicy-49759675 not found, creating it
2025-10-20 02:12:36,038 - INFO - Created Project:ctest-TestBasicPolicy-49759675, ID : eecbfe74-355e-45f1-b6a6-2327f3168722
2025-10-20 02:12:37,585 - INFO - ================================================================================
2025-10-20 02:12:37,585 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-20 02:12:37,586 - 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-10-20 02:12:37,839 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with
2025-10-20 02:12:37,839 - INFO - Initial checks done. Running the testcase now
2025-10-20 02:12:37,839 - INFO -
2025-10-20 02:12:38,403 - DEBUG - Response for create_network : {'network': {'id': 'a8971c45-0bcd-4b1b-a851-9e38c36b1541', 'name': 'ctest-vn-28072183', 'tenant_id': 'eecbfe74355e45f1b6a62327f3168722', 'project_id': 'eecbfe74355e45f1b6a62327f3168722', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49759675', 'ctest-vn-28072183'], 'port_security_enabled': True, 'description': ''}}
2025-10-20 02:12:38,583 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d62b11a-0f13-450b-a5b5-c96ef6da89f0', 'name': '', 'tenant_id': 'eecbfe74355e45f1b6a62327f3168722', 'network_id': 'a8971c45-0bcd-4b1b-a851-9e38c36b1541', 'ip_version': 4, 'cidr': '167.155.106.128/26', 'allocation_pools': [{'start': '167.155.106.130', 'end': '167.155.106.190'}], 'gateway_ip': '167.155.106.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.155.106.130', 'tags': [], 'project_id': 'eecbfe74355e45f1b6a62327f3168722'}}
2025-10-20 02:12:38,599 - INFO - Created VN ctest-vn-28072183
2025-10-20 02:12:38,650 - DEBUG - VN ctest-vn-28072183 UUID is a8971c45-0bcd-4b1b-a851-9e38c36b1541
2025-10-20 02:12:38,973 - DEBUG - Response for create_network : {'network': {'id': 'a4efb5e0-566d-45dc-9cfa-0ddbeed9a262', 'name': 'ctest-vn-39877456', 'tenant_id': 'eecbfe74355e45f1b6a62327f3168722', 'project_id': 'eecbfe74355e45f1b6a62327f3168722', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49759675', 'ctest-vn-39877456'], 'port_security_enabled': True, 'description': ''}}
2025-10-20 02:12:39,161 - DEBUG - Response for create_subnet : {'subnet': {'id': '502ecf11-cf70-43a2-9108-212aa4b3f546', 'name': '', 'tenant_id': 'eecbfe74355e45f1b6a62327f3168722', 'network_id': 'a4efb5e0-566d-45dc-9cfa-0ddbeed9a262', 'ip_version': 4, 'cidr': '51.167.155.192/26', 'allocation_pools': [{'start': '51.167.155.194', 'end': '51.167.155.254'}], 'gateway_ip': '51.167.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.167.155.194', 'tags': [], 'project_id': 'eecbfe74355e45f1b6a62327f3168722'}}
2025-10-20 02:12:39,180 - INFO - Created VN ctest-vn-39877456
2025-10-20 02:12:39,234 - DEBUG - VN ctest-vn-39877456 UUID is a4efb5e0-566d-45dc-9cfa-0ddbeed9a262
2025-10-20 02:12:39,347 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49759675:ctest-vn-28072183, 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-49759675:ctest-vn-39877456, 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-10-20 02:12:39,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8971c45-0bcd-4b1b-a851-9e38c36b1541', 'name': 'ctest-vn-28072183', 'tenant_id': 'eecbfe74355e45f1b6a62327f3168722', 'project_id': 'eecbfe74355e45f1b6a62327f3168722', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d62b11a-0f13-450b-a5b5-c96ef6da89f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49759675', 'ctest-vn-28072183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49759675', 'ctest-policy-allow-all-41294694']], 'subnet_ipam': [{'subnet_cidr': '167.155.106.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-20 02:12:39,912 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4efb5e0-566d-45dc-9cfa-0ddbeed9a262', 'name': 'ctest-vn-39877456', 'tenant_id': 'eecbfe74355e45f1b6a62327f3168722', 'project_id': 'eecbfe74355e45f1b6a62327f3168722', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['502ecf11-cf70-43a2-9108-212aa4b3f546'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49759675', 'ctest-vn-39877456'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49759675', 'ctest-policy-allow-all-41294694']], 'subnet_ipam': [{'subnet_cidr': '51.167.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-20 02:12:40,066 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-20 02:12:40,406 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-20 02:12:40,433 - DEBUG - Requesting: http://10.0.0.38:8082/domain/312264c3-a2f3-4ed3-ae26-6820a78f0c55
2025-10-20 02:12:40,445 - DEBUG - Requesting: http://10.0.0.38:8082/project/eecbfe74-355e-45f1-b6a6-2327f3168722
2025-10-20 02:12:40,516 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a8971c45-0bcd-4b1b-a851-9e38c36b1541
2025-10-20 02:12:40,526 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a8971c45-0bcd-4b1b-a851-9e38c36b1541
2025-10-20 02:12:40,536 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46c7ed92-bb96-4f62-b8aa-86817165a52c
2025-10-20 02:12:40,544 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46c7ed92-bb96-4f62-b8aa-86817165a52c
2025-10-20 02:12:40,550 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8915c4fa-69dc-4989-962b-74b53cc879aa
2025-10-20 02:12:40,555 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 02:12:40,555 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a8971c45-0bcd-4b1b-a851-9e38c36b1541
2025-10-20 02:12:40,563 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46c7ed92-bb96-4f62-b8aa-86817165a52c
2025-10-20 02:12:40,576 - INFO - Verified VN network id 11 for VN a8971c45-0bcd-4b1b-a851-9e38c36b1541
2025-10-20 02:12:40,576 - INFO - Verifications in API Server for VN ctest-vn-28072183 passed
2025-10-20 02:12:40,576 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a8971c45-0bcd-4b1b-a851-9e38c36b1541
2025-10-20 02:12:40,584 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46c7ed92-bb96-4f62-b8aa-86817165a52c
2025-10-20 02:12:40,590 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46c7ed92-bb96-4f62-b8aa-86817165a52c
2025-10-20 02:12:40,596 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8915c4fa-69dc-4989-962b-74b53cc879aa
2025-10-20 02:12:40,606 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49759675:ctest-vn-28072183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49759675', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12148209602731526939', 'uuid-lslong': '12128649238119388481'}, 'enable': 'true', 'created': '2025-10-20T02:12:38', 'last-modified': '2025-10-20T02:12:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986969'}
2025-10-20 02:12:40,611 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 02:12:40,611 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28072183 passed
2025-10-20 02:12:40,612 - DEBUG - ====Verifying policy data for ctest-vn-28072183 in API_Server ======
2025-10-20 02:12:40,612 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-20 02:12:40,616 - DEBUG - Requesting: http://10.0.0.38:8082/domain/312264c3-a2f3-4ed3-ae26-6820a78f0c55
2025-10-20 02:12:40,626 - DEBUG - Requesting: http://10.0.0.38:8082/project/eecbfe74-355e-45f1-b6a6-2327f3168722
2025-10-20 02:12:40,697 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a8971c45-0bcd-4b1b-a851-9e38c36b1541
2025-10-20 02:12:40,706 - DEBUG - ==>Verifying data for policy with id: b8e7dd00-5b31-478d-a218-506e44519899, fqn: ['default-domain', 'ctest-TestBasicPolicy-49759675', 'ctest-policy-allow-all-41294694']
2025-10-20 02:12:40,706 - INFO - VN ctest-vn-28072183 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 02:12:40,706 - DEBUG - Verifying the vn in opserver
2025-10-20 02:12:40,706 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49759675:ctest-vn-28072183 virtual network link through opserver 10.0.0.38
2025-10-20 02:12:40,706 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-20 02:12:41,035 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-20 02:12:41,092 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49759675:ctest-vn-28072183', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49759675:ctest-vn-28072183?flat'}
2025-10-20 02:12:41,092 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49759675:ctest-vn-28072183 is found in opserver
2025-10-20 02:12:41,101 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 02:12:41,106 - DEBUG - VRF ids for VN ctest-vn-28072183: {}
2025-10-20 02:12:41,106 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-20 02:12:41,112 - DEBUG - Requesting: http://10.0.0.38:8082/domain/312264c3-a2f3-4ed3-ae26-6820a78f0c55
2025-10-20 02:12:41,123 - DEBUG - Requesting: http://10.0.0.38:8082/project/eecbfe74-355e-45f1-b6a6-2327f3168722
2025-10-20 02:12:41,193 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4efb5e0-566d-45dc-9cfa-0ddbeed9a262
2025-10-20 02:12:41,205 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4efb5e0-566d-45dc-9cfa-0ddbeed9a262
2025-10-20 02:12:41,214 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd847e30-ce04-48b9-855c-5be2c7291fdb
2025-10-20 02:12:41,221 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd847e30-ce04-48b9-855c-5be2c7291fdb
2025-10-20 02:12:41,228 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/85565594-95d3-402e-9f43-c0c2b59fa8fb
2025-10-20 02:12:41,235 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 02:12:41,235 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4efb5e0-566d-45dc-9cfa-0ddbeed9a262
2025-10-20 02:12:41,244 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd847e30-ce04-48b9-855c-5be2c7291fdb
2025-10-20 02:12:41,259 - INFO - Verified VN network id 12 for VN a4efb5e0-566d-45dc-9cfa-0ddbeed9a262
2025-10-20 02:12:41,259 - INFO - Verifications in API Server for VN ctest-vn-39877456 passed
2025-10-20 02:12:41,259 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4efb5e0-566d-45dc-9cfa-0ddbeed9a262
2025-10-20 02:12:41,268 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd847e30-ce04-48b9-855c-5be2c7291fdb
2025-10-20 02:12:41,276 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd847e30-ce04-48b9-855c-5be2c7291fdb
2025-10-20 02:12:41,283 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/85565594-95d3-402e-9f43-c0c2b59fa8fb
2025-10-20 02:12:41,299 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49759675:ctest-vn-39877456', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49759675', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11884917916781331932', 'uuid-lslong': '11311368652350661218'}, 'enable': 'true', 'created': '2025-10-20T02:12:38', 'last-modified': '2025-10-20T02:12:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.447028'}
2025-10-20 02:12:41,308 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 02:12:41,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39877456 passed
2025-10-20 02:12:41,308 - DEBUG - ====Verifying policy data for ctest-vn-39877456 in API_Server ======
2025-10-20 02:12:41,308 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-20 02:12:41,316 - DEBUG - Requesting: http://10.0.0.38:8082/domain/312264c3-a2f3-4ed3-ae26-6820a78f0c55
2025-10-20 02:12:41,330 - DEBUG - Requesting: http://10.0.0.38:8082/project/eecbfe74-355e-45f1-b6a6-2327f3168722
2025-10-20 02:12:41,408 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4efb5e0-566d-45dc-9cfa-0ddbeed9a262
2025-10-20 02:12:41,418 - DEBUG - ==>Verifying data for policy with id: b8e7dd00-5b31-478d-a218-506e44519899, fqn: ['default-domain', 'ctest-TestBasicPolicy-49759675', 'ctest-policy-allow-all-41294694']
2025-10-20 02:12:41,418 - INFO - VN ctest-vn-39877456 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 02:12:41,418 - DEBUG - Verifying the vn in opserver
2025-10-20 02:12:41,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49759675:ctest-vn-39877456 virtual network link through opserver 10.0.0.38
2025-10-20 02:12:41,418 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-20 02:12:41,431 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49759675:ctest-vn-39877456', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49759675:ctest-vn-39877456?flat'}
2025-10-20 02:12:41,431 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49759675:ctest-vn-39877456 is found in opserver
2025-10-20 02:12:41,442 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 02:12:41,447 - DEBUG - VRF ids for VN ctest-vn-39877456: {}
2025-10-20 02:12:41,520 - DEBUG - Services list from nova: [