2025-01-06 13:03:58,636 - INFO - Domain Default found not creating
2025-01-06 13:03:58,772 - INFO - Project ctest-TestBasicPolicy-32504847 not found, creating it
2025-01-06 13:03:59,223 - INFO - Created Project:ctest-TestBasicPolicy-32504847, ID : bea565d6-26d9-45d3-b348-64380ef11eb1
2025-01-06 13:04:00,644 - INFO - ================================================================================
2025-01-06 13:04:00,644 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-06 13:04:00,644 - 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-06 13:04:00,898 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.19': '0'}} with
2025-01-06 13:04:00,898 - INFO - Initial checks done. Running the testcase now
2025-01-06 13:04:00,898 - INFO -
2025-01-06 13:04:01,439 - DEBUG - Response for create_network : {'network': {'id': '7a00bf83-b738-4587-8d0b-72a4b5124efa', 'name': 'ctest-vn-87462597', 'tenant_id': 'bea565d626d945d3b34864380ef11eb1', 'project_id': 'bea565d626d945d3b34864380ef11eb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-vn-87462597'], 'port_security_enabled': True, 'description': ''}}
2025-01-06 13:04:01,603 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abd024ba-90fc-41bf-bcfa-3b5d3201af83', 'name': '', 'tenant_id': 'bea565d626d945d3b34864380ef11eb1', 'network_id': '7a00bf83-b738-4587-8d0b-72a4b5124efa', 'ip_version': 4, 'cidr': '219.132.114.192/26', 'allocation_pools': [{'start': '219.132.114.194', 'end': '219.132.114.254'}], 'gateway_ip': '219.132.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.132.114.194', 'tags': [], 'project_id': 'bea565d626d945d3b34864380ef11eb1'}}
2025-01-06 13:04:01,619 - INFO - Created VN ctest-vn-87462597
2025-01-06 13:04:01,671 - DEBUG - VN ctest-vn-87462597 UUID is 7a00bf83-b738-4587-8d0b-72a4b5124efa
2025-01-06 13:04:01,982 - DEBUG - Response for create_network : {'network': {'id': '7ca74622-1b8c-491a-8e9c-e11b16432ea1', 'name': 'ctest-vn-82193982', 'tenant_id': 'bea565d626d945d3b34864380ef11eb1', 'project_id': 'bea565d626d945d3b34864380ef11eb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-vn-82193982'], 'port_security_enabled': True, 'description': ''}}
2025-01-06 13:04:02,131 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ec82cdb-a077-44df-bc45-907265b7e156', 'name': '', 'tenant_id': 'bea565d626d945d3b34864380ef11eb1', 'network_id': '7ca74622-1b8c-491a-8e9c-e11b16432ea1', 'ip_version': 4, 'cidr': '186.5.50.64/26', 'allocation_pools': [{'start': '186.5.50.66', 'end': '186.5.50.126'}], 'gateway_ip': '186.5.50.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.5.50.66', 'tags': [], 'project_id': 'bea565d626d945d3b34864380ef11eb1'}}
2025-01-06 13:04:02,148 - INFO - Created VN ctest-vn-82193982
2025-01-06 13:04:02,199 - DEBUG - VN ctest-vn-82193982 UUID is 7ca74622-1b8c-491a-8e9c-e11b16432ea1
2025-01-06 13:04:02,347 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597, 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-32504847:ctest-vn-82193982, 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-06 13:04:02,651 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a00bf83-b738-4587-8d0b-72a4b5124efa', 'name': 'ctest-vn-87462597', 'tenant_id': 'bea565d626d945d3b34864380ef11eb1', 'project_id': 'bea565d626d945d3b34864380ef11eb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['abd024ba-90fc-41bf-bcfa-3b5d3201af83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-vn-87462597'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-policy-allow-all-43319587']], 'subnet_ipam': [{'subnet_cidr': '219.132.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-06 13:04:02,938 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ca74622-1b8c-491a-8e9c-e11b16432ea1', 'name': 'ctest-vn-82193982', 'tenant_id': 'bea565d626d945d3b34864380ef11eb1', 'project_id': 'bea565d626d945d3b34864380ef11eb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ec82cdb-a077-44df-bc45-907265b7e156'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-vn-82193982'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-policy-allow-all-43319587']], 'subnet_ipam': [{'subnet_cidr': '186.5.50.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-06 13:04:03,083 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-06 13:04:03,381 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-06 13:04:03,411 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4236e424-a699-4a11-b417-4103c0cf66f6
2025-01-06 13:04:03,423 - DEBUG - Requesting: http://10.0.0.12:8082/project/bea565d6-26d9-45d3-b348-64380ef11eb1
2025-01-06 13:04:03,496 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7a00bf83-b738-4587-8d0b-72a4b5124efa
2025-01-06 13:04:03,508 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7a00bf83-b738-4587-8d0b-72a4b5124efa
2025-01-06 13:04:03,518 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/aca2282b-ad39-4761-8d86-f7de486e44f4
2025-01-06 13:04:03,526 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/aca2282b-ad39-4761-8d86-f7de486e44f4
2025-01-06 13:04:03,534 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/3eb357dd-34ea-4ab1-851d-b639d701fc2b
2025-01-06 13:04:03,541 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-06 13:04:03,541 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7a00bf83-b738-4587-8d0b-72a4b5124efa
2025-01-06 13:04:03,551 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/aca2282b-ad39-4761-8d86-f7de486e44f4
2025-01-06 13:04:03,565 - INFO - Verified VN network id 8 for VN 7a00bf83-b738-4587-8d0b-72a4b5124efa
2025-01-06 13:04:03,565 - INFO - Verifications in API Server for VN ctest-vn-87462597 passed
2025-01-06 13:04:03,565 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7a00bf83-b738-4587-8d0b-72a4b5124efa
2025-01-06 13:04:03,574 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/aca2282b-ad39-4761-8d86-f7de486e44f4
2025-01-06 13:04:03,581 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/aca2282b-ad39-4761-8d86-f7de486e44f4
2025-01-06 13:04:03,589 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/3eb357dd-34ea-4ab1-851d-b639d701fc2b
2025-01-06 13:04:03,600 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32504847', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8791237045062747527', 'uuid-lslong': '10163343035829735162'}, 'enable': 'true', 'created': '2025-01-06T13:04:01', 'last-modified': '2025-01-06T13:04:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978317'}
2025-01-06 13:04:03,608 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-06 13:04:03,609 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87462597 passed
2025-01-06 13:04:03,609 - DEBUG - ====Verifying policy data for ctest-vn-87462597 in API_Server ======
2025-01-06 13:04:03,609 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-06 13:04:03,615 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4236e424-a699-4a11-b417-4103c0cf66f6
2025-01-06 13:04:03,626 - DEBUG - Requesting: http://10.0.0.12:8082/project/bea565d6-26d9-45d3-b348-64380ef11eb1
2025-01-06 13:04:03,706 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7a00bf83-b738-4587-8d0b-72a4b5124efa
2025-01-06 13:04:03,715 - DEBUG - ==>Verifying data for policy with id: 86433cc5-b5d4-4f8c-a93c-a8ad098ba3e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-policy-allow-all-43319587']
2025-01-06 13:04:03,716 - INFO - VN ctest-vn-87462597 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-06 13:04:03,716 - DEBUG - Verifying the vn in opserver
2025-01-06 13:04:03,716 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597 virtual network link through opserver 10.0.0.12
2025-01-06 13:04:03,716 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-06 13:04:04,004 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-06 13:04:04,052 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597?flat'}
2025-01-06 13:04:04,052 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597 is found in opserver
2025-01-06 13:04:04,062 - DEBUG - Do not have enough data to verify VN in agent
2025-01-06 13:04:04,067 - DEBUG - VRF ids for VN ctest-vn-87462597: {}
2025-01-06 13:04:04,067 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-06 13:04:04,072 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4236e424-a699-4a11-b417-4103c0cf66f6
2025-01-06 13:04:04,083 - DEBUG - Requesting: http://10.0.0.12:8082/project/bea565d6-26d9-45d3-b348-64380ef11eb1
2025-01-06 13:04:04,153 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7ca74622-1b8c-491a-8e9c-e11b16432ea1
2025-01-06 13:04:04,165 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7ca74622-1b8c-491a-8e9c-e11b16432ea1
2025-01-06 13:04:04,173 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4a6bf41e-b221-4477-8ca8-7ebc6e5c25b4
2025-01-06 13:04:04,180 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4a6bf41e-b221-4477-8ca8-7ebc6e5c25b4
2025-01-06 13:04:04,187 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/07a53e57-0298-4d8b-8c13-b3248a28bb9d
2025-01-06 13:04:04,192 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-06 13:04:04,192 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7ca74622-1b8c-491a-8e9c-e11b16432ea1
2025-01-06 13:04:04,201 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4a6bf41e-b221-4477-8ca8-7ebc6e5c25b4
2025-01-06 13:04:04,214 - INFO - Verified VN network id 9 for VN 7ca74622-1b8c-491a-8e9c-e11b16432ea1
2025-01-06 13:04:04,214 - INFO - Verifications in API Server for VN ctest-vn-82193982 passed
2025-01-06 13:04:04,214 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7ca74622-1b8c-491a-8e9c-e11b16432ea1
2025-01-06 13:04:04,223 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4a6bf41e-b221-4477-8ca8-7ebc6e5c25b4
2025-01-06 13:04:04,230 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4a6bf41e-b221-4477-8ca8-7ebc6e5c25b4
2025-01-06 13:04:04,235 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/07a53e57-0298-4d8b-8c13-b3248a28bb9d
2025-01-06 13:04:04,246 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-82193982', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32504847', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8982225094118754586', 'uuid-lslong': '10276335956206497441'}, 'enable': 'true', 'created': '2025-01-06T13:04:01', 'last-modified': '2025-01-06T13:04:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.380101'}
2025-01-06 13:04:04,252 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-06 13:04:04,252 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82193982 passed
2025-01-06 13:04:04,252 - DEBUG - ====Verifying policy data for ctest-vn-82193982 in API_Server ======
2025-01-06 13:04:04,253 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-06 13:04:04,257 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4236e424-a699-4a11-b417-4103c0cf66f6
2025-01-06 13:04:04,268 - DEBUG - Requesting: http://10.0.0.12:8082/project/bea565d6-26d9-45d3-b348-64380ef11eb1
2025-01-06 13:04:04,344 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7ca74622-1b8c-491a-8e9c-e11b16432ea1
2025-01-06 13:04:04,354 - DEBUG - ==>Verifying data for policy with id: 86433cc5-b5d4-4f8c-a93c-a8ad098ba3e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-policy-allow-all-43319587']
2025-01-06 13:04:04,354 - INFO - VN ctest-vn-82193982 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-06 13:04:04,354 - DEBUG - Verifying the vn in opserver
2025-01-06 13:04:04,354 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-82193982 virtual network link through opserver 10.0.0.12
2025-01-06 13:04:04,354 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-06 13:04:04,364 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-82193982', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-82193982?flat'}
2025-01-06 13:04:04,364 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-82193982 is found in opserver
2025-01-06 13:04:04,374 - DEBUG - Do not have enough data to verify VN in agent
2025-01-06 13:04:04,379 - DEBUG - VRF ids for VN ctest-vn-82193982: {}
2025-01-06 13:04:04,435 - DEBUG - Services list from nova: [