2025-04-09 07:45:02,111 - INFO - Domain Default found not creating
2025-04-09 07:45:02,284 - INFO - Project ctest-TestBasicPolicy-25321039 not found, creating it
2025-04-09 07:45:02,774 - INFO - Created Project:ctest-TestBasicPolicy-25321039, ID : 8b3ac79f-a68f-4882-a27d-6fdc13f951aa
2025-04-09 07:45:04,334 - INFO - ================================================================================
2025-04-09 07:45:04,335 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 07:45:04,335 - 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-04-09 07:45:04,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.20': '0'}} with
2025-04-09 07:45:04,617 - INFO - Initial checks done. Running the testcase now
2025-04-09 07:45:04,617 - INFO -
2025-04-09 07:45:05,167 - DEBUG - Response for create_network : {'network': {'id': '4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3', 'name': 'ctest-vn-41830581', 'tenant_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'project_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-vn-41830581'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 07:45:05,380 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcdaab49-4bfd-4def-8cfe-5f4d2f6dca84', 'name': '', 'tenant_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'network_id': '4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3', 'ip_version': 4, 'cidr': '97.7.92.192/26', 'allocation_pools': [{'start': '97.7.92.194', 'end': '97.7.92.254'}], 'gateway_ip': '97.7.92.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.7.92.194', 'tags': [], 'project_id': '8b3ac79fa68f4882a27d6fdc13f951aa'}}
2025-04-09 07:45:05,399 - INFO - Created VN ctest-vn-41830581
2025-04-09 07:45:05,452 - DEBUG - VN ctest-vn-41830581 UUID is 4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3
2025-04-09 07:45:05,747 - DEBUG - Response for create_network : {'network': {'id': '8bebda1e-3a1d-4220-b94d-235ea0066639', 'name': 'ctest-vn-16137812', 'tenant_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'project_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-vn-16137812'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 07:45:05,938 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3e13e5e-e024-4dfa-a184-324edb7ece37', 'name': '', 'tenant_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'network_id': '8bebda1e-3a1d-4220-b94d-235ea0066639', 'ip_version': 4, 'cidr': '60.11.203.128/26', 'allocation_pools': [{'start': '60.11.203.130', 'end': '60.11.203.190'}], 'gateway_ip': '60.11.203.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.11.203.130', 'tags': [], 'project_id': '8b3ac79fa68f4882a27d6fdc13f951aa'}}
2025-04-09 07:45:05,958 - INFO - Created VN ctest-vn-16137812
2025-04-09 07:45:06,008 - DEBUG - VN ctest-vn-16137812 UUID is 8bebda1e-3a1d-4220-b94d-235ea0066639
2025-04-09 07:45:06,147 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581, 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-25321039:ctest-vn-16137812, 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-04-09 07:45:06,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3', 'name': 'ctest-vn-41830581', 'tenant_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'project_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bcdaab49-4bfd-4def-8cfe-5f4d2f6dca84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-vn-41830581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-policy-allow-all-06006257']], 'subnet_ipam': [{'subnet_cidr': '97.7.92.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 07:45:06,762 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8bebda1e-3a1d-4220-b94d-235ea0066639', 'name': 'ctest-vn-16137812', 'tenant_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'project_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c3e13e5e-e024-4dfa-a184-324edb7ece37'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-vn-16137812'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-policy-allow-all-06006257']], 'subnet_ipam': [{'subnet_cidr': '60.11.203.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 07:45:06,969 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-04-09 07:45:07,307 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-04-09 07:45:07,337 - DEBUG - Requesting: http://10.0.0.52:8082/domain/4aed1765-ad63-4c49-b45e-d6877c8c66a9
2025-04-09 07:45:07,354 - DEBUG - Requesting: http://10.0.0.52:8082/project/8b3ac79f-a68f-4882-a27d-6fdc13f951aa
2025-04-09 07:45:07,429 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3
2025-04-09 07:45:07,441 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3
2025-04-09 07:45:07,452 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f65ad0a4-b857-4921-8d3e-f37c83b90b44
2025-04-09 07:45:07,461 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f65ad0a4-b857-4921-8d3e-f37c83b90b44
2025-04-09 07:45:07,468 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/447e4b46-f81e-4b65-bf73-3997bdbbefd8
2025-04-09 07:45:07,475 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 07:45:07,476 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3
2025-04-09 07:45:07,488 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f65ad0a4-b857-4921-8d3e-f37c83b90b44
2025-04-09 07:45:07,509 - INFO - Verified VN network id 7 for VN 4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3
2025-04-09 07:45:07,509 - INFO - Verifications in API Server for VN ctest-vn-41830581 passed
2025-04-09 07:45:07,509 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3
2025-04-09 07:45:07,520 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f65ad0a4-b857-4921-8d3e-f37c83b90b44
2025-04-09 07:45:07,529 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f65ad0a4-b857-4921-8d3e-f37c83b90b44
2025-04-09 07:45:07,540 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/447e4b46-f81e-4b65-bf73-3997bdbbefd8
2025-04-09 07:45:07,553 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25321039', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5656268965110434970', 'uuid-lslong': '13454114082764992243'}, 'enable': 'true', 'created': '2025-04-09T07:45:05', 'last-modified': '2025-04-09T07:45:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.085233'}
2025-04-09 07:45:07,561 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 07:45:07,561 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41830581 passed
2025-04-09 07:45:07,562 - DEBUG - ====Verifying policy data for ctest-vn-41830581 in API_Server ======
2025-04-09 07:45:07,562 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-04-09 07:45:07,570 - DEBUG - Requesting: http://10.0.0.52:8082/domain/4aed1765-ad63-4c49-b45e-d6877c8c66a9
2025-04-09 07:45:07,586 - DEBUG - Requesting: http://10.0.0.52:8082/project/8b3ac79f-a68f-4882-a27d-6fdc13f951aa
2025-04-09 07:45:07,666 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3
2025-04-09 07:45:07,681 - DEBUG - ==>Verifying data for policy with id: fa9c76d7-b643-4b54-bf5d-6b1495f744e8, fqn: ['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-policy-allow-all-06006257']
2025-04-09 07:45:07,681 - INFO - VN ctest-vn-41830581 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 07:45:07,681 - DEBUG - Verifying the vn in opserver
2025-04-09 07:45:07,681 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581 virtual network link through opserver 10.0.0.52
2025-04-09 07:45:07,681 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2025-04-09 07:45:07,978 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2025-04-09 07:45:08,055 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581?flat'}
2025-04-09 07:45:08,055 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581 is found in opserver
2025-04-09 07:45:08,067 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 07:45:08,074 - DEBUG - VRF ids for VN ctest-vn-41830581: {}
2025-04-09 07:45:08,074 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-04-09 07:45:08,083 - DEBUG - Requesting: http://10.0.0.52:8082/domain/4aed1765-ad63-4c49-b45e-d6877c8c66a9
2025-04-09 07:45:08,100 - DEBUG - Requesting: http://10.0.0.52:8082/project/8b3ac79f-a68f-4882-a27d-6fdc13f951aa
2025-04-09 07:45:08,184 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/8bebda1e-3a1d-4220-b94d-235ea0066639
2025-04-09 07:45:08,202 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/8bebda1e-3a1d-4220-b94d-235ea0066639
2025-04-09 07:45:08,215 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/b1cddcfc-cc45-4fbf-9f18-5ff07396efcf
2025-04-09 07:45:08,227 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/b1cddcfc-cc45-4fbf-9f18-5ff07396efcf
2025-04-09 07:45:08,239 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/3eb4e485-a8c8-4b63-b0d4-17b172a43945
2025-04-09 07:45:08,249 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 07:45:08,249 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/8bebda1e-3a1d-4220-b94d-235ea0066639
2025-04-09 07:45:08,262 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/b1cddcfc-cc45-4fbf-9f18-5ff07396efcf
2025-04-09 07:45:08,283 - INFO - Verified VN network id 8 for VN 8bebda1e-3a1d-4220-b94d-235ea0066639
2025-04-09 07:45:08,284 - INFO - Verifications in API Server for VN ctest-vn-16137812 passed
2025-04-09 07:45:08,284 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/8bebda1e-3a1d-4220-b94d-235ea0066639
2025-04-09 07:45:08,302 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/b1cddcfc-cc45-4fbf-9f18-5ff07396efcf
2025-04-09 07:45:08,312 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/b1cddcfc-cc45-4fbf-9f18-5ff07396efcf
2025-04-09 07:45:08,322 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/3eb4e485-a8c8-4b63-b0d4-17b172a43945
2025-04-09 07:45:08,339 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-16137812', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25321039', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10082392014157857312', 'uuid-lslong': '13352367359542060601'}, 'enable': 'true', 'created': '2025-04-09T07:45:05', 'last-modified': '2025-04-09T07:45:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.598680'}
2025-04-09 07:45:08,347 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 07:45:08,348 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16137812 passed
2025-04-09 07:45:08,348 - DEBUG - ====Verifying policy data for ctest-vn-16137812 in API_Server ======
2025-04-09 07:45:08,348 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2025-04-09 07:45:08,356 - DEBUG - Requesting: http://10.0.0.52:8082/domain/4aed1765-ad63-4c49-b45e-d6877c8c66a9
2025-04-09 07:45:08,373 - DEBUG - Requesting: http://10.0.0.52:8082/project/8b3ac79f-a68f-4882-a27d-6fdc13f951aa
2025-04-09 07:45:08,458 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/8bebda1e-3a1d-4220-b94d-235ea0066639
2025-04-09 07:45:08,471 - DEBUG - ==>Verifying data for policy with id: fa9c76d7-b643-4b54-bf5d-6b1495f744e8, fqn: ['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-policy-allow-all-06006257']
2025-04-09 07:45:08,471 - INFO - VN ctest-vn-16137812 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 07:45:08,471 - DEBUG - Verifying the vn in opserver
2025-04-09 07:45:08,471 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-16137812 virtual network link through opserver 10.0.0.52
2025-04-09 07:45:08,471 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2025-04-09 07:45:08,483 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-16137812', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-16137812?flat'}
2025-04-09 07:45:08,483 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-16137812 is found in opserver
2025-04-09 07:45:08,496 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 07:45:08,502 - DEBUG - VRF ids for VN ctest-vn-16137812: {}
2025-04-09 07:45:08,563 - DEBUG - Services list from nova: [