2025-08-19 10:32:48,103 - INFO - Domain Default found not creating
2025-08-19 10:32:48,253 - INFO - Project ctest-TestBasicPolicy-55586958 not found, creating it
2025-08-19 10:32:48,705 - INFO - Created Project:ctest-TestBasicPolicy-55586958, ID : 1da152b4-03c4-43a0-8cc7-c11fc7017ac4
2025-08-19 10:32:50,193 - INFO - ================================================================================
2025-08-19 10:32:50,193 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-19 10:32:50,193 - 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-19 10:32:50,447 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-08-19 10:32:50,447 - INFO - Initial checks done. Running the testcase now
2025-08-19 10:32:50,447 - INFO -
2025-08-19 10:32:51,008 - DEBUG - Response for create_network : {'network': {'id': 'f840b82a-31f8-479c-bcde-f17382639351', 'name': 'ctest-vn-38088112', 'tenant_id': '1da152b403c443a08cc7c11fc7017ac4', 'project_id': '1da152b403c443a08cc7c11fc7017ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55586958', 'ctest-vn-38088112'], 'port_security_enabled': True, 'description': ''}}
2025-08-19 10:32:51,160 - DEBUG - Response for create_subnet : {'subnet': {'id': '458b4746-e7df-47b0-a284-858b4864bae9', 'name': '', 'tenant_id': '1da152b403c443a08cc7c11fc7017ac4', 'network_id': 'f840b82a-31f8-479c-bcde-f17382639351', 'ip_version': 4, 'cidr': '65.113.218.192/26', 'allocation_pools': [{'start': '65.113.218.194', 'end': '65.113.218.254'}], 'gateway_ip': '65.113.218.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.113.218.194', 'tags': [], 'project_id': '1da152b403c443a08cc7c11fc7017ac4'}}
2025-08-19 10:32:51,179 - INFO - Created VN ctest-vn-38088112
2025-08-19 10:32:51,233 - DEBUG - VN ctest-vn-38088112 UUID is f840b82a-31f8-479c-bcde-f17382639351
2025-08-19 10:32:51,550 - DEBUG - Response for create_network : {'network': {'id': '33d23657-563a-4a02-9a0e-e3ca7d5e589a', 'name': 'ctest-vn-48921552', 'tenant_id': '1da152b403c443a08cc7c11fc7017ac4', 'project_id': '1da152b403c443a08cc7c11fc7017ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55586958', 'ctest-vn-48921552'], 'port_security_enabled': True, 'description': ''}}
2025-08-19 10:32:51,704 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8e97728-2dd3-49ac-ad1f-e513362c179a', 'name': '', 'tenant_id': '1da152b403c443a08cc7c11fc7017ac4', 'network_id': '33d23657-563a-4a02-9a0e-e3ca7d5e589a', 'ip_version': 4, 'cidr': '39.246.177.64/26', 'allocation_pools': [{'start': '39.246.177.66', 'end': '39.246.177.126'}], 'gateway_ip': '39.246.177.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.246.177.66', 'tags': [], 'project_id': '1da152b403c443a08cc7c11fc7017ac4'}}
2025-08-19 10:32:51,721 - INFO - Created VN ctest-vn-48921552
2025-08-19 10:32:51,774 - DEBUG - VN ctest-vn-48921552 UUID is 33d23657-563a-4a02-9a0e-e3ca7d5e589a
2025-08-19 10:32:51,929 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55586958:ctest-vn-38088112, 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-55586958:ctest-vn-48921552, 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-19 10:32:52,218 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f840b82a-31f8-479c-bcde-f17382639351', 'name': 'ctest-vn-38088112', 'tenant_id': '1da152b403c443a08cc7c11fc7017ac4', 'project_id': '1da152b403c443a08cc7c11fc7017ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['458b4746-e7df-47b0-a284-858b4864bae9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55586958', 'ctest-vn-38088112'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55586958', 'ctest-policy-allow-all-02401258']], 'subnet_ipam': [{'subnet_cidr': '65.113.218.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-19 10:32:52,515 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33d23657-563a-4a02-9a0e-e3ca7d5e589a', 'name': 'ctest-vn-48921552', 'tenant_id': '1da152b403c443a08cc7c11fc7017ac4', 'project_id': '1da152b403c443a08cc7c11fc7017ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a8e97728-2dd3-49ac-ad1f-e513362c179a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55586958', 'ctest-vn-48921552'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55586958', 'ctest-policy-allow-all-02401258']], 'subnet_ipam': [{'subnet_cidr': '39.246.177.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-19 10:32:52,662 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-19 10:32:52,960 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-19 10:32:52,989 - DEBUG - Requesting: http://10.0.0.48:8082/domain/94073ea1-9b01-4c53-ac9c-6b933aa02e21
2025-08-19 10:32:53,002 - DEBUG - Requesting: http://10.0.0.48:8082/project/1da152b4-03c4-43a0-8cc7-c11fc7017ac4
2025-08-19 10:32:53,081 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f840b82a-31f8-479c-bcde-f17382639351
2025-08-19 10:32:53,094 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f840b82a-31f8-479c-bcde-f17382639351
2025-08-19 10:32:53,104 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/447dba51-e953-4bbb-8428-3725852ace2c
2025-08-19 10:32:53,110 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/447dba51-e953-4bbb-8428-3725852ace2c
2025-08-19 10:32:53,117 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/2fc53777-9b02-42dc-8f7f-31905b240b88
2025-08-19 10:32:53,123 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-19 10:32:53,123 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f840b82a-31f8-479c-bcde-f17382639351
2025-08-19 10:32:53,131 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/447dba51-e953-4bbb-8428-3725852ace2c
2025-08-19 10:32:53,145 - INFO - Verified VN network id 12 for VN f840b82a-31f8-479c-bcde-f17382639351
2025-08-19 10:32:53,145 - INFO - Verifications in API Server for VN ctest-vn-38088112 passed
2025-08-19 10:32:53,145 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f840b82a-31f8-479c-bcde-f17382639351
2025-08-19 10:32:53,154 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/447dba51-e953-4bbb-8428-3725852ace2c
2025-08-19 10:32:53,161 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/447dba51-e953-4bbb-8428-3725852ace2c
2025-08-19 10:32:53,168 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/2fc53777-9b02-42dc-8f7f-31905b240b88
2025-08-19 10:32:53,182 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55586958:ctest-vn-38088112', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55586958', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17888500211282102172', 'uuid-lslong': '13609580602371314513'}, 'enable': 'true', 'created': '2025-08-19T10:32:50', 'last-modified': '2025-08-19T10:32:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983921'}
2025-08-19 10:32:53,188 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-19 10:32:53,188 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38088112 passed
2025-08-19 10:32:53,188 - DEBUG - ====Verifying policy data for ctest-vn-38088112 in API_Server ======
2025-08-19 10:32:53,188 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-19 10:32:53,194 - DEBUG - Requesting: http://10.0.0.48:8082/domain/94073ea1-9b01-4c53-ac9c-6b933aa02e21
2025-08-19 10:32:53,206 - DEBUG - Requesting: http://10.0.0.48:8082/project/1da152b4-03c4-43a0-8cc7-c11fc7017ac4
2025-08-19 10:32:53,278 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f840b82a-31f8-479c-bcde-f17382639351
2025-08-19 10:32:53,289 - DEBUG - ==>Verifying data for policy with id: 067af694-0119-47e1-8962-1ab89222564a, fqn: ['default-domain', 'ctest-TestBasicPolicy-55586958', 'ctest-policy-allow-all-02401258']
2025-08-19 10:32:53,289 - INFO - VN ctest-vn-38088112 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-19 10:32:53,289 - DEBUG - Verifying the vn in opserver
2025-08-19 10:32:53,289 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55586958:ctest-vn-38088112 virtual network link through opserver 10.0.0.48
2025-08-19 10:32:53,289 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-19 10:32:53,582 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-19 10:32:53,633 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55586958:ctest-vn-38088112', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55586958:ctest-vn-38088112?flat'}
2025-08-19 10:32:53,633 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55586958:ctest-vn-38088112 is found in opserver
2025-08-19 10:32:53,643 - DEBUG - Do not have enough data to verify VN in agent
2025-08-19 10:32:53,647 - DEBUG - VRF ids for VN ctest-vn-38088112: {}
2025-08-19 10:32:53,648 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-19 10:32:53,653 - DEBUG - Requesting: http://10.0.0.48:8082/domain/94073ea1-9b01-4c53-ac9c-6b933aa02e21
2025-08-19 10:32:53,664 - DEBUG - Requesting: http://10.0.0.48:8082/project/1da152b4-03c4-43a0-8cc7-c11fc7017ac4
2025-08-19 10:32:53,739 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/33d23657-563a-4a02-9a0e-e3ca7d5e589a
2025-08-19 10:32:53,751 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/33d23657-563a-4a02-9a0e-e3ca7d5e589a
2025-08-19 10:32:53,760 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5614fe52-9ff2-4042-9967-1f70dd615ad4
2025-08-19 10:32:53,768 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5614fe52-9ff2-4042-9967-1f70dd615ad4
2025-08-19 10:32:53,774 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/9144ccb5-b0fc-4aeb-bc7e-c6293f4cf3ad
2025-08-19 10:32:53,781 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-19 10:32:53,781 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/33d23657-563a-4a02-9a0e-e3ca7d5e589a
2025-08-19 10:32:53,790 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5614fe52-9ff2-4042-9967-1f70dd615ad4
2025-08-19 10:32:53,804 - INFO - Verified VN network id 13 for VN 33d23657-563a-4a02-9a0e-e3ca7d5e589a
2025-08-19 10:32:53,804 - INFO - Verifications in API Server for VN ctest-vn-48921552 passed
2025-08-19 10:32:53,804 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/33d23657-563a-4a02-9a0e-e3ca7d5e589a
2025-08-19 10:32:53,815 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5614fe52-9ff2-4042-9967-1f70dd615ad4
2025-08-19 10:32:53,822 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5614fe52-9ff2-4042-9967-1f70dd615ad4
2025-08-19 10:32:53,830 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/9144ccb5-b0fc-4aeb-bc7e-c6293f4cf3ad
2025-08-19 10:32:53,845 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55586958:ctest-vn-48921552', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55586958', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3734106789780277762', 'uuid-lslong': '11101060590341085338'}, 'enable': 'true', 'created': '2025-08-19T10:32:51', 'last-modified': '2025-08-19T10:32:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.412517'}
2025-08-19 10:32:53,851 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-19 10:32:53,851 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48921552 passed
2025-08-19 10:32:53,851 - DEBUG - ====Verifying policy data for ctest-vn-48921552 in API_Server ======
2025-08-19 10:32:53,851 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-19 10:32:53,857 - DEBUG - Requesting: http://10.0.0.48:8082/domain/94073ea1-9b01-4c53-ac9c-6b933aa02e21
2025-08-19 10:32:53,869 - DEBUG - Requesting: http://10.0.0.48:8082/project/1da152b4-03c4-43a0-8cc7-c11fc7017ac4
2025-08-19 10:32:53,945 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/33d23657-563a-4a02-9a0e-e3ca7d5e589a
2025-08-19 10:32:53,955 - DEBUG - ==>Verifying data for policy with id: 067af694-0119-47e1-8962-1ab89222564a, fqn: ['default-domain', 'ctest-TestBasicPolicy-55586958', 'ctest-policy-allow-all-02401258']
2025-08-19 10:32:53,955 - INFO - VN ctest-vn-48921552 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-19 10:32:53,955 - DEBUG - Verifying the vn in opserver
2025-08-19 10:32:53,955 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55586958:ctest-vn-48921552 virtual network link through opserver 10.0.0.48
2025-08-19 10:32:53,955 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-19 10:32:53,966 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55586958:ctest-vn-48921552', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55586958:ctest-vn-48921552?flat'}
2025-08-19 10:32:53,966 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55586958:ctest-vn-48921552 is found in opserver
2025-08-19 10:32:53,976 - DEBUG - Do not have enough data to verify VN in agent
2025-08-19 10:32:53,981 - DEBUG - VRF ids for VN ctest-vn-48921552: {}
2025-08-19 10:32:54,037 - DEBUG - Services list from nova: [