2025-06-05 02:32:37,519 - INFO - Domain Default found not creating
2025-06-05 02:32:37,680 - INFO - Project ctest-TestBasicPolicy-24724888 not found, creating it
2025-06-05 02:32:38,498 - INFO - Created Project:ctest-TestBasicPolicy-24724888, ID : 9aed4360-8b02-4373-9528-29eabc191d85
2025-06-05 02:32:39,900 - INFO - ================================================================================
2025-06-05 02:32:39,900 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-05 02:32:39,900 - 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-06-05 02:32:40,167 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with
2025-06-05 02:32:40,167 - INFO - Initial checks done. Running the testcase now
2025-06-05 02:32:40,167 - INFO -
2025-06-05 02:32:40,689 - DEBUG - Response for create_network : {'network': {'id': '2c8ac684-4e5c-42c1-89e6-09336a26850a', 'name': 'ctest-vn-06271672', 'tenant_id': '9aed43608b024373952829eabc191d85', 'project_id': '9aed43608b024373952829eabc191d85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24724888', 'ctest-vn-06271672'], 'port_security_enabled': True, 'description': ''}}
2025-06-05 02:32:40,883 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e96d523-6dd9-4e6f-a327-04cb281cc943', 'name': '', 'tenant_id': '9aed43608b024373952829eabc191d85', 'network_id': '2c8ac684-4e5c-42c1-89e6-09336a26850a', 'ip_version': 4, 'cidr': '75.87.54.128/26', 'allocation_pools': [{'start': '75.87.54.130', 'end': '75.87.54.190'}], 'gateway_ip': '75.87.54.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.87.54.130', 'tags': [], 'project_id': '9aed43608b024373952829eabc191d85'}}
2025-06-05 02:32:40,900 - INFO - Created VN ctest-vn-06271672
2025-06-05 02:32:40,954 - DEBUG - VN ctest-vn-06271672 UUID is 2c8ac684-4e5c-42c1-89e6-09336a26850a
2025-06-05 02:32:41,262 - DEBUG - Response for create_network : {'network': {'id': '68556d25-5a59-4444-b17d-91936d46daca', 'name': 'ctest-vn-18525505', 'tenant_id': '9aed43608b024373952829eabc191d85', 'project_id': '9aed43608b024373952829eabc191d85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24724888', 'ctest-vn-18525505'], 'port_security_enabled': True, 'description': ''}}
2025-06-05 02:32:41,484 - DEBUG - Response for create_subnet : {'subnet': {'id': '50d33429-5cc0-4997-a47d-f368f927adc1', 'name': '', 'tenant_id': '9aed43608b024373952829eabc191d85', 'network_id': '68556d25-5a59-4444-b17d-91936d46daca', 'ip_version': 4, 'cidr': '105.149.157.128/26', 'allocation_pools': [{'start': '105.149.157.130', 'end': '105.149.157.190'}], 'gateway_ip': '105.149.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.149.157.130', 'tags': [], 'project_id': '9aed43608b024373952829eabc191d85'}}
2025-06-05 02:32:41,504 - INFO - Created VN ctest-vn-18525505
2025-06-05 02:32:41,562 - DEBUG - VN ctest-vn-18525505 UUID is 68556d25-5a59-4444-b17d-91936d46daca
2025-06-05 02:32:41,714 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24724888:ctest-vn-06271672, 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-24724888:ctest-vn-18525505, 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-06-05 02:32:42,002 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c8ac684-4e5c-42c1-89e6-09336a26850a', 'name': 'ctest-vn-06271672', 'tenant_id': '9aed43608b024373952829eabc191d85', 'project_id': '9aed43608b024373952829eabc191d85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e96d523-6dd9-4e6f-a327-04cb281cc943'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24724888', 'ctest-vn-06271672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24724888', 'ctest-policy-allow-all-45919002']], 'subnet_ipam': [{'subnet_cidr': '75.87.54.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-05 02:32:42,278 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '68556d25-5a59-4444-b17d-91936d46daca', 'name': 'ctest-vn-18525505', 'tenant_id': '9aed43608b024373952829eabc191d85', 'project_id': '9aed43608b024373952829eabc191d85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50d33429-5cc0-4997-a47d-f368f927adc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24724888', 'ctest-vn-18525505'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24724888', 'ctest-policy-allow-all-45919002']], 'subnet_ipam': [{'subnet_cidr': '105.149.157.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-05 02:32:42,422 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-05 02:32:42,726 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-05 02:32:42,754 - DEBUG - Requesting: http://10.0.0.27:8082/domain/aab916b1-8381-47b6-8cb0-f207c4f84f93
2025-06-05 02:32:42,766 - DEBUG - Requesting: http://10.0.0.27:8082/project/9aed4360-8b02-4373-9528-29eabc191d85
2025-06-05 02:32:42,838 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2c8ac684-4e5c-42c1-89e6-09336a26850a
2025-06-05 02:32:42,849 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2c8ac684-4e5c-42c1-89e6-09336a26850a
2025-06-05 02:32:42,858 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2a455ad6-b270-4248-aa9b-b777cfed8a28
2025-06-05 02:32:42,864 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2a455ad6-b270-4248-aa9b-b777cfed8a28
2025-06-05 02:32:42,871 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/e41b51ef-9ddd-4b59-95c6-fdd4748453ba
2025-06-05 02:32:42,877 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-05 02:32:42,877 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2c8ac684-4e5c-42c1-89e6-09336a26850a
2025-06-05 02:32:42,886 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2a455ad6-b270-4248-aa9b-b777cfed8a28
2025-06-05 02:32:42,899 - INFO - Verified VN network id 8 for VN 2c8ac684-4e5c-42c1-89e6-09336a26850a
2025-06-05 02:32:42,899 - INFO - Verifications in API Server for VN ctest-vn-06271672 passed
2025-06-05 02:32:42,899 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2c8ac684-4e5c-42c1-89e6-09336a26850a
2025-06-05 02:32:42,908 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2a455ad6-b270-4248-aa9b-b777cfed8a28
2025-06-05 02:32:42,914 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2a455ad6-b270-4248-aa9b-b777cfed8a28
2025-06-05 02:32:42,920 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/e41b51ef-9ddd-4b59-95c6-fdd4748453ba
2025-06-05 02:32:42,930 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24724888:ctest-vn-06271672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24724888', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3209595956007551681', 'uuid-lslong': '9936639744268469514'}, 'enable': 'true', 'created': '2025-06-05T02:32:40', 'last-modified': '2025-06-05T02:32:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.955176'}
2025-06-05 02:32:42,936 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-05 02:32:42,936 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06271672 passed
2025-06-05 02:32:42,936 - DEBUG - ====Verifying policy data for ctest-vn-06271672 in API_Server ======
2025-06-05 02:32:42,937 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-05 02:32:42,941 - DEBUG - Requesting: http://10.0.0.27:8082/domain/aab916b1-8381-47b6-8cb0-f207c4f84f93
2025-06-05 02:32:42,951 - DEBUG - Requesting: http://10.0.0.27:8082/project/9aed4360-8b02-4373-9528-29eabc191d85
2025-06-05 02:32:43,022 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2c8ac684-4e5c-42c1-89e6-09336a26850a
2025-06-05 02:32:43,036 - DEBUG - ==>Verifying data for policy with id: e613bfd5-f1f5-44e3-8ca5-74f0e25d0dae, fqn: ['default-domain', 'ctest-TestBasicPolicy-24724888', 'ctest-policy-allow-all-45919002']
2025-06-05 02:32:43,036 - INFO - VN ctest-vn-06271672 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-05 02:32:43,036 - DEBUG - Verifying the vn in opserver
2025-06-05 02:32:43,036 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24724888:ctest-vn-06271672 virtual network link through opserver 10.0.0.27
2025-06-05 02:32:43,036 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-05 02:32:43,325 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-05 02:32:43,373 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24724888:ctest-vn-06271672', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24724888:ctest-vn-06271672?flat'}
2025-06-05 02:32:43,373 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24724888:ctest-vn-06271672 is found in opserver
2025-06-05 02:32:43,383 - DEBUG - Do not have enough data to verify VN in agent
2025-06-05 02:32:43,387 - DEBUG - VRF ids for VN ctest-vn-06271672: {}
2025-06-05 02:32:43,387 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-05 02:32:43,392 - DEBUG - Requesting: http://10.0.0.27:8082/domain/aab916b1-8381-47b6-8cb0-f207c4f84f93
2025-06-05 02:32:43,402 - DEBUG - Requesting: http://10.0.0.27:8082/project/9aed4360-8b02-4373-9528-29eabc191d85
2025-06-05 02:32:43,470 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/68556d25-5a59-4444-b17d-91936d46daca
2025-06-05 02:32:43,481 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/68556d25-5a59-4444-b17d-91936d46daca
2025-06-05 02:32:43,489 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8022bb46-0535-47e7-ac88-a9ef3190ca4b
2025-06-05 02:32:43,496 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8022bb46-0535-47e7-ac88-a9ef3190ca4b
2025-06-05 02:32:43,502 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/e783119c-2fc1-468b-8bc0-55bc06b79d1e
2025-06-05 02:32:43,507 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-05 02:32:43,507 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/68556d25-5a59-4444-b17d-91936d46daca
2025-06-05 02:32:43,516 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8022bb46-0535-47e7-ac88-a9ef3190ca4b
2025-06-05 02:32:43,528 - INFO - Verified VN network id 9 for VN 68556d25-5a59-4444-b17d-91936d46daca
2025-06-05 02:32:43,528 - INFO - Verifications in API Server for VN ctest-vn-18525505 passed
2025-06-05 02:32:43,528 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/68556d25-5a59-4444-b17d-91936d46daca
2025-06-05 02:32:43,539 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8022bb46-0535-47e7-ac88-a9ef3190ca4b
2025-06-05 02:32:43,546 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8022bb46-0535-47e7-ac88-a9ef3190ca4b
2025-06-05 02:32:43,553 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/e783119c-2fc1-468b-8bc0-55bc06b79d1e
2025-06-05 02:32:43,563 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24724888:ctest-vn-18525505', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24724888', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7518035160161928260', 'uuid-lslong': '12789538579181656778'}, 'enable': 'true', 'created': '2025-06-05T02:32:41', 'last-modified': '2025-06-05T02:32:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.353339'}
2025-06-05 02:32:43,569 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-05 02:32:43,569 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18525505 passed
2025-06-05 02:32:43,570 - DEBUG - ====Verifying policy data for ctest-vn-18525505 in API_Server ======
2025-06-05 02:32:43,570 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-05 02:32:43,575 - DEBUG - Requesting: http://10.0.0.27:8082/domain/aab916b1-8381-47b6-8cb0-f207c4f84f93
2025-06-05 02:32:43,585 - DEBUG - Requesting: http://10.0.0.27:8082/project/9aed4360-8b02-4373-9528-29eabc191d85
2025-06-05 02:32:43,661 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/68556d25-5a59-4444-b17d-91936d46daca
2025-06-05 02:32:43,670 - DEBUG - ==>Verifying data for policy with id: e613bfd5-f1f5-44e3-8ca5-74f0e25d0dae, fqn: ['default-domain', 'ctest-TestBasicPolicy-24724888', 'ctest-policy-allow-all-45919002']
2025-06-05 02:32:43,670 - INFO - VN ctest-vn-18525505 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-05 02:32:43,670 - DEBUG - Verifying the vn in opserver
2025-06-05 02:32:43,670 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24724888:ctest-vn-18525505 virtual network link through opserver 10.0.0.27
2025-06-05 02:32:43,670 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-05 02:32:43,679 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24724888:ctest-vn-18525505', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24724888:ctest-vn-18525505?flat'}
2025-06-05 02:32:43,680 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24724888:ctest-vn-18525505 is found in opserver
2025-06-05 02:32:43,689 - DEBUG - Do not have enough data to verify VN in agent
2025-06-05 02:32:43,694 - DEBUG - VRF ids for VN ctest-vn-18525505: {}
2025-06-05 02:32:43,741 - DEBUG - Services list from nova: [