2025-04-21 06:54:55,324 - INFO - Domain Default found not creating
2025-04-21 06:54:55,471 - INFO - Project ctest-TestBasicPolicy-64003405 not found, creating it
2025-04-21 06:54:55,942 - INFO - Created Project:ctest-TestBasicPolicy-64003405, ID : 3a58d08c-88c0-45b1-84fe-592b1e5bb22d
2025-04-21 06:54:57,544 - INFO - ================================================================================
2025-04-21 06:54:57,544 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-21 06:54:57,545 - 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-21 06:54:57,814 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-21 06:54:57,814 - INFO - Initial checks done. Running the testcase now
2025-04-21 06:54:57,814 - INFO -
2025-04-21 06:54:58,555 - DEBUG - Response for create_network : {'network': {'id': 'c55c87b9-4ad6-4882-8003-2bc3658ac1fb', 'name': 'ctest-vn-16000372', 'tenant_id': '3a58d08c88c045b184fe592b1e5bb22d', 'project_id': '3a58d08c88c045b184fe592b1e5bb22d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64003405', 'ctest-vn-16000372'], 'port_security_enabled': True, 'description': ''}}
2025-04-21 06:54:58,731 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c47f2fd-4ac9-425b-87fb-416a422dcd56', 'name': '', 'tenant_id': '3a58d08c88c045b184fe592b1e5bb22d', 'network_id': 'c55c87b9-4ad6-4882-8003-2bc3658ac1fb', 'ip_version': 4, 'cidr': '30.122.95.64/26', 'allocation_pools': [{'start': '30.122.95.66', 'end': '30.122.95.126'}], 'gateway_ip': '30.122.95.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.122.95.66', 'tags': [], 'project_id': '3a58d08c88c045b184fe592b1e5bb22d'}}
2025-04-21 06:54:58,749 - INFO - Created VN ctest-vn-16000372
2025-04-21 06:54:58,805 - DEBUG - VN ctest-vn-16000372 UUID is c55c87b9-4ad6-4882-8003-2bc3658ac1fb
2025-04-21 06:54:59,091 - DEBUG - Response for create_network : {'network': {'id': '88a47283-c33f-4bcf-a592-4212cd43cbcf', 'name': 'ctest-vn-06166890', 'tenant_id': '3a58d08c88c045b184fe592b1e5bb22d', 'project_id': '3a58d08c88c045b184fe592b1e5bb22d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64003405', 'ctest-vn-06166890'], 'port_security_enabled': True, 'description': ''}}
2025-04-21 06:54:59,295 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d4aba76-313a-46f9-abb6-58c2bfdf90ab', 'name': '', 'tenant_id': '3a58d08c88c045b184fe592b1e5bb22d', 'network_id': '88a47283-c33f-4bcf-a592-4212cd43cbcf', 'ip_version': 4, 'cidr': '21.255.66.0/26', 'allocation_pools': [{'start': '21.255.66.2', 'end': '21.255.66.62'}], 'gateway_ip': '21.255.66.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.255.66.2', 'tags': [], 'project_id': '3a58d08c88c045b184fe592b1e5bb22d'}}
2025-04-21 06:54:59,314 - INFO - Created VN ctest-vn-06166890
2025-04-21 06:54:59,369 - DEBUG - VN ctest-vn-06166890 UUID is 88a47283-c33f-4bcf-a592-4212cd43cbcf
2025-04-21 06:54:59,481 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64003405:ctest-vn-16000372, 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-64003405:ctest-vn-06166890, 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-21 06:54:59,772 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c55c87b9-4ad6-4882-8003-2bc3658ac1fb', 'name': 'ctest-vn-16000372', 'tenant_id': '3a58d08c88c045b184fe592b1e5bb22d', 'project_id': '3a58d08c88c045b184fe592b1e5bb22d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c47f2fd-4ac9-425b-87fb-416a422dcd56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64003405', 'ctest-vn-16000372'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64003405', 'ctest-policy-allow-all-44920636']], 'subnet_ipam': [{'subnet_cidr': '30.122.95.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-21 06:54:59,961 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88a47283-c33f-4bcf-a592-4212cd43cbcf', 'name': 'ctest-vn-06166890', 'tenant_id': '3a58d08c88c045b184fe592b1e5bb22d', 'project_id': '3a58d08c88c045b184fe592b1e5bb22d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d4aba76-313a-46f9-abb6-58c2bfdf90ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64003405', 'ctest-vn-06166890'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64003405', 'ctest-policy-allow-all-44920636']], 'subnet_ipam': [{'subnet_cidr': '21.255.66.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-21 06:55:00,133 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-21 06:55:00,465 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-21 06:55:00,494 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8bdd1fa9-cefb-4746-8947-7798b6adef9c
2025-04-21 06:55:00,508 - DEBUG - Requesting: http://10.0.0.38:8082/project/3a58d08c-88c0-45b1-84fe-592b1e5bb22d
2025-04-21 06:55:00,587 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c55c87b9-4ad6-4882-8003-2bc3658ac1fb
2025-04-21 06:55:00,599 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c55c87b9-4ad6-4882-8003-2bc3658ac1fb
2025-04-21 06:55:00,609 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/51c16903-c461-446b-92bb-3d4da5663dcf
2025-04-21 06:55:00,617 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/51c16903-c461-446b-92bb-3d4da5663dcf
2025-04-21 06:55:00,624 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/adb3cdc0-c3f7-4279-81dd-6be96c8728a3
2025-04-21 06:55:00,630 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-21 06:55:00,631 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c55c87b9-4ad6-4882-8003-2bc3658ac1fb
2025-04-21 06:55:00,640 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/51c16903-c461-446b-92bb-3d4da5663dcf
2025-04-21 06:55:00,655 - INFO - Verified VN network id 8 for VN c55c87b9-4ad6-4882-8003-2bc3658ac1fb
2025-04-21 06:55:00,655 - INFO - Verifications in API Server for VN ctest-vn-16000372 passed
2025-04-21 06:55:00,655 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c55c87b9-4ad6-4882-8003-2bc3658ac1fb
2025-04-21 06:55:00,665 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/51c16903-c461-446b-92bb-3d4da5663dcf
2025-04-21 06:55:00,672 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/51c16903-c461-446b-92bb-3d4da5663dcf
2025-04-21 06:55:00,679 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/adb3cdc0-c3f7-4279-81dd-6be96c8728a3
2025-04-21 06:55:00,691 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64003405:ctest-vn-16000372', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64003405', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14221390953223440514', 'uuid-lslong': '9224264580007117307'}, 'enable': 'true', 'created': '2025-04-21T06:54:58', 'last-modified': '2025-04-21T06:54:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939134'}
2025-04-21 06:55:00,698 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-21 06:55:00,698 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16000372 passed
2025-04-21 06:55:00,698 - DEBUG - ====Verifying policy data for ctest-vn-16000372 in API_Server ======
2025-04-21 06:55:00,698 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-21 06:55:00,704 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8bdd1fa9-cefb-4746-8947-7798b6adef9c
2025-04-21 06:55:00,717 - DEBUG - Requesting: http://10.0.0.38:8082/project/3a58d08c-88c0-45b1-84fe-592b1e5bb22d
2025-04-21 06:55:00,788 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c55c87b9-4ad6-4882-8003-2bc3658ac1fb
2025-04-21 06:55:00,798 - DEBUG - ==>Verifying data for policy with id: 019dc3c1-e239-4f4e-9950-81519123e5cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-64003405', 'ctest-policy-allow-all-44920636']
2025-04-21 06:55:00,798 - INFO - VN ctest-vn-16000372 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-21 06:55:00,798 - DEBUG - Verifying the vn in opserver
2025-04-21 06:55:00,798 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64003405:ctest-vn-16000372 virtual network link through opserver 10.0.0.38
2025-04-21 06:55:00,799 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-21 06:55:01,130 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-21 06:55:01,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64003405:ctest-vn-16000372', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64003405:ctest-vn-16000372?flat'}
2025-04-21 06:55:01,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64003405:ctest-vn-16000372 is found in opserver
2025-04-21 06:55:01,196 - DEBUG - Do not have enough data to verify VN in agent
2025-04-21 06:55:01,201 - DEBUG - VRF ids for VN ctest-vn-16000372: {}
2025-04-21 06:55:01,202 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-21 06:55:01,207 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8bdd1fa9-cefb-4746-8947-7798b6adef9c
2025-04-21 06:55:01,220 - DEBUG - Requesting: http://10.0.0.38:8082/project/3a58d08c-88c0-45b1-84fe-592b1e5bb22d
2025-04-21 06:55:01,300 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/88a47283-c33f-4bcf-a592-4212cd43cbcf
2025-04-21 06:55:01,313 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/88a47283-c33f-4bcf-a592-4212cd43cbcf
2025-04-21 06:55:01,323 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bcf5be4a-f9c8-44a9-b87d-a51c958d7e91
2025-04-21 06:55:01,330 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bcf5be4a-f9c8-44a9-b87d-a51c958d7e91
2025-04-21 06:55:01,337 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/259f2c8c-41fa-4e1c-ab46-d58457797b6a
2025-04-21 06:55:01,347 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-21 06:55:01,347 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/88a47283-c33f-4bcf-a592-4212cd43cbcf
2025-04-21 06:55:01,356 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bcf5be4a-f9c8-44a9-b87d-a51c958d7e91
2025-04-21 06:55:01,370 - INFO - Verified VN network id 9 for VN 88a47283-c33f-4bcf-a592-4212cd43cbcf
2025-04-21 06:55:01,370 - INFO - Verifications in API Server for VN ctest-vn-06166890 passed
2025-04-21 06:55:01,370 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/88a47283-c33f-4bcf-a592-4212cd43cbcf
2025-04-21 06:55:01,379 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bcf5be4a-f9c8-44a9-b87d-a51c958d7e91
2025-04-21 06:55:01,387 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bcf5be4a-f9c8-44a9-b87d-a51c958d7e91
2025-04-21 06:55:01,395 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/259f2c8c-41fa-4e1c-ab46-d58457797b6a
2025-04-21 06:55:01,407 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64003405:ctest-vn-06166890', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64003405', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9846120595580734415', 'uuid-lslong': '11930671011378482127'}, 'enable': 'true', 'created': '2025-04-21T06:54:59', 'last-modified': '2025-04-21T06:54:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.468360'}
2025-04-21 06:55:01,414 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-21 06:55:01,414 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06166890 passed
2025-04-21 06:55:01,414 - DEBUG - ====Verifying policy data for ctest-vn-06166890 in API_Server ======
2025-04-21 06:55:01,414 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-21 06:55:01,420 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8bdd1fa9-cefb-4746-8947-7798b6adef9c
2025-04-21 06:55:01,432 - DEBUG - Requesting: http://10.0.0.38:8082/project/3a58d08c-88c0-45b1-84fe-592b1e5bb22d
2025-04-21 06:55:01,507 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/88a47283-c33f-4bcf-a592-4212cd43cbcf
2025-04-21 06:55:01,517 - DEBUG - ==>Verifying data for policy with id: 019dc3c1-e239-4f4e-9950-81519123e5cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-64003405', 'ctest-policy-allow-all-44920636']
2025-04-21 06:55:01,517 - INFO - VN ctest-vn-06166890 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-21 06:55:01,517 - DEBUG - Verifying the vn in opserver
2025-04-21 06:55:01,517 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64003405:ctest-vn-06166890 virtual network link through opserver 10.0.0.38
2025-04-21 06:55:01,518 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-21 06:55:01,528 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64003405:ctest-vn-06166890', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64003405:ctest-vn-06166890?flat'}
2025-04-21 06:55:01,528 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64003405:ctest-vn-06166890 is found in opserver
2025-04-21 06:55:01,539 - DEBUG - Do not have enough data to verify VN in agent
2025-04-21 06:55:01,545 - DEBUG - VRF ids for VN ctest-vn-06166890: {}
2025-04-21 06:55:01,606 - DEBUG - Services list from nova: [