2025-11-18 01:11:42,798 - INFO - Domain Default found not creating
2025-11-18 01:11:43,001 - INFO - Project ctest-TestBasicPolicy-29012100 not found, creating it
2025-11-18 01:11:43,498 - INFO - Created Project:ctest-TestBasicPolicy-29012100, ID : 4abd7e88-b98b-453b-9947-62691e28e51a
2025-11-18 01:11:45,154 - INFO - ================================================================================
2025-11-18 01:11:45,154 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-18 01:11:45,154 - 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-11-18 01:11:45,415 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-11-18 01:11:45,415 - INFO - Initial checks done. Running the testcase now
2025-11-18 01:11:45,416 - INFO -
2025-11-18 01:11:46,021 - DEBUG - Response for create_network : {'network': {'id': '79788036-ad00-4062-844c-31c295dea5ec', 'name': 'ctest-vn-39294067', 'tenant_id': '4abd7e88b98b453b994762691e28e51a', 'project_id': '4abd7e88b98b453b994762691e28e51a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29012100', 'ctest-vn-39294067'], 'port_security_enabled': True, 'description': ''}}
2025-11-18 01:11:46,234 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc119f5f-59b7-440b-ad43-8156f188e0ac', 'name': '', 'tenant_id': '4abd7e88b98b453b994762691e28e51a', 'network_id': '79788036-ad00-4062-844c-31c295dea5ec', 'ip_version': 4, 'cidr': '56.173.14.64/26', 'allocation_pools': [{'start': '56.173.14.66', 'end': '56.173.14.126'}], 'gateway_ip': '56.173.14.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.173.14.66', 'tags': [], 'project_id': '4abd7e88b98b453b994762691e28e51a'}}
2025-11-18 01:11:46,258 - INFO - Created VN ctest-vn-39294067
2025-11-18 01:11:46,318 - DEBUG - VN ctest-vn-39294067 UUID is 79788036-ad00-4062-844c-31c295dea5ec
2025-11-18 01:11:46,626 - DEBUG - Response for create_network : {'network': {'id': '5d12a98b-cac5-4a25-9a7f-429d57c1c43b', 'name': 'ctest-vn-54966157', 'tenant_id': '4abd7e88b98b453b994762691e28e51a', 'project_id': '4abd7e88b98b453b994762691e28e51a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29012100', 'ctest-vn-54966157'], 'port_security_enabled': True, 'description': ''}}
2025-11-18 01:11:46,791 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be27da82-434e-42d6-acff-2a697d4f0208', 'name': '', 'tenant_id': '4abd7e88b98b453b994762691e28e51a', 'network_id': '5d12a98b-cac5-4a25-9a7f-429d57c1c43b', 'ip_version': 4, 'cidr': '52.80.135.64/26', 'allocation_pools': [{'start': '52.80.135.66', 'end': '52.80.135.126'}], 'gateway_ip': '52.80.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.80.135.66', 'tags': [], 'project_id': '4abd7e88b98b453b994762691e28e51a'}}
2025-11-18 01:11:46,810 - INFO - Created VN ctest-vn-54966157
2025-11-18 01:11:46,866 - DEBUG - VN ctest-vn-54966157 UUID is 5d12a98b-cac5-4a25-9a7f-429d57c1c43b
2025-11-18 01:11:46,988 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29012100:ctest-vn-39294067, 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-29012100:ctest-vn-54966157, 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-11-18 01:11:47,292 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '79788036-ad00-4062-844c-31c295dea5ec', 'name': 'ctest-vn-39294067', 'tenant_id': '4abd7e88b98b453b994762691e28e51a', 'project_id': '4abd7e88b98b453b994762691e28e51a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc119f5f-59b7-440b-ad43-8156f188e0ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29012100', 'ctest-vn-39294067'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29012100', 'ctest-policy-allow-all-52791681']], 'subnet_ipam': [{'subnet_cidr': '56.173.14.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-18 01:11:47,525 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5d12a98b-cac5-4a25-9a7f-429d57c1c43b', 'name': 'ctest-vn-54966157', 'tenant_id': '4abd7e88b98b453b994762691e28e51a', 'project_id': '4abd7e88b98b453b994762691e28e51a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['be27da82-434e-42d6-acff-2a697d4f0208'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29012100', 'ctest-vn-54966157'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29012100', 'ctest-policy-allow-all-52791681']], 'subnet_ipam': [{'subnet_cidr': '52.80.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-18 01:11:47,694 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-18 01:11:47,993 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-18 01:11:48,023 - DEBUG - Requesting: http://10.0.0.242:8082/domain/678c227f-ddb5-4488-9f90-b45c1e3b9c96
2025-11-18 01:11:48,035 - DEBUG - Requesting: http://10.0.0.242:8082/project/4abd7e88-b98b-453b-9947-62691e28e51a
2025-11-18 01:11:48,108 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/79788036-ad00-4062-844c-31c295dea5ec
2025-11-18 01:11:48,117 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/79788036-ad00-4062-844c-31c295dea5ec
2025-11-18 01:11:48,128 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0966c345-aeff-4932-a226-5728ef6ac4d6
2025-11-18 01:11:48,137 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0966c345-aeff-4932-a226-5728ef6ac4d6
2025-11-18 01:11:48,145 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/2aebd4b7-5dd6-4560-bd0e-e83a41764959
2025-11-18 01:11:48,154 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-18 01:11:48,154 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/79788036-ad00-4062-844c-31c295dea5ec
2025-11-18 01:11:48,166 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0966c345-aeff-4932-a226-5728ef6ac4d6
2025-11-18 01:11:48,186 - INFO - Verified VN network id 11 for VN 79788036-ad00-4062-844c-31c295dea5ec
2025-11-18 01:11:48,186 - INFO - Verifications in API Server for VN ctest-vn-39294067 passed
2025-11-18 01:11:48,186 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/79788036-ad00-4062-844c-31c295dea5ec
2025-11-18 01:11:48,196 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0966c345-aeff-4932-a226-5728ef6ac4d6
2025-11-18 01:11:48,205 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0966c345-aeff-4932-a226-5728ef6ac4d6
2025-11-18 01:11:48,212 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/2aebd4b7-5dd6-4560-bd0e-e83a41764959
2025-11-18 01:11:48,224 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29012100:ctest-vn-39294067', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29012100', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8752886848113623138', 'uuid-lslong': '9533049223044310508'}, 'enable': 'true', 'created': '2025-11-18T01:11:45', 'last-modified': '2025-11-18T01:11:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962532'}
2025-11-18 01:11:48,232 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-18 01:11:48,232 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39294067 passed
2025-11-18 01:11:48,232 - DEBUG - ====Verifying policy data for ctest-vn-39294067 in API_Server ======
2025-11-18 01:11:48,232 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-18 01:11:48,240 - DEBUG - Requesting: http://10.0.0.242:8082/domain/678c227f-ddb5-4488-9f90-b45c1e3b9c96
2025-11-18 01:11:48,256 - DEBUG - Requesting: http://10.0.0.242:8082/project/4abd7e88-b98b-453b-9947-62691e28e51a
2025-11-18 01:11:48,327 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/79788036-ad00-4062-844c-31c295dea5ec
2025-11-18 01:11:48,340 - DEBUG - ==>Verifying data for policy with id: c4239a43-581b-4072-8396-683a5020a479, fqn: ['default-domain', 'ctest-TestBasicPolicy-29012100', 'ctest-policy-allow-all-52791681']
2025-11-18 01:11:48,340 - INFO - VN ctest-vn-39294067 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-18 01:11:48,340 - DEBUG - Verifying the vn in opserver
2025-11-18 01:11:48,340 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29012100:ctest-vn-39294067 virtual network link through opserver 10.0.0.242
2025-11-18 01:11:48,340 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-18 01:11:48,636 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-18 01:11:48,702 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29012100:ctest-vn-39294067', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29012100:ctest-vn-39294067?flat'}
2025-11-18 01:11:48,702 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29012100:ctest-vn-39294067 is found in opserver
2025-11-18 01:11:48,712 - DEBUG - Do not have enough data to verify VN in agent
2025-11-18 01:11:48,717 - DEBUG - VRF ids for VN ctest-vn-39294067: {}
2025-11-18 01:11:48,717 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-18 01:11:48,722 - DEBUG - Requesting: http://10.0.0.242:8082/domain/678c227f-ddb5-4488-9f90-b45c1e3b9c96
2025-11-18 01:11:48,734 - DEBUG - Requesting: http://10.0.0.242:8082/project/4abd7e88-b98b-453b-9947-62691e28e51a
2025-11-18 01:11:48,806 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5d12a98b-cac5-4a25-9a7f-429d57c1c43b
2025-11-18 01:11:48,818 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5d12a98b-cac5-4a25-9a7f-429d57c1c43b
2025-11-18 01:11:48,827 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3a496507-c5f6-4c8f-b020-79ed9f2d245c
2025-11-18 01:11:48,834 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3a496507-c5f6-4c8f-b020-79ed9f2d245c
2025-11-18 01:11:48,840 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8a8222d4-7e0b-4aff-86b8-7db65a46cff4
2025-11-18 01:11:48,847 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-18 01:11:48,847 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5d12a98b-cac5-4a25-9a7f-429d57c1c43b
2025-11-18 01:11:48,856 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3a496507-c5f6-4c8f-b020-79ed9f2d245c
2025-11-18 01:11:48,874 - INFO - Verified VN network id 12 for VN 5d12a98b-cac5-4a25-9a7f-429d57c1c43b
2025-11-18 01:11:48,874 - INFO - Verifications in API Server for VN ctest-vn-54966157 passed
2025-11-18 01:11:48,874 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5d12a98b-cac5-4a25-9a7f-429d57c1c43b
2025-11-18 01:11:48,885 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3a496507-c5f6-4c8f-b020-79ed9f2d245c
2025-11-18 01:11:48,894 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3a496507-c5f6-4c8f-b020-79ed9f2d245c
2025-11-18 01:11:48,901 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8a8222d4-7e0b-4aff-86b8-7db65a46cff4
2025-11-18 01:11:48,912 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29012100:ctest-vn-54966157', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29012100', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6706609212975565349', 'uuid-lslong': '11132690047432770619'}, 'enable': 'true', 'created': '2025-11-18T01:11:46', 'last-modified': '2025-11-18T01:11:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.405016'}
2025-11-18 01:11:48,917 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-18 01:11:48,917 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54966157 passed
2025-11-18 01:11:48,917 - DEBUG - ====Verifying policy data for ctest-vn-54966157 in API_Server ======
2025-11-18 01:11:48,917 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-18 01:11:48,923 - DEBUG - Requesting: http://10.0.0.242:8082/domain/678c227f-ddb5-4488-9f90-b45c1e3b9c96
2025-11-18 01:11:48,932 - DEBUG - Requesting: http://10.0.0.242:8082/project/4abd7e88-b98b-453b-9947-62691e28e51a
2025-11-18 01:11:49,006 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5d12a98b-cac5-4a25-9a7f-429d57c1c43b
2025-11-18 01:11:49,016 - DEBUG - ==>Verifying data for policy with id: c4239a43-581b-4072-8396-683a5020a479, fqn: ['default-domain', 'ctest-TestBasicPolicy-29012100', 'ctest-policy-allow-all-52791681']
2025-11-18 01:11:49,016 - INFO - VN ctest-vn-54966157 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-18 01:11:49,016 - DEBUG - Verifying the vn in opserver
2025-11-18 01:11:49,016 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29012100:ctest-vn-54966157 virtual network link through opserver 10.0.0.242
2025-11-18 01:11:49,017 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-18 01:11:49,027 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29012100:ctest-vn-54966157', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29012100:ctest-vn-54966157?flat'}
2025-11-18 01:11:49,027 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29012100:ctest-vn-54966157 is found in opserver
2025-11-18 01:11:49,038 - DEBUG - Do not have enough data to verify VN in agent
2025-11-18 01:11:49,043 - DEBUG - VRF ids for VN ctest-vn-54966157: {}
2025-11-18 01:11:49,105 - DEBUG - Services list from nova: [