2025-01-15 00:46:48,507 - INFO - Domain Default found not creating
2025-01-15 00:46:48,642 - INFO - Project ctest-TestBasicPolicy-22072498 not found, creating it
2025-01-15 00:46:49,082 - INFO - Created Project:ctest-TestBasicPolicy-22072498, ID : cf8ef954-d355-404d-8179-5454e3dcd894
2025-01-15 00:46:50,484 - INFO - ================================================================================
2025-01-15 00:46:50,484 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-15 00:46:50,485 - 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-01-15 00:46:50,739 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.29': '0'}} with
2025-01-15 00:46:50,739 - INFO - Initial checks done. Running the testcase now
2025-01-15 00:46:50,739 - INFO -
2025-01-15 00:46:51,315 - DEBUG - Response for create_network : {'network': {'id': '5fe933d3-f065-45bc-93a0-0861646d83b9', 'name': 'ctest-vn-93633641', 'tenant_id': 'cf8ef954d355404d81795454e3dcd894', 'project_id': 'cf8ef954d355404d81795454e3dcd894', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22072498', 'ctest-vn-93633641'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 00:46:51,472 - DEBUG - Response for create_subnet : {'subnet': {'id': '53e6ea47-6599-4f42-adf5-0ffa30c1040f', 'name': '', 'tenant_id': 'cf8ef954d355404d81795454e3dcd894', 'network_id': '5fe933d3-f065-45bc-93a0-0861646d83b9', 'ip_version': 4, 'cidr': '124.61.255.0/26', 'allocation_pools': [{'start': '124.61.255.2', 'end': '124.61.255.62'}], 'gateway_ip': '124.61.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.61.255.2', 'tags': [], 'project_id': 'cf8ef954d355404d81795454e3dcd894'}}
2025-01-15 00:46:51,491 - INFO - Created VN ctest-vn-93633641
2025-01-15 00:46:51,544 - DEBUG - VN ctest-vn-93633641 UUID is 5fe933d3-f065-45bc-93a0-0861646d83b9
2025-01-15 00:46:51,854 - DEBUG - Response for create_network : {'network': {'id': 'afbcde34-2018-4a56-b07d-c64fbea26b51', 'name': 'ctest-vn-62121925', 'tenant_id': 'cf8ef954d355404d81795454e3dcd894', 'project_id': 'cf8ef954d355404d81795454e3dcd894', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22072498', 'ctest-vn-62121925'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 00:46:52,026 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b71953ab-39d6-4ac0-be56-bc6c8c63a9dc', 'name': '', 'tenant_id': 'cf8ef954d355404d81795454e3dcd894', 'network_id': 'afbcde34-2018-4a56-b07d-c64fbea26b51', 'ip_version': 4, 'cidr': '117.240.210.0/26', 'allocation_pools': [{'start': '117.240.210.2', 'end': '117.240.210.62'}], 'gateway_ip': '117.240.210.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.240.210.2', 'tags': [], 'project_id': 'cf8ef954d355404d81795454e3dcd894'}}
2025-01-15 00:46:52,042 - INFO - Created VN ctest-vn-62121925
2025-01-15 00:46:52,092 - DEBUG - VN ctest-vn-62121925 UUID is afbcde34-2018-4a56-b07d-c64fbea26b51
2025-01-15 00:46:52,205 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22072498:ctest-vn-93633641, 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-22072498:ctest-vn-62121925, 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-01-15 00:46:52,500 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5fe933d3-f065-45bc-93a0-0861646d83b9', 'name': 'ctest-vn-93633641', 'tenant_id': 'cf8ef954d355404d81795454e3dcd894', 'project_id': 'cf8ef954d355404d81795454e3dcd894', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['53e6ea47-6599-4f42-adf5-0ffa30c1040f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22072498', 'ctest-vn-93633641'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22072498', 'ctest-policy-allow-all-48047600']], 'subnet_ipam': [{'subnet_cidr': '124.61.255.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 00:46:52,904 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afbcde34-2018-4a56-b07d-c64fbea26b51', 'name': 'ctest-vn-62121925', 'tenant_id': 'cf8ef954d355404d81795454e3dcd894', 'project_id': 'cf8ef954d355404d81795454e3dcd894', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b71953ab-39d6-4ac0-be56-bc6c8c63a9dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22072498', 'ctest-vn-62121925'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22072498', 'ctest-policy-allow-all-48047600']], 'subnet_ipam': [{'subnet_cidr': '117.240.210.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 00:46:53,041 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-15 00:46:53,339 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-15 00:46:53,369 - DEBUG - Requesting: http://10.0.0.29:8082/domain/a2a437ee-c9d8-4377-9096-e1962b0bc558
2025-01-15 00:46:53,385 - DEBUG - Requesting: http://10.0.0.29:8082/project/cf8ef954-d355-404d-8179-5454e3dcd894
2025-01-15 00:46:53,463 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5fe933d3-f065-45bc-93a0-0861646d83b9
2025-01-15 00:46:53,474 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5fe933d3-f065-45bc-93a0-0861646d83b9
2025-01-15 00:46:53,484 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0a6247a6-b93c-4f77-b3e4-22cf63c0759c
2025-01-15 00:46:53,491 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0a6247a6-b93c-4f77-b3e4-22cf63c0759c
2025-01-15 00:46:53,499 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/f0433195-3d82-45bc-90ad-af8a7f8aa161
2025-01-15 00:46:53,505 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 00:46:53,505 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5fe933d3-f065-45bc-93a0-0861646d83b9
2025-01-15 00:46:53,514 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0a6247a6-b93c-4f77-b3e4-22cf63c0759c
2025-01-15 00:46:53,527 - INFO - Verified VN network id 9 for VN 5fe933d3-f065-45bc-93a0-0861646d83b9
2025-01-15 00:46:53,527 - INFO - Verifications in API Server for VN ctest-vn-93633641 passed
2025-01-15 00:46:53,527 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5fe933d3-f065-45bc-93a0-0861646d83b9
2025-01-15 00:46:53,536 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0a6247a6-b93c-4f77-b3e4-22cf63c0759c
2025-01-15 00:46:53,542 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0a6247a6-b93c-4f77-b3e4-22cf63c0759c
2025-01-15 00:46:53,550 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/f0433195-3d82-45bc-90ad-af8a7f8aa161
2025-01-15 00:46:53,561 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22072498:ctest-vn-93633641', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22072498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6911112088541021628', 'uuid-lslong': '10637511534238860217'}, 'enable': 'true', 'created': '2025-01-15T00:46:51', 'last-modified': '2025-01-15T00:46:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.086374'}
2025-01-15 00:46:53,567 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 00:46:53,567 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93633641 passed
2025-01-15 00:46:53,568 - DEBUG - ====Verifying policy data for ctest-vn-93633641 in API_Server ======
2025-01-15 00:46:53,568 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-15 00:46:53,572 - DEBUG - Requesting: http://10.0.0.29:8082/domain/a2a437ee-c9d8-4377-9096-e1962b0bc558
2025-01-15 00:46:53,582 - DEBUG - Requesting: http://10.0.0.29:8082/project/cf8ef954-d355-404d-8179-5454e3dcd894
2025-01-15 00:46:53,649 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5fe933d3-f065-45bc-93a0-0861646d83b9
2025-01-15 00:46:53,659 - DEBUG - ==>Verifying data for policy with id: 749a19d6-2cd6-47fb-aff1-a8cfc587b7b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-22072498', 'ctest-policy-allow-all-48047600']
2025-01-15 00:46:53,659 - INFO - VN ctest-vn-93633641 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 00:46:53,659 - DEBUG - Verifying the vn in opserver
2025-01-15 00:46:53,659 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22072498:ctest-vn-93633641 virtual network link through opserver 10.0.0.29
2025-01-15 00:46:53,659 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-01-15 00:46:53,950 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-01-15 00:46:54,001 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22072498:ctest-vn-93633641', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22072498:ctest-vn-93633641?flat'}
2025-01-15 00:46:54,001 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22072498:ctest-vn-93633641 is found in opserver
2025-01-15 00:46:54,012 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 00:46:54,017 - DEBUG - VRF ids for VN ctest-vn-93633641: {}
2025-01-15 00:46:54,017 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-15 00:46:54,022 - DEBUG - Requesting: http://10.0.0.29:8082/domain/a2a437ee-c9d8-4377-9096-e1962b0bc558
2025-01-15 00:46:54,032 - DEBUG - Requesting: http://10.0.0.29:8082/project/cf8ef954-d355-404d-8179-5454e3dcd894
2025-01-15 00:46:54,103 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/afbcde34-2018-4a56-b07d-c64fbea26b51
2025-01-15 00:46:54,115 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/afbcde34-2018-4a56-b07d-c64fbea26b51
2025-01-15 00:46:54,124 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5a4a5644-834a-4e6f-9f50-db7bec053527
2025-01-15 00:46:54,131 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5a4a5644-834a-4e6f-9f50-db7bec053527
2025-01-15 00:46:54,137 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/8b6e5927-20da-4a43-908d-119ee5aa6b44
2025-01-15 00:46:54,143 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 00:46:54,143 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/afbcde34-2018-4a56-b07d-c64fbea26b51
2025-01-15 00:46:54,153 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5a4a5644-834a-4e6f-9f50-db7bec053527
2025-01-15 00:46:54,165 - INFO - Verified VN network id 10 for VN afbcde34-2018-4a56-b07d-c64fbea26b51
2025-01-15 00:46:54,166 - INFO - Verifications in API Server for VN ctest-vn-62121925 passed
2025-01-15 00:46:54,166 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/afbcde34-2018-4a56-b07d-c64fbea26b51
2025-01-15 00:46:54,174 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5a4a5644-834a-4e6f-9f50-db7bec053527
2025-01-15 00:46:54,181 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5a4a5644-834a-4e6f-9f50-db7bec053527
2025-01-15 00:46:54,187 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/8b6e5927-20da-4a43-908d-119ee5aa6b44
2025-01-15 00:46:54,199 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22072498:ctest-vn-62121925', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22072498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12663240567717120598', 'uuid-lslong': '12717538968567180113'}, 'enable': 'true', 'created': '2025-01-15T00:46:51', 'last-modified': '2025-01-15T00:46:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.360167'}
2025-01-15 00:46:54,205 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 00:46:54,205 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62121925 passed
2025-01-15 00:46:54,205 - DEBUG - ====Verifying policy data for ctest-vn-62121925 in API_Server ======
2025-01-15 00:46:54,205 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-15 00:46:54,210 - DEBUG - Requesting: http://10.0.0.29:8082/domain/a2a437ee-c9d8-4377-9096-e1962b0bc558
2025-01-15 00:46:54,220 - DEBUG - Requesting: http://10.0.0.29:8082/project/cf8ef954-d355-404d-8179-5454e3dcd894
2025-01-15 00:46:54,290 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/afbcde34-2018-4a56-b07d-c64fbea26b51
2025-01-15 00:46:54,299 - DEBUG - ==>Verifying data for policy with id: 749a19d6-2cd6-47fb-aff1-a8cfc587b7b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-22072498', 'ctest-policy-allow-all-48047600']
2025-01-15 00:46:54,299 - INFO - VN ctest-vn-62121925 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 00:46:54,299 - DEBUG - Verifying the vn in opserver
2025-01-15 00:46:54,299 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22072498:ctest-vn-62121925 virtual network link through opserver 10.0.0.29
2025-01-15 00:46:54,299 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-01-15 00:46:54,309 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22072498:ctest-vn-62121925', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22072498:ctest-vn-62121925?flat'}
2025-01-15 00:46:54,309 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22072498:ctest-vn-62121925 is found in opserver
2025-01-15 00:46:54,319 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 00:46:54,324 - DEBUG - VRF ids for VN ctest-vn-62121925: {}
2025-01-15 00:46:54,377 - DEBUG - Services list from nova: [