2025-07-19 07:57:33,015 - INFO - Domain Default found not creating
2025-07-19 07:57:33,160 - INFO - Project ctest-TestBasicPolicy-42868683 not found, creating it
2025-07-19 07:57:33,610 - INFO - Created Project:ctest-TestBasicPolicy-42868683, ID : c47693bf-8624-49da-8351-99ef2d1d967a
2025-07-19 07:57:35,149 - INFO - ================================================================================
2025-07-19 07:57:35,149 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-19 07:57:35,149 - 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-19 07:57:35,405 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with
2025-07-19 07:57:35,405 - INFO - Initial checks done. Running the testcase now
2025-07-19 07:57:35,405 - INFO -
2025-07-19 07:57:35,941 - DEBUG - Response for create_network : {'network': {'id': '53edcc0e-e470-4059-9dfa-c4cf360f1add', 'name': 'ctest-vn-87187664', 'tenant_id': 'c47693bf862449da835199ef2d1d967a', 'project_id': 'c47693bf862449da835199ef2d1d967a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42868683', 'ctest-vn-87187664'], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:57:36,114 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dec4a6e9-77d4-4e41-b179-8ccb3e084e85', 'name': '', 'tenant_id': 'c47693bf862449da835199ef2d1d967a', 'network_id': '53edcc0e-e470-4059-9dfa-c4cf360f1add', 'ip_version': 4, 'cidr': '45.37.233.64/26', 'allocation_pools': [{'start': '45.37.233.66', 'end': '45.37.233.126'}], 'gateway_ip': '45.37.233.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.37.233.66', 'tags': [], 'project_id': 'c47693bf862449da835199ef2d1d967a'}}
2025-07-19 07:57:36,132 - INFO - Created VN ctest-vn-87187664
2025-07-19 07:57:36,186 - DEBUG - VN ctest-vn-87187664 UUID is 53edcc0e-e470-4059-9dfa-c4cf360f1add
2025-07-19 07:57:36,505 - DEBUG - Response for create_network : {'network': {'id': '262ad5a3-bad7-4bf2-b473-c7dbed82355f', 'name': 'ctest-vn-17717715', 'tenant_id': 'c47693bf862449da835199ef2d1d967a', 'project_id': 'c47693bf862449da835199ef2d1d967a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42868683', 'ctest-vn-17717715'], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:57:36,653 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c567780a-0774-4940-bfea-8cdfa2597838', 'name': '', 'tenant_id': 'c47693bf862449da835199ef2d1d967a', 'network_id': '262ad5a3-bad7-4bf2-b473-c7dbed82355f', 'ip_version': 4, 'cidr': '152.248.102.0/26', 'allocation_pools': [{'start': '152.248.102.2', 'end': '152.248.102.62'}], 'gateway_ip': '152.248.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.248.102.2', 'tags': [], 'project_id': 'c47693bf862449da835199ef2d1d967a'}}
2025-07-19 07:57:36,670 - INFO - Created VN ctest-vn-17717715
2025-07-19 07:57:36,726 - DEBUG - VN ctest-vn-17717715 UUID is 262ad5a3-bad7-4bf2-b473-c7dbed82355f
2025-07-19 07:57:36,849 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42868683:ctest-vn-87187664, 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-42868683:ctest-vn-17717715, 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-19 07:57:37,173 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53edcc0e-e470-4059-9dfa-c4cf360f1add', 'name': 'ctest-vn-87187664', 'tenant_id': 'c47693bf862449da835199ef2d1d967a', 'project_id': 'c47693bf862449da835199ef2d1d967a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dec4a6e9-77d4-4e41-b179-8ccb3e084e85'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42868683', 'ctest-vn-87187664'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42868683', 'ctest-policy-allow-all-59767753']], 'subnet_ipam': [{'subnet_cidr': '45.37.233.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:57:37,424 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '262ad5a3-bad7-4bf2-b473-c7dbed82355f', 'name': 'ctest-vn-17717715', 'tenant_id': 'c47693bf862449da835199ef2d1d967a', 'project_id': 'c47693bf862449da835199ef2d1d967a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c567780a-0774-4940-bfea-8cdfa2597838'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42868683', 'ctest-vn-17717715'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42868683', 'ctest-policy-allow-all-59767753']], 'subnet_ipam': [{'subnet_cidr': '152.248.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:57:37,594 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-19 07:57:37,884 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-19 07:57:37,911 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3de3f2f1-a51f-4acc-b9f4-be7f5c779869
2025-07-19 07:57:37,926 - DEBUG - Requesting: http://10.0.0.19:8082/project/c47693bf-8624-49da-8351-99ef2d1d967a
2025-07-19 07:57:38,003 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/53edcc0e-e470-4059-9dfa-c4cf360f1add
2025-07-19 07:57:38,015 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/53edcc0e-e470-4059-9dfa-c4cf360f1add
2025-07-19 07:57:38,025 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ea28211b-7ae4-47bc-b3f6-5d3bce4d3409
2025-07-19 07:57:38,033 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ea28211b-7ae4-47bc-b3f6-5d3bce4d3409
2025-07-19 07:57:38,041 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/97a5f476-21cd-4bbc-b2c5-80657c4ea849
2025-07-19 07:57:38,048 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-19 07:57:38,048 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/53edcc0e-e470-4059-9dfa-c4cf360f1add
2025-07-19 07:57:38,058 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ea28211b-7ae4-47bc-b3f6-5d3bce4d3409
2025-07-19 07:57:38,074 - INFO - Verified VN network id 8 for VN 53edcc0e-e470-4059-9dfa-c4cf360f1add
2025-07-19 07:57:38,075 - INFO - Verifications in API Server for VN ctest-vn-87187664 passed
2025-07-19 07:57:38,075 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/53edcc0e-e470-4059-9dfa-c4cf360f1add
2025-07-19 07:57:38,084 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ea28211b-7ae4-47bc-b3f6-5d3bce4d3409
2025-07-19 07:57:38,092 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ea28211b-7ae4-47bc-b3f6-5d3bce4d3409
2025-07-19 07:57:38,099 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/97a5f476-21cd-4bbc-b2c5-80657c4ea849
2025-07-19 07:57:38,112 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42868683:ctest-vn-87187664', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42868683', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6047714238962614361', 'uuid-lslong': '11383627402376583901'}, 'enable': 'true', 'created': '2025-07-19T07:57:35', 'last-modified': '2025-07-19T07:57:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968287'}
2025-07-19 07:57:38,119 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-19 07:57:38,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87187664 passed
2025-07-19 07:57:38,119 - DEBUG - ====Verifying policy data for ctest-vn-87187664 in API_Server ======
2025-07-19 07:57:38,119 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-19 07:57:38,125 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3de3f2f1-a51f-4acc-b9f4-be7f5c779869
2025-07-19 07:57:38,137 - DEBUG - Requesting: http://10.0.0.19:8082/project/c47693bf-8624-49da-8351-99ef2d1d967a
2025-07-19 07:57:38,212 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/53edcc0e-e470-4059-9dfa-c4cf360f1add
2025-07-19 07:57:38,222 - DEBUG - ==>Verifying data for policy with id: 436d0152-89b9-4496-9612-7715ced85132, fqn: ['default-domain', 'ctest-TestBasicPolicy-42868683', 'ctest-policy-allow-all-59767753']
2025-07-19 07:57:38,222 - INFO - VN ctest-vn-87187664 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-19 07:57:38,222 - DEBUG - Verifying the vn in opserver
2025-07-19 07:57:38,222 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42868683:ctest-vn-87187664 virtual network link through opserver 10.0.0.19
2025-07-19 07:57:38,222 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-19 07:57:38,510 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-19 07:57:38,563 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42868683:ctest-vn-87187664', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42868683:ctest-vn-87187664?flat'}
2025-07-19 07:57:38,563 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42868683:ctest-vn-87187664 is found in opserver
2025-07-19 07:57:38,574 - DEBUG - Do not have enough data to verify VN in agent
2025-07-19 07:57:38,580 - DEBUG - VRF ids for VN ctest-vn-87187664: {}
2025-07-19 07:57:38,580 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-19 07:57:38,586 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3de3f2f1-a51f-4acc-b9f4-be7f5c779869
2025-07-19 07:57:38,598 - DEBUG - Requesting: http://10.0.0.19:8082/project/c47693bf-8624-49da-8351-99ef2d1d967a
2025-07-19 07:57:38,671 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/262ad5a3-bad7-4bf2-b473-c7dbed82355f
2025-07-19 07:57:38,684 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/262ad5a3-bad7-4bf2-b473-c7dbed82355f
2025-07-19 07:57:38,695 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ac763861-b3c4-4415-a36a-0d29c2df20ba
2025-07-19 07:57:38,702 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ac763861-b3c4-4415-a36a-0d29c2df20ba
2025-07-19 07:57:38,709 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/1ddc23c0-2d5b-4ca7-900d-aebb6a62587f
2025-07-19 07:57:38,717 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-19 07:57:38,717 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/262ad5a3-bad7-4bf2-b473-c7dbed82355f
2025-07-19 07:57:38,727 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ac763861-b3c4-4415-a36a-0d29c2df20ba
2025-07-19 07:57:38,743 - INFO - Verified VN network id 9 for VN 262ad5a3-bad7-4bf2-b473-c7dbed82355f
2025-07-19 07:57:38,743 - INFO - Verifications in API Server for VN ctest-vn-17717715 passed
2025-07-19 07:57:38,743 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/262ad5a3-bad7-4bf2-b473-c7dbed82355f
2025-07-19 07:57:38,754 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ac763861-b3c4-4415-a36a-0d29c2df20ba
2025-07-19 07:57:38,762 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ac763861-b3c4-4415-a36a-0d29c2df20ba
2025-07-19 07:57:38,769 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/1ddc23c0-2d5b-4ca7-900d-aebb6a62587f
2025-07-19 07:57:38,786 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42868683:ctest-vn-17717715', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42868683', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2750245421654166514', 'uuid-lslong': '13002956296545252703'}, 'enable': 'true', 'created': '2025-07-19T07:57:36', 'last-modified': '2025-07-19T07:57:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.401126'}
2025-07-19 07:57:38,794 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-19 07:57:38,794 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17717715 passed
2025-07-19 07:57:38,795 - DEBUG - ====Verifying policy data for ctest-vn-17717715 in API_Server ======
2025-07-19 07:57:38,795 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-19 07:57:38,802 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3de3f2f1-a51f-4acc-b9f4-be7f5c779869
2025-07-19 07:57:38,816 - DEBUG - Requesting: http://10.0.0.19:8082/project/c47693bf-8624-49da-8351-99ef2d1d967a
2025-07-19 07:57:38,900 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/262ad5a3-bad7-4bf2-b473-c7dbed82355f
2025-07-19 07:57:38,913 - DEBUG - ==>Verifying data for policy with id: 436d0152-89b9-4496-9612-7715ced85132, fqn: ['default-domain', 'ctest-TestBasicPolicy-42868683', 'ctest-policy-allow-all-59767753']
2025-07-19 07:57:38,913 - INFO - VN ctest-vn-17717715 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-19 07:57:38,913 - DEBUG - Verifying the vn in opserver
2025-07-19 07:57:38,913 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42868683:ctest-vn-17717715 virtual network link through opserver 10.0.0.19
2025-07-19 07:57:38,913 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-19 07:57:38,925 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42868683:ctest-vn-17717715', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42868683:ctest-vn-17717715?flat'}
2025-07-19 07:57:38,925 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42868683:ctest-vn-17717715 is found in opserver
2025-07-19 07:57:38,936 - DEBUG - Do not have enough data to verify VN in agent
2025-07-19 07:57:38,942 - DEBUG - VRF ids for VN ctest-vn-17717715: {}
2025-07-19 07:57:39,002 - DEBUG - Services list from nova: [