2025-04-08 13:00:12,280 - INFO - Domain Default found not creating
2025-04-08 13:00:12,470 - INFO - Project ctest-TestBasicPolicy-38458475 not found, creating it
2025-04-08 13:00:13,019 - INFO - Created Project:ctest-TestBasicPolicy-38458475, ID : 48a72cc9-0515-4478-b2b1-ac79625ba949
2025-04-08 13:00:14,651 - INFO - ================================================================================
2025-04-08 13:00:14,651 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-08 13:00:14,651 - 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-08 13:00:14,924 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.17': '0'}} with
2025-04-08 13:00:14,924 - INFO - Initial checks done. Running the testcase now
2025-04-08 13:00:14,924 - INFO -
2025-04-08 13:00:15,575 - DEBUG - Response for create_network : {'network': {'id': '7af09c02-dcc2-4c91-9b7e-67916c9b496a', 'name': 'ctest-vn-20743033', 'tenant_id': '48a72cc905154478b2b1ac79625ba949', 'project_id': '48a72cc905154478b2b1ac79625ba949', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38458475', 'ctest-vn-20743033'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 13:00:15,772 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a5a091f-48bd-4f3f-8670-e7d66244f9e5', 'name': '', 'tenant_id': '48a72cc905154478b2b1ac79625ba949', 'network_id': '7af09c02-dcc2-4c91-9b7e-67916c9b496a', 'ip_version': 4, 'cidr': '98.70.104.64/26', 'allocation_pools': [{'start': '98.70.104.66', 'end': '98.70.104.126'}], 'gateway_ip': '98.70.104.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.70.104.66', 'tags': [], 'project_id': '48a72cc905154478b2b1ac79625ba949'}}
2025-04-08 13:00:15,796 - INFO - Created VN ctest-vn-20743033
2025-04-08 13:00:15,850 - DEBUG - VN ctest-vn-20743033 UUID is 7af09c02-dcc2-4c91-9b7e-67916c9b496a
2025-04-08 13:00:16,219 - DEBUG - Response for create_network : {'network': {'id': '50a9fb3c-a2cc-4da6-bde5-d89e6ff982b9', 'name': 'ctest-vn-50660049', 'tenant_id': '48a72cc905154478b2b1ac79625ba949', 'project_id': '48a72cc905154478b2b1ac79625ba949', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38458475', 'ctest-vn-50660049'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 13:00:16,425 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a178d639-2df5-4ae7-9153-aeb72d157cc4', 'name': '', 'tenant_id': '48a72cc905154478b2b1ac79625ba949', 'network_id': '50a9fb3c-a2cc-4da6-bde5-d89e6ff982b9', 'ip_version': 4, 'cidr': '157.143.46.0/26', 'allocation_pools': [{'start': '157.143.46.2', 'end': '157.143.46.62'}], 'gateway_ip': '157.143.46.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.143.46.2', 'tags': [], 'project_id': '48a72cc905154478b2b1ac79625ba949'}}
2025-04-08 13:00:16,450 - INFO - Created VN ctest-vn-50660049
2025-04-08 13:00:16,506 - DEBUG - VN ctest-vn-50660049 UUID is 50a9fb3c-a2cc-4da6-bde5-d89e6ff982b9
2025-04-08 13:00:16,624 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38458475:ctest-vn-20743033, 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-38458475:ctest-vn-50660049, 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-08 13:00:16,961 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7af09c02-dcc2-4c91-9b7e-67916c9b496a', 'name': 'ctest-vn-20743033', 'tenant_id': '48a72cc905154478b2b1ac79625ba949', 'project_id': '48a72cc905154478b2b1ac79625ba949', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a5a091f-48bd-4f3f-8670-e7d66244f9e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38458475', 'ctest-vn-20743033'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38458475', 'ctest-policy-allow-all-23908687']], 'subnet_ipam': [{'subnet_cidr': '98.70.104.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 13:00:17,281 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50a9fb3c-a2cc-4da6-bde5-d89e6ff982b9', 'name': 'ctest-vn-50660049', 'tenant_id': '48a72cc905154478b2b1ac79625ba949', 'project_id': '48a72cc905154478b2b1ac79625ba949', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a178d639-2df5-4ae7-9153-aeb72d157cc4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38458475', 'ctest-vn-50660049'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38458475', 'ctest-policy-allow-all-23908687']], 'subnet_ipam': [{'subnet_cidr': '157.143.46.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 13:00:17,430 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-04-08 13:00:17,738 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-04-08 13:00:17,771 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1a762224-8969-452d-978e-ecbcf993dced
2025-04-08 13:00:17,791 - DEBUG - Requesting: http://10.0.0.34:8082/project/48a72cc9-0515-4478-b2b1-ac79625ba949
2025-04-08 13:00:17,872 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/7af09c02-dcc2-4c91-9b7e-67916c9b496a
2025-04-08 13:00:17,886 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/7af09c02-dcc2-4c91-9b7e-67916c9b496a
2025-04-08 13:00:17,898 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6729b8fe-5d2a-47f9-a0f3-fe3d1781c013
2025-04-08 13:00:17,907 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6729b8fe-5d2a-47f9-a0f3-fe3d1781c013
2025-04-08 13:00:17,915 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/c8250b5b-c078-4508-8689-c731bc88c261
2025-04-08 13:00:17,924 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 13:00:17,924 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/7af09c02-dcc2-4c91-9b7e-67916c9b496a
2025-04-08 13:00:17,936 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6729b8fe-5d2a-47f9-a0f3-fe3d1781c013
2025-04-08 13:00:17,954 - INFO - Verified VN network id 8 for VN 7af09c02-dcc2-4c91-9b7e-67916c9b496a
2025-04-08 13:00:17,954 - INFO - Verifications in API Server for VN ctest-vn-20743033 passed
2025-04-08 13:00:17,954 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/7af09c02-dcc2-4c91-9b7e-67916c9b496a
2025-04-08 13:00:17,965 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6729b8fe-5d2a-47f9-a0f3-fe3d1781c013
2025-04-08 13:00:17,974 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6729b8fe-5d2a-47f9-a0f3-fe3d1781c013
2025-04-08 13:00:17,982 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/c8250b5b-c078-4508-8689-c731bc88c261
2025-04-08 13:00:17,997 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38458475:ctest-vn-20743033', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38458475', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8858752003145354385', 'uuid-lslong': '11204506797234407786'}, 'enable': 'true', 'created': '2025-04-08T13:00:15', 'last-modified': '2025-04-08T13:00:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.079860'}
2025-04-08 13:00:18,005 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 13:00:18,005 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20743033 passed
2025-04-08 13:00:18,005 - DEBUG - ====Verifying policy data for ctest-vn-20743033 in API_Server ======
2025-04-08 13:00:18,005 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-04-08 13:00:18,013 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1a762224-8969-452d-978e-ecbcf993dced
2025-04-08 13:00:18,026 - DEBUG - Requesting: http://10.0.0.34:8082/project/48a72cc9-0515-4478-b2b1-ac79625ba949
2025-04-08 13:00:18,109 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/7af09c02-dcc2-4c91-9b7e-67916c9b496a
2025-04-08 13:00:18,120 - DEBUG - ==>Verifying data for policy with id: 95eb038f-c96a-45e4-ac74-848ae01c512e, fqn: ['default-domain', 'ctest-TestBasicPolicy-38458475', 'ctest-policy-allow-all-23908687']
2025-04-08 13:00:18,120 - INFO - VN ctest-vn-20743033 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 13:00:18,120 - DEBUG - Verifying the vn in opserver
2025-04-08 13:00:18,120 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38458475:ctest-vn-20743033 virtual network link through opserver 10.0.0.34
2025-04-08 13:00:18,120 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-04-08 13:00:18,415 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-04-08 13:00:18,484 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38458475:ctest-vn-20743033', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38458475:ctest-vn-20743033?flat'}
2025-04-08 13:00:18,484 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38458475:ctest-vn-20743033 is found in opserver
2025-04-08 13:00:18,497 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 13:00:18,506 - DEBUG - VRF ids for VN ctest-vn-20743033: {}
2025-04-08 13:00:18,506 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-04-08 13:00:18,513 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1a762224-8969-452d-978e-ecbcf993dced
2025-04-08 13:00:18,528 - DEBUG - Requesting: http://10.0.0.34:8082/project/48a72cc9-0515-4478-b2b1-ac79625ba949
2025-04-08 13:00:18,606 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/50a9fb3c-a2cc-4da6-bde5-d89e6ff982b9
2025-04-08 13:00:18,620 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/50a9fb3c-a2cc-4da6-bde5-d89e6ff982b9
2025-04-08 13:00:18,631 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ed94399d-8e75-45cb-967b-80a9cee63bd6
2025-04-08 13:00:18,640 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ed94399d-8e75-45cb-967b-80a9cee63bd6
2025-04-08 13:00:18,649 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/8217071c-aa34-49cb-aaec-036f6afe8834
2025-04-08 13:00:18,657 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 13:00:18,657 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/50a9fb3c-a2cc-4da6-bde5-d89e6ff982b9
2025-04-08 13:00:18,672 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ed94399d-8e75-45cb-967b-80a9cee63bd6
2025-04-08 13:00:18,691 - INFO - Verified VN network id 9 for VN 50a9fb3c-a2cc-4da6-bde5-d89e6ff982b9
2025-04-08 13:00:18,691 - INFO - Verifications in API Server for VN ctest-vn-50660049 passed
2025-04-08 13:00:18,691 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/50a9fb3c-a2cc-4da6-bde5-d89e6ff982b9
2025-04-08 13:00:18,707 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ed94399d-8e75-45cb-967b-80a9cee63bd6
2025-04-08 13:00:18,715 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ed94399d-8e75-45cb-967b-80a9cee63bd6
2025-04-08 13:00:18,724 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/8217071c-aa34-49cb-aaec-036f6afe8834
2025-04-08 13:00:18,745 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38458475:ctest-vn-50660049', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38458475', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5812453031946243494', 'uuid-lslong': '13683581217830175417'}, 'enable': 'true', 'created': '2025-04-08T13:00:16', 'last-modified': '2025-04-08T13:00:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.534951'}
2025-04-08 13:00:18,754 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 13:00:18,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50660049 passed
2025-04-08 13:00:18,754 - DEBUG - ====Verifying policy data for ctest-vn-50660049 in API_Server ======
2025-04-08 13:00:18,754 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-04-08 13:00:18,761 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1a762224-8969-452d-978e-ecbcf993dced
2025-04-08 13:00:18,774 - DEBUG - Requesting: http://10.0.0.34:8082/project/48a72cc9-0515-4478-b2b1-ac79625ba949
2025-04-08 13:00:18,857 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/50a9fb3c-a2cc-4da6-bde5-d89e6ff982b9
2025-04-08 13:00:18,870 - DEBUG - ==>Verifying data for policy with id: 95eb038f-c96a-45e4-ac74-848ae01c512e, fqn: ['default-domain', 'ctest-TestBasicPolicy-38458475', 'ctest-policy-allow-all-23908687']
2025-04-08 13:00:18,870 - INFO - VN ctest-vn-50660049 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 13:00:18,870 - DEBUG - Verifying the vn in opserver
2025-04-08 13:00:18,870 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38458475:ctest-vn-50660049 virtual network link through opserver 10.0.0.34
2025-04-08 13:00:18,870 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-04-08 13:00:18,884 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38458475:ctest-vn-50660049', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38458475:ctest-vn-50660049?flat'}
2025-04-08 13:00:18,884 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38458475:ctest-vn-50660049 is found in opserver
2025-04-08 13:00:18,897 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 13:00:18,903 - DEBUG - VRF ids for VN ctest-vn-50660049: {}
2025-04-08 13:00:18,974 - DEBUG - Services list from nova: [