2025-01-09 07:35:51,638 - INFO - Domain Default found not creating
2025-01-09 07:35:51,790 - INFO - Project ctest-TestBasicPolicy-73208092 not found, creating it
2025-01-09 07:35:52,621 - INFO - Created Project:ctest-TestBasicPolicy-73208092, ID : 11077475-ebab-4d0f-af4c-4b5e6d8f9b66
2025-01-09 07:35:54,215 - INFO - ================================================================================
2025-01-09 07:35:54,215 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-09 07:35:54,215 - 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-09 07:35:54,474 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.26': '0'}} with
2025-01-09 07:35:54,475 - INFO - Initial checks done. Running the testcase now
2025-01-09 07:35:54,475 - INFO -
2025-01-09 07:35:55,059 - DEBUG - Response for create_network : {'network': {'id': '69740a08-5e1a-4766-83f2-7a866aeea51c', 'name': 'ctest-vn-85540377', 'tenant_id': '11077475ebab4d0faf4c4b5e6d8f9b66', 'project_id': '11077475ebab4d0faf4c4b5e6d8f9b66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73208092', 'ctest-vn-85540377'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 07:35:55,220 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f893e7c9-1a8a-47c7-8917-ff7c4f19c5b9', 'name': '', 'tenant_id': '11077475ebab4d0faf4c4b5e6d8f9b66', 'network_id': '69740a08-5e1a-4766-83f2-7a866aeea51c', 'ip_version': 4, 'cidr': '132.74.0.0/26', 'allocation_pools': [{'start': '132.74.0.2', 'end': '132.74.0.62'}], 'gateway_ip': '132.74.0.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.74.0.2', 'tags': [], 'project_id': '11077475ebab4d0faf4c4b5e6d8f9b66'}}
2025-01-09 07:35:55,240 - INFO - Created VN ctest-vn-85540377
2025-01-09 07:35:55,292 - DEBUG - VN ctest-vn-85540377 UUID is 69740a08-5e1a-4766-83f2-7a866aeea51c
2025-01-09 07:35:55,599 - DEBUG - Response for create_network : {'network': {'id': '1f56ecff-4062-4265-95a6-136613fb56f2', 'name': 'ctest-vn-33889396', 'tenant_id': '11077475ebab4d0faf4c4b5e6d8f9b66', 'project_id': '11077475ebab4d0faf4c4b5e6d8f9b66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73208092', 'ctest-vn-33889396'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 07:35:55,789 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c5afb4f-573a-4a60-af7e-ccc9f32bb809', 'name': '', 'tenant_id': '11077475ebab4d0faf4c4b5e6d8f9b66', 'network_id': '1f56ecff-4062-4265-95a6-136613fb56f2', 'ip_version': 4, 'cidr': '43.0.232.192/26', 'allocation_pools': [{'start': '43.0.232.194', 'end': '43.0.232.254'}], 'gateway_ip': '43.0.232.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.0.232.194', 'tags': [], 'project_id': '11077475ebab4d0faf4c4b5e6d8f9b66'}}
2025-01-09 07:35:55,810 - INFO - Created VN ctest-vn-33889396
2025-01-09 07:35:55,864 - DEBUG - VN ctest-vn-33889396 UUID is 1f56ecff-4062-4265-95a6-136613fb56f2
2025-01-09 07:35:55,990 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73208092:ctest-vn-85540377, 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-73208092:ctest-vn-33889396, 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-09 07:35:56,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69740a08-5e1a-4766-83f2-7a866aeea51c', 'name': 'ctest-vn-85540377', 'tenant_id': '11077475ebab4d0faf4c4b5e6d8f9b66', 'project_id': '11077475ebab4d0faf4c4b5e6d8f9b66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f893e7c9-1a8a-47c7-8917-ff7c4f19c5b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73208092', 'ctest-vn-85540377'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73208092', 'ctest-policy-allow-all-80458747']], 'subnet_ipam': [{'subnet_cidr': '132.74.0.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 07:35:56,559 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1f56ecff-4062-4265-95a6-136613fb56f2', 'name': 'ctest-vn-33889396', 'tenant_id': '11077475ebab4d0faf4c4b5e6d8f9b66', 'project_id': '11077475ebab4d0faf4c4b5e6d8f9b66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5c5afb4f-573a-4a60-af7e-ccc9f32bb809'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73208092', 'ctest-vn-33889396'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73208092', 'ctest-policy-allow-all-80458747']], 'subnet_ipam': [{'subnet_cidr': '43.0.232.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 07:35:56,708 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-09 07:35:57,027 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-09 07:35:57,063 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6c4b7374-6d2d-4bf3-930c-c798162f437b
2025-01-09 07:35:57,078 - DEBUG - Requesting: http://10.0.0.33:8082/project/11077475-ebab-4d0f-af4c-4b5e6d8f9b66
2025-01-09 07:35:57,156 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69740a08-5e1a-4766-83f2-7a866aeea51c
2025-01-09 07:35:57,167 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69740a08-5e1a-4766-83f2-7a866aeea51c
2025-01-09 07:35:57,178 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba5c4c80-d1c3-4208-99f6-8a03cffa9ff4
2025-01-09 07:35:57,185 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba5c4c80-d1c3-4208-99f6-8a03cffa9ff4
2025-01-09 07:35:57,193 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/60f048c8-43bb-4345-97a4-e953b9839af7
2025-01-09 07:35:57,199 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 07:35:57,199 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69740a08-5e1a-4766-83f2-7a866aeea51c
2025-01-09 07:35:57,209 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba5c4c80-d1c3-4208-99f6-8a03cffa9ff4
2025-01-09 07:35:57,225 - INFO - Verified VN network id 7 for VN 69740a08-5e1a-4766-83f2-7a866aeea51c
2025-01-09 07:35:57,225 - INFO - Verifications in API Server for VN ctest-vn-85540377 passed
2025-01-09 07:35:57,225 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69740a08-5e1a-4766-83f2-7a866aeea51c
2025-01-09 07:35:57,236 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba5c4c80-d1c3-4208-99f6-8a03cffa9ff4
2025-01-09 07:35:57,243 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba5c4c80-d1c3-4208-99f6-8a03cffa9ff4
2025-01-09 07:35:57,250 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/60f048c8-43bb-4345-97a4-e953b9839af7
2025-01-09 07:35:57,262 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73208092:ctest-vn-85540377', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73208092', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7598709502335666022', 'uuid-lslong': '9507796481070769436'}, 'enable': 'true', 'created': '2025-01-09T07:35:55', 'last-modified': '2025-01-09T07:35:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980271'}
2025-01-09 07:35:57,268 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 07:35:57,268 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85540377 passed
2025-01-09 07:35:57,268 - DEBUG - ====Verifying policy data for ctest-vn-85540377 in API_Server ======
2025-01-09 07:35:57,268 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-09 07:35:57,274 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6c4b7374-6d2d-4bf3-930c-c798162f437b
2025-01-09 07:35:57,285 - DEBUG - Requesting: http://10.0.0.33:8082/project/11077475-ebab-4d0f-af4c-4b5e6d8f9b66
2025-01-09 07:35:57,361 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69740a08-5e1a-4766-83f2-7a866aeea51c
2025-01-09 07:35:57,372 - DEBUG - ==>Verifying data for policy with id: 3676f500-5ca7-48d7-9ed6-3cc7f5ddddd9, fqn: ['default-domain', 'ctest-TestBasicPolicy-73208092', 'ctest-policy-allow-all-80458747']
2025-01-09 07:35:57,372 - INFO - VN ctest-vn-85540377 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 07:35:57,372 - DEBUG - Verifying the vn in opserver
2025-01-09 07:35:57,372 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73208092:ctest-vn-85540377 virtual network link through opserver 10.0.0.33
2025-01-09 07:35:57,373 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-01-09 07:35:57,720 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-01-09 07:35:57,799 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73208092:ctest-vn-85540377', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73208092:ctest-vn-85540377?flat'}
2025-01-09 07:35:57,799 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73208092:ctest-vn-85540377 is found in opserver
2025-01-09 07:35:57,810 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 07:35:57,815 - DEBUG - VRF ids for VN ctest-vn-85540377: {}
2025-01-09 07:35:57,815 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-09 07:35:57,822 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6c4b7374-6d2d-4bf3-930c-c798162f437b
2025-01-09 07:35:57,836 - DEBUG - Requesting: http://10.0.0.33:8082/project/11077475-ebab-4d0f-af4c-4b5e6d8f9b66
2025-01-09 07:35:57,910 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1f56ecff-4062-4265-95a6-136613fb56f2
2025-01-09 07:35:57,925 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1f56ecff-4062-4265-95a6-136613fb56f2
2025-01-09 07:35:57,935 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6bd63f33-8a18-4705-acb2-a263e57067bc
2025-01-09 07:35:57,942 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6bd63f33-8a18-4705-acb2-a263e57067bc
2025-01-09 07:35:57,950 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/61d227e2-0fe2-4fee-989e-c10755a1ebb7
2025-01-09 07:35:57,957 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 07:35:57,957 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1f56ecff-4062-4265-95a6-136613fb56f2
2025-01-09 07:35:57,969 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6bd63f33-8a18-4705-acb2-a263e57067bc
2025-01-09 07:35:57,984 - INFO - Verified VN network id 8 for VN 1f56ecff-4062-4265-95a6-136613fb56f2
2025-01-09 07:35:57,985 - INFO - Verifications in API Server for VN ctest-vn-33889396 passed
2025-01-09 07:35:57,985 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1f56ecff-4062-4265-95a6-136613fb56f2
2025-01-09 07:35:57,998 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6bd63f33-8a18-4705-acb2-a263e57067bc
2025-01-09 07:35:58,008 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6bd63f33-8a18-4705-acb2-a263e57067bc
2025-01-09 07:35:58,017 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/61d227e2-0fe2-4fee-989e-c10755a1ebb7
2025-01-09 07:35:58,035 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73208092:ctest-vn-33889396', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73208092', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2258252844213879397', 'uuid-lslong': '10783327686928062194'}, 'enable': 'true', 'created': '2025-01-09T07:35:55', 'last-modified': '2025-01-09T07:35:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.509607'}
2025-01-09 07:35:58,043 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 07:35:58,043 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33889396 passed
2025-01-09 07:35:58,043 - DEBUG - ====Verifying policy data for ctest-vn-33889396 in API_Server ======
2025-01-09 07:35:58,043 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-09 07:35:58,050 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6c4b7374-6d2d-4bf3-930c-c798162f437b
2025-01-09 07:35:58,065 - DEBUG - Requesting: http://10.0.0.33:8082/project/11077475-ebab-4d0f-af4c-4b5e6d8f9b66
2025-01-09 07:35:58,148 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1f56ecff-4062-4265-95a6-136613fb56f2
2025-01-09 07:35:58,160 - DEBUG - ==>Verifying data for policy with id: 3676f500-5ca7-48d7-9ed6-3cc7f5ddddd9, fqn: ['default-domain', 'ctest-TestBasicPolicy-73208092', 'ctest-policy-allow-all-80458747']
2025-01-09 07:35:58,160 - INFO - VN ctest-vn-33889396 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 07:35:58,160 - DEBUG - Verifying the vn in opserver
2025-01-09 07:35:58,160 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73208092:ctest-vn-33889396 virtual network link through opserver 10.0.0.33
2025-01-09 07:35:58,160 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-01-09 07:35:58,215 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73208092:ctest-vn-33889396', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73208092:ctest-vn-33889396?flat'}
2025-01-09 07:35:58,215 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73208092:ctest-vn-33889396 is found in opserver
2025-01-09 07:35:58,228 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 07:35:58,234 - DEBUG - VRF ids for VN ctest-vn-33889396: {}
2025-01-09 07:35:58,301 - DEBUG - Services list from nova: [