2025-08-14 14:37:26,995 - INFO - Domain Default found not creating
2025-08-14 14:37:27,127 - INFO - Project ctest-TestBasicPolicy-19135730 not found, creating it
2025-08-14 14:37:27,582 - INFO - Created Project:ctest-TestBasicPolicy-19135730, ID : a100dac2-7a69-4a22-8d17-2368684c9e19
2025-08-14 14:37:29,048 - INFO - ================================================================================
2025-08-14 14:37:29,048 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-14 14:37:29,048 - 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-14 14:37:29,303 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-08-14 14:37:29,303 - INFO - Initial checks done. Running the testcase now
2025-08-14 14:37:29,304 - INFO -
2025-08-14 14:37:29,882 - DEBUG - Response for create_network : {'network': {'id': '4fc1ca98-0006-4cf0-8a97-b507b496d499', 'name': 'ctest-vn-89362612', 'tenant_id': 'a100dac27a694a228d172368684c9e19', 'project_id': 'a100dac27a694a228d172368684c9e19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19135730', 'ctest-vn-89362612'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 14:37:30,049 - DEBUG - Response for create_subnet : {'subnet': {'id': '88854117-9780-4a04-8450-861685a0c208', 'name': '', 'tenant_id': 'a100dac27a694a228d172368684c9e19', 'network_id': '4fc1ca98-0006-4cf0-8a97-b507b496d499', 'ip_version': 4, 'cidr': '11.166.46.192/26', 'allocation_pools': [{'start': '11.166.46.194', 'end': '11.166.46.254'}], 'gateway_ip': '11.166.46.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.166.46.194', 'tags': [], 'project_id': 'a100dac27a694a228d172368684c9e19'}}
2025-08-14 14:37:30,068 - INFO - Created VN ctest-vn-89362612
2025-08-14 14:37:30,118 - DEBUG - VN ctest-vn-89362612 UUID is 4fc1ca98-0006-4cf0-8a97-b507b496d499
2025-08-14 14:37:30,438 - DEBUG - Response for create_network : {'network': {'id': '0b049877-dce8-400c-9f4e-14e15927d1d4', 'name': 'ctest-vn-88180454', 'tenant_id': 'a100dac27a694a228d172368684c9e19', 'project_id': 'a100dac27a694a228d172368684c9e19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19135730', 'ctest-vn-88180454'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 14:37:30,591 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d2b722d-9d61-4801-8a80-2cb77b2b32b4', 'name': '', 'tenant_id': 'a100dac27a694a228d172368684c9e19', 'network_id': '0b049877-dce8-400c-9f4e-14e15927d1d4', 'ip_version': 4, 'cidr': '2.250.180.0/26', 'allocation_pools': [{'start': '2.250.180.2', 'end': '2.250.180.62'}], 'gateway_ip': '2.250.180.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.250.180.2', 'tags': [], 'project_id': 'a100dac27a694a228d172368684c9e19'}}
2025-08-14 14:37:30,608 - INFO - Created VN ctest-vn-88180454
2025-08-14 14:37:30,662 - DEBUG - VN ctest-vn-88180454 UUID is 0b049877-dce8-400c-9f4e-14e15927d1d4
2025-08-14 14:37:30,809 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19135730:ctest-vn-89362612, 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-19135730:ctest-vn-88180454, 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-14 14:37:31,100 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4fc1ca98-0006-4cf0-8a97-b507b496d499', 'name': 'ctest-vn-89362612', 'tenant_id': 'a100dac27a694a228d172368684c9e19', 'project_id': 'a100dac27a694a228d172368684c9e19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['88854117-9780-4a04-8450-861685a0c208'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19135730', 'ctest-vn-89362612'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19135730', 'ctest-policy-allow-all-88826180']], 'subnet_ipam': [{'subnet_cidr': '11.166.46.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 14:37:31,343 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b049877-dce8-400c-9f4e-14e15927d1d4', 'name': 'ctest-vn-88180454', 'tenant_id': 'a100dac27a694a228d172368684c9e19', 'project_id': 'a100dac27a694a228d172368684c9e19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d2b722d-9d61-4801-8a80-2cb77b2b32b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19135730', 'ctest-vn-88180454'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19135730', 'ctest-policy-allow-all-88826180']], 'subnet_ipam': [{'subnet_cidr': '2.250.180.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 14:37:31,486 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-14 14:37:31,824 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-14 14:37:31,853 - DEBUG - Requesting: http://10.0.0.33:8082/domain/65c209a9-cf1f-4458-a393-add632cbff53
2025-08-14 14:37:31,865 - DEBUG - Requesting: http://10.0.0.33:8082/project/a100dac2-7a69-4a22-8d17-2368684c9e19
2025-08-14 14:37:31,935 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4fc1ca98-0006-4cf0-8a97-b507b496d499
2025-08-14 14:37:31,945 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4fc1ca98-0006-4cf0-8a97-b507b496d499
2025-08-14 14:37:31,953 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1c089c4-7d7d-4388-95df-8d0571f68d5e
2025-08-14 14:37:31,959 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1c089c4-7d7d-4388-95df-8d0571f68d5e
2025-08-14 14:37:31,965 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c40245e2-d102-472a-a6f5-e8faeb4934e9
2025-08-14 14:37:31,970 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 14:37:31,970 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4fc1ca98-0006-4cf0-8a97-b507b496d499
2025-08-14 14:37:31,978 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1c089c4-7d7d-4388-95df-8d0571f68d5e
2025-08-14 14:37:31,990 - INFO - Verified VN network id 12 for VN 4fc1ca98-0006-4cf0-8a97-b507b496d499
2025-08-14 14:37:31,990 - INFO - Verifications in API Server for VN ctest-vn-89362612 passed
2025-08-14 14:37:31,990 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4fc1ca98-0006-4cf0-8a97-b507b496d499
2025-08-14 14:37:31,998 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1c089c4-7d7d-4388-95df-8d0571f68d5e
2025-08-14 14:37:32,003 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1c089c4-7d7d-4388-95df-8d0571f68d5e
2025-08-14 14:37:32,010 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c40245e2-d102-472a-a6f5-e8faeb4934e9
2025-08-14 14:37:32,021 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19135730:ctest-vn-89362612', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19135730', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5747097353685716208', 'uuid-lslong': '9986649743416546457'}, 'enable': 'true', 'created': '2025-08-14T14:37:29', 'last-modified': '2025-08-14T14:37:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944968'}
2025-08-14 14:37:32,027 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 14:37:32,027 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89362612 passed
2025-08-14 14:37:32,027 - DEBUG - ====Verifying policy data for ctest-vn-89362612 in API_Server ======
2025-08-14 14:37:32,027 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-14 14:37:32,031 - DEBUG - Requesting: http://10.0.0.33:8082/domain/65c209a9-cf1f-4458-a393-add632cbff53
2025-08-14 14:37:32,041 - DEBUG - Requesting: http://10.0.0.33:8082/project/a100dac2-7a69-4a22-8d17-2368684c9e19
2025-08-14 14:37:32,111 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4fc1ca98-0006-4cf0-8a97-b507b496d499
2025-08-14 14:37:32,123 - DEBUG - ==>Verifying data for policy with id: 872fa65a-e573-4aa9-9323-7b494c59d3ca, fqn: ['default-domain', 'ctest-TestBasicPolicy-19135730', 'ctest-policy-allow-all-88826180']
2025-08-14 14:37:32,123 - INFO - VN ctest-vn-89362612 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 14:37:32,123 - DEBUG - Verifying the vn in opserver
2025-08-14 14:37:32,123 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19135730:ctest-vn-89362612 virtual network link through opserver 10.0.0.33
2025-08-14 14:37:32,124 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-14 14:37:32,451 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-14 14:37:32,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19135730:ctest-vn-89362612', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19135730:ctest-vn-89362612?flat'}
2025-08-14 14:37:32,501 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19135730:ctest-vn-89362612 is found in opserver
2025-08-14 14:37:32,511 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 14:37:32,515 - DEBUG - VRF ids for VN ctest-vn-89362612: {}
2025-08-14 14:37:32,516 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-14 14:37:32,520 - DEBUG - Requesting: http://10.0.0.33:8082/domain/65c209a9-cf1f-4458-a393-add632cbff53
2025-08-14 14:37:32,531 - DEBUG - Requesting: http://10.0.0.33:8082/project/a100dac2-7a69-4a22-8d17-2368684c9e19
2025-08-14 14:37:32,606 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0b049877-dce8-400c-9f4e-14e15927d1d4
2025-08-14 14:37:32,616 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0b049877-dce8-400c-9f4e-14e15927d1d4
2025-08-14 14:37:32,624 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f0b82e75-3abd-4d12-87f4-d6220600e493
2025-08-14 14:37:32,630 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f0b82e75-3abd-4d12-87f4-d6220600e493
2025-08-14 14:37:32,635 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ac69953d-ee1c-40a2-8daf-fe8d63aba5e0
2025-08-14 14:37:32,640 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 14:37:32,640 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0b049877-dce8-400c-9f4e-14e15927d1d4
2025-08-14 14:37:32,648 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f0b82e75-3abd-4d12-87f4-d6220600e493
2025-08-14 14:37:32,660 - INFO - Verified VN network id 13 for VN 0b049877-dce8-400c-9f4e-14e15927d1d4
2025-08-14 14:37:32,660 - INFO - Verifications in API Server for VN ctest-vn-88180454 passed
2025-08-14 14:37:32,660 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0b049877-dce8-400c-9f4e-14e15927d1d4
2025-08-14 14:37:32,669 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f0b82e75-3abd-4d12-87f4-d6220600e493
2025-08-14 14:37:32,675 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f0b82e75-3abd-4d12-87f4-d6220600e493
2025-08-14 14:37:32,680 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ac69953d-ee1c-40a2-8daf-fe8d63aba5e0
2025-08-14 14:37:32,691 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19135730:ctest-vn-88180454', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19135730', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '793927074898788364', 'uuid-lslong': '11479135458309951956'}, 'enable': 'true', 'created': '2025-08-14T14:37:30', 'last-modified': '2025-08-14T14:37:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.379548'}
2025-08-14 14:37:32,697 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 14:37:32,697 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88180454 passed
2025-08-14 14:37:32,697 - DEBUG - ====Verifying policy data for ctest-vn-88180454 in API_Server ======
2025-08-14 14:37:32,697 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-14 14:37:32,702 - DEBUG - Requesting: http://10.0.0.33:8082/domain/65c209a9-cf1f-4458-a393-add632cbff53
2025-08-14 14:37:32,712 - DEBUG - Requesting: http://10.0.0.33:8082/project/a100dac2-7a69-4a22-8d17-2368684c9e19
2025-08-14 14:37:32,785 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0b049877-dce8-400c-9f4e-14e15927d1d4
2025-08-14 14:37:32,793 - DEBUG - ==>Verifying data for policy with id: 872fa65a-e573-4aa9-9323-7b494c59d3ca, fqn: ['default-domain', 'ctest-TestBasicPolicy-19135730', 'ctest-policy-allow-all-88826180']
2025-08-14 14:37:32,793 - INFO - VN ctest-vn-88180454 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 14:37:32,793 - DEBUG - Verifying the vn in opserver
2025-08-14 14:37:32,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19135730:ctest-vn-88180454 virtual network link through opserver 10.0.0.33
2025-08-14 14:37:32,793 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-14 14:37:32,803 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19135730:ctest-vn-88180454', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19135730:ctest-vn-88180454?flat'}
2025-08-14 14:37:32,803 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19135730:ctest-vn-88180454 is found in opserver
2025-08-14 14:37:32,812 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 14:37:32,817 - DEBUG - VRF ids for VN ctest-vn-88180454: {}
2025-08-14 14:37:32,868 - DEBUG - Services list from nova: [