2025-08-12 14:43:43,698 - INFO - Domain Default found not creating
2025-08-12 14:43:43,812 - INFO - Project ctest-TestBasicPolicy-58819493 not found, creating it
2025-08-12 14:43:44,268 - INFO - Created Project:ctest-TestBasicPolicy-58819493, ID : 8fbcf24d-9168-4f57-a96f-54e07ca1864b
2025-08-12 14:43:45,622 - INFO - ================================================================================
2025-08-12 14:43:45,622 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-12 14:43:45,622 - 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-12 14:43:45,876 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-12 14:43:45,876 - INFO - Initial checks done. Running the testcase now
2025-08-12 14:43:45,876 - INFO -
2025-08-12 14:43:46,392 - DEBUG - Response for create_network : {'network': {'id': '7bfcc33d-0614-47ad-9d1d-1829da65c1e5', 'name': 'ctest-vn-67742318', 'tenant_id': '8fbcf24d91684f57a96f54e07ca1864b', 'project_id': '8fbcf24d91684f57a96f54e07ca1864b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58819493', 'ctest-vn-67742318'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 14:43:46,527 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c715d1a6-690e-45c7-8f17-84a2d486b7ba', 'name': '', 'tenant_id': '8fbcf24d91684f57a96f54e07ca1864b', 'network_id': '7bfcc33d-0614-47ad-9d1d-1829da65c1e5', 'ip_version': 4, 'cidr': '35.132.37.64/26', 'allocation_pools': [{'start': '35.132.37.66', 'end': '35.132.37.126'}], 'gateway_ip': '35.132.37.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.132.37.66', 'tags': [], 'project_id': '8fbcf24d91684f57a96f54e07ca1864b'}}
2025-08-12 14:43:46,543 - INFO - Created VN ctest-vn-67742318
2025-08-12 14:43:46,594 - DEBUG - VN ctest-vn-67742318 UUID is 7bfcc33d-0614-47ad-9d1d-1829da65c1e5
2025-08-12 14:43:46,900 - DEBUG - Response for create_network : {'network': {'id': 'cc1291a3-7537-4add-b541-cb11552ba99b', 'name': 'ctest-vn-72733415', 'tenant_id': '8fbcf24d91684f57a96f54e07ca1864b', 'project_id': '8fbcf24d91684f57a96f54e07ca1864b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58819493', 'ctest-vn-72733415'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 14:43:47,094 - DEBUG - Response for create_subnet : {'subnet': {'id': '838bac27-c9cc-41ea-9523-0cc1ba2d7626', 'name': '', 'tenant_id': '8fbcf24d91684f57a96f54e07ca1864b', 'network_id': 'cc1291a3-7537-4add-b541-cb11552ba99b', 'ip_version': 4, 'cidr': '38.108.31.0/26', 'allocation_pools': [{'start': '38.108.31.2', 'end': '38.108.31.62'}], 'gateway_ip': '38.108.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.108.31.2', 'tags': [], 'project_id': '8fbcf24d91684f57a96f54e07ca1864b'}}
2025-08-12 14:43:47,113 - INFO - Created VN ctest-vn-72733415
2025-08-12 14:43:47,162 - DEBUG - VN ctest-vn-72733415 UUID is cc1291a3-7537-4add-b541-cb11552ba99b
2025-08-12 14:43:47,310 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58819493:ctest-vn-67742318, 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-58819493:ctest-vn-72733415, 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-12 14:43:47,581 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bfcc33d-0614-47ad-9d1d-1829da65c1e5', 'name': 'ctest-vn-67742318', 'tenant_id': '8fbcf24d91684f57a96f54e07ca1864b', 'project_id': '8fbcf24d91684f57a96f54e07ca1864b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c715d1a6-690e-45c7-8f17-84a2d486b7ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58819493', 'ctest-vn-67742318'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58819493', 'ctest-policy-allow-all-74009426']], 'subnet_ipam': [{'subnet_cidr': '35.132.37.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 14:43:47,799 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc1291a3-7537-4add-b541-cb11552ba99b', 'name': 'ctest-vn-72733415', 'tenant_id': '8fbcf24d91684f57a96f54e07ca1864b', 'project_id': '8fbcf24d91684f57a96f54e07ca1864b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['838bac27-c9cc-41ea-9523-0cc1ba2d7626'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58819493', 'ctest-vn-72733415'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58819493', 'ctest-policy-allow-all-74009426']], 'subnet_ipam': [{'subnet_cidr': '38.108.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 14:43:47,963 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-12 14:43:48,251 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-12 14:43:48,274 - DEBUG - Requesting: http://10.0.0.38:8082/domain/28245a34-8ab3-488f-b660-849aa043eec7
2025-08-12 14:43:48,285 - DEBUG - Requesting: http://10.0.0.38:8082/project/8fbcf24d-9168-4f57-a96f-54e07ca1864b
2025-08-12 14:43:48,354 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7bfcc33d-0614-47ad-9d1d-1829da65c1e5
2025-08-12 14:43:48,363 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7bfcc33d-0614-47ad-9d1d-1829da65c1e5
2025-08-12 14:43:48,371 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b14ad97-148d-4f02-be06-89e4044931fa
2025-08-12 14:43:48,377 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b14ad97-148d-4f02-be06-89e4044931fa
2025-08-12 14:43:48,383 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5a9ad3c9-057b-4d68-88e1-5d9a6826adaa
2025-08-12 14:43:48,388 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 14:43:48,388 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7bfcc33d-0614-47ad-9d1d-1829da65c1e5
2025-08-12 14:43:48,396 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b14ad97-148d-4f02-be06-89e4044931fa
2025-08-12 14:43:48,408 - INFO - Verified VN network id 11 for VN 7bfcc33d-0614-47ad-9d1d-1829da65c1e5
2025-08-12 14:43:48,408 - INFO - Verifications in API Server for VN ctest-vn-67742318 passed
2025-08-12 14:43:48,408 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7bfcc33d-0614-47ad-9d1d-1829da65c1e5
2025-08-12 14:43:48,416 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b14ad97-148d-4f02-be06-89e4044931fa
2025-08-12 14:43:48,421 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b14ad97-148d-4f02-be06-89e4044931fa
2025-08-12 14:43:48,427 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5a9ad3c9-057b-4d68-88e1-5d9a6826adaa
2025-08-12 14:43:48,437 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58819493:ctest-vn-67742318', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58819493', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8934230427658635181', 'uuid-lslong': '11321231606316122597'}, 'enable': 'true', 'created': '2025-08-12T14:43:46', 'last-modified': '2025-08-12T14:43:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.875510'}
2025-08-12 14:43:48,443 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 14:43:48,443 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67742318 passed
2025-08-12 14:43:48,443 - DEBUG - ====Verifying policy data for ctest-vn-67742318 in API_Server ======
2025-08-12 14:43:48,443 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-12 14:43:48,447 - DEBUG - Requesting: http://10.0.0.38:8082/domain/28245a34-8ab3-488f-b660-849aa043eec7
2025-08-12 14:43:48,457 - DEBUG - Requesting: http://10.0.0.38:8082/project/8fbcf24d-9168-4f57-a96f-54e07ca1864b
2025-08-12 14:43:48,531 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7bfcc33d-0614-47ad-9d1d-1829da65c1e5
2025-08-12 14:43:48,539 - DEBUG - ==>Verifying data for policy with id: d31882a0-86ae-4578-8fdd-08e1a9615b8f, fqn: ['default-domain', 'ctest-TestBasicPolicy-58819493', 'ctest-policy-allow-all-74009426']
2025-08-12 14:43:48,539 - INFO - VN ctest-vn-67742318 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 14:43:48,539 - DEBUG - Verifying the vn in opserver
2025-08-12 14:43:48,539 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58819493:ctest-vn-67742318 virtual network link through opserver 10.0.0.38
2025-08-12 14:43:48,539 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-12 14:43:48,826 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-12 14:43:48,871 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58819493:ctest-vn-67742318', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58819493:ctest-vn-67742318?flat'}
2025-08-12 14:43:48,871 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58819493:ctest-vn-67742318 is found in opserver
2025-08-12 14:43:48,881 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 14:43:48,886 - DEBUG - VRF ids for VN ctest-vn-67742318: {}
2025-08-12 14:43:48,886 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-12 14:43:48,890 - DEBUG - Requesting: http://10.0.0.38:8082/domain/28245a34-8ab3-488f-b660-849aa043eec7
2025-08-12 14:43:48,900 - DEBUG - Requesting: http://10.0.0.38:8082/project/8fbcf24d-9168-4f57-a96f-54e07ca1864b
2025-08-12 14:43:48,967 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cc1291a3-7537-4add-b541-cb11552ba99b
2025-08-12 14:43:48,977 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cc1291a3-7537-4add-b541-cb11552ba99b
2025-08-12 14:43:48,985 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0596e36-7e01-4825-9e3f-17f4c2ce3b1e
2025-08-12 14:43:48,991 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0596e36-7e01-4825-9e3f-17f4c2ce3b1e
2025-08-12 14:43:48,997 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ee69b8ba-03a9-495b-a521-63e8dffb3993
2025-08-12 14:43:49,002 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 14:43:49,002 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cc1291a3-7537-4add-b541-cb11552ba99b
2025-08-12 14:43:49,010 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0596e36-7e01-4825-9e3f-17f4c2ce3b1e
2025-08-12 14:43:49,022 - INFO - Verified VN network id 12 for VN cc1291a3-7537-4add-b541-cb11552ba99b
2025-08-12 14:43:49,022 - INFO - Verifications in API Server for VN ctest-vn-72733415 passed
2025-08-12 14:43:49,022 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cc1291a3-7537-4add-b541-cb11552ba99b
2025-08-12 14:43:49,030 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0596e36-7e01-4825-9e3f-17f4c2ce3b1e
2025-08-12 14:43:49,036 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0596e36-7e01-4825-9e3f-17f4c2ce3b1e
2025-08-12 14:43:49,042 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ee69b8ba-03a9-495b-a521-63e8dffb3993
2025-08-12 14:43:49,052 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58819493:ctest-vn-72733415', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58819493', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14704975864550345437', 'uuid-lslong': '13060943669654956443'}, 'enable': 'true', 'created': '2025-08-12T14:43:46', 'last-modified': '2025-08-12T14:43:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.274320'}
2025-08-12 14:43:49,057 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 14:43:49,057 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72733415 passed
2025-08-12 14:43:49,057 - DEBUG - ====Verifying policy data for ctest-vn-72733415 in API_Server ======
2025-08-12 14:43:49,058 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-12 14:43:49,063 - DEBUG - Requesting: http://10.0.0.38:8082/domain/28245a34-8ab3-488f-b660-849aa043eec7
2025-08-12 14:43:49,073 - DEBUG - Requesting: http://10.0.0.38:8082/project/8fbcf24d-9168-4f57-a96f-54e07ca1864b
2025-08-12 14:43:49,142 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cc1291a3-7537-4add-b541-cb11552ba99b
2025-08-12 14:43:49,151 - DEBUG - ==>Verifying data for policy with id: d31882a0-86ae-4578-8fdd-08e1a9615b8f, fqn: ['default-domain', 'ctest-TestBasicPolicy-58819493', 'ctest-policy-allow-all-74009426']
2025-08-12 14:43:49,151 - INFO - VN ctest-vn-72733415 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 14:43:49,151 - DEBUG - Verifying the vn in opserver
2025-08-12 14:43:49,151 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58819493:ctest-vn-72733415 virtual network link through opserver 10.0.0.38
2025-08-12 14:43:49,151 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-12 14:43:49,159 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58819493:ctest-vn-72733415', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58819493:ctest-vn-72733415?flat'}
2025-08-12 14:43:49,159 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58819493:ctest-vn-72733415 is found in opserver
2025-08-12 14:43:49,169 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 14:43:49,173 - DEBUG - VRF ids for VN ctest-vn-72733415: {}
2025-08-12 14:43:49,221 - DEBUG - Services list from nova: [