2025-02-05 16:00:12,400 - INFO - Domain Default found not creating
2025-02-05 16:00:12,556 - INFO - Project ctest-TestBasicPolicy-39185938 not found, creating it
2025-02-05 16:00:13,038 - INFO - Created Project:ctest-TestBasicPolicy-39185938, ID : 37525406-150d-4898-bb40-f99354e0a359
2025-02-05 16:00:14,630 - INFO - ================================================================================
2025-02-05 16:00:14,630 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-05 16:00:14,630 - 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-02-05 16:00:14,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.8': '0'}} with
2025-02-05 16:00:14,888 - INFO - Initial checks done. Running the testcase now
2025-02-05 16:00:14,888 - INFO -
2025-02-05 16:00:15,441 - DEBUG - Response for create_network : {'network': {'id': 'bfcde694-bda3-4da4-885e-9e55f9d0bcaa', 'name': 'ctest-vn-34166679', 'tenant_id': '37525406150d4898bb40f99354e0a359', 'project_id': '37525406150d4898bb40f99354e0a359', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-vn-34166679'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 16:00:15,629 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0478f63-436e-49a9-b083-a0c72ca6d3ab', 'name': '', 'tenant_id': '37525406150d4898bb40f99354e0a359', 'network_id': 'bfcde694-bda3-4da4-885e-9e55f9d0bcaa', 'ip_version': 4, 'cidr': '160.216.90.128/26', 'allocation_pools': [{'start': '160.216.90.130', 'end': '160.216.90.190'}], 'gateway_ip': '160.216.90.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.216.90.130', 'tags': [], 'project_id': '37525406150d4898bb40f99354e0a359'}}
2025-02-05 16:00:15,649 - INFO - Created VN ctest-vn-34166679
2025-02-05 16:00:15,705 - DEBUG - VN ctest-vn-34166679 UUID is bfcde694-bda3-4da4-885e-9e55f9d0bcaa
2025-02-05 16:00:16,021 - DEBUG - Response for create_network : {'network': {'id': 'a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95', 'name': 'ctest-vn-97628736', 'tenant_id': '37525406150d4898bb40f99354e0a359', 'project_id': '37525406150d4898bb40f99354e0a359', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-vn-97628736'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 16:00:16,192 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca1a9c70-867f-4582-95d7-01e9967f08be', 'name': '', 'tenant_id': '37525406150d4898bb40f99354e0a359', 'network_id': 'a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95', 'ip_version': 4, 'cidr': '170.91.155.0/26', 'allocation_pools': [{'start': '170.91.155.2', 'end': '170.91.155.62'}], 'gateway_ip': '170.91.155.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.91.155.2', 'tags': [], 'project_id': '37525406150d4898bb40f99354e0a359'}}
2025-02-05 16:00:16,213 - INFO - Created VN ctest-vn-97628736
2025-02-05 16:00:16,269 - DEBUG - VN ctest-vn-97628736 UUID is a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95
2025-02-05 16:00:16,387 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679, 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-39185938:ctest-vn-97628736, 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-02-05 16:00:16,706 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bfcde694-bda3-4da4-885e-9e55f9d0bcaa', 'name': 'ctest-vn-34166679', 'tenant_id': '37525406150d4898bb40f99354e0a359', 'project_id': '37525406150d4898bb40f99354e0a359', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0478f63-436e-49a9-b083-a0c72ca6d3ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-vn-34166679'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-policy-allow-all-71162667']], 'subnet_ipam': [{'subnet_cidr': '160.216.90.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 16:00:16,990 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95', 'name': 'ctest-vn-97628736', 'tenant_id': '37525406150d4898bb40f99354e0a359', 'project_id': '37525406150d4898bb40f99354e0a359', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca1a9c70-867f-4582-95d7-01e9967f08be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-vn-97628736'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-policy-allow-all-71162667']], 'subnet_ipam': [{'subnet_cidr': '170.91.155.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 16:00:17,141 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-05 16:00:17,437 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-05 16:00:17,470 - DEBUG - Requesting: http://10.0.0.24:8082/domain/35161e20-f8e5-4213-a903-562a943260c9
2025-02-05 16:00:17,488 - DEBUG - Requesting: http://10.0.0.24:8082/project/37525406-150d-4898-bb40-f99354e0a359
2025-02-05 16:00:17,570 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcde694-bda3-4da4-885e-9e55f9d0bcaa
2025-02-05 16:00:17,583 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcde694-bda3-4da4-885e-9e55f9d0bcaa
2025-02-05 16:00:17,594 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1eb98fd1-2c7d-4345-8f72-3cbd8cdc0203
2025-02-05 16:00:17,603 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1eb98fd1-2c7d-4345-8f72-3cbd8cdc0203
2025-02-05 16:00:17,611 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/d3cb6000-42d7-4e67-9558-942c110668e0
2025-02-05 16:00:17,618 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-05 16:00:17,618 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcde694-bda3-4da4-885e-9e55f9d0bcaa
2025-02-05 16:00:17,629 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1eb98fd1-2c7d-4345-8f72-3cbd8cdc0203
2025-02-05 16:00:17,645 - INFO - Verified VN network id 9 for VN bfcde694-bda3-4da4-885e-9e55f9d0bcaa
2025-02-05 16:00:17,645 - INFO - Verifications in API Server for VN ctest-vn-34166679 passed
2025-02-05 16:00:17,645 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcde694-bda3-4da4-885e-9e55f9d0bcaa
2025-02-05 16:00:17,657 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1eb98fd1-2c7d-4345-8f72-3cbd8cdc0203
2025-02-05 16:00:17,666 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1eb98fd1-2c7d-4345-8f72-3cbd8cdc0203
2025-02-05 16:00:17,674 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/d3cb6000-42d7-4e67-9558-942c110668e0
2025-02-05 16:00:17,687 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39185938', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13820956357981064612', 'uuid-lslong': '9826465529069616298'}, 'enable': 'true', 'created': '2025-02-05T16:00:15', 'last-modified': '2025-02-05T16:00:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011597'}
2025-02-05 16:00:17,696 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-05 16:00:17,696 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34166679 passed
2025-02-05 16:00:17,697 - DEBUG - ====Verifying policy data for ctest-vn-34166679 in API_Server ======
2025-02-05 16:00:17,697 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-05 16:00:17,704 - DEBUG - Requesting: http://10.0.0.24:8082/domain/35161e20-f8e5-4213-a903-562a943260c9
2025-02-05 16:00:17,716 - DEBUG - Requesting: http://10.0.0.24:8082/project/37525406-150d-4898-bb40-f99354e0a359
2025-02-05 16:00:17,789 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcde694-bda3-4da4-885e-9e55f9d0bcaa
2025-02-05 16:00:17,800 - DEBUG - ==>Verifying data for policy with id: 93f81aff-7f1d-441c-a184-b9b16c74c260, fqn: ['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-policy-allow-all-71162667']
2025-02-05 16:00:17,800 - INFO - VN ctest-vn-34166679 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 16:00:17,800 - DEBUG - Verifying the vn in opserver
2025-02-05 16:00:17,801 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679 virtual network link through opserver 10.0.0.24
2025-02-05 16:00:17,801 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-05 16:00:18,095 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-05 16:00:18,151 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679?flat'}
2025-02-05 16:00:18,151 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679 is found in opserver
2025-02-05 16:00:18,163 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 16:00:18,169 - DEBUG - VRF ids for VN ctest-vn-34166679: {}
2025-02-05 16:00:18,169 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-05 16:00:18,177 - DEBUG - Requesting: http://10.0.0.24:8082/domain/35161e20-f8e5-4213-a903-562a943260c9
2025-02-05 16:00:18,193 - DEBUG - Requesting: http://10.0.0.24:8082/project/37525406-150d-4898-bb40-f99354e0a359
2025-02-05 16:00:18,274 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95
2025-02-05 16:00:18,292 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95
2025-02-05 16:00:18,303 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/67e69852-98ce-443f-bfb8-78b0539d7cf4
2025-02-05 16:00:18,311 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/67e69852-98ce-443f-bfb8-78b0539d7cf4
2025-02-05 16:00:18,319 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/2d7c593c-d25c-443b-8dcc-6e17384d2339
2025-02-05 16:00:18,327 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 16:00:18,327 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95
2025-02-05 16:00:18,339 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/67e69852-98ce-443f-bfb8-78b0539d7cf4
2025-02-05 16:00:18,356 - INFO - Verified VN network id 10 for VN a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95
2025-02-05 16:00:18,357 - INFO - Verifications in API Server for VN ctest-vn-97628736 passed
2025-02-05 16:00:18,357 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95
2025-02-05 16:00:18,370 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/67e69852-98ce-443f-bfb8-78b0539d7cf4
2025-02-05 16:00:18,379 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/67e69852-98ce-443f-bfb8-78b0539d7cf4
2025-02-05 16:00:18,387 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/2d7c593c-d25c-443b-8dcc-6e17384d2339
2025-02-05 16:00:18,403 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-97628736', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39185938', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12245784327656000892', 'uuid-lslong': '12008344728807611029'}, 'enable': 'true', 'created': '2025-02-05T16:00:15', 'last-modified': '2025-02-05T16:00:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.482337'}
2025-02-05 16:00:18,410 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 16:00:18,411 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97628736 passed
2025-02-05 16:00:18,411 - DEBUG - ====Verifying policy data for ctest-vn-97628736 in API_Server ======
2025-02-05 16:00:18,411 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-05 16:00:18,417 - DEBUG - Requesting: http://10.0.0.24:8082/domain/35161e20-f8e5-4213-a903-562a943260c9
2025-02-05 16:00:18,430 - DEBUG - Requesting: http://10.0.0.24:8082/project/37525406-150d-4898-bb40-f99354e0a359
2025-02-05 16:00:18,514 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95
2025-02-05 16:00:18,525 - DEBUG - ==>Verifying data for policy with id: 93f81aff-7f1d-441c-a184-b9b16c74c260, fqn: ['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-policy-allow-all-71162667']
2025-02-05 16:00:18,525 - INFO - VN ctest-vn-97628736 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 16:00:18,525 - DEBUG - Verifying the vn in opserver
2025-02-05 16:00:18,525 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-97628736 virtual network link through opserver 10.0.0.24
2025-02-05 16:00:18,525 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-05 16:00:18,537 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-97628736', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-97628736?flat'}
2025-02-05 16:00:18,537 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-97628736 is found in opserver
2025-02-05 16:00:18,551 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 16:00:18,558 - DEBUG - VRF ids for VN ctest-vn-97628736: {}
2025-02-05 16:00:18,633 - DEBUG - Services list from nova: [