2025-06-25 07:08:34,780 - INFO - Domain Default found not creating
2025-06-25 07:08:34,941 - INFO - Project ctest-TestBasicPolicy-51028535 not found, creating it
2025-06-25 07:08:35,634 - INFO - Created Project:ctest-TestBasicPolicy-51028535, ID : e90c304f-269c-455f-a6b3-9bc4e87d76eb
2025-06-25 07:08:37,156 - INFO - ================================================================================
2025-06-25 07:08:37,156 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-25 07:08:37,156 - 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-25 07:08:37,416 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-06-25 07:08:37,416 - INFO - Initial checks done. Running the testcase now
2025-06-25 07:08:37,416 - INFO -
2025-06-25 07:08:37,949 - DEBUG - Response for create_network : {'network': {'id': '7f07f74d-f7f4-4f98-b0b3-951ebd1f5acf', 'name': 'ctest-vn-46070404', 'tenant_id': 'e90c304f269c455fa6b39bc4e87d76eb', 'project_id': 'e90c304f269c455fa6b39bc4e87d76eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51028535', 'ctest-vn-46070404'], 'port_security_enabled': True, 'description': ''}}
2025-06-25 07:08:38,117 - DEBUG - Response for create_subnet : {'subnet': {'id': '48fab790-2a3b-4be9-8e59-2f0d0c562708', 'name': '', 'tenant_id': 'e90c304f269c455fa6b39bc4e87d76eb', 'network_id': '7f07f74d-f7f4-4f98-b0b3-951ebd1f5acf', 'ip_version': 4, 'cidr': '204.87.161.64/26', 'allocation_pools': [{'start': '204.87.161.66', 'end': '204.87.161.126'}], 'gateway_ip': '204.87.161.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.87.161.66', 'tags': [], 'project_id': 'e90c304f269c455fa6b39bc4e87d76eb'}}
2025-06-25 07:08:38,136 - INFO - Created VN ctest-vn-46070404
2025-06-25 07:08:38,190 - DEBUG - VN ctest-vn-46070404 UUID is 7f07f74d-f7f4-4f98-b0b3-951ebd1f5acf
2025-06-25 07:08:38,485 - DEBUG - Response for create_network : {'network': {'id': '7fc00cb0-edb7-413d-9c6b-9b55095b870f', 'name': 'ctest-vn-42531725', 'tenant_id': 'e90c304f269c455fa6b39bc4e87d76eb', 'project_id': 'e90c304f269c455fa6b39bc4e87d76eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51028535', 'ctest-vn-42531725'], 'port_security_enabled': True, 'description': ''}}
2025-06-25 07:08:38,692 - DEBUG - Response for create_subnet : {'subnet': {'id': '59e830d0-0c85-4e30-beac-207a2849fe48', 'name': '', 'tenant_id': 'e90c304f269c455fa6b39bc4e87d76eb', 'network_id': '7fc00cb0-edb7-413d-9c6b-9b55095b870f', 'ip_version': 4, 'cidr': '63.41.146.0/26', 'allocation_pools': [{'start': '63.41.146.2', 'end': '63.41.146.62'}], 'gateway_ip': '63.41.146.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.41.146.2', 'tags': [], 'project_id': 'e90c304f269c455fa6b39bc4e87d76eb'}}
2025-06-25 07:08:38,710 - INFO - Created VN ctest-vn-42531725
2025-06-25 07:08:38,766 - DEBUG - VN ctest-vn-42531725 UUID is 7fc00cb0-edb7-413d-9c6b-9b55095b870f
2025-06-25 07:08:38,881 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51028535:ctest-vn-46070404, 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-51028535:ctest-vn-42531725, 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-25 07:08:39,306 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f07f74d-f7f4-4f98-b0b3-951ebd1f5acf', 'name': 'ctest-vn-46070404', 'tenant_id': 'e90c304f269c455fa6b39bc4e87d76eb', 'project_id': 'e90c304f269c455fa6b39bc4e87d76eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48fab790-2a3b-4be9-8e59-2f0d0c562708'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51028535', 'ctest-vn-46070404'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51028535', 'ctest-policy-allow-all-74986448']], 'subnet_ipam': [{'subnet_cidr': '204.87.161.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-25 07:08:39,580 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7fc00cb0-edb7-413d-9c6b-9b55095b870f', 'name': 'ctest-vn-42531725', 'tenant_id': 'e90c304f269c455fa6b39bc4e87d76eb', 'project_id': 'e90c304f269c455fa6b39bc4e87d76eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59e830d0-0c85-4e30-beac-207a2849fe48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51028535', 'ctest-vn-42531725'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51028535', 'ctest-policy-allow-all-74986448']], 'subnet_ipam': [{'subnet_cidr': '63.41.146.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-25 07:08:39,728 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-25 07:08:40,028 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-25 07:08:40,055 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b030c4da-6117-4438-b332-a5e215534620
2025-06-25 07:08:40,070 - DEBUG - Requesting: http://10.0.0.50:8082/project/e90c304f-269c-455f-a6b3-9bc4e87d76eb
2025-06-25 07:08:40,142 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f07f74d-f7f4-4f98-b0b3-951ebd1f5acf
2025-06-25 07:08:40,154 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f07f74d-f7f4-4f98-b0b3-951ebd1f5acf
2025-06-25 07:08:40,163 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/44c7388e-d371-49bc-af3b-95fd53227671
2025-06-25 07:08:40,172 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/44c7388e-d371-49bc-af3b-95fd53227671
2025-06-25 07:08:40,180 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2195ca5b-1386-4c8b-a5c6-b0979ecfc0e7
2025-06-25 07:08:40,190 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-25 07:08:40,190 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f07f74d-f7f4-4f98-b0b3-951ebd1f5acf
2025-06-25 07:08:40,200 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/44c7388e-d371-49bc-af3b-95fd53227671
2025-06-25 07:08:40,216 - INFO - Verified VN network id 8 for VN 7f07f74d-f7f4-4f98-b0b3-951ebd1f5acf
2025-06-25 07:08:40,216 - INFO - Verifications in API Server for VN ctest-vn-46070404 passed
2025-06-25 07:08:40,216 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f07f74d-f7f4-4f98-b0b3-951ebd1f5acf
2025-06-25 07:08:40,226 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/44c7388e-d371-49bc-af3b-95fd53227671
2025-06-25 07:08:40,234 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/44c7388e-d371-49bc-af3b-95fd53227671
2025-06-25 07:08:40,243 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2195ca5b-1386-4c8b-a5c6-b0979ecfc0e7
2025-06-25 07:08:40,255 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51028535:ctest-vn-46070404', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51028535', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9153556681898348440', 'uuid-lslong': '12732684530761030351'}, 'enable': 'true', 'created': '2025-06-25T07:08:37', 'last-modified': '2025-06-25T07:08:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971933'}
2025-06-25 07:08:40,262 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-25 07:08:40,262 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46070404 passed
2025-06-25 07:08:40,262 - DEBUG - ====Verifying policy data for ctest-vn-46070404 in API_Server ======
2025-06-25 07:08:40,263 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-25 07:08:40,268 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b030c4da-6117-4438-b332-a5e215534620
2025-06-25 07:08:40,279 - DEBUG - Requesting: http://10.0.0.50:8082/project/e90c304f-269c-455f-a6b3-9bc4e87d76eb
2025-06-25 07:08:40,354 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f07f74d-f7f4-4f98-b0b3-951ebd1f5acf
2025-06-25 07:08:40,366 - DEBUG - ==>Verifying data for policy with id: 0b12555a-be7d-4af4-b7b6-78d04f0cee3c, fqn: ['default-domain', 'ctest-TestBasicPolicy-51028535', 'ctest-policy-allow-all-74986448']
2025-06-25 07:08:40,367 - INFO - VN ctest-vn-46070404 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-25 07:08:40,367 - DEBUG - Verifying the vn in opserver
2025-06-25 07:08:40,367 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51028535:ctest-vn-46070404 virtual network link through opserver 10.0.0.50
2025-06-25 07:08:40,367 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-25 07:08:40,659 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-25 07:08:40,714 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51028535:ctest-vn-46070404', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51028535:ctest-vn-46070404?flat'}
2025-06-25 07:08:40,714 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51028535:ctest-vn-46070404 is found in opserver
2025-06-25 07:08:40,725 - DEBUG - Do not have enough data to verify VN in agent
2025-06-25 07:08:40,729 - DEBUG - VRF ids for VN ctest-vn-46070404: {}
2025-06-25 07:08:40,730 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-25 07:08:40,735 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b030c4da-6117-4438-b332-a5e215534620
2025-06-25 07:08:40,746 - DEBUG - Requesting: http://10.0.0.50:8082/project/e90c304f-269c-455f-a6b3-9bc4e87d76eb
2025-06-25 07:08:40,819 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fc00cb0-edb7-413d-9c6b-9b55095b870f
2025-06-25 07:08:40,830 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fc00cb0-edb7-413d-9c6b-9b55095b870f
2025-06-25 07:08:40,839 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b9ae79b-38df-43ff-97b9-0d41684ea4bd
2025-06-25 07:08:40,846 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b9ae79b-38df-43ff-97b9-0d41684ea4bd
2025-06-25 07:08:40,853 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3cc086e5-695c-411c-81b8-9e1abe84c9e8
2025-06-25 07:08:40,860 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-25 07:08:40,860 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fc00cb0-edb7-413d-9c6b-9b55095b870f
2025-06-25 07:08:40,868 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b9ae79b-38df-43ff-97b9-0d41684ea4bd
2025-06-25 07:08:40,882 - INFO - Verified VN network id 9 for VN 7fc00cb0-edb7-413d-9c6b-9b55095b870f
2025-06-25 07:08:40,882 - INFO - Verifications in API Server for VN ctest-vn-42531725 passed
2025-06-25 07:08:40,882 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fc00cb0-edb7-413d-9c6b-9b55095b870f
2025-06-25 07:08:40,891 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b9ae79b-38df-43ff-97b9-0d41684ea4bd
2025-06-25 07:08:40,897 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b9ae79b-38df-43ff-97b9-0d41684ea4bd
2025-06-25 07:08:40,904 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3cc086e5-695c-411c-81b8-9e1abe84c9e8
2025-06-25 07:08:40,916 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51028535:ctest-vn-42531725', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51028535', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9205371592387281213', 'uuid-lslong': '11271273281956316943'}, 'enable': 'true', 'created': '2025-06-25T07:08:38', 'last-modified': '2025-06-25T07:08:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.405588'}
2025-06-25 07:08:40,922 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-25 07:08:40,922 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42531725 passed
2025-06-25 07:08:40,922 - DEBUG - ====Verifying policy data for ctest-vn-42531725 in API_Server ======
2025-06-25 07:08:40,922 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-25 07:08:40,927 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b030c4da-6117-4438-b332-a5e215534620
2025-06-25 07:08:40,938 - DEBUG - Requesting: http://10.0.0.50:8082/project/e90c304f-269c-455f-a6b3-9bc4e87d76eb
2025-06-25 07:08:41,014 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fc00cb0-edb7-413d-9c6b-9b55095b870f
2025-06-25 07:08:41,024 - DEBUG - ==>Verifying data for policy with id: 0b12555a-be7d-4af4-b7b6-78d04f0cee3c, fqn: ['default-domain', 'ctest-TestBasicPolicy-51028535', 'ctest-policy-allow-all-74986448']
2025-06-25 07:08:41,024 - INFO - VN ctest-vn-42531725 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-25 07:08:41,024 - DEBUG - Verifying the vn in opserver
2025-06-25 07:08:41,024 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51028535:ctest-vn-42531725 virtual network link through opserver 10.0.0.50
2025-06-25 07:08:41,024 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-25 07:08:41,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51028535:ctest-vn-42531725', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51028535:ctest-vn-42531725?flat'}
2025-06-25 07:08:41,034 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51028535:ctest-vn-42531725 is found in opserver
2025-06-25 07:08:41,044 - DEBUG - Do not have enough data to verify VN in agent
2025-06-25 07:08:41,049 - DEBUG - VRF ids for VN ctest-vn-42531725: {}
2025-06-25 07:08:41,104 - DEBUG - Services list from nova: [